Fun: function code
Data start reg hi: start register address high byte
Data start reg lo: start register address low byte
Data #of reg hi: number of register high byte
Data #of reg lo: number of register low byte
CRC16 Hi: CRC high byte
CRC16 Lo: CRC low byte
1.Read Status of Relay
Function Code 01
This function code is used to read status in Ai205.
1=On 0=Off
There are 2 Relays in Ai205. The Address of each Relay is
Relay1=0000H and
Relay2=0001H.
The following query is to read Relay Status of Ai205 Number 17.
Query
Addr Fun relay start relay start relay #of relay #of CRC16 CRC16
reg hi reg lo regs hi regs lo Hi Lo
66
11H 01H 00H 00H 00H 02H BFH 5BH
Table4.4 Read the status of Relay1 and Relay2 Query Message
Response
The Ai205 response includes the Ai205 address, function code, quantity of
data byte, the data, and error checking. An example response to read the status
of Relay1 and Relay2 is shown as Table4.5. The status of Relay1 and Relay2 is
responding to the last 2 bit of the data.
PDF created with FinePrint pdfFactory trial version http://www.pdffactory.com