Parameter
|
Description
|
---|---|
ADDM('r.m.c.node')
|
Address of the destination entity of the exchange:
|
'SDO'
|
SDO object type.
|
subindex:index
|
Double word or immediate value identifying the CANopen SDO index or subindex:
The most significant word making up the double word contains the sub-index and the least significant word contains the index.
Example: if you use the double word subindex:index:
|
EMIS
|
Table of words containing the SDO datum to send (%MW200:2).
The recept buffer of the WRITE_VAR function must be greater than the SDO. The length of a SDO is indicated in device documentation.
|
GEST
|
Table of words with 4 inputs (%MW210:4).
|
Parameter
|
Description
|
---|---|
ADDM('r.m.c.node')
|
Address of the destination entity of the exchange:
|
'SDO'
|
SDO object type.
|
subindex:index
|
Double word or immediate value identifying the CANopen SDO index or subindex:
The most significant word making up the double word contains the sub-index and the least significant word contains the index.
Example: if you use the double word subindex:index:
|
GEST
|
Table of words with 4 inputs (%MW210:4).
|
RECP
|
Table of words with at least one input to receive the SDO datum received (%MW200:16).
The recept buffer of the READ_VAR function must be greater than the SDO. The length of a SDO is indicated in device documentation.
|
Fields
|
Word
|
Type
|
Description
|
---|---|---|---|
Control byte
|
0 (least significant)
|
BYTE
|
Bit 0 = activity bit
Bit 1 = cancellation bit
|
Exchange ID
|
0 (most significant)
|
BYTE
|
Single number, identifier of the exchange.
|
ComState
|
1 (least significant)
|
BYTE
|
0x00 = Exchange completed
0x01 = Time Out
0x02 = User cancelled
0x03 = Incorrect address format
0x04 = Incorrect destination address
0x06 = Incorrect Com Fb parameters
0x07 = Generic transmission interruption
0x09 = Reception buffer is too small
0x0B = No system resources
0xFF = Network exchange detected error
|
ExchState
|
1 (most significant)
|
BYTE
|
If ComState = 0x00 :
0x00: request treated
0x01: Cannot be treated
0x02: Incorrect response
If ComState = 0xFF
0x07: Generic exchange detected error
0x0B: The destination device has no more resources.
0x0D: The device cannot be reached.
0x2B: SDO exchange detected error
|
Timeout
|
2
|
WORD
|
Timeout value (x 100 ms)
|
Length
|
3
|
WORD
|
Length in bytes
|