EasyManua.ls Logo

Delta DVP-ES2 - Page 657

Delta DVP-ES2
1006 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-536
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
170 D
GRY P
BIN Gray Code
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
GRY, GRYP: 5 steps
DGRY, DGRYP: 9 steps
S
*
*
*
*
*
*
*
*
*
*
*
D
*
*
*
*
*
*
*
*
PULSE
16-bit
32-bit
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
ES2/EX2/
EC5
SS2
SA2
SE
SX2
Operands:
S: Source device D: Operation result (Gray code)
Explanations:
1. GRY instruction converts the BIN value in S to Gray Code and stores the converted result in
specified register D.
2. Available range of S:
16-bit instruction: 0~32,767
32-bit instruction: 0~2,147,483,647
3. If operand S exceeds the available range, operation error occurs and M1067 = ON, M1068 =
ON. D1067 stores the error code 0E1A (HEX)
4. If operands S and D use device F, only 16-bit instruction is applicable.
Program Example:
When X0 = ON, GRY instruction executes and converts K6513 to Gray Code. The operation result
is stored in K4Y20, i.e. Y20 ~ Y37.
X0
GRY K6513 K4Y20
0 0 0 1 1 10 0 0 1 1 1 10 0 0
b15
b0
K6513=H1971
0 0 0 0 0 0 0 0 0 1111111
K4Y20
Y37 Y20
GRAY 6513

Table of Contents

Other manuals for Delta DVP-ES2

Related product manuals