Basic Data Structure
Basic Data Struc-
All input and output data from the serial interface have the following data structure:
ture
Field
Start
Length
Device / Option
Number
Command
Data field
Checksum
Data from net-
When querying specific values and variables from a device or an option, the data struc-
worked devices
ture contains:
and options
-
-
Addressing the device or option:
-
-
If a command is sent to a device or option which does not support that command, then
the interface card or interface box will output an error message.
If a data query is not answered after 2 seconds or an error occurs during the transmissi-
on of the reply, the data query should be repeated.
Possible values
Value
for the 'Device/
0x00
Option' byte
0x01
0x02
0x03
0x04
0x05
* Only with active error forwarding
Start
Length
Device/Option
Explanation
Start sequence - 3 times 0x80 (3 bytes)
Number of bytes in data field (1 byte)
Type, e.g. inverter, sensor box, etc. (1 byte)
Number of the relevant device (1 byte)
Query, command to be carried out (1 byte)
Contains the value of the queried command (max. 127 bytes)
The checksum uses 8-bit addition of all bytes in the data
structure with the exception of the 'Start sequence' and
'Checksum' fields; overflows are ignored (1 byte)
a field to address the device or the option where the data to be queried is held
the correct command byte for the required data
set 'Device / Option' byte to the correct value for the type of device or option (inver-
ter, sensor card, etc.)
set 'Number' byte to the value that
-
was entered for inverters via the display (IG Nr.)
-
was set for sensor cards or other DATCOM components at the BCD switch
Device / Option
General data query or query to the interface card (the 'number' byte is
ignored)
Inverter
Sensor card
Fronius IG datalogger*
Reserved
Fronius String Control*
Number
Command
32
Data field
Checksum