SF_ModeSelector (FB)ΒΆ

FUNCTION_BLOCK SF_ModeSelector

This function block selects the system operation mode, such as manual, automatic, semi-automatic, etc.
InOut:

Scope

Name

Type

Initial

Comment

Input

Activate

BOOL

FALSE

Activation of the FB.

S_Mode0

BOOL

FALSE

Input X (0 - 7) from mode selector switch. FALSE: Mode X is not requested by operator. TRUE: Mode X is requested by operator.

S_Mode1

BOOL

FALSE

S_Mode2

BOOL

FALSE

S_Mode3

BOOL

FALSE

S_Mode4

BOOL

FALSE

S_Mode5

BOOL

FALSE

S_Mode6

BOOL

FALSE

S_Mode7

BOOL

FALSE

S_Unlock

BOOL

FALSE

Locks the selected mode. FALSE: The actual S_ModeXSel output is locked therefore a change of any S_ModeX input does not lead to a change in the S_ModeXSel output even in the event of a rising edge of Set-Mode. TRUE: The selected S_ModeXSel is not locked; a mode selec-tion change is possible.

S_SetMode

BOOL

FALSE

Sets the selected mode. Operator acknowledges the setting of a mode. Any change to new S_ModeX = TRUE leads to S_AnyModeSel/S_ModeXSel = FALSE, only a rising SetMode trigger then leads to new S_ModeXSel = TRUE.

AutoSetMode

BOOL

FALSE

Parameterizes the acknowledgement mode FALSE: A change in mode must be acknowledged by the operator via SetMode. TRUE: A valid change of the S_ModeX input to another S_ModeX automatically leads to a change in S_ModeXSel with-out operator acknowledgment via SetMode (as long as this is not locked by S_Unlock).

ModeMonitorTime

TIME

TIME#0ms

Maximum permissible time for changing the selection input.

Reset

BOOL

FALSE

Manual reset of FB

Output

Ready

BOOL

FALSE

Activation of the FB. TRUE indicates that the FB is activated and the outputs results are valid, FALSE the FB is not active and the program is not executed.

S_Mode0Sel

BOOL

FALSE

Indicates that mode X (0 - 7) is selected and acknowledged. FALSE: Mode X is not selected or not active. TRUE: Mode X is selected and active.

S_Mode1Sel

BOOL

FALSE

S_Mode2Sel

BOOL

FALSE

S_Mode3Sel

BOOL

FALSE

S_Mode4Sel

BOOL

FALSE

S_Mode5Sel

BOOL

FALSE

S_Mode6Sel

BOOL

FALSE

S_Mode7Sel

BOOL

FALSE

S_AnyModeSel

BOOL

FALSE

Indicates that any of the 8 modes is selected and acknowledged. FALSE: No S_ModeX is selected. TRUE: One of the 8 S_ModeX is selected and active.

SafetyDemand

BOOL

FALSE

Output indicating that the FB is active and the primary safety function is demanded (e.g. related to the safety functionality).

ResetRequest

BOOL

FALSE

Error flag Output which can be used to signal the operator to press the reset functionality to continue.

Error

BOOL

FALSE

Error flag

DiagCode

WORD

0

Diagnostic register