User Manual
dS378
dS378 User Manual v4.03
Function 05 (0x05) Write Single Coil
This function is used to write to a single coil (relay or I/O). Coils 1-8 are the relays 1-8. Coils
9-32 are the virtual relays. Coils 41-47 are the I/O's 1-7 remapped to 41-47.
Function 15 (0x0F) Write Multiple Coils
Use this function when you need to write to multiple relays and I/O’s at the same time. Coils
1-8 are the relays 1-8. Coils 9-32 are the virtual relays. Coils 41-47 are the I/O's 1-7
remapped to 41-47.
Error code 1
This error is returned if an unknown or unimplemented function is received. Only functions 1, 4
5 & 15 are implemented.
Error code 2
This error is returned if an illegal address is requested. Addresses greater than 47 for functions
1 & 5 or greater than 40 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.
Copyright © 2016-2018, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
41