Chapter 16 PLC Function ApplicationsMH300
OR
Contact form compare OR*
D
OR※
Continuous
execution type
-
DOR※
Continuous
execution type
-
Flag signal: none
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
※
:
Refer to the function specifications table for each device in series
for the scope of device usage.
1
: data source device 1. S
2
This command compares the contents of S
1
and S
2
. Taking API 240 (OR=) as an
example, when the result of comparison is “equal”, this command activates; when
the result of comparison is “unequal”, this command does not activate.
The OR* command is a comparison command in parallel with a contact.
API No. 16-bit commands
32-bit commands
Conditions for
activation
Conditions for
inactivation
240
OR=
OR=
1
=
2
1
≠
2
241
OR<
DOR<
1
<
2
1
≤
2
242
OR>
DOR>
S
1
>S
2
S
1
≥ S
2
244
OR<>
DOR<>
S
1
≠ S
2
S
1
=S
2
245
OR=>
OR=>
1
≤
2
1
<
2
246
OR=<
DOR=<
1
≥
2
1
>
2
When X0=ON and the current value of C10 is also equal to K200, then
Y10=ON.
When X1=OFF and the content of register D0 is not equal to K-10, then
Y11=ON and remains in that state.
When X2=ON and the content of the 32-bit register D0 (D11) is less than
678,493, or M3=ON, then M50=ON.
X2
M30
M60
OR>=
K200
C10
X1
Y0
DOR>=
D100
K100000