Mitsubishi Q00JCPU User Manual page 140

Q series, logic
Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
(2) Numeric value output from CPU module to outside
3
3.9 Numeric Values which can be Used in Sequence Programs
- 75
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.
CPU module
Diagram 3.65 Display of CPU module operation data by digital display
Remark
Refer to the following manual for details of the BCD instruction.
QCPU (Q Mode)/QnACPU Programming Manual (Common Instructions)
[Numeric data designation]
BINP K4X0 D0
Digital display
Y3F
BCD D5 K4Y30
BCD output
BIN data
to
Y30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents