mitsu+parallel driving for 7 segment display

7
- 86 - Mitsubishi Melsec PLC Ladder Logic Application Parallel Driving for 7 Segment Display 1. Concept. This Application Note is for simplifying of ladder logic to display BCD value to 7 Segment Display units and minimize hardware to be used, using parallel Data line of 7 Segment Display units and Latch Signal line. 2. Testing Equipments : Autonics 7 Segment Display Unit 3. 7 Segment Jumper setting: 4. Schematic Wiring Diagram. Melsec Discrete Output Transistor DC24V 7 Segment Display Units 8 8 8 8 Y21 Y22 Y23 Y24 Y25 Y26 Y27 Y28 4 Data lines 4 Latch lines 5. Used Ladder logics At first, Binary value to display is converted to BCD numeric system, this value is moved to each register as much as 1digit, thrown to 4 data line via output module from Y21 to Y24 and latch strobe signal is thrown to 7segment display. sequentially this action is repeated for 1 digit by 1digit. M9038 , special contact, is ON for only 1scan when PLC start RUN , is used to make Data and Strobe Train. The bit of D0 written by M9038 will be shifted to left side for 1 bit when m100 is ON by SFL command. This bit will be moved from M0 to M15 and used data and strobe(latch) output signal Jumper Item Settings Decimal/ Hexa-decimal Select Decimal Latch Active High/Low Select Active low Dynamic(Serial)/ Parallel Select Parallel

Upload: lue-ook

Post on 22-Nov-2014

302 views

Category:

Documents


28 download

TRANSCRIPT

Page 1: Mitsu+Parallel Driving for 7 Segment Display

- 86 -

Mitsubishi Melsec PLC Ladder LogicApplication

Parallel Driving for 7 Segment Display

1. Concept.This Application Note is for simplifying of ladder logic to display BCD value to 7 SegmentDisplay units and minimize hardware to be used, using parallel Data line of 7 Segment Displayunits and Latch Signal line.

2. Testing Equipments : Autonics 7 Segment Display Unit3. 7 Segment Jumper setting:

4. Schematic Wiring Diagram.Melsec Discrete OutputTransistor DC24V 7 Segment Display Units

8 8 8 8Y21

Y22

Y23

Y24

Y25

Y26

Y27

Y28

4 Data lines

4 Latch lines

5. Used Ladder logicsAt first, Binary value to display is converted to BCD numeric system, this value is moved to eachregister as much as 1digit, thrown to 4 data line via output module from Y21 to Y24 and latchstrobe signal is thrown to 7segment display. sequentially this action is repeated for 1 digit by1digit.

M9038 , special contact, is ON for only 1scan when PLC start RUN , is used to make Data andStrobe Train. The bit of D0 written by M9038 will be shifted to left side for 1 bit when m100 isON by SFL command. This bit will be moved from M0 to M15 and used data and strobe(latch)output signal

Jumper Item SettingsDecimal/ Hexa-decimal Select DecimalLatch Active High/Low Select Active lowDynamic(Serial)/ Parallel Select Parallel

Page 2: Mitsu+Parallel Driving for 7 Segment Display

- 87 -

Output from Y28 to Y2B is used to transfer data to 7 Segment Unit. If Data/ Strobe Train andMove Logic is add, user can add any number of 7 Segment Unit as far as speed limit.

Page 3: Mitsu+Parallel Driving for 7 Segment Display

- 88 -

Page 4: Mitsu+Parallel Driving for 7 Segment Display

- 89 -

Mitsubishi Melsec PLC Ladder LogicApplication

Economic Discrete Input Multiplexing-Demultiplexing

1. Concept.This Application Note is for simplifying and saving of digital input module. Each groups of pilotsignaler and sensing device with diodes installed is connected to digital input module. and powercommon line of each group is connected to digital output module and driven with sequentialstrobe. Synchronizing strobe of digital output, each group of signaler will give their datainformation to digital input module and this will act as multiplexing with TDM(Time DivisionModulation). Otherwise in the PLC, synchronizing strobe of digital output, data information ofgroup of signaler from digital input module is stored in the buffer memory one by one and thiswill act as de-multiplexing.

2. Schematic Wiring Diagram.Melsec Discrete Input/OutputTransistor DC24V

3. Used Ladder LogicsThe output from Y2C to Y2F is to output strobe for multiplexing sequentially, and 1 strobe isneeded per the group of multi-input. Multi-input group should consist of dry contact typesignaler like Push-button Switch, Limit Switch, Thumb-wheel Switch, semi-conductor typesignaler like proximity switch is not suitable for this application considering fast speed response.The strobe output should be synchronized to data train in the ladder logic. In the practical

Y2C

Y2D

Y2E

Y2F

X01

X02

X03

X04

:

:

:

:

X16

:

:

:

:

:

:

:

:

:

:

:

:

:

:

:

Multi-input Group Signaler

16 core

X00X01X02X03X04:::::

::X0F

Page 5: Mitsu+Parallel Driving for 7 Segment Display

- 90 -

example, At first scan of PLC RUN start, Strobe train(MOV H2 K4M0) and DATA Train(MOVH7 K4M16) is synchronized. The meaning of hexa-decimal value H2 and H7 is as next figure;

Strobe train M15 M00 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0

Data train M32 M160 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1

These data/strobe train are shifted by 1 bit when M9036 is scanned and thrown to commonpower line of multi- input group. In the PLC, the data information of multi input group is acceptto internal coil group(M64-M79, M80-M95) by "Safe in time" action. This results simplifyingand saving of digital input module.

Page 6: Mitsu+Parallel Driving for 7 Segment Display

- 91 -

Page 7: Mitsu+Parallel Driving for 7 Segment Display

- 92 -

VI. Application Example for Calculation Command.

Analog Input/Output Module▷

A1S68AD/ A1S68DAV,DAI Analog Input Module Set-up▷

Scaling for Analog Input PV▷

Schmitt Threshold ON-OFF▷

Peak Value Hold▷

On / Off Controller for Analog PV▷

Analog Value Clamping, Limitation▷

Bit Shift by Calculation Command▷

Analog Drive Speed Control▷

Finding Stable Value by SUM from Analog Input Hunting▷

Drive Multi-stage Control by Encoder Feedback▷

Ratio Control for Material Mixing▷

Trickle Control for Truck Loading▷

Rate Sampler for Single Counter▷

Analog Scaling for X 0 Shifted Signal▷

Analog Scaling for Y 0 Shifted Signal▷

Piecewise for Proportional Non-Linear Curve▷

Piecewise for Inverse Proportional Non-Linear Curve▷

Linear Profiler▷