3 l_scs_readerrorcode - read out error status, L_scs_readerrorcode - read out error status, Plc designer v2.x| lenze application samples – Lenze PLC Designer V2.x User Manual

Page 266

Advertising
background image

PLC Designer V2.x| Lenze Application Samples

The L_SCS_DriveECS.lib library

L_SCS_SupplyModule - actuation of the ECS servo system power supply module

266

L

1.3 EN - 07/2012

13.4.3

L_SCS_ReadErrorCode - read out error status

This FB reads out the error test from the controller.

Inputs

Outputs

Identifier/data type

Information/possible settings

xExecute

BOOL

Carry out error test

byNodeNumber

BYTE

Node number

byMasterNumber

BYTE

Interface number (0...3)

xUseSecondSDO

BOOL

TRUE: Use second SDO channel

FALSE: Use first SDO channel (Lenze setting)

Identifier/data type

Information/possible settings

xDone

BOOL

TRUE: Read request completed

xBusy

BOOL

Status output "Read request sent"

• TRUE: The read request was sent to the operating system and the FB is waiting for

a response from the device addressed.

• FALSE: The read request was completed.

xError

BOOL

"Error" status signal

FALSE Conversion carried out without errors

TRUE Error during the conversion

xTimeOut

BOOL

Signalling of a time-out (time-out error)

TRUE: Time-out; read request could not be executed

FALSE: No time-out detected

eErrorCode

SCS ErrorCode

Transfer of read out error

• Output of the error number as text (Enum)

Advertising