18 l_scb_statussinglenode - read out bus status, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual

Page 298

Advertising
background image

PLC Designer V2.x| Lenze Application Samples

The L_SCB_CANBasic.lib library

L_SCB_StatusSingleNode - read out bus status

298

L

1.3 EN - 07/2012

17.18

L_SCB_StatusSingleNode - read out bus status

The FB reads out the bus status of a CAN node.

Inputs

Outputs

Note!

Only one of the two FBs (either L_SCB_CanStatus or L_SCB_StatusSingleNode)

can be used at a time!
• The simultaneous use of the two FBs causes a time-out (xPDOTimeOut).

Identifier/data type

Information/possible settings

tPdoTimeOut

TIME

Monitoring time of the PDO (initialisation: 100 ms)

xAutomaticReset

BOOL

TRUE: Automatic reset of the CAN node active

tResetTime

TIME

Reset time (initialisation: 10 s)

byNodeNumber

BYTE

Node number

byMasterNumber

BYTE

Interface number (0...3)

Identifier/data type

Information/possible settings

CanMasterState

SCB_StateCanMaster

Status of the CAN master

CanNodeState

SCB_CanNodeDiagnose

Status of the CAN node

xConfigError

BOOL

TRUE: Configuration error active

xPdoTimeOut

BOOL

Time-out signalling

xCommunicationOK

BOOL



L_SCB_GetNodeDataRxPDO1 - read out data ( 285)



L_SCB_GetNodeDataRxPDO2 - read out data ( 286)

Advertising