![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452510.webp)
3 . I n s t r u c t i o n S e t
M N 0 5 0 0 3 0 0 3 E F o r m o r e
i n f o r m a t i o n
v i s i t :
w w w. e a t o n . c o m
3 - 3 4 1
API Mnemonic
Operands
Function
150
MODRW
S
1
, S
2
, S
3
, S, n
MODBUS Data Read/Write
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX KnY KnM KnS T
C
D
E
F
S
1
*
*
*
S
2
*
*
*
S
3
*
*
*
S
*
n
*
*
*
MODRW: 11 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P
32 16
P
32
16
P
Operands:
S
1
: External device address (K0~K254)
S
2
: Function code K2(H2), K3(H3), K5(H5), K6(H6),
K15(H0F) , K16(H10)
S
3
: Data address being read from or written to in the external device
S
: Internal address to store a read message reply or to store write data to be sent
n
: Length of
read/write data.
Description:
1.
ELC-PB/PV/PA/PH/PV, ELCB-PB series, the MODRW instruction supports communications
on COM2 (RS-485).
2.
ELCM-PH/PA series, the MODRW instruction supports communications on COM1 (RS-232),
COM2 (RS-485) and COM3 (RS-485).
3.
S
1
: Address of the external device the ELC will communicate with. The valid range is
K0~K254.
4.
S
2
: Function code.
H02
: read multiple bits;
H03
: read multiple word devices;
H05
: force
ON/OFF a single bit;
H06
: write single word;
H0F
: write multiple bits;
H10
: write multiple words.
These are the function codes currently available.
5.
S
2
: Function code.
ELC-PB
, ELCB-PB supports K3(H03), K6(H06), K16(H10), ELC-PC/PA/PH
support K2(H02), K3(H03), K6(H06), K16(H10) and K15(H0F), ELC-PV, ELCM-PH/PA support K2(H02),
K3(H03), K5(H05) ,K6(H06), K16(H10) and K15(H0F).
6.
S
3
: Modbus data address in the external device. If the address is illegal for the external device,
it will respond with an error message and ELC will store the error code and associated error
flag will be ON.
Associated registers and flags indicating errors on ELC com ports: (For additional details
refer to
Points to note
for API 80 RS instruction.)
ELC COM
COM1
COM2
COM3
Error flag
M1315
M1141
M1319
Error code
D1250
D1130
D1253
If an ELC controller receives a Modbus message with an illegal Modbus data address,
the error will be indicated by a different set of flags and registers. For COM2, M1141 will
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...