You are on page 1of 7

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:

Jumper Item Settings


Decimal/ Hexa-decimal Select Decimal
Latch Active High/Low Select Active low
Dynamic(Serial)/ Parallel Select Parallel

4. Schematic Wiring Diagram.


Melsec Discrete Output
Transistor DC24V 7 Segment Display Units

Y21 4 Data lines


Y22
Y23
Y24
8 8 8 8
4 Latch lines
Y25
Y26
Y27
Y28

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

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

- 87 -
- 88 -
Mitsubishi Melsec PLC Ladder Logic
Application
Economic Discrete Input Multiplexing-Demultiplexing

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

2. Schematic Wiring Diagram.


Melsec Discrete Input/Output
Transistor DC24V

Multi-input Group Signaler


Y2C
Y2D
Y2E
Y2F

X00
X01
X01
X02
X02
X03
X03
X04
X04
:: : : :
:
:: : : :
:: : 16 core : :
:
: : : :
:
:X16 : : :
X0F

3. Used Ladder Logics


The output from Y2C to Y2F is to output strobe for multiplexing sequentially, and 1 strobe is
needed per the group of multi-input. Multi-input group should consist of dry contact type
signaler like Push-button Switch, Limit Switch, Thumb-wheel Switch, semi-conductor type
signaler 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

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

Strobe train M15 M0


0000 0000 0000 0010

Data train M32 M16


0000 0000 0000 0111

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

- 90 -
- 91 -
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

- 92 -

You might also like