Drive Programming
Command
Instruction to access contact inputs by
word.
Each bit reflects one of the inputs.
<variable> = Xw
Note: The inputs have to be assigned to digital multifunction input (by the multifunction 56 to 63 for
MX2 and RX or 49 to 60 on LX)
Xw = 1
bit 0
Xw = 2
bit 1
Xw = 4
bit 2
Xw = 8
bit 3
Xw = 16
bit 4
Xw = 32
bit 5
Xw = 64
bit 6
Xw = 128
bit 7 (only for RX and LX)
Xw = 256
bit 8 (only for LX with extension I/O)
Xw = 512
bit 9 (only for LX with extension I/O)
Xw = 1024
bit 10 (only for LX with extension I/O)
Xw = 2048
bit 11 (only for LX with extension I/O)
Example
Flowchart
This example acquires the state of the X(02) - X(05) input terminals and outputs it to Y(00) -Y(03)
output terminals. To cut X(00) - X(01), the U(00) value is divided by 4. To cut X(06) - X(07), the U(00)
value is masked by 15.
Var = Xw
Description
Format
Arguments
• Variable: any variable.
Text
58