Function library lenzecandsxdrv.lib, Functions/function blocks – Lenze DDS Global Drive PLC Developer Studio User Manual

Page 24

Advertising
background image

3.9

L_CanDSxNodeGuarding − Execution of "Node Guarding"

Function library LenzeCanDSxDrv.lib

Functions/function blocks

3−12

L

LenzeCanDSxDrv.lib EN 1.2

Outputs

Data type

Information/possible settings

nState

Integer

Status

300 FB is deactivated (bRun= FALSE).
127 Bus device to be monitored is in CAN state Pre−operational.

5 Bus device to be monitored is in CAN state Operational.
4 Bus device to be monitored is in CAN state Stopped.
0 Bus device to be monitored is in CAN state Boot−up

or FB is not activated.

−5 Monitoring time tNodeGuardTime or factor byNodeLifeTimeFactor is set to "0".
−9 Response received from bus device to be monitored is invalid.

−10 "Node Guarding" event:

No status response received from bus device to be monitored within the
"NodeLifeTime".

−12 The selected node address (byNodeAddr) is invalid.

−120 The monitoring mechanism has not been initialised in the CanDSx driver.

·

Use the function L_CanDSxOpenNodeGuarding to initialise the monitoring
mechanism.

−121 The selected driver number (wDrvNr) is invalid.

Settings required for the PLC to be monitored

(Valid for 9300 Servo PLC/Drive PLC as from V6.2 and ECSxA as from V7.0)

Select the following settings for the PLC to be monitored to ensure that the PLC will act as "Node
Guarding slave":

1. Set code C0352 of the PLC to be monitored to "4" to configure the PLC as "slave with Node

Guarding":

Code

LCD

Possible settings

Info

Lenze

Selection

C0352 CAN mst

0

System bus:
Master/slave configuration of the PLC

0

Slave (boot−up not active)

1

Master (boot−up active)

2

Master with Node Guarding
(SyncReceived no longer possible)

3

Slave and Heartbeat producer

4

Slave with Node Guarding

2. Use C0382 to select the time interval for the status enquiry of the master in the PLC to be

monitored. The value must correspond to the setting at the FB input tNodeGuardTime in the
PLC to be monitored:

Code

LCD

Possible settings

Info

Lenze

Selection

C0382 GuardTime

0

System bus: Node Guarding (slave):
NodeGuardTime

0

{1 msec}

65535

3. Set the Node Guarding master C0352/0 = 2 in the monitoring PLC.

Advertising