Mitsubishi Q00JCPU User Manual page 179

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
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
Remark
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
Figure 3.67 Display of CPU module operation data by digital display
Refer to the following manual for details of the BCD instruction.
QCPU (Q Mode)/QnACPU Programming Manual (Common Instructions)
3.9 Numeric Values which can be Used in Sequence Programs
[Numeric data designation]
BINP K4X0 D0
Digital display
Y3F
BCD D5 K4Y30
BCD output
BIN data
to
Y30
3
- 81
1
2
3
4
5
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents