6 - 45
6   Drive Programming Commands
Drive Programming User’s Manual  (I580-E2)
6-6  I/O Control Commands
6
 
 Example
In the above example, the status of X(00) to X(02) is monitored with the parameter UMon(0) (d025), 
and X(02) is output to Y(00).
UBw  value
Command Description Argument
Assigns <value> to the internal user contact in 
units of words.
Value: any variable or constant 
Format
Flowchart method Text language method
UBw :  <value>
Note When the data is assigned in units of words, zero is read out for the unused upper byte. If there 
is any setting, the setting is ignored.
UBw  1 (bit 0) to UB(0)
UBw  2 (bit 1) to UB(1)
UBw  4 (bit 2) to UB(2)
UBw  8 (bit 3) to UB(3)
UBw  16 (bit 4) to UB(4)
UBw  32 (bit 5) to UB(5)
UBw  64 (bit 6) to UB(6)
UBw  128 (bit 7) to UB(7)
Flowchart Text
Block number Operation
1 Assigns 0 to UBw.
2 to 4 Assigns the variables X(00) to X(02) to the variables UB(0) to UB(2).
5 Assigns UBw to UMon(0).
6 Assigns UB(2) to Y(00).
7 Jumps to the block 1: loop_ unconditionally.