FB: Emergency Stop Circuit - v5.4
You can use _esc function to control the Operating Modes of an Emergency Stop Circuit in the system.
Dependencies
Section titled “Dependencies”| Type | Name | Version |
|---|---|---|
data type | escOutput | v2.2 |
function | TON_TIME | Siemens FB |
function | TP_TIME | Siemens FB |
Parameters
Section titled “Parameters”Function
Section titled “Function”| Parameter | Declaration | Type | Init. value | Description |
|---|---|---|---|---|
F_emrgCircuitOk | Input | Bool | 1 | IR: 1= Emergency Circuit Ok |
F_emrgStopOk | Input | Bool | 1 | IR: 1=Emergency Stop Ok |
extControlOn | Input | Bool | 1 | IR: External control:0= Control off 1= Control on |
extOperatingMode | Input | USint | 4 | IR: External operating mode. See here:2= OM_2_STOP - Stop mode3= OM_3_MAINT - Maintenance mode4= OM_4_MANUAL - Manual mode5= OM_5_SEMIAUTO - Semiautomatic mode6= OM_6_AUTO - Automatic mode |
extOperatingCycle | Input | USint | 0 | IR: External operating cycle. See here:3= OC_3_MAINT_MOV - Enable Maintenance movement4= OC_4_MANUAL_MOV - Enable Manual movement5= OC_5_SEMIAUTO_STEP - Enable Semiautomatic step6= OC_6_AUTO_CYCLE - Enable Automatic cycle |
extErrorAckn | Input | Bool | 0 | IR: 1= External error acknowledgement |
extEmrgAckn | Input | Bool | 0 | IR: 1= External emergency acknowledgement |
extLampTest | Input | Bool | 0 | IR: 1= External lamp test |
hmiOk | Input | Bool | 0 | IR: 1= HMI panels are ok (this signal is used to enable/disable hmiCommand ) |
settings | Input | structure | - | IR: Function configuration. See here. |
o | Output | escOutput | - | OR: ESC output. See here. |
selectedMode | Output | USint | 0 | OR: Show selected mode (Not the current mode) |
selectedCycle | Output | USint | 0 | OR: Show selected cycle (Not the current cycle) |
hmiDisabled | Output | Bool | 0 | OR: 1=Hmi disabled, then disable hmiCommand variable and clear o.oc.maintMov/manualMov |
hmiCommand | Static | UInt | 0 | SW: HMI Command. See here. |
Settings Structure
Section titled “Settings Structure”| Name | Type | Init. value | Description |
|---|---|---|---|
WARM_RESTART | Time | T#5S | 0=Disabled >0=Warm restart time |
DELAY_ON | Time | T#0s | <=0=Disabled >0=Delay actions as ackns, control on |
DELAY_OFF | Time | T#0s | <=0=Disabled >0=Delay actions as control off |
useExtControlOn | Bool | 1 | 0=Use hmiCommand with:- HMI_CMD_00001_ON_OFF 1=Use controlOn input |
useExtOperatingMode | Bool | 1 | 0=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_AUTO1=Use extOperatingMode input |
useExtOperatingCycle | Bool | 1 | 0=Use hmiCommand with:- HMI_CMD_00007_MAINT_MOV- HMI_CMD_00008_MANUAL_MOV- HMI_CMD_00009_SEMI_STEP- HMI_CMD_00010_AUTO_CYCLE1=Use extOperatingCycle input |
useWarmrestartAsMode | Bool | 1 | 0=Warmrestart before to semi/automatic mode 1=Warmrestart before to semi/automatic cycle |
useAutoStartCycle | Bool | 1 | 0=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) |
HMI Commands
Section titled “HMI Commands”The following list shows the useful hmi commands for this function.
| Name | Type | Value | Description |
|---|---|---|---|
HMI_CMD_00000_NIL | Uint | 0 | HMI Command: 0000 - No action |
HMI_CMD_00001_ON_OFF | Uint | 1 | HMI Command: 0001 - On/Off |
HMI_CMD_00002_OM_STOP | Uint | 2 | HMI Command: 0002 - Stop mode |
HMI_CMD_00003_OM_MAINT | Uint | 3 | HMI Command: 0003 - Maintenance mode |
HMI_CMD_00004_OM_MANUAL | Uint | 4 | HMI Command: 0004 - Manual mode |
HMI_CMD_00005_OM_SEMI | Uint | 5 | HMI Command: 0005 - Semiautomatic mode |
HMI_CMD_00006_OM_AUTO | Uint | 6 | HMI Command: 0006 - Automatic mode |
HMI_CMD_00007_MAINT_MOV | Uint | 7 | HMI Command: 0007 - Maintenance movement |
HMI_CMD_00008_MANUAL_MOV | Uint | 8 | HMI Command: 0008 - Manual movement |
HMI_CMD_00009_SEMI_STEP | Uint | 9 | HMI Command: 0009 - Semiautomatic step |
HMI_CMD_00010_AUTO_CYCLE | Uint | 10 | HMI Command: 0010 - Automatic cycle |
HMI_CMD_00011_ERROR_ACKN | Uint | 11 | HMI Command: 0011 - Error acknowledgement |
HMI_CMD_00012_EMRG_ACKN | Uint | 12 | HMI Command: 0012 - Emergency acknowledgement |
HMI_CMD_00013_LAMP_TEST | Uint | 13 | HMI Command: 0013 - Lamp test |