Error when accessing parameters via L_ParRead()/L_ParWrite() after TimeOut

Which products are affected?
LenzeDrivexxxx.lib library

ECS Application operating software from V6.0 onwards
EVS93xx-EI  (Servo PLC) from V1.0 onwards
EVS93xx-ET  (Servo PLC with technology function)from V1.0 onwards
EPL-10200 EI (Drive PLC) from V1.0 onwards

What happens?
If a parameter (code or CAN index) of a CAN device is accessed via the L_ParRead() or L_ParWrite() block, these blocks indicate an error. The bFail output changes to TRUE and error message 2 (= external device does not respond within the specified TimeOut time) is indicated via the wFailNumber output.

When does the problem occur?
The response described before can occur if the L_ParRead() or L_ParWrite() function block is used to access a CAN device and the connection to this device has been interrupted temporarily. Although the connection has been re-established, the blocks still indicate an error when accessing the CAN device. It is not possible to access the parameters of the CAN device via the L_ParRead()/L_ParWrite() function blocks before mains switching has been carried out for the PLC target system.

Possible diagnostics?
None.

Short-term measures/recommendations?
The LenzeCanOpenSdoDrv.lib library is provided on the Application Knowledge Base (article ID No.: 200807534). Based on the LenzeCanDrv.lib library, the IndexRead  and IndexWrite blocks from this library can be used to access a parameter of the CAN device. This procedure also works if the device has temporarily not been connected to the PLC target system via CAN.

Evaluation:
If the L_ParRead() and L_ParWrite() blocks are used to access a non-existing CAN device, the blocks cannot be used. It is not possible to access a parameter of the CAN device via the L_ParRead() and L_ParWrite() blocks although the device has been re-connected to the PLC target system via CAN.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/201107776/1/
Contact form