EasyManua.ls Logo

Mitsubishi Electric melsec q00ujcpu - Page 73

Mitsubishi Electric melsec q00ujcpu
622 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2 - 34
(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 manual.
QCPU Programming Manual (Common Instructions)
Figure 2.36 Display of operation results in the CPU module by a digital indicator
[Setting numeric data]
Digital indicator
Y3F Y30to
CPU module
Output data
in BCD.
BIN data
BINP K4X0 DO
BCD D5 K4Y30

Table of Contents

Related product manuals