Mitsubishi Electric melsec q00ujcpu User Manual page 73

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
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.
Figure 2.36 Display of operation results in the CPU module by a digital indicator
Remark
For details of the BCD instruction, refer to the following manual.
QCPU Programming Manual (Common Instructions)
2 - 34
CPU module
BINP K4X0 DO
BCD D5 K4Y30
[Setting numeric data]
Digital indicator
Y3F
to
Y30
Output data
in BCD.
BIN data

Advertisement

Table of Contents
loading

Table of Contents