E L C P r o g r a m m i n g M a n u a l
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
M N 0 5 0 0 3 0 0 3 E
3 - 2 8 6
API Mnemonic
Operands
Function
101
MODWR
S1, S2, n
Modbus Data 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
*
*
*
n
*
*
*
MODWR: 7 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’s node address (K0~K254)
S
2
: Modbus data address in external device
n
: Data to be written (ELC address or constant value)
Description:
1.
MODWR instruction supports COM2 (RS-485).
2.
MODWR is a specific instruction for the MODBUS ASCII / RTU mode communications. The
MODWR instruction can be used to write MODBUS data to external devices that support
MODBUS communications.
3.
If the address of
S
2
is illegal for the designated communication device, the device will respond
with an error and the ELC will record the error code in D1130 and M1141 will be ON. For
example, 8000H is an illegal register address in the MVX drive, resulting in M1141 = ON,
D1130=2. The error code is generated by the external device. To determine the cause of the
error, the user manual for the external device will need to be referenced. In this case the
MVX series user manual would need to be referenced.
4.
The response from the external device will be stored in D1070 to D1076. After receiving the
response, the ELC will check if there are any data errors. If there is an error, then M1140 =
ON.
5.
After M1140 or M1141 = ON, resend the correct data to the external device again. If the
response is correct, then the flags M1140, M1141 will be cleared.
6.
There is no limit on the number of times this instruction can be used in the program, but only
one instruction can be executed at a time for the same COM port.
7.
If rising-edge contacts (LDP, ANDP, ORP) or falling-edge contacts (LDF, ANDF, ORF) are
used as conditions for the MODWR instruction, energizing flag M1122 is required to initiate the
message request.
8.
Refer to the RS instruction for more information. The RS instruction also uses COM2.
9.
ELC-PB, ELCB-PB series doesn’t support index registers E, F.
Содержание 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...