Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 334

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

■When using one set of 4 digits (n = K0 to K3)
A 4-digit numeric value stored in (s) is converted from binary into BCD, and each digit is output in turn from (d) to (d)+3 by the
time division method. The strobe signal is output in turn from (d)+4 to (d)+7 by the time division method also to latch one set
of 4-digit seven-segment display unit.
■When using two sets of 4 digits (n = K4 to K7)
1st set of 4 digits
A 4-digit numeric value stored in (s) is converted from binary into BCD, and its each digit is output in turn from (d) to (d)+3 by
the time division method. The strobe signal is output in turn from (d)+4 to (d)+7 by the time division method also to latch the
first set of 4-digit seven-segment display unit.
2nd set of 4 digits
A 4-digit numeric value stored in (s)+1 is converted from binary into BCD, and its each digit is output in turn from (d)+10 to
(d)+13 by the time division method. The strobe signal is output in turn from (d)+4 to (d)+7 by the time division method also to
latch the second set of 4-digit seven-segment display unit.
For the connection example of two seven-segment display units, refer to the following manual.
MELSEC iQ-F FX5U User's Manual (Hardware)
MELSEC iQ-F FX5UC User's Manual (Hardware)
Precautions
• The scan time (operation cycle) multiplied by 12 is required to update (one or two sets of) the 4-digit display.
• While the command input is ON, the operation is repeated. When the command contact is set to OFF in the middle of an
operation, the operation is paused. When the command contact is set to ON again, the operation is started from the
beginning.
• When one set of 4 digits is used, one device is occupied from the device specified in (s) and eight devices are occupied
from the device specified in (d).
• When two sets of 4 digits are used, two devices are occupied from the device specified in (s) and twelve devices are
occupied from the device specified in (d).
• SEGL instruction is executed in synchronization with the scan time (operation cycle) of the CPU module. For achieving a
series of display, the scan time of the PLC should be 10 ms or more. If the scan time is less than 10 ms, use the constant
scan mode so that the scan time exceeds 10 ms.
• Use a transistor output type CPU module.
• The SEGL instruction can only be executed four times in a program.
• When a constant (K or H) is specified as (s), operate as shown below.
When one set of 4 digits is used
When two sets of 4 digits are used
Operation error
Error code
Description
(SD0/SD8067)
2820H
The device range specified by (s), (d) exceeds the corresponding device range.
3405H
(n) is other than 0 to 7.
The value specified by (s), (s)+1 is other than 0 to 9999.
1811H
The number of the SEGL instructions which are used simultaneously exceeds four.
7 BASIC INSTRUCTIONS
332
7.5 Data Conversion Instructions
:
It operates considering the constant specified by (s) as the 1st set.
:
It operates considering the constant specified by (s) as the 1st set, and the 2nd set fixed to 0.

Hide quick links:

Advertisement

loading