Chapter 6 Instruction Details
XBC E-Type Main Unit
6-175
Ver. 1
2) GSUB (Group Subtract)
(1) Saves the result of N word data from specified device S1 minus N word data from S2 respectively in N word
data from specified device D.
-
1234
b15
b0
S1
5555
S1+1
1000
S1+(N-1)
1111
b15
b0
S2
2222
S2+1
-1000
S2+(N-1)
=
123
b15
D
3333
D+1
2000
D+(N-1)
b0
.
.
.
.
.
.
.
.
.
(2) A constant can be used for S2.
-
1234
b15
b0
S1
5555
S1+1
1000
S1+(N-1)
100
b15
b0
S2
.
.
.
=
1134
b15
D
5455
D+1
900
D+(N-1)
b0
.
.
.
(3) If specified device’s area is exceeded due to N value, error will occur.
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...