Write parameter data acyclically
This section describes the request and response for the acyclic writing of a parameter.
Details
–
When a multi-parameter write request is transmitted, the parameter attribute,
index and subindex
and then the parameter format
and parameter value
are repeated "n" times, "n" being the number of parameters addressed.
–
A write request must not exceed the maximum data length of 240 bytes.
|
Byte 1
|
Byte 2
|
Byte 3
|
Byte 4
|
|
Request reference
|
Request identification
|
Axis
|
Number of indices
|
|
Field
|
Data type
|
Values
|
|
Request reference
|
U8
|
This value is defined by the master.
|
|
Request identification
|
U8
|
0x02: Write parameters.
|
|
Axis
|
U8
|
0x00 or 0x01
|
|
Number of indices
|
U8
|
0x"n" (n = number of parameters addressed)
|
|
Byte 5
|
Byte 6
|
|
|
Attribute
|
Number of subindices
|
|
|
Field
|
Data type
|
Values
|
|
Attribute
|
U8
|
0x10: Value
|
|
Number of subindices
|
U8
|
0x00
|
|
Byte 7
|
Byte 8
|
Byte 9
|
Byte 10
|
|
Index
|
Subindex
|
||
|
HIGH byte
|
LOW byte
|
HIGH byte
|
LOW byte
|
|
Field
|
Data type
|
Values
|
|
Index
|
U16
|
0x0001 ... 0xFFFF (1 ... 65535)
|
|
Subindex
|
U16
|
0x0000 ... 0x00FF (0 ... 255)
|
|
Byte 11
|
Byte 12
|
|
|
Format
|
Number of values
|
|
|
Field
|
Data type
|
Values
|
|
Format
|
U8
|
0x02: integer8 (1 byte with sign)
0x03: Integer16 (2 bytes with sign)
0x04: Integer32 (4 bytes with sign)
0x05: Unsigned8 (1 byte without sign)
0x06: Unsigned16 (2 bytes without sign)
0x07: Unsigned32 (4 bytes without sign)
0x09: Visible String (with n characters)
0x0A: Octet String (with n characters)
0x40: Zero
0x41: Byte
0x42: Word
0x43: Double word
|
|
Number of values
|
U8
|
0x01 or number of characters (n) for string parameters.
|
|
Byte 13
|
Byte 14
|
Byte 15
|
Byte 16
|
|
Value
(Integer8 / Unsigned8 / byte)
|
|
||
|
Value
(Integer16 / Unsigned16 / word)
|
|
||
|
Value
(Integer32 / Unsigned32 / double word)
|
|||
|
Byte 13
|
Byte 14
|
Byte 15
|
Byte ...
|
|
String
(Visible string / octet string with an optional length)
|
|||
|
Field
|
Data type
|
Values
|
|
Value
|
U8/U16/U32
|
Value range/length depends on the parameter format (see table above).
|
|
String
|
U8
|
Visible string / octet string with an optional length (n characters = n bytes)
|
Response to a correctly executed write request
With an error-free multi-parameter request, only the response header is transmitted, and the complete data area is omitted.
|
Byte 1
|
Byte 2
|
Byte 3
|
Byte 4
|
|
Request reference
(mirrored)
|
Response identification
|
Axis
(mirrored)
|
Number of indices
|
|
Field
|
Data type
|
Values
|
|
Request reference
|
U8
|
Mirrored value of the parameter request.
|
|
Response identification
|
U8
|
0x02: Parameter has been written.
|
|
Axis
|
U8
|
0x00 or 0x01
|
|
Number of indices
|
U8
|
0x"n" (n = number of parameters addressed)
|
Response to a write error
In the case of a multi-parameter request, correct and possible faulty messages
are summarised in one telegram. They have the following data contents:
Correct message
–
Format: 0x40
–
Number of values: 0x00
Faulty message
–
Format: 0x44
–
Number of values: 0x01 or 0x02
–
Error code without additional information (for number of values = 0x01) or error code with additional information (for number of values = 0x02)
A faulty access to a parameter "n" is indicated at the nth position in the response telegram of a multi-parameter request.
|
Byte 1
|
Byte 2
|
Byte 3
|
Byte 4
|
|
Request reference
(mirrored)
|
Response identification
|
Axis
(mirrored)
|
Number of indices
|
|
Field
|
Data type
|
Values
|
|
Request reference
|
U8
|
Mirrored value of the parameter request.
|
|
Response identification
|
U8
|
0x82: Parameter has not been written.
The data in bytes 7 + 8 must be interpreted as an error code.
|
|
Axis
|
U8
|
0x00 or 0x01
|
|
Number of indices
|
U8
|
0x"n" (n = number of parameters addressed)
|
|
Byte 5
|
Byte 6
|
|
|
Format
|
Number of values
|
|
|
Field
|
Data type
|
Values
|
|
Format
|
U8
|
0x44: Error
|
|
Number of values
|
U8
|
0x01: Error code without additional information.
0x02: Error code with additional information.
|
|
Byte 7
|
Byte 8
|
Byte 9
|
Byte 10
|
|
Error code
|
Additional information (if available)
|
||
|
HIGH byte
|
LOW byte
|
HIGH byte
|
LOW byte
|
|
Field
|
Data type
|
Values
|
|
Error code
|
U16
|
0x0000 ... 0xFFFF
|
|
Additional information (if available)
|
U16
|