Delta C2000 series User Manual page 545

Classical field oriented control ac motor drive
Hide thumbs Also See for C2000 series:
Table of Contents

Advertisement

API
GBIN
171
P
Bit Devices
X
M
Y
K
S
D
Operands:
Please refer to the specifications of each model for the
range of operands.
S: Source GRAY CODE D: Destination which stores converted BIN result
Explanation
The GRAY CODE value in the specified device by S is converted to the BIN value
equivalent and the converted result is stored in the area specified by D.
This command can be used to read the value from an absolute position type
encoder (it is generally a gray code encoder) which is connected to PLC inputs.
Convert the value to the BIN value and store it in the specified register.
The range of S that can be converted to the GRAY CODE is shown as follows:
16-bit command:0~32,767
32-bit command:0~2,147,483,647
If the GRAY CODE value is outside the range shown above, it is determined as
"Operation Error".
When X20=On, the GRAY CODE value in the absolute position type encoder
Example
connected to X0~X17 inputs is converted to BIN value and stored in D10.
GRAY CODE 6513
Word Devices
H
KnX KnY KnM
T
X20
GBIN
K4X0
X17
0 0 0 1
b15
H1971=K6513
0 0 0
Chapter 16 PLC Function C2000 Series
GRAY Code→BIN
16-bit command (5 STEPS)
GBIN
C
D
32-bit command
DGBIN
Flag signal: none
D10
K4X0
0 1
0
1
1
1
0
0
1
0 0
1
1
0
0
1
0
1
1
1
0
0 0 1
16-98
GBINP
DGBINP
X0
1
b0

Advertisement

Table of Contents
loading

Table of Contents

Save PDF