
Chapter 5. Application instructions
5-39
-
Execution conditions
2) Program example
-
At every 1 second, the block from D0040 to D0043 is shifted in left direction by 1 word. The 1
second clock flag (F093) is used for input condition. D0040 is set as h1234 when the P031 is on.
Input condition
WSFT
WSFTP
Executed only once
Executed only once
Executed per scan
Executed per scan
WSFT D0040 D0043
F093
P031
MOV h1234 D0040
h4F29
h5849
hF0B4
h7802
hA006
D0043
h0000 is entered while
P031 is off, and h1234 is
entered while P031 is on
Erased
D0042
D0041
D0040
D0044
h9201
D0039
h4F29
hF0B4
h7802
hA006
h9201