Delta Electronics VFD037CH23A-21 — преобразование GRAY кода в BIN для PLC: руководство и примеры [551/638]

Превью страниц Страница 551 / 638
Delta Electronics VFD750CH23A-00/-21 Руководство по эксплуатации онлайн [551/638] 460305
Chapter 16 PLC Function CH2000 Series
16-98
API
171
GBIN
P
GRAY CodeBIN
Bit Devices Word Devices
X
Y
M
K H KnX KnY KnM T C D
S
D
Operands:
Please refer to the specifications of each model for the
range of operands.
16-bit command (5 STEPS)
GBIN
GBINP
32-bit command
DGBIN
DGBINP
Flag signal: none
Explanation
S: Source GRAY CODE D: Destination which stores converted BIN result
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 command0~32,767
32-bit command0~2,147,483,647
If the GRAY CODE value is outside the range shown above, it is determined as
“Operation Error”.
Example
When X20=On, the GRAY CODE value in the absolute position type encoder
connected to X0~X17 inputs is converted to BIN value and stored in D10.
X20
GBIN K4X0 D10
0001 10111000
b15
b0
H1971=K6513
000 0 00111111
X17 X0
GRAY CODE 6513
K4X0
01 0 1
0010

Содержание

1610

Изучите, как преобразовать GRAY код в BIN с помощью PLC. Узнайте о командах, диапазонах и примерах использования для эффективной работы с энкодерами.