332
7 BASIC INSTRUCTIONS
7.5 Data Conversion Instructions
■
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.
Operation error
When one set of 4 digits is used
:
It operates considering the constant specified by (s) as the 1st set.
When two sets of 4 digits are used
:
It operates considering the constant specified by (s) as the 1st set, and the 2nd set fixed to 0.
Error code
(SD0/SD8067)
Description
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.
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......