6 BASIC INSTRUCTIONS
6.1 Comparison Operation Instructions
189
6
BIN 32-bit data comparisons
LDD, ANDD, ORD
• Treats BIN 32-bit data from device designated by (S1) and BIN 32-bit data from device designated by (S2) as a normally-
open contact, and performs comparison operation.
• The results of the comparison operations for the individual instructions are as follows:
• When (S1) and (S2) are assigned by a hexadecimal constant and the numerical value (8 to F) whose most significant bit
(b31) is "1" is designated as a constant, the value is considered as a negative BIN value in comparison operation.
• Data used for comparison should be designated by a 32-bit instruction (DMOV instruction, etc.). If designation is made with
a 16-bit instruction (MOV instruction, etc.), comparisons of large and small values cannot be performed correctly.
• There is no operation error in the LDD instruction, ANDD instruction, or ORD instruction.
(S1), (S2): Data for comparison or head number of the devices where the data for comparison is stored (BIN 32 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(S1)
(S2)
Instruction symbol Condition Comparison
operation result
Instruction symbol Condition Comparison
operation result
D= (S1)=(S2) Continuity D= (S1)(S2) Non-continuity
D<> (S1)(S2) D<> (S1)=(S2)
D> (S1)>(S2) D> (S1)(S2)
D<= (S1)(S2) D<= (S1)>(S2)
D< (S1)<(S2) D< (S1)(S2)
D>= (S1)(S2) D>= (S1)<(S2)
Basic
Process
High
performance
Redundant
Universal
LCPU
LD
AND
OR
S1
S2
S1
S2
S1
S2
indicates an instruction symbol of .
D
DDDDD
/////
Command
Command Command