Delta Electronics VFD037CH23A-21 — управление удаленным вводом-выводом с использованием MODBUS [592/638]

Превью страниц Страница 592 / 638
Delta Electronics VFD037CH23A-21 [592/638] Setting standard function defined by 485 can be used to read or write command to other nodes
Chapter 16 PLC Function CH2000 Series
16-139
16-12 Remote IO Control Application of
MODBUS (using Modbus)
C2000 internal PLC supports reading and writing of 485, and it is realized by MODRW command. But
before programming, it is necessary to define the serial as PLC 485, which sets P09-31 = -12. After
setting, standard Function defined by 485 can be used to read or write command to other nodes.
Communication speed definition can be set in 09-01. Communication protocol can be set in P09-04, and
current PLC node definition can be set in P09-35. So far, the Functions supported by C2000 are:
Reading Coil (H1), Reading Input (0x02), Reading Register (0x03), Writing single Register (0x06), Writing
multiple Coils (0x0F) and writing multiple Register (0x10). Explanation as below:
MODRW Command
S1 S2 S3 S4 S5
Node Comm. Addr.
Cor.
D
register
Length
Meaning Slave is Delta PLC Slave is Delta Motor Drive
K3 H01 H500 D0 K18
Read Coil
(Bit)
Read slave 3 PLC 18 bits from Y0 ~
Y21, and save to master bit 0~ bit
15 of D0 and bit 0 ~ bit 3 of D1
Does not support this Function
K3 H02 H400 D10 K10
Read Input
(Bit)
Read slave 3 PLC 10 bits from X0 ~
X11, and save to master bit 0~ bit 9
of D10
Does not support this Function
K3 H03 H600 D20 K3
Read Register
(word)
Read slave 3 PLC 3 words of
T0~T2, and save to master D20 ~
D22
Read slave 3 motor drive 3
words from 06-00~06-02, and
save to master D20 ~ D22
K3 H06 H610 D30 XX
Read single
Register (word)
Write slave 3 PLC to T16 from
master D30
Write slave 3 motor drive to
06-16 from master D30
K3 H0F H509 D40 K10
Read multiple
Coil
(Bit)
Write slave 3 PLC to Y11~Y12 from
master bit 0~bit 9 of D40
Does not support this Function
K3 H10 H602 D50 K4
Read multiple
Register (word)
Write slave 3 PLC to T2~T5 from
master D50~D53
Write slave 3 motor drive to
06-02 ~ 06-05 from master
D50~D53
XX means Disregard
When executing MODRWthe status will be shown in M1077 (485 reading and writing complete),
M1078(485 reading and writing error), and M1079 (485 reading and writing time out). The definition
of M1077 will be cleared as 0 when commanding MODRW. When feedback is complete, error, or
time out, M1099 will be set as On.

Содержание

1610

Изучите, как использовать MODBUS для управления удаленным вводом-выводом в PLC. Узнайте о командах чтения и записи, настройках и поддерживаемых функциях.