Delta AS Series Programming Manual page 370

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0208
D
GRY
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
1.
This instruction converts the binary value in the device specified by S into a Gray code, and stores the conversion
result in the device specified by D.
2.
Only the DGRY instruction can use the 32-counter, but not the device E.
3.
The value in S should be within the available range.
The value in S in the 16-bit instruction must be between 0–32,767.
The value in S in the 32-bit instruction must be between 0–2,147,483,647.
Example
When X0.0 is ON, the instruction converts the constant 6513 into a Gray code, and stores the conversion result in Y1.0–
Y1.15.
Operand
S, D
P
S
T
C
HC
Pulse instruction
: Source device
S
: Conversion result
D
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
Converting a binary number into a Gray
D
FR
SM
SR
16-bit instruction
AS
AS
Function
code
E
K
16#
"$"
32-bit instruction
AS
6 - 9 1
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents