
Byte no.
Description
Size
Value
05
Data2-Hi
1 Byte
0x00
06
Data2-Lo
1 Byte
0x01
07
CRC-Lo
1 Byte
---
08
CRC-Hi
1 Byte
---
Example.
Readout of output and input status (address 40001 to 40002)
01-03-04-00-01-00-01-CRCLo-CRCHi
In the response, status of output 1 and input 1, are presented as 4-bytes with values: 00-01-00-01
Response
-
in case of error
Byte no.
Description
Size
Value
00
Module address
1 Byte
0x01 [1 to 247]
01
Function code
1 Byte
0x83
02
Error code
1 Byte
0x01 - unknown function
0x02 - unknown data address
0x03 - unknown data value
0x04 - unknown error occurred while processing the query
03
CRC-Lo
1 Byte
04
CRC-Hi
1 Byte
6.2.3.4. FUNCTION 0X05 – CHANGE OF SINGLE OUTPUT STATUS
Function 0x05 is used to change of single output status
Query
Byte no.
Description
Size
Value
00
Module address
1 Byte
0x01 [1 to 247]
01
Function code
1 Byte
0x05
02
Input address Hi
1 Byte
0x00
03
Input address Lo
1 Byte
0x00
04
Command Hi
1 Byte
0x00 | 0xFF
05
Command Lo
1 Byte
0x00 | 0x00
06
CRC-Lo
1 Byte
---
07
CRC-Hi
1 Byte
---
Example.
Disabling the output with the address 0x00
01-05-00-00-00-00-CRCLo-CRCHi
Example.
Enabling the output with the address 0x00
01-05-00-00-FF-00-CRCLo-CRCHi
Response
Byte no.
Description
Size
Value
00
Module address
1 Byte
0x01 [1 to 247]
01
Function code
1 Byte
0x05
02
Output address Hi
1 Byte
0x00
03
Output address Lo
1 Byte
0x00
04
Command Hi
1 Byte
0x00 | 0xFF
05
Command Lo
1 Byte
0x00 | 0x00
06
CRC-Lo
1 Byte
---
07
CRC-Hi
1 Byte
---
Example.
Confirmation of disabling the output with the address 0
01-05-00-00-00-00-CRCLo-CRCHi
15
ADA-DIOC40
Содержание ADA-DIOC40
Страница 19: ...19 ADA DIOC40...