System bus (can) for lenze plc devices, Lenzecandsxdrv.lib function library – Lenze DDS System bus CAN for PLC User Manual

Page 169

Advertising
background image

System bus (CAN) for Lenze PLC devices

LenzeCanDSxDrv.lib function library

11.10

L_CanDSxNodeGuarding − carrying out a "Node guarding"

11−13

L

PLC−Systembus EN 2.0

Outputs

Data type

Information/possible settings

nState

Integer

Status

300 FB is deactivated (bRun= FALSE).

127 Node to be monitored is in the Pre−operational CAN status.

5 Node to be monitored is in the Operational CAN status.

4 Node to be monitored is in the Stopped CAN status.

0 Node to be monitored is in the Boot−up CAN status, or the FB is not called up.

−5 The tNodeGuardTime monitoring time or the factor byNodeLifeTimeFactor is set to

the value "0".

−9 Response of the node to be monitored is invalid.

−10 "Node Guarding" event:

No status response from the node to be monitored was received within the
"NodeLifeTime" monitoring time.

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

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

·

Initialise the monitoring mechanism using the function
L_CanDSxOpenNodeGuarding.

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

Settings required for the PLC to be monitored

(valid for 9300 Servo PLC, Drive PLC, ECSxA as of V6.2)

The following settings are required for the PLC to be monitored, thus causing the PLC to take over
the function of the "Node Guarding Slave":

1. Set code C0352 in the PLC to be monitored to the value "4" to configure the corresponding

PLC as a "Slave with Node Guarding":

Code

LCD

Possible settings

Information

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. Set the time interval for the status enquiry by the master in the PLC to be monitored via

C0382. This value has to correspond to the setting at the FB input tNodeGuardTime in the
monitoring PLC:

Code

LCD

Possible settings

Information

Lenze

Selection

C0382 GuardTime

0

System bus: Node Guarding (slave):
NodeGuardTime

0

{1 ms}

65535

3. Set the "Node Guarding Master" in the monitoring PLC with C0352/0 = 2.

Advertising