![CEL-MAR ADA-4040PC6 Скачать руководство пользователя страница 20](http://html1.mh-extra.com/html/cel-mar/ada-4040pc6/ada-4040pc6_user-manual_2579191020.webp)
Byte no
Designation
Size
Value [hex]
04
CRC-Hi
1-Byte
8.4.1.3. READOUT UTC TIME FROM ZDA SENTENCE WITH 16-BIT REGISTER [4X / 3X-
REFERENCES]
0x03 / 0x04 function are used for readout of converter registers value.
Example queries MODBUS-RTU about UTC time hours and minutes from ZDA sentence are shown below.
Query about UTC TIME register with ZDA sentence
Byte no
Designation
Size
Value [hex]
00
Converter address
1 Byte
11 [ 11 to F7]
01
Function code
1 Byte
03 / 04
02
Register address Hi
1 Byte
00
03
Register address Lo
1 Byte
01
04
Registry number Hi
1 Byte
00
05
Registry number Lo
1 Byte
01
06
CRC-Lo
1 Byte
---
07
CRC-Hi
1 Byte
---
Example.
Query of UTC time from ZDA sentence from register address 40002 / address 30002
11-03-00-01-00-01-CRCLo-CRCHi
11-04-00-01-00-01-CRCLo-CRCHi
Response with register value
UTC TIME from ZDA sentence
Byte no
Designation
Size
Value [hex]
00
Converter address
1-Byte
11 [ 11 to F7]
01
Function code
1-Byte
03 / 04
02
Error code
N-Byte
02
03
Dane1-Hi
1-Byte
0E
04
Dane1-Lo
1-Byte
24
05
CRC-Lo
1-Byte
---
06
CRC-Hi
1-Byte
---
Example.
Readout of UTC time from ZDA sentence from register address 40009 / address 30009
11-03-02-0E-24-CRCLo-CRCHi
11-04-02-0E-24-CRCLo-CRCHi
In respond UTC time, hours and minutes from ZDA sentence is presented as 2-byte with values:
UTC HHMM
= 0x0E24 => Hour=0x0E=14, minutes=0x24=36
Response – in case of error
Byte no
Designation
Size
Value [hex]
00
Converter address 1-Byte
11 [ 11 to F7]
01
Function code
1-Byte
83 / 84
02
Error code
1-Byte
01 – unknown function
02 – unknown data address
03 – unknown data value
04 – NMEA0183 device not respond or is faulty
03
CRC-Lo
1-Byte
04
CRC-Hi
1-Byte
8.5. EXCEPTIONS OF THE MODBUS-RTU PROTOCOL
ADA-4040PC6 in case of received MODBUS-RTU frame, includes:
- unsupported function,
- unknown data address,
20
ADA-4040PC6
Содержание ADA-4040PC6
Страница 23: ...23 ADA 4040PC6...