Delta AH500 Programming Manual page 287

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0303
D
CML
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The instruction is used to invert all bits in S, i.e. 0 becomes 1, and 1 becomes 0. The inversion
result is stored in D. If the data in S is the constant, the constant will be converted into the
binary value.
2.
Only the 32-bit instructions can use the 32-bit counter.
Example 1:
When X0.0 is ON, all bit in D1 are inverted, and the conversion result is stored in Y0.0~Y0.15.
b
15
D1
1
1
0
Sign bi t (0: P os itive s ign; 1: Negativ e si gn)
Y0
0
0
1
Operand
S, D
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (5 steps)
AH500
S : Data source
D : Data destination
1
1
0
0
0
0
0
1
1
1
Inversi on resul t
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Inverting the data
L
SM SR
E
PR
AH500
Word/Double word
Word/Double word
b
3
1
1
1
0
0
0
0
1
1
0
Function
K
16# "$"
DF
AH500
b
b
b
2
1
0
1
0
0
1
1
0
6 - 11 9

Advertisement

Table of Contents
loading

Table of Contents