Mitsubishi Q00JCPU User Manual page 178

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
(1) Numeric value input from outside to CPU module
3
- 80
3.9 Numeric Values which can be Used in Sequence Programs
When setting a numeric value from an external digital switch or similar device to the
CPU module, BCD (binary coded decimal) can be used as the same setting in DEC
(decimal) by the method given in (b).
(a) Numeric values handled in CPU module
The CPU module performs operation in BIN (binary).
If the value set in BCD is used as-is, the CPU module recognizes the set value as
a BIN and performs operation.
Hence, operation is performed using the value different from the set value.
(
(b) below)
(b) How to enter numeric value without taking into account BIN notation
Use the BIN instruction to convert the data set in BCD into BIN used in the CPU
module.
Using the BIN instruction allows users to set numeric value data from the outside
without taking into account BIN notation.
[Numeric data designation]
Digital switch
4
3
XF
to
Figure 3.66 Import of data from digital switch to CPU module
Remark
Refer to the following manual for details of the BIN instruction.
QCPU (Q Mode)/QnACPU Programming Manual (Common Instructions)
CPU module
2
1
BCD input
X0
BINP K4X0 D0
BIN data
BCD D5 K4Y30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents