Delta AS Series Programming Manual page 374

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0210
D
NEG
Device
X
Y
M
D
Data
type
D
Symbol
Explanation
1.
This instruction converts a negative binary value into the two's compliment.
2.
Only the DNEG instruction can use the 32-bit counter.
3.
Generally, you use the NEGP and DNEGP pulse instructions.
Example 1
When X0.0 is switched from OFF to ON, this instruction inverts all bits in D0 (0 becomes 1, and 1 becomes 0), and 1 is
added to the result, and then stores the final value in the original register D10.
Operand
D
P
S
T
C
HC
Pulse instruction
: Device
in
D
complement is stored
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
Finding the two's complement
D
FR
SM
SR
16-bit instruction
AS
AS
which
the
two's
Function
E
K
16#
"$"
F
32-bit instruction
AS
6 - 9 5
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents