Delta AS Series Programming Manual page 348

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 2
When X0.0 is ON, the instruction subtracts the subtrahend 1 from the binary values in D0–D4, and stores the
differences in D100–D104.
10
D0
D1
9
8
-
D2
7
D3
6
D4
Additional remarks
1.
For 16-bit instructions, if the devices S
not executed, SM is ON, and the error code in SR0 is 16#2003.
2.
For 32-bit instructions, if the devices S
instruction is not executed, SM is ON, and the error code in SR0 is 16#2003.
3.
If n Is not between 1–256, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B.
4.
For 16-bit instructions, if S
in SR0 is 16#200C.
5.
For 32-bit instructions, if S
code in SR0 is 16#200C.
6.
For 16-bit instructions, if S
in SR0 is 16#200C.
7.
For 32-bit instructions, if S
code in SR0 is 16#200C.
Ex ec ution res ult
1
9
D100
1
8
D101
1
7
D102
6
1
D103
1
5
D104
–S
+n-1, S
–S
1
1
2
2
–S
+2*n-1, S
1
1
–S
+n-1 overlap D–D+n-1, the instruction is not executed, SM0 is ON, and the error code
1
1
–S
+2*n-1 overlap D–D+2*n-1, the instruction is not executed, SM0 is ON, and the error
1
1
–S
+n-1 overlap D–D+n-1, the instruction is not executed, SM0 is ON, and the error code
2
2
–S
+2*n-1 overlap D–D+2*n-1, the instruction is not executed, SM0 is ON, and the error
2
2
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
+n-1, or D–D+n-1 exceed the device range, the instruction is
–S
+2*n-1, or D–D+2*n-1 exceed the device range, the
2
2
6_
6 - 6 9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents