3
- 15
3.7 Numeric Values which can be Used in Sequence Programs
3
SEQUENCE PROGRAM EXECUTION
(2) Numeric value output from CPU module to outside
A digital display or similar device is available to externally display the numeric value
operated by the CPU module.
(a) How to output numeric value
The CPU module performs operation in BIN.
If binary values used in the CPU module are output as they are to a digital display,
they will not displayed correctly.
Therefore, the BCD instruction is used to convert the data operated in BIN into
BCD used by the external display or similar device.
Using the BCD instruction allows the same display as in DEC (decimal) to be
provided on the external display or similar device.
Remark
Refer to the following manual for details of the BCD instruction.
QSCPU Programming Manual (Common Instructions)
Diagram 3.10 Display of CPU module operation data by digital display
[Numeric data designation]
Digital display
Y13F
Y130
to
CPU module
BCD output
BIN data
BINP K4X100 D0
BCD D5 K4Y130
Summary of Contents for MELSEC QS Series
Page 1: ......
Page 2: ......
Page 24: ...A 22 Memo ...
Page 258: ...Index 3 Memo ...
Page 263: ......
Page 264: ......