88
4
4 Instructions4.3.1 Contact Comparison
LD#: Contact status bit operation
◆
Overview
Whether the LD# instruction is enabled is determined based on the bit logical operation result (a node
directly connected to the left-hand bus).
LD# S1 S2
Contact status bit
operation
Applicable model:
H3U
S1 Data 1 Element number of source data 1 16-bit instruction (5
steps)
LD#: Continuous
execution
32-bit instruction (9
steps)
LDD#: Continuous
execution
S2 Data 2 Element number of source data 2
Note: The # comparison operator can be &, |, or ^.
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
A logical operation (AND: &; NOT: |; XOR: ^) is performed on [S1] and [S2]. The instruction is enabled if the
operation result is not 0; if the operation result is 0, the instruction is disabled. The execution results are as
follows:
16-bit Instruction 32-bit Instruction
Enabled State
Condition
Disabled State
Condition
LD& LDD& S1&S2 ≠ 0 S1&S2 = 0
LD| LDD| S1|S2 ≠ 0 S1|S2 = 0
LD^ LDD^ S1^S2 ≠ 0 S1^S2 = 0
◆
Application