Download D8000 SERIES USERS MANUAL
Transcript
5.1.5 Function 05 – Force Single Coil This function forces the state of a single coil (digital output) to either the ON or OFF state. A typical function 05 command and response is listed below: Command Usage: Address Function One Byte Slave Address One Byte Function Number Addr HI Addr LO Coil Address HI Byte Coil Address LO Byte Data HI Data LO Force Data HI Force Data LO Data Values: The proper values are either 0xFF00 to enable (Turn ON) a bit or 0x0000 to disable (turn off) a bit. Response Message: Address Function One Byte Slave Address One Byte Function Number Addr HI Addr LO Coil Address HI Byte Coil Address LO Byte Same value as in command above. Same value as in command above. Data HI Data LO Force Data HI Force Data LO Same value as in command above. Same value as in command above. Error Check Two Byte CRC Copyright Dutile, Glines, and Higgins Corporation, 2014. All Rights Reserved. 76