Parameter data transfer
Service data objects (SDOs) make it possible to read and write all parameters of the inverter via CANopen.
Details
–
Two independent SDO channels are provided at the same time. SDO channel 1 is always active. SDO channel 2 can be activated via 0x2301:005.
–
An SDO is always transmitted with confirmation, i. e. the reception of an SDO frame is acknowledged by the receiver.
–
The identifiers for SDO1 and SDO2 are generated from the basic identifier (in compliance with the "Predefined Connection Set") and the node address set:
|
Object
|
Direction
|
Identifier
|
|
|
to the device
|
from the device
|
||
|
SDO1
|
l
|
|
Basic identifier 0x600 + node address
|
|
|
l
|
Basic identifier 0x580 + node address
|
|
|
SDO2
|
l
|
|
Basic identifier 0x640 + node address
|
|
|
l
|
Basic identifier 0x5C0 + node address
|
|
Structure of the SDO frame user data
The user data are shown in Motorola format:
|
1st byte
|
2nd byte
|
3rd byte
|
4th byte
|
5th byte
|
6th byte
|
7th byte
|
8th byte
|
|
Command
|
Index
|
Subindex
|
Data 1
|
Data 2
|
Data 3
|
Data 4
|
|
|
See table below.
|
LOW byte
|
HIGH byte
|
|
LOW word
|
HIGH word
|
||
|
Address of the parameter to be read or written.
|
LOW byte
|
HIGH byte
|
LOW byte
|
HIGH byte
|
|||
The following commands can be transmitted or received for writing and reading the parameters:
|
Command
|
1st byte
|
Data length
|
Info
|
|
|
hex
|
dec
|
|||
|
Write request
|
0x23
|
35
|
4 bytes
|
Writing of a parameter to the inverter.
|
|
0x2B
|
43
|
2 bytes
|
||
|
0x2F
|
47
|
1 byte
|
||
|
0x21
|
33
|
Block
|
||
|
Write response
|
0x60
|
96
|
4 bytes
|
Inverter acknowledges a write request.
|
|
Read request
|
0x40
|
64
|
4 bytes
|
Reading of a parameter from the inverter.
|
|
Read response
|
0x43
|
67
|
4 bytes
|
Inverter response to a read request with the
current parameter value. |
|
0x4B
|
75
|
2 bytes
|
||
|
0x4F
|
79
|
1 byte
|
||
|
0x41
|
65
|
Block
|
||
|
Error response
|
0x80
|
128
|
4 bytes
|
Inverter response to the incorrect execution of
the read/write request. |
More precisely, the command byte comprises the following information:
|
Command
|
1st byte
|
|||||||
|
Command specifier (cs)
|
Toggle (t)
|
Length*
|
e
|
s
|
||||
|
Bit 7
|
Bit 6
|
Bit 5
|
Bit 4
|
Bit 3
|
Bit 2
|
Bit 1
|
Bit 0
|
|
|
Write request
|
0
|
0
|
1
|
0
|
0/1
|
0/1
|
1
|
1
|
|
Write response
|
0
|
1
|
1
|
0
|
0
|
0
|
0
|
0
|
|
Read request
|
0
|
1
|
0
|
0
|
0
|
0
|
0
|
0
|
|
Read response
|
0
|
1
|
0
|
0
|
0/1
|
0/1
|
1
|
1
|
|
Error response
|
1
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
|
*Bit coding of the length: 00 = 4 bytes, 01 = 3 bytes, 10 = 2 bytes, 11 = 1 byte
e: expedited (shortened block service)
s: segmented (normal block service)
|
||||||||
More commands are defined in the DS301 V4.02 CANopen specification (e. g. segmented
transfer).
transfer).
Up to 4 bytes are available for parameter value entries. Depending on the data format, they are assigned as follows:
|
5th byte
|
6th byte
|
7th byte
|
8th byte
|
|
Parameter value (1 byte)
|
0x00
|
0x00
|
0x00
|
|
Parameter value (2 bytes)
|
0x00
|
0x00
|
|
|
LOW byte
|
HIGH byte
|
||
|
Parameter value (4 bytes)
|
|||
|
LOW word
|
HIGH word
|
||
|
LOW byte
|
HIGH byte
|
LOW byte
|
HIGH byte
|
Parameter
|
Address
|
Name / setting range / [default setting]
|
Information
|
|
|
0x2301:005
|
CANopen settings: Activate SDO2 channel
|
1 = activate SDO server channel 2.
|
|
|
0
|
Not active
|
||
|
1
|
Active
|
||
|
0x2301:007
|
CANopen settings: COB-ID Configuration - SDO2
|
1 = COB-ID configuration -SDO 2 freely configurable.
|
|
|
0
|
Base + node-ID
|
||
|
1
|
Freely configurable
|
||
|
0x2301:010
|
CANopen settings: Sync - Cycle time
0 ... [0] ... 20000
|
||
|
0x2301:011
|
CANopen settings: Sync - Phase position
0 ... [0] ... 20000
|
||
|
0x2301:012
|
CANopen settings: Sync - Tolerance
0 ... [100] ... 1000
|
||
|
0x2301:013
|
CANopen settings: Sync - PLL increment
|
||
|
1
|
13 ns
|
||
|
2
|
26 ns
|
||
|
3
|
39 ns
|
||
|
4
|
53 ns
|
||
|
5
|
67 ns
|
||
|
6
|
80 ns
|
||
|
7
|
93 ns
|
||
|
8
|
106 ns
|
||
|
12
|
160 ns
|
||
|
16
|
213 ns
|
||
|
0x2304:031
|
CANopen settings: COB-ID client -> server (rx)
0x00000000 ... [0x80000641] ... 0xFFFFFFFF
|
Specification of the receive identifier for SDO server channel 2.
Image of the CANopen object 0x1201:001
–
If SDO server channel 2 is activated via 0x2301:005, this parameter is set to the value "node address + 0x640". This default setting can be changed.
–
The SDO server parameter is only valid if bit 31 is set to "0" for both transmission directions.
How to change the identifier:
1.
Set SDO to "invalid": Set bit 31 to "1".
2.
Change identifier and reset SDO to "valid" (bit 31 = "0").
|
|
|
Bit
0
|
COB-ID bit 0
|
||
|
Bit
1
|
COB-ID bit 1
|
||
|
Bit
2
|
COB-ID bit 2
|
||
|
Bit
3
|
COB-ID bit 3
|
||
|
Bit
4
|
COB-ID bit 4
|
||
|
Bit
5
|
COB-ID bit 5
|
||
|
Bit
6
|
COB-ID bit 6
|
||
|
Bit
7
|
COB-ID bit 7
|
||
|
Bit
8
|
COB-ID bit 8
|
||
|
Bit
9
|
COB-ID bit 9
|
||
|
Bit
10
|
COB-ID bit 10
|
||
|
Bit
31
|
PDO invalid
|
||
|
0x2304:032
|
CANopen settings: COB-ID server -> client (tx)
0x00000000 ... [0x800005C1] ... 0xFFFFFFFF
|
Specification of the transmit identifier for SDO server channel 2.
Image of the CANopen object 0x1201:002
–
If SDO server channel 2 is activated via 0x2301:005, this parameter is set to the value "node address + 0x640". This default setting can be changed.
–
The SDO server parameter is only valid if bit 31 is set to "0" for both transmission directions.
How to change the identifier:
1.
Set SDO to "invalid": Set bit 31 to "1".
2.
Change identifier and reset SDO to "valid" (bit 31 = "0").
|
|
|
Bit
0
|
COB-ID bit 0
|
||
|
Bit
1
|
COB-ID bit 1
|
||
|
Bit
2
|
COB-ID bit 2
|
||
|
Bit
3
|
COB-ID bit 3
|
||
|
Bit
4
|
COB-ID bit 4
|
||
|
Bit
5
|
COB-ID bit 5
|
||
|
Bit
6
|
COB-ID bit 6
|
||
|
Bit
7
|
COB-ID bit 7
|
||
|
Bit
8
|
COB-ID bit 8
|
||
|
Bit
9
|
COB-ID bit 9
|
||
|
Bit
10
|
COB-ID bit 10
|
||
|
Bit
31
|
PDO invalid
|
||
|
0x2304:033
|
CANopen settings: SDO client - Node-ID
1 ... [1] ... 127
|
Specification of the node address for the SDO client.
Image of the CANopen object 0x1201:003
|
|