SMC_ReadFBError (FB)

 

FUNCTION_BLOCK SMC_ReadFBError

This function block serves to read the oldest information on function block errors.

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

Input

bEnable

BOOL

FALSE

TRUE: Starts the execution of the function block.

Output

bValid

BOOL

FALSE

TRUE: Parameter is available.

bBusy

BOOL

TRUE: Execution of function block is not finished.

bFBError

BOOL

FALSE

TRUE: Error has occurred within the function block.

nFBErrorID

SMC_ERROR

0

Error identification

pbyErrorInstance

POINTER TO BYTE

Points to the function block instance that reported this error.

strErrorInstance

STRING

tTimeStamp

TIME

Time stamp of the error