6 Drive Programming Commands
6 - 42
Drive Programming User’s Manual (I580-E2)
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).
var UB(i)
Command Description Argument
Assigns one bit of the value of the internal user
contact to <variable>.
Variable: any variable
(value of the variable is 0 or 1.)
i: internal user contact number
(range 0 to 7)
Format
Flowchart method Text language method
<variable> : UB(i)
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 block 1: loop_ unconditionally.