Delta AS Series Programming Manual page 352

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0116
D
DEC
Device
X
Y
M
D
Data
type
D
Symbol
Explanation
1.
This instruction subtracts 1 from the value in D.
2.
Only the DDEC instruction can use the 32-bit counter.
3.
For the 16-bit operation, -32,768 minus 1 leaves 32,767. For the 32-bit operation, -2,147,483,648 minus 1 leaves
2,147,483,647.
Example
When X0.0 switches from OFF to ON, the value in D0 decreases by one.
Operand
D
P
S
T
C
HC
Pulse instruction
: Destination device
D
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
Subtracting one from a binary number
D
FR
SM
SR
16-bit instruction
AS
AS
Function
E
K
16#
"$"
32-bit instruction
AS
6 - 7 3
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents