Function library lenzedrive.lib, Communication – Lenze DDS Function library Drive User Manual
Page 66
![background image](/manuals/566039/66/background.png)
2.6.4
Read codes (L_ParRead)
Function library LenzeDrive.lib
Communication
2−56
L
LenzeDrive.lib EN 1.7
Note!
The FB L_ParRead must be cyclically called to ensure that the read response is received. Due to the
cycle time of the receiver, it may happen that the PLC receives the read response only after a few
program cycles.
If the FB is not cyclically called (e.g. in an event−controlled task) the FB might "get stuck" as a result.
Selection of the transmission channel
The transmission channel is selected under code C2118:
Code
LCD
Possible settings
Info
Lenze
Selection
C2118
0
0
PDO channel (CAN1_IO ... CAN3_IO)
Data is transferred via a free PDO
channel of the PLC.
For the selection you need:
·
A free CAN transmitter
(CAN1_OUT ... CAN3_OUT) to
transmit the read request.
·
A free CAN receiver (CAN1_IN ...
CAN3_IN) to receive the read
response from the other device.
1 SDO2
channel
Data is transferred via the SDO2
channel of the PLC.
Selection of the bus participant and the parameter data channel for the bus participant
The bus participant whose codes are to be accessed is selected under wTargetAddress. The
parameter data channel (SOD1 or SDO2) to be used for the bus participant is also selected under
wTargetAddress:
·
For data transfer via parameter data channel SDO1 enter the corresponding CAN device
address (1 ... 64) of the bus participant under wTargetAddress.
·
For data transfer via parameter data channel SDO2 enter the corresponding CAN device
address (1 ... 64) of the bus participant incremented by 64, i.e. a value between 65 and 127
under wTargetAddress.
L
Node-ID 1
Target device
wTargetAddress = 2
L
Node-ID 2
SDO1
PLC
SDO2
wTargetAddress = 2 + 64 = 66
Note!
Please ensure that the bus participant is not at the same time accessed by other bus participants
via the same parameter data channel since the system bus changes to the state "bus off" if a
"collision" occurs.