Chengdu Ebyte Electronic Technology Co.,Ltd. ME31-XXAX0060_UserManual_EN
Copyright ©2012–2023, Chengdu Ebyte Electronic Technology Co.,Ltd
23
2. Control coil (DO) state
Support operation of single coil (05), operation of multiple coils (0F) function code operation.
Use the 05 command to write a single command, for example:
Continuity: FF 00
Close: 00 00
After sending the above command to the device through the 485 bus, the device will return the following values:
The DO1 coil is turned on.
Use 0F function code as the command to write multiple coils, for example:
After sending the above command to the device through the 485 bus, the device will return the following values:
The coils are all on.
3. Read the holding register
Use 03 function code to read one or more register values, for example:
After sending the above command to the device through the 485 bus, the device will return the following values: