5 OPERATION CONTROL PROGRAMS
5.10.4 Logical OR : +
Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S1)
—
(S2)
—
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
(S1)+(S2)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
—
—
—
—
(S1)
(S2)
(1) The data specified with (S1) and the data specified with (S2) are ORed.
(1) An operation error will occur if:
• (S1) or (S2) is an indirectly specified device and its device No. is outside the
range.
(1) Program which sets M100 when either of M0 and X0 is 1
SET M100 = M0 + X0
M100
1
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
—
—
—
—
—
—
Description
Data which will be ORed
M0
X0
5 - 65
F/FS
Number of basic steps
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
—
—
—
—
Data type of result
Logical type (true/false)
0
+
(True)
1
G
4
Bit
Comparison
conditional
expression
: Usable