EasyManua.ls Logo

Devantech dS1242 - Function 05 (0 X05) Write Single Coil; Function 15 (0 X0 F) Write Multiple Coils; Error Code 1; Error Code 2

Devantech dS1242
63 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
dS1242
dS1242 User Manual v4.10
Function 05 (0x05) Write Single Coil
This function is used to write to a single coil (relay or I/O). Coils 1-2 are the relays 1-2. Coils
41-44 are the I/O's 1-4 remapped to coils 41-44.
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-2 are the relays 1-2. Coils 41-44 are the I/O's 1-4 remapped to coils 41-44.
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 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.
Copyright © 2016-2021, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
50