A SERVICE OF

logo

8. Function Commands
WOR, WORP
- 239 -
Execution conditions
The execution conditions for WOR, WORP are as follows.
Operation command OFF
WOR
ON
Executed per scan
Executed per scan
WORP
Program example
(1) Program to execute logical OR of the D10 data and D20 data when XA turns ON, and to store the
result in D33.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 WOR D10 D20 D33
WOR D20D10 D33
XA
10
15
(2) Program to execute logical OR of the X10 to 1B data and D33 data when XA turns ON, and to
output the results in D100.
Coding
No. of
steps
Com-
mand
Device
10 LD XA
11 WOR K3X10 D33 D100
WOR D33K3X10 D100
XA
10
15