5 l_scb_getnodestate - node inspection, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual

Page 287

Advertising
background image

1.3 EN - 07/2012

L

287

PLC Designer V2.x| Lenze Application Samples

The L_SCB_CANBasic.lib library

L_SCB_GetNodeState - node inspection

17.5

L_SCB_GetNodeState - node inspection

The function reads the status of a CAN node.

Inputs

The function returns the following status via the CAN node:

CanSlave_NotInHardWareConfig :=-2,

CanSlave_ResetNode := -1,

CanSlave_WaitBootUp := 1,

CanSlave_BootUp := 2,

CanSlave_SDO_Config := 3,

CanSlave_SDO_Ready := 4,

CanSlave_Operational := 5,

CanSlave_OptionalDevice := 97,

CanSlave_DeviceIDNotOk := 98,

CanSlave_NodeGuardingError := 99

17.6

L_SCB_GetStateOptional - check with regard to "OptionalDevice"

The function checks the bus status with regard to "OptionalDevice" of a CAN node. If the

node is available, the function returns the value TRUE.

Inputs

Identifier/data type

Information/possible settings

byNodeNumber

BYTE

Node number

byMasterNumber

BYTE

Interface number (0...3)

Identifier/data type

Information/possible settings

byNodeNumber

BYTE

Node number

byMasterNumber

BYTE

Interface number (0...3)

Advertising