2
-
44
CHAPTER2 SEQUENCE PROGRAMS
2
3
2.4 D
ata Used in Sequence Progr
ams
(2) Outputting numeric values externally from the CPU module
When externally displaying numeric values operated in the CPU module, a digital indicator can be used.
(a) Outputting numeric values
The CPU module performs program operations in binary.
If the binary values used in the CPU module are output to a digital indicator, the indicator does not show the
values correctly.
To convert the data set in binary into binary-coded decimal, which can be used in the external indicator, use the
BCD instruction.
The BCD instruction allows the external indicator to display values in decimal.
Remark
For details of the BCD instruction, refer to the following.
MELSEC-Q/L Programming Manual (Common Instruction)
Figure 2.45 Display of operation results in the CPU module by a digital indicator
[Setting numeric data]
Digital indicator
Y3F
Y30
to
CPU module
Output data
in BCD.
BIN data
BINP K4X0 DO
BCD D5 K4Y30
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......