11 | Appendix
STOBER
50
11/2019 | ID 442710.03
11.1.3
Determining the subindex
The subindex corresponds to the element of the array or structure parameter. The subindex of simple parameters is 0.
11.2
RDREC, WRREC: RECORD
11.2.1
RECORD request: Header structure
Parameter values are generally transferred using the RECORD header. For a record request, this consists of the following
elements in the specified sequence.
Element
Data type
Value, value range
Request_reference
BYTE
0 hex – FF hex
Freely selectable request number
Request_ID
BYTE
1 hex
Read request
2 hex
Write request
All other values
Reserved
Axis_number
BYTE
0 – 3
Addressing the axis
Number_of_parameters
BYTE
1
Number of parameters to be processed
All other values
Reserved
Attribute
BYTE
10 hex
Access type: Value
80 hex
Access type: Raw value
81 hex
Access type: Integer
82 hex
Access type: Floating point
Number_of_elements
BYTE
1 – 32 hex
1 – 50 Parameters are to be written or
read
Parameter_number
WORD
2000 hex – 5FFF hex
Group and line of a parameter
Subindex
WORD
0 – 3E80 hex
Element of a list and structure
parameter; in single parameters, the
value = 0
Format
(Condition: Request_ID = 2 hex)
BYTE
8 hex
Transfer format: FLOAT
41 hex
Transfer format: BYTE
42 hex
Transfer format: WORD
43 hex
Transfer format: DWORD
1C hex, 1D hex, 1E hex
Transfer format: STRING with 8, 16 or 80
characters
Number_of_values
(Condition: Request_ID = 2 hex)
BYTE
1 – 50
Number of values to be processed;
value = 1 (in a simple parameter) or
value = value of Number_of_elements;
since a RECORD request may not exceed
a length of 240 bytes, it is not always
possible – depending on the respective
format – to transfer max. 50 elements
1st value
(Condition: Request_ID = 2 hex)
DINT
1st parameter value
Value in a simple parameter
2nd value – 50th value
(Condition: Request_ID = 2 hex)
DINT
1 – 32 hex
Value = Value of Number_of_elements
Tab. 12: RECORD request: Header structure