Byte no.
Description
Size
Value
06
CRC-Lo
1 Byte
---
07
CRC-Hi
1 Byte
---
Example.
Readout of the input status 1 (address x10001 to x10001)
01-02-00-00-00-01-CRCLo-CRCHi
Response
Byte no.
Description
Size
Value
00
Module address
1 Byte
0x01 [1 to 247]
01
Function code
1 Byte
0x02
02
Data bytes number
1 Byte
0x01 [depend on query]
03
Data-1
1 Byte
0x01
04
CRC-Lo
1 Byte
---
05
CRC-Hi
1 Byte
---
Example.
Readout of the input status 1 (address x10001 to x10001) input status ON.
01-02-01-01-CRCLo-CRCHi
In the response, status of input 1, is presented as byte with value 0x01, it is equal 0000 0001 binary.
Response
-
in case of error
Byte no.
Description
Size
Value
00
Module address
1 Byte
0x01 [1 to 247]
01
Function code
1 Byte
0x82
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.3. FUNCTION 0X03 –
READOUT OF HOLDING REGISTERS
Function 0x03 is used to readout of 16 bits holding register.
Query
Byte no.
Description
Size
Value
00
Module address
1 Byte
0x01 [1 to 247]
01
Function code
1 Byte
0x03
02
Register address Hi
1 Byte
0x00
03
Register address Lo
1 Byte
0x00
04
Register number Hi
1 Byte
0x00
05
Register number Lo
1 Byte
0x02
06
CRC-Lo
1 Byte
---
07
CRC-Hi
1 Byte
---
Example.
Readout of output and input status (address 40001 to 40002)
01-03-00-00-00-02-CRCLo-CRCHi
Response
Byte no.
Description
Size
Value
00
Module address
1 Byte
0x01 [1 to 247]
01
Function code
1 Byte
0x03
02
Data bytes number
1 Byte
0x04 [depend on query (4)]
03
Data1-Hi
1 Byte
0x00
04
Data1-Lo
1 Byte
0x01
14
ADA-DIOC40
Summary of Contents for ADA-DIOC40
Page 19: ...19 ADA DIOC40...