Skip to content

FB: Emergency Stop Circuit - v5.4

You can use _esc function to control the Operating Modes of an Emergency Stop Circuit in the system.

TypeNameVersion
data typeescOutputv2.2
functionTON_TIMESiemens FB
functionTP_TIMESiemens FB
ParameterDeclarationTypeInit. valueDescription
F_emrgCircuitOkInputBool1IR: 1= Emergency Circuit Ok
F_emrgStopOkInputBool1IR: 1=Emergency Stop Ok
extControlOnInputBool1IR: External control:
0= Control off
1= Control on
extOperatingModeInputUSint4IR: External operating mode. See here:
2= OM_2_STOP - Stop mode
3= OM_3_MAINT - Maintenance mode
4= OM_4_MANUAL - Manual mode
5= OM_5_SEMIAUTO - Semiautomatic mode
6= OM_6_AUTO - Automatic mode
extOperatingCycleInputUSint0IR: External operating cycle. See here:
3= OC_3_MAINT_MOV - Enable Maintenance movement
4= OC_4_MANUAL_MOV - Enable Manual movement
5= OC_5_SEMIAUTO_STEP - Enable Semiautomatic step
6= OC_6_AUTO_CYCLE - Enable Automatic cycle
extErrorAcknInputBool0IR: 1= External error acknowledgement
extEmrgAcknInputBool0IR: 1= External emergency acknowledgement
extLampTestInputBool0IR: 1= External lamp test
hmiOkInputBool0IR: 1= HMI panels are ok (this signal is used to enable/disable hmiCommand )
settingsInputstructure-IR: Function configuration. See here.
oOutputescOutput-OR: ESC output. See here.
selectedModeOutputUSint0OR: Show selected mode (Not the current mode)
selectedCycleOutputUSint0OR: Show selected cycle (Not the current cycle)
hmiDisabledOutputBool0OR: 1=Hmi disabled, then disable hmiCommand variable and clear o.oc.maintMov/manualMov
hmiCommandStaticUInt0SW: HMI Command. See here.
NameTypeInit. valueDescription
WARM_RESTARTTimeT#5S0=Disabled
>0=Warm restart time
DELAY_ONTimeT#0s<=0=Disabled
>0=Delay actions as ackns, control on
DELAY_OFFTimeT#0s<=0=Disabled
>0=Delay actions as control off
useExtControlOnBool10=Use hmiCommand with:
- HMI_CMD_00001_ON_OFF
1=Use controlOn input
useExtOperatingModeBool10=Use hmiCommand with:
- HMI_CMD_00002_OM_STOP
- HMI_CMD_00003_OM_MAINT
- HMI_CMD_00004_OM_MANUAL
- HMI_CMD_00005_OM_SEMI
- HMI_CMD_00006_OM_AUTO
1=Use extOperatingMode input
useExtOperatingCycleBool10=Use hmiCommand with:
- HMI_CMD_00007_MAINT_MOV
- HMI_CMD_00008_MANUAL_MOV
- HMI_CMD_00009_SEMI_STEP
- HMI_CMD_00010_AUTO_CYCLE
1=Use extOperatingCycle input
useWarmrestartAsModeBool10=Warmrestart before to semi/automatic mode
1=Warmrestart before to semi/automatic cycle
useAutoStartCycleBool10=When mode changes to maint, manual, semi, auto, ESC waits for cycle
1=When mode changes to maint, manual, semi, auto, ESC autostarts cycle (Becareful this option can cause unexpected movements)

The following list shows the useful hmi commands for this function.

NameTypeValueDescription
HMI_CMD_00000_NILUint0HMI Command: 0000 - No action
HMI_CMD_00001_ON_OFFUint1HMI Command: 0001 - On/Off
HMI_CMD_00002_OM_STOPUint2HMI Command: 0002 - Stop mode
HMI_CMD_00003_OM_MAINTUint3HMI Command: 0003 - Maintenance mode
HMI_CMD_00004_OM_MANUALUint4HMI Command: 0004 - Manual mode
HMI_CMD_00005_OM_SEMIUint5HMI Command: 0005 - Semiautomatic mode
HMI_CMD_00006_OM_AUTOUint6HMI Command: 0006 - Automatic mode
HMI_CMD_00007_MAINT_MOVUint7HMI Command: 0007 - Maintenance movement
HMI_CMD_00008_MANUAL_MOVUint8HMI Command: 0008 - Manual movement
HMI_CMD_00009_SEMI_STEPUint9HMI Command: 0009 - Semiautomatic step
HMI_CMD_00010_AUTO_CYCLEUint10HMI Command: 0010 - Automatic cycle
HMI_CMD_00011_ERROR_ACKNUint11HMI Command: 0011 - Error acknowledgement
HMI_CMD_00012_EMRG_ACKNUint12HMI Command: 0012 - Emergency acknowledgement
HMI_CMD_00013_LAMP_TESTUint13HMI Command: 0013 - Lamp test