Mitsubishi Q00JCPU User Manual page 139

Q series, logic
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
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
(b) How to enter numeric value without taking into account BIN notation
Remark
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)
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
2
1
XF
to
X0
Diagram 3.64 Import of data from digital switch to CPU module
Refer to the following manual for details of the BIN instruction.
QCPU (Q Mode)/QnACPU Programming Manual (Common Instructions)
3.9 Numeric Values which can be Used in Sequence Programs
CPU module
BINP K4X0 D0
BCD input
BCD D5 K4Y30
1
2
3
4
BIN data
5
6
7
8
3
- 74

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents