ST_ExceptionList

 

ST_ExceptionList - General Information

Overview

Type:

Data structure

Available as of:

V1.0.4.0

Inherits from:

-

NOTE: Data structure manages system resources!

Please note that this data structure may only be accessed using mechanisms of the ExceptionHandling.

Write access to elements of the data structure is not permitted.

Description

List into which exceptions can be entered. The size of the list can be modified using the Gc_udiMaxNumberOfExceptions global parameter.

Structure Elements

Variable

Data type

Description

xInit

BOOL

Has the data structure already been initialized? Has to be checked by every access function. If the flag is still on FALSE, the FC_InitExceptionList function has to be executed.

xQuitActive

BOOL

Is TRUE as long as a DiagQuit is active. See timQuitTimeout

udiNumberOfActiveExceptions

UDINT

Number of exceptions entered into the exception list.

xExceptionListHasChanged

BOOL

The content of the exception list has been changed.

udiExceptionListChangeCounter

UDINT

Is incremented if the content of the exception list has been changed.

astException

ARRAY[1..Gc_udiMaxNumberOfExceptions] OF ST_Exception

Field with active exceptions. Never access this field directly. Use the FB_CopyExceptionList POU to create a copy for yourself and work with it.

astExct

ARRAY[1..Gc_udiMaxNumberOfExceptions] OF ST_ExceptionElementInfo

Additional information about the active exceptions.

stOverflowException

ST_Exception

This exception is entered into the exception list if there is an attempt to enter too many exceptions (Gc_udiMaxNumberOfExceptions).

tonQuitTimeout

TON

Function block that is required to delete the exceptions that are no longer active.

timQuitTimeout

TIME := T#300MS

Adjustable time after which all the exceptions are deleted that are no longer marked as active. A value >= 300ms must be selected. It may be necessary to increase this time in the case of a great many of Sercos slaves or when modules are used that monitor slaves connected to field buses. You will notice this if you have to press the DiagQuit button several times in order to acknowledge all exceptions. In these cases, increase the time that it is set here by assigning the desired value to the variable in SR_MainMachine.Init_SubModules.

astExceptionDelayList

ARRAY[1..Gc_udiMaxNumberOfDelay] OF ST_Exception;

List of delayed exceptions whose reaction is not yet active. Never access this field directly. Use the FC_CopyExceptionDelayList POU to create a copy for yourself and work with it.

stExceptionDelayListExt

ARRAY[1..Gc_udiMaxNumberOfDelay] OF ST_ExceptionDelayListExt;

Additional information of the ExeptionDelayList.

udiExceptionDelayListFirst

UDINT

Additional information of the ExeptionDelayList.

udiExceptionDelayListFirstFree

UDINT

Additional information of the ExeptionDelayList.

xExceptionDelayListHasChanged

BOOL

The content of the ExeptionDelayList was changed.

udiExceptionDelayListChangeCounter

UDINT

Is incremented if the content of the ExceptionDelayList was changed.

stSema

PDL.ST_SemaphoreMe

Aids for synchronization of the access to the ExceptionList