
Chapter 5. Application instructions
5-47
-
Execution condition
2) Program example
-
When a rising edge is detected at P020, subtract contents of D0000 and D0001 and store the
addition result to P06 word.
Input condition
SUB, DSUB
SUBP, DSUBP
Executed only once
Executed only once
Executed per scan
Executed per scan
16 bits
0
0
1
1
1
0
0
0
1
1
0
1
0
0
1
1
0
0
0
1
0
0
1
0
0
0
0
0
1
1
0
0
-
h38D3
h120C
0
0
1
0
0
1
1
0
1
1
0
0
0
1
1
1
h26C7
D0000
D0001
P06
SUBP D0000 D0001 P06
P020