Mitsubishi 00JCPU User Manual page 89

Q series programmable controller
Table of Contents

Advertisement

(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.
CPU module
Figure 2.45 Display of operation results in the CPU module by a digital indicator
Remark
For details of the BCD instruction, refer to the following.
MELSEC-Q/L Programming Manual (Common Instruction)
[Setting numeric data]
BINP K4X0 DO
Digital indicator
Y3F
Output data
BCD D5 K4Y30
in BCD.
BIN data
CHAPTER2 SEQUENCE PROGRAMS
to
Y30
2
3
2 - 44

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents