Relay1: bit0 Relay2: bit1
Address Function code Byte count Data CRC high CRC low
11H 01H 01H 02H D4H 89H
Table4.5 Relay status responds.
The content of the data is,
7 6 5 4 3 2 1 0
0 0 0 0 0 0 1 0
MSB LSB
Relay1 = OFF (LSB ), Relay2=ON (Left to LSB )
2 Read the Status of DI
Function Code 02
1=On 0=Off
There are 4 DIs in Ai205. The Address of each DI is
DI1=0000H, DI2=0001H, DI3=0002H and DI4=0003H.
The following query is to read the 4 DI Status of Number 17 Ai205.
Query
Addr Fun DI start DI start DI num DI num CRC16 CRC16
addr hi addr lo hi lo hi lo
11H 02H 00H 00H 00H 04H 7BH 59H
Table4.6 Read 4 DIs Query Message
Response
The Ai205 response includes the Ai205 address, function code, quantity of data
characters, the data characters, and error checking. An example response to
read the status of 4 DIs is shown as Table4.7. The status of each is responding
to the last 4 bit of the data.
67
PDF created with FinePrint pdfFactory trial version http://www.pdffactory.com