4 OPERATION CONTROL PROGRAMS
4.10 Bit Device Statuses
177
4
4.10 Bit Device Statuses
ON (Normally open contact): (None)
■Usable Data
: Usable
■Description, data type of result
• True is returned when the bit device specified with (S) in a bit conditional expression is ON (1), or false is returned when
that bit device is OFF (0).
An operation error will occur if:
• (S) is an indirectly specified device and its device No. is outside the range.
■Program which sets M100 when either of M0 and X0 is ON (1)
Format Number of basic steps Usable steps
F/FS G
(S) 4
Setting
data
Usable Data
Bit
device
Word device Constant Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(S)
Setting data Description Data type of result
(S) Bit device used in bit conditional expression Logical type (true/false)
SET M100 = M0 + X0
M100 +1
M0 0
X0 1
(True)
(True)
(False)