145 • HRVS-DN Communication (ModBus Protocol)
_______________________________________________________________________________________________
Example 8 - Force Multiple coils:
Motor that is controlled by HRVS-DN # 32 is stopped. Dual Adjust is set to off.
To start the motor using the Dual Adjust parameters , the host computer writes "1" to the Start and Dual Adjust
Coils no. 4 &5, addressed as 3 & 4. One of the many possible ways:
The "Query" frame sent by the host:
byte 1: Serial Link No. ($20)
byte 2: Function ($0F)
byte 3: Coil Address High ($00)
byte 4: Coils address Low ($00)
byte 5: No. of Coils High ($00)
byte 6: No. of coils Low ($08)
byte 7: Byte Count ($01)
byte 8: Force Data ($18) (coil # 4 & coil # 5)
byte 9: CRC_Low ($XX)
byte 10: CRC_High ($XX)
The normal (if no exception) response:
byte 1: Serial Link No. ($20)
byte 2: Function ($0F)
byte 3: Coil Address High ($00)
byte 4: Coils address Low ($00)
byte 5: No. of Coils High ($00)
byte 6: No. of coils Low ($08)
byte 7: CRC_Low ($XX)
byte 8: CRC_High ($XX)