4 OPERATION CONTROL PROGRAMS
4.11 Bit Device Controls
183
4
Bit device output: OUT
■Usable Data
: Usable
■Description, data type of result
• If the data specified with (S) is true, the bit data specified with (D) is set, and if the data specified with (S) is false, the bit
data specified with (D) is reset.
• When this instruction is set as a transition condition in the last block of a transient program, whether the data specified with
(S) is true or false is returned as logical type data.
• In this case, (S) cannot be omitted.
An operation error will occur if:
• (D) or (S) is an indirectly specified device and its device No. is outside the range.
■Program which sets M100 when M0 is ON (1) and program which resets M100 when M0 is OFF
(0)
■Program which sets M100 when M0 and M1 are both on and resets M100 except it
■Program which sets M100 when D0 is equal to D2000 and resets M100 when D is not equal to
D2000
Format Number of basic steps Usable steps
F/FS G
OUT(D)=(S) 8
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)
(D)
(S)
Setting data Description Data type of result
(D) Bit device for device output Bit logical type (true/false)
(S) Condition data which determines device output