182
4 OPERATION CONTROL PROGRAMS
4.11 Bit Device Controls
Device input: DIN
■Usable Data
: Usable
■Description, data type of result
• The bit data specified with (S) is input to the data specified with (D).
• Specify a multiple of 16 as the device No. of the bit data specified with (S).
• If the type of (D) is a 16-bit integer type, 16 points of the (D) data, starting at the least significant bit, are input in order to the
bit devices headed by the one specified with (S).
• If the type of (D) is a 32-bit integer type, 32 points of the (D) data, starting at the least significant bit, are input in order to the
bit devices headed by the one specified with (S).
An operation error will occur if:
• (D) or (S) is an indirectly specified device and its device No. is outside the range.
• (S) is an indirectly specified device and its device No. is not a multiple of 16.
■Program which inputs the data of X0-XF to D0
Format Number of basic steps Usable steps
F/FS G
DIN (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) Input destination data Data type of (D) (Integer type)
(S) Input source bit data
DIN D0, X0
0
111001
XF X0
000100 111
0D0
111001
b15 b0
000100 111