SF_ModeSelector (FB)ΒΆ
FUNCTION_BLOCK SF_ModeSelector
- InOut:
Scope
Name
Type
Initial
Comment
Input
ActivateBOOLFALSE
Activation of the FB.
S_Mode0BOOLFALSE
Input X (0 - 7) from mode selector switch. FALSE: Mode X is not requested by operator. TRUE: Mode X is requested by operator.
S_Mode1BOOLFALSE
S_Mode2BOOLFALSE
S_Mode3BOOLFALSE
S_Mode4BOOLFALSE
S_Mode5BOOLFALSE
S_Mode6BOOLFALSE
S_Mode7BOOLFALSE
S_UnlockBOOLFALSE
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_SetModeBOOLFALSE
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.
AutoSetModeBOOLFALSE
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).
ModeMonitorTimeTIMETIME#0ms
Maximum permissible time for changing the selection input.
ResetBOOLFALSE
Manual reset of FB
Output
ReadyBOOLFALSE
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_Mode0SelBOOLFALSE
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_Mode1SelBOOLFALSE
S_Mode2SelBOOLFALSE
S_Mode3SelBOOLFALSE
S_Mode4SelBOOLFALSE
S_Mode5SelBOOLFALSE
S_Mode6SelBOOLFALSE
S_Mode7SelBOOLFALSE
S_AnyModeSelBOOLFALSE
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.
SafetyDemandBOOLFALSE
Output indicating that the FB is active and the primary safety function is demanded (e.g. related to the safety functionality).
ResetRequestBOOLFALSE
Error flag Output which can be used to signal the operator to press the reset functionality to continue.
ErrorBOOLFALSE
Error flag
DiagCodeWORD0
Diagnostic register