94
•
Appendix A - MODBUS RTU Protocol
byte 1: Serial Link No.
($80)
byte 2: Function
($10)
byte 3: Starting Address High ($00)
byte 4: Starting Address Low ($09)
byte 5: No. of Registers High ($00)
byte 6: No. of Registers Low ($04)
byte 7: Byte Count
($08)
byte 8: Data High
($01)
(300)
byte 9: Data Low
($2C)
byte 10: Data High
($00)
(10)
byte 11: Data Low
($10)
byte 12: Data High
($01)
(480)
byte 13: Data Low
($E0)
byte 14: Data High
($00)
(2)
byte 15: Data Low
($02)
byte 16: CRC_Low
($XX)
byte 17: CRC_High
($XX)
The ASTAT-XT Normal response:
byte 1: Serial Link No.
($80)
byte 2: Function
($10)
byte 3: Starting Address High ($00)
byte 4: Starting Address Low ($09)
byte 5: No. of Registers High ($00)
byte 6: No. of Registers Low ($04)
byte 7: CRC_Low
($XX)
byte 8: CRC_High
($XX)
Note:
A Normal response will be returned even if the preset data value is beyond the allowed range for one or more
parameter settings. Later the ASTAT-XT program will check the value of each parameter. If it exceeds the allowed
limit, the limit value will be stored instead the transmitted parameter value. It is the user’s responsibility to read and
check all parameter settings after presetting.
A.9.
Control Register Write (4X Reference)
The ASTAT-XT incorporates one Control register intended for controlling the ASTAT-XT.
Address: The Control register is register # 753 addressed as 752 (40752).
In order to control the ASTAT-XT uses the Control register:
* Use Function 16 only.
* Use Address_High (page) = 2
* Use Address_Low = 240 (0F0H).
* Write to one register only.
* Use data_high (ms-byte of data) = 5AH.
* Data_low Bits resolution of the control register (ls-byte of data):
bit
function Comment
d0
Stop
Write
"1"
(ON)
to
stop.
d1
Soft Stop
Write "1" (ON) to Soft Stop
d2
Start
Write
"1"
(ON)
to
start
d3
Energy Save
Write "1" (ON) to turn On. Write "0" (OFF) to turn Off.
d4
Dual
Adjust
Write
"1" (ON) to turn On. Write "0" (OFF) to turn Off.
d5
Slow Speed
Write "1" for Slow Speed. Write "0" for Normal Start.
d6
Slow Spd Reverse
Write "1: for Reverse Direction. Write "0" for Forward Direction
d7
Reset
Write "1" (ON) to Reset.