Function library lenzedrive.lib, Communication – Lenze DDS Function library Drive User Manual
Page 70

2.6.5
Write codes (L_ParWrite)
Function library LenzeDrive.lib
Communication
2−60
L
LenzeDrive.lib EN 1.7
VariableName
Note
VariableType
DataType
wFailNumber
Word
VAR_OUTPUT
0
OK − write request was executed without error.
1
Error during data transfer via system bus (CAN).
2
External device did not respond within the set time−out time.
4
Subindex does not exist.
5
Index does not exist.
7
The controller inhibit required for writing the code has not been
set in the target device.
13
Parameter value to be written is not within the valid range.
117
Invalid communication channel (byComChannel)
118
There are not enough free CAN objects available.
119
The Send Order memory is full.
Note!
The FB L_ParWrite must be cyclically called to ensure that the write response is received. Due to
the cycle time of the receiver, it may happen that the PLC receives the write 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 write request.
·
A free CAN receiver (CAN1_IN ...
CAN3_IN) to receive the write
response from the other device.
1 SDO2
channel
Data is transferred via the SDO2
channel of the PLC.