tcp184
tcp184
User Manual v4.10
Function 05 (0x05) Write Single Coil
This function is used to write to a single coil (relay). Coils 1-32 are the relays 1-32.
Function 15 (0x0F) Write Multiple Coils
This function is used to write to multiple coils (relays). Coils 1-32 are the relays 1-32.
Error code 1
This error is returned if an unknown or unimplemented function is received. Only functions 1, 4
& 5 are implemented.
Error code 2
This error is returned if an illegal address is requested. Addresses greater than 15 for functions
1 & 5 or greater than 7 for function 4 will generate this error.
Error code 3
This error is returned if an illegal data value is received. Number of points = zero will generate
this as will an illegal data value for function 5.
Modbus Gateway
If the Modbus/TCP/IP frame has a UID that does not match the one you set in the TCP/IP con-
fig screen, the module will assume this is for another Modbus module connected to the RS485
port. It will use the UID as the Module address, convert the request to RTU format and send it
to the downstream module. This could be an MBH88 for example. The return frame is then
converted back to Modbus/TCP/IP format and returned to you.
Make sure you set the Parity and Baud Rate in the TCP/IP config screen to match your Modbus
RTU modules.
Copyright
© 2016-2021,
Devantech Ltd.
All rights reserved.
50