M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.1 Comparison Operation Instructions
Program example
The following program compares the data at X0 to XF with the data at D3, and turns Y33 ON if the data is identical.
= K4X0 D3
0
4
The following program compares BIN value K100 to the data at D3, and establishes continuity if the data in D3 is something
other than 100.
M3
0
5
The following program compares BIN value K100 to the data at D3, and establishes continuity if the D3 data is less than
100.
M3
0
7
The following program compares the data in D0 and D3, and if the data in D0 is equal to or less than the data in D3, estab-
lishes continuity.
M3
0
<= D0 D3
6
IB-1501667-B
[Ladder mode]
Y33
END
[Ladder mode]
Y33
<> K100 D3
END
[Ladder mode]
Y33
> K100 D3
M8
END
[Ladder mode]
Y33
M8
END
Steps
0
3
4
Steps
0
1
4
5
Steps
0
1
4
5
6
7
Steps
0
1
2
5
6
162
[List mode]
Inst.
Device
LD=
K4X0
D3
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
AND<>
K100
D3
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
LD>
K100
D3
OR
M8
ANB
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
AND
M8
OR<=
D0
D3
OUT
Y33
END