0% found this document useful (0 votes)
51 views20 pages

EC1 Machine Automation Guide

This document contains a program for a PLC that controls an EC1 filling machine HMI. It includes function blocks for input and output mapping, alarms, tank level control, valve timing, and automatic filling cycle control. Databases are used to store parameters, alarms, manual settings, bypass settings, input/output mappings, timers and more. Function blocks call the databases to perform their control functions.

Uploaded by

ArsalanAli
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views20 pages

EC1 Machine Automation Guide

This document contains a program for a PLC that controls an EC1 filling machine HMI. It includes function blocks for input and output mapping, alarms, tank level control, valve timing, and automatic filling cycle control. Databases are used to store parameters, alarms, manual settings, bypass settings, input/output mappings, timers and more. Function blocks call the databases to perform their control functions.

Uploaded by

ArsalanAli
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

EC1 Filling Machine HMI & PLC

Totally Integrated
Automation Portal

Table of contents
Program blocks
Main [OB1] 3-1
HMI_alarms [FC13] 4-1
Mapping_Input [FB9] 5-1
Mapping_Output [FB6] 6-1
AlarmFB [FB2] 7-1
DB1_Param [DB1] 8-1
DB2_Alarm [DB2] 9-1
DB3_Manual [DB3] 10 - 1
DB4_Bypass [DB4] 11 - 1
DB5_Inputs [DB5] 12 - 1
DB6_Output [DB7] 13 - 1
DB8_Timer [DB8] 14 - 1
DB9 [DB9] 15 - 1
Mapping_Input_DB [DB10] 16 - 1
Mapping_Output_DB [DB11] 17 - 1
AlarmFB_DB [DB12] 18 - 1
Tank Level [FB3] 19 - 1
Tank Level_DB [DB13] 20 - 1
Mapping_AnalogOutput [FB4] 21 - 1
Mapping_AnalogOutput_DB [DB15] 22 - 1
Tank Level_DB_1 [DB6] 23 - 1
ValveTimer [FB1] 24 - 1
ValveTimer_DB [DB14] 25 - 1
FillingAutoCycle [FB5] 26 - 1
FillingAutoCycle_DB [DB16] 27 - 1
Totally Integrated
Automation Portal

Program blocks
Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Automatic
Information
Title "Main Program Sweep (Cy‐ Author Comment Family
cle)"
Version 0.1 User-defined ID

Name Data type Default value


Input
Initial_Call Bool
Remanence Bool
Temp
Constant

Network 1: Input Mapping

%DB10
"Mapping_Input_
DB"
%FB9
"Mapping_Input"
EN ENO

Network 2: Output Mapping

%DB11
"Mapping_
Output_DB"
%FB6
"Mapping_Output"
EN ENO

Network 3: Analog Output

%DB15
"Mapping_
AnalogOutput_
DB"
%FB4
"Mapping_AnalogOutput"
EN ENO

Network 4: Alarm

%DB12
"AlarmFB_DB"
%FB2
"AlarmFB"
EN ENO

Network 5: Tank Level

%DB6
"Tank Level_
DB_1"
%FB3
"Tank Level"
EN ENO

Network 6: ValveTimer
Totally Integrated
Automation Portal

Program blocks
HMI_alarms [FC13]
HMI_alarms Properties
General
Name HMI_alarms Number 13 Type FC Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value


Input
Output
InOut
Temp
Constant
Return
HMI_alarms Void

Network 1: Infeed Jam

%DB2.DBX0.1
"DB2_Alarm".
Alarm_ %M50.1
InfeedJam "Alarm-1"

Network 2: Outfeed Jam

%DB2.DBX0.2
"DB2_Alarm".
Alarm_ %M50.2
OutfeedJam "Alarm-2"

Network 3: Level HIGH HIGH

%DB2.DBX0.3
"DB2_Alarm".
"Alarm_I0.2_ %M50.3
LevelHH_S3" "Alarm-3"

Network 4: Level LOW

%DB2.DBX0.4
"DB2_Alarm".
"Alarm_I0.4_ %M50.4
LevelL_S3" "Alarm-4"

Network 5: Station Going UP Fault

%DB2.DBX0.5
"DB2_Alarm".
"Alarm_I0.5_ %M50.5
StationUpFB_S4" "Alarm-5"

Network 6: Station Going Down Fault

%DB2.DBX0.6
"DB2_Alarm".
"Alarm_I0.6_
StationDownFB_ %M50.6
S5" "Alarm-6"
Totally Integrated
Automation Portal

Network 7: Drip Tray Forward Fault

%DB2.DBX0.7
"DB2_Alarm".
"Alarm_I0.7_ %M50.7
DripTrayFB_S6" "Alarm-7"

Network 8: Bottle Grip Fault

%DB2.DBX1.0
"DB2_Alarm".
"Alarm_I1.0_
BottleGripperFB_ %M51.0
S7" "Alarm-8"

Network 9: Air Pressure Low

%DB2.DBX1.1
"DB2_Alarm".
"Alarm_I1.1_
AirPressureSwitch %M51.1
_S8" "Alarm-9"

Network 10: Emergency Filling Pressed

%DB2.DBX1.2
"DB2_Alarm".
"Alarm_I1.5_ %M51.2
EMG_PB" "Alarm-10"

Network 11: Emergency Turn Table Pressed

%DB2.DBX1.3
"DB2_Alarm".
"Alarm_I2.2_ %M51.3
EMG_TurnTable" "Alarm-11"

Network 12: Front Door Open

%DB2.DBX1.4
"DB2_Alarm".
"Alarm_I2.3_
FrontDoor_ %M51.4
GateSwitch_S9" "Alarm-12"

Network 13: Back Door Open

%DB2.DBX1.5
"DB2_Alarm".
"Alarm_I2.4_
BackDoor_
GateSwitch_ %M51.5
S10"
"Alarm-13"

Network 14: Capper Offline

%DB2.DBX1.6
"DB2_Alarm".
"Alarm_I2.5_ %M51.6
CapperRuningFB" "Alarm-14"
Totally Integrated
Automation Portal

Network 15: Pilz Series Fault

%DB2.DBX1.7
"DB2_Alarm".
"Alarm_I4.5_
PilzFB_ %M51.7
MainPanel" "Alarm-15"

Network 16: Main Conveyor VFD1 Fault

%DB2.DBX2.0
"DB2_Alarm".
"Alarm_I4.6_
VFD1_Conv_
Fault_ %M52.0
MainPanel"
"Alarm-16"

Network 17: Turn Table VFD 2 Fault

%DB2.DBX2.1
"DB2_Alarm".
"Alarm_I4.7_
VFD2_TurnTable_
Fault_ %M52.1
MainPanel"
"Alarm-17"

Network 18: Spare Alarm -1

%DB2.DBX2.2
"DB2_Alarm".
"Alarm_Manual %M52.2
Mode Activated" "Alarm-18"

Network 19: Spare Alarm -2

%DB2.DBX2.3
"DB2_Alarm". %M52.3
Alarm_2 "Alarm-19"

Network 20: Spare Alarm -3

%DB2.DBX2.4
"DB2_Alarm". %M52.4
Alarm_3 "Alarm-20"

Network 21: Spare Alarm -4

%DB2.DBX2.5
"DB2_Alarm". %M52.5
Alarm_4 "Alarm-21"

Network 22: Spare Alarm -5

%DB2.DBX2.6
"DB2_Alarm". %M52.6
Alarm_5 "Alarm-22"

Network 23:
Totally Integrated
Automation Portal

Program blocks
Mapping_Input [FB9]
Mapping_Input Properties
General
Name Mapping_Input Number 9 Type FB Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value


Input
Output
InOut
Static
Temp
Constant

Network 1: I0.0_BottleINSensor_S1

%DB5.DBX0.0
%I0.0 "DB5_Inputs".
%DB4.DBX0.0 "I0.0_ "I0.0_
"DB4_Bypass". BottleINSensor_ BottleINSensor_
"Bypass_I0.0" S1" S1"

%DB4.DBX0.0
"DB4_Bypass".
"Bypass_I0.0"

Network 2: I0.1_BottleOutSensor_S2

%DB5.DBX0.1
%I0.1 "DB5_Inputs".
%DB4.DBX0.1 "I0.1_ "I0.1_
"DB4_Bypass". BottleOutSensor_ BottleOutSensor_
"Bypass_I0.1" S2" S2"

%DB4.DBX0.1
"DB4_Bypass".
"Bypass_I0.1"

Network 3: I0.2_LevelHH_S3

%DB5.DBX0.2
%DB4.DBX0.2 %I0.2 "DB5_Inputs".
"DB4_Bypass". "I0.2_LevelHH_ "I0.2_LevelHH_
"Bypass_I0.2" S3" S3"

%DB4.DBX0.2
"DB4_Bypass".
"Bypass_I0.2"

Network 4: I0.3_LevelH_S3

%DB5.DBX0.3
%DB4.DBX0.3 "DB5_Inputs".
"DB4_Bypass". %I0.3 "I0.3_LevelH_
"Bypass_I0.3" "I0.3_LevelH_S3" S3"

%DB4.DBX0.3
"DB4_Bypass".
"Bypass_I0.3"

Network 5: I0.4_LevelL_S3
Totally Integrated
Automation Portal

%DB5.DBX0.4
%DB4.DBX0.4 "DB5_Inputs".
"DB4_Bypass". %I0.4 "I0.4_LevelL_
"Bypass_I0.4" "I0.4_LevelL_S3" S3"

%DB4.DBX0.4
"DB4_Bypass".
"Bypass_I0.4"

Network 6: I0.5_StationUpFB_S4

%DB5.DBX0.5
%DB4.DBX0.5 %I0.5 "DB5_Inputs".
"DB4_Bypass". "I0.5_ "I0.5_
"Bypass_I0.5" StationUpFB_S4" StationUpFB_S4"

%DB4.DBX0.5
"DB4_Bypass".
"Bypass_I0.5"

Network 7: I0.6_StationDownFB_S5

%DB5.DBX0.6
%I0.6 "DB5_Inputs".
%DB4.DBX0.6 "I0.6_ "I0.6_
"DB4_Bypass". StationDownFB_ StationDownFB_
"Bypass_I0.6" S5" S5"

%DB4.DBX0.6
"DB4_Bypass".
"Bypass_I0.6"

Network 8: I0.7_DripTrayFB_S6

%DB5.DBX0.7
%DB4.DBX0.7 %I0.7 "DB5_Inputs".
"DB4_Bypass". "I0.7_ "I0.7_
"Bypass_I0.7" DripTrayFB_S6" DripTrayFB_S6"

%DB4.DBX0.7
"DB4_Bypass".
"Bypass_I0.7"

Network 9: I1.0_BottleGripperFB_S7

%DB5.DBX1.0
%I1.0 "DB5_Inputs".
%DB4.DBX1.0 "I1.0_ "I1.0_
"DB4_Bypass". BottleGripperFB_ BottleGripperFB_
"Bypass_I1.0" S7" S7"

%DB4.DBX1.0
"DB4_Bypass".
"Bypass_I1.0"

Network 10: I1.1_PressureSwitch_S8

%DB5.DBX1.1
%I1.1 "DB5_Inputs".
%DB4.DBX1.1 "I1.1_ "I1.1_
"DB4_Bypass". PressureSwitch_ PressureSwitch_
"Bypass_I1.1" S8" S8"

%DB4.DBX1.1
"DB4_Bypass".
"Bypass_I1.1"
Totally Integrated
Automation Portal

Network 11: I1.2_StartPB

%DB4.DBX1.2 %DB5.DBX1.2
"DB4_Bypass". %I1.2 "DB5_Inputs".
"Bypass_I1.2" "I1.2_StartPB" "I1.2_StartPB"

%DB4.DBX1.2
"DB4_Bypass".
"Bypass_I1.2"

Network 12: I1.3_StopPB

%DB4.DBX1.3 %DB5.DBX1.3
"DB4_Bypass". %I1.3 "DB5_Inputs".
"Bypass_I1.3" "I1.3_StopPB" "I1.3_StopPB"

%DB4.DBX1.3
"DB4_Bypass".
"Bypass_I1.3"

Network 13: I1.4_ResetPB

%DB4.DBX1.4 %DB5.DBX1.4
"DB4_Bypass". %I1.4 "DB5_Inputs".
"Bypass_I1.4" "I1.4_ResetPB" "I1.4_ResetPB"

%DB4.DBX1.4
"DB4_Bypass".
"Bypass_I1.4"

Network 14: I1.5_EMG_PB

%DB5.DBX1.5
%DB4.DBX1.5 "DB5_Inputs".
"DB4_Bypass". %I1.5 "I1.5_EMG_
"Bypass_I1.5" "I1.5_EMG_PB" PB"

%DB4.DBX1.5
"DB4_Bypass".
"Bypass_I1.5"

Network 15: I2.0_StartPB_TurnTable

%DB5.DBX1.6
%DB4.DBX1.6 %I2.0 "DB5_Inputs".
"DB4_Bypass". "I2.0_StartPB_ "I2.0_StartPB_
"Bypass_I2.0" TurnTable" TurnTable"

%DB4.DBX1.6
"DB4_Bypass".
"Bypass_I2.0"

Network 16: I2.1_StopPB_TurnTable

%DB5.DBX1.7
%DB4.DBX1.7 %I2.1 "DB5_Inputs".
"DB4_Bypass". "I2.1_StopPB_ "I2.1_StopPB_
"Bypass_I2.1" TurnTable" TurnTable"

%DB4.DBX1.7
"DB4_Bypass".
"Bypass_I2.1"
Totally Integrated
Automation Portal

Network 17: I2.2_EMG_TurnTable

%DB5.DBX2.0
%DB4.DBX2.0 %I2.2 "DB5_Inputs".
"DB4_Bypass". "I2.2_EMG_ "I2.2_EMG_
"Bypass_I2.2" TurnTable" TurnTable"

%DB4.DBX2.0
"DB4_Bypass".
"Bypass_I2.2"

Network 18: I2.3_FrontDoor_GateSwitch_S9

%DB5.DBX2.1
%I2.3 "DB5_Inputs".
%DB4.DBX2.1 "I2.3_ "I2.3_
"DB4_Bypass". FrontDoor_ FrontDoor_
"Bypass_I2.3" GateSwitch_S9" GateSwitch_S9"

%DB4.DBX2.1
"DB4_Bypass".
"Bypass_I2.3"

Network 19: I2.4_BackDoor_GateSwitch_S10

%DB5.DBX2.2
%I2.4 "DB5_Inputs".
"I2.4_ "I2.4_
%DB4.DBX2.2 BackDoor_ BackDoor_
"DB4_Bypass". GateSwitch_ GateSwitch_
"Bypass_I2.4" S10" S10"

%DB4.DBX2.2
"DB4_Bypass".
"Bypass_I2.4"

Network 20: I2.6_Spare-1

%DB5.DBX2.3
%DB4.DBX2.3 %I2.5 "DB5_Inputs".
"DB4_Bypass". "I2.5_ "I2.5_
"Bypass_I2.5" CapperRuningFB" CapperRuningFB"

%DB4.DBX2.3
"DB4_Bypass".
"Bypass_I2.5"

Network 21: I2.7_Spare-2

%DB5.DBX2.3
%DB4.DBX2.3 %I2.5 "DB5_Inputs".
"DB4_Bypass". "I2.5_ "I2.5_
"Bypass_I2.5" CapperRuningFB" CapperRuningFB"

%DB4.DBX2.3
"DB4_Bypass".
"Bypass_I2.5"

Network 22: I3.0_Spare-3


Totally Integrated
Automation Portal

Program blocks
Mapping_Output [FB6]
Mapping_Output Properties
General
Name Mapping_Output Number 6 Type FB Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value


Input
Output
InOut
Static
Temp
Constant

Network 1: Q0.0_GateIN_R1_SV1

%DB3.DBX0.0 %DB7.DBX0.0
"DB3_Manual". "DB6_Output". %Q0.0
"Auto-0_ "Q0.0_GateIN_ "Q0.0_GateIN_
Manual-1" R1_SV1" R1_SV1"

%DB3.DBX0.1
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q0.0_Manual_
"Auto-0_ GateIN_R1_
Manual-1" SV1"

Network 2: Q0.1_GateOut_R2_SV2

%DB7.DBX0.1
%DB3.DBX0.0 "DB6_Output". %Q0.1
"DB3_Manual". "Q0.1_ "Q0.1_
"Auto-0_ GateOut_R2_ GateOut_R2_
Manual-1" SV2" SV2"

%DB3.DBX0.2
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q0.1_Manual_
"Auto-0_ GateOut_R2_
Manual-1" SV2"

Network 3: Q0.2_BottleGripper_R3_SV3

%DB7.DBX0.2
%DB3.DBX0.0 "DB6_Output". %Q0.2
"DB3_Manual". "Q0.2_ "Q0.2_
"Auto-0_ BottleGripper_ BottleGripper_
Manual-1" R3_SV3" R3_SV3"

%DB3.DBX0.3
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q0.2_Manual_
"Auto-0_ BottleGripper_
Manual-1" R3_SV3"

Network 4: Q0.3_DripTray_R4_SV4
Totally Integrated
Automation Portal

%DB7.DBX0.3
%DB3.DBX0.0 "DB6_Output". %Q0.3
"DB3_Manual". "Q0.3_ "Q0.3_
"Auto-0_ DripTray_R4_ DripTray_R4_
Manual-1" SV4" SV4"

%DB3.DBX0.4
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q0.3_Manual_
"Auto-0_ DripTray_R4_
Manual-1" SV4"

Network 5: Q0.4_MainConveyor_VFD1_R5

%DB7.DBX0.4
%DB3.DBX0.0 "DB6_Output". %Q0.4
"DB3_Manual". "Q0.4_ "Q0.4_
"Auto-0_ MainConveyor_ MainConveyor_
Manual-1" VFD1_R5" VFD1_R5"

%DB3.DBX0.5
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q0.4_Manual_
"Auto-0_ MainConveyor_
Manual-1" VFD1_R5"

Network 6: Q0.5_TurnTable_VFD2_R6

%DB7.DBX0.5
%DB3.DBX0.0 "DB6_Output". %Q0.5
"DB3_Manual". "Q0.5_ "Q0.5_
"Auto-0_ TurnTable_VFD2_ TurnTable_VFD2_
Manual-1" R6" R6"

%DB3.DBX0.6
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q0.5_Manual_
"Auto-0_ TurnTable_VFD2_
Manual-1" R6"

Network 7: Q0.6_StationUpDown_R7_SV5

%DB7.DBX0.6
%DB3.DBX0.0 "DB6_Output". %Q0.3 %Q0.6
"DB3_Manual". "Q0.6_ "Q0.3_ "Q0.6_
"Auto-0_ StationUpDown_ DripTray_R4_ StationUpDown_
Manual-1" R7_SV5" SV4" R7_SV5"

%DB3.DBX0.7
%DB3.DBX0.0 "DB3_Manual". %Q0.3
"DB3_Manual". "Q0.6_Manual_ "Q0.3_
"Auto-0_ StationUpDown_ DripTray_R4_
Manual-1" R7_SV5" SV4"

Network 8: Q0.7_TankFillingValve_R8_SV6

%DB7.DBX0.7
%DB3.DBX0.0 "DB6_Output". %Q0.7
"DB3_Manual". "Q0.7_ "Q0.7_
"Auto-0_ TankFillingValve_ TankFillingValve_
Manual-1" R8_SV6" R8_SV6"

%DB3.DBX1.0
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q0.7_Manual_
"Auto-0_ TankFillingValve_
Manual-1" R8_SV6"

Network 9: Q1.0_FillingValve_01_R9_SV7
Totally Integrated
Automation Portal

%DB7.DBX1.0
%DB3.DBX0.0 "DB6_Output". %Q1.0
"DB3_Manual". "Q1.0_ "Q1.0_
"Auto-0_ FillingValve_01_ FillingValve_01_
Manual-1" R9_SV7" R9_SV7"

%DB3.DBX1.1
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q1.0_Manual_
"Auto-0_ FillingValve_01_
Manual-1" R9_SV7"

Network 10: Q1.1_FillingValve_02_R10_SV8

%DB7.DBX1.1
%DB3.DBX0.0 "DB6_Output". %Q1.1
"DB3_Manual". "Q1.1_ "Q1.1_
"Auto-0_ FillingValve_02_ FillingValve_02_
Manual-1" R10_SV8" R10_SV8"

%DB3.DBX1.2
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q1.1_Manual_
"Auto-0_ FillingValve_02_
Manual-1" R10_SV8"

Network 11: Q2.0_FillingValve_03_R11_SV9

%DB7.DBX1.2
%DB3.DBX0.0 "DB6_Output". %Q2.0
"DB3_Manual". "Q2.0_ "Q2.0_
"Auto-0_ FillingValve_03_ FillingValve_03_
Manual-1" R11_SV9" R11_SV9"

%DB3.DBX1.3
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q2.0_Manual_
"Auto-0_ FillingValve_03_
Manual-1" R11_SV9"

Network 12: Q2.1_FillingValve_04_R12_SV10

%DB7.DBX1.3
%DB3.DBX0.0 "DB6_Output". %Q2.1
"DB3_Manual". "Q2.1_ "Q2.1_
"Auto-0_ FillingValve_04_ FillingValve_04_
Manual-1" R12_SV10" R12_SV10"

%DB3.DBX1.4
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q2.1_Manual_
"Auto-0_ FillingValve_04_
Manual-1" R12_SV10"

Network 13: Q2.2_FillingValve_05_R13_SV11

%DB7.DBX1.4
%DB3.DBX0.0 "DB6_Output". %Q2.2
"DB3_Manual". "Q2.2_ "Q2.2_
"Auto-0_ FillingValve_05_ FillingValve_05_
Manual-1" R13_SV11" R13_SV11"

%DB3.DBX1.5
%DB3.DBX0.0 "DB3_Manual".
"DB3_Manual". "Q2.2_Manual_
"Auto-0_ FillingValve_05_
Manual-1" R13_SV11"

Network 14: Q2.3_FillingValve_06_R14_SV12


Totally Integrated
Automation Portal

Program blocks
AlarmFB [FB2]
AlarmFB Properties
General
Name AlarmFB Number 2 Type FB Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value Retain


Input
Output
InOut
Static
Bool Array[0..10] of Bool Non-retain
Temp
Constant

Network 1: Gerneral Alarm Bit

%DB2.DBX0.3
"DB2_Alarm".
%M1500.3 "Alarm_I0.2_
"AlwaysFALSE" LevelHH_S3" #Bool[0]

%DB2.DBX0.4
"DB2_Alarm".
"Alarm_I0.4_
LevelL_S3"

%DB2.DBX1.1
"DB2_Alarm".
"Alarm_I1.1_
AirPressureSwitch
_S8"

%DB2.DBX1.2
"DB2_Alarm".
"Alarm_I1.5_
EMG_PB"

%DB2.DBX1.4
"DB2_Alarm".
"Alarm_I2.3_
FrontDoor_
GateSwitch_S9"

%DB2.DBX1.5
"DB2_Alarm".
"Alarm_I2.4_
BackDoor_
GateSwitch_
S10"

%DB2.DBX1.7
"DB2_Alarm".
"Alarm_I4.5_
PilzFB_
MainPanel"

%DB2.DBX2.0
"DB2_Alarm".
"Alarm_I4.6_
VFD1_Conv_
Fault_
MainPanel"

%DB2.DBX2.2
"DB2_Alarm".
"Alarm_Manual
Mode Activated"

%DB2.DBX0.0
%M1500.3 "DB2_Alarm".
"AlwaysFALSE" #Bool[0] GeneralAlarmBit
S

%DB1.DBX0.5 %DB2.DBX0.0
"DB1_Param". "DB2_Alarm".
#Bool[0] ResetMBit GeneralAlarmBit
R
Totally Integrated
Automation Portal

Network 2: Outfeed Jam Alarm

%DB5.DBX0.1
P#DB8.DBX832.0
"DB5_Inputs". %DB2.DBX0.2
"DB8_Timer".T53
"I0.1_ "DB2_Alarm".
%M1500.3 BottleOutSensor_ TON Alarm_
"AlwaysFALSE" S2" Time OutfeedJam

IN Q S
ET T#0ms
%DB8.DBD1728
"DB8_Timer".
Time_5_
OutfeedJam_
Ondelay
PT

%DB5.DBX0.1
P#DB8.DBX848.0
"DB5_Inputs". %DB2.DBX0.2
"DB8_Timer".T54
"I0.1_ "DB2_Alarm".
BottleOutSensor_ TON Alarm_
S2" Time OutfeedJam

IN Q R
ET T#0ms
%DB8.DBD1732
"DB8_Timer".
Time_6_
OutfeedJam_
Offdelay
PT

Network 3: Level HH Alarm

P#DB8.DBX864.0
%DB5.DBX0.2 %DB2.DBX0.3
"DB8_Timer".T55
"DB5_Inputs". "DB2_Alarm".
%M1500.3 "I0.2_LevelHH_ TON "Alarm_I0.2_
"AlwaysFALSE" S3" Time LevelHH_S3"

IN Q S
T#2s PT ET T#0ms

P#DB8.DBX880.0
%DB5.DBX0.2 %DB2.DBX0.3
"DB8_Timer".T56
"DB5_Inputs". %DB1.DBX0.5 "DB2_Alarm".
"I0.2_LevelHH_ TON "DB1_Param". "Alarm_I0.2_
S3" Time ResetMBit LevelHH_S3"

IN Q R
T#2s PT ET T#0ms

Network 4: Level L Alarm

P#DB8.DBX896.0
%DB5.DBX0.4 %DB2.DBX0.4
"DB8_Timer".T57
"DB5_Inputs". "DB2_Alarm".
%M1500.3 "I0.4_LevelL_ TON "Alarm_I0.4_
"AlwaysFALSE" S3" Time LevelL_S3"

IN Q S
T#1s PT ET T#0ms

P#DB8.DBX912.0
%DB5.DBX0.4 %DB2.DBX0.4
"DB8_Timer".T58
"DB5_Inputs". %DB1.DBX0.5 "DB2_Alarm".
"I0.4_LevelL_ TON "DB1_Param". "Alarm_I0.4_
S3" Time ResetMBit LevelL_S3"

IN Q R
T#1s PT ET T#0ms

Network 5: Alarm_I0.5_StationUpFB_S4

%DB7.DBX0.6
P#DB8.DBX928.0
"DB6_Output". %DB5.DBX0.5 %DB2.DBX0.5
"DB8_Timer".T59
"Q0.6_ "DB5_Inputs". "DB2_Alarm".
%M1500.3 StationUpDown_ "I0.5_ TON "Alarm_I0.5_
"AlwaysFALSE" R7_SV5" StationUpFB_S4" Time StationUpFB_S4"

IN Q S
T#5s PT ET T#0ms

P#DB8.DBX944.0
%DB5.DBX0.5 %DB2.DBX0.5
"DB8_Timer".T60
"DB5_Inputs". %DB1.DBX0.5 "DB2_Alarm".
"I0.5_ TON "DB1_Param". "Alarm_I0.5_
StationUpFB_S4" Time ResetMBit StationUpFB_S4"

IN Q R
T#5s PT ET T#0ms

Network 6: Alarm_I0.6_StationDownFB_S5
Totally Integrated
Automation Portal

%DB7.DBX0.6 %DB5.DBX0.6 %DB2.DBX0.6


P#DB8.DBX960.0
"DB6_Output". "DB5_Inputs". "DB2_Alarm".
"DB8_Timer".T61
"Q0.6_ "I0.6_ "Alarm_I0.6_
%M1500.3 StationUpDown_ StationDownFB_ TON StationDownFB_
"AlwaysFALSE" R7_SV5" S5" Time S5"

IN Q S
T#5s PT ET T#0ms

%DB5.DBX0.6 %DB2.DBX0.6
P#DB8.DBX976.0
"DB5_Inputs". "DB2_Alarm".
"DB8_Timer".T62
"I0.6_ %DB1.DBX0.5 "Alarm_I0.6_
StationDownFB_ TON "DB1_Param". StationDownFB_
S5" Time ResetMBit S5"

IN Q R
T#5s PT ET T#0ms

Network 7: Alarm_I0.7_DripTrayFB_S6

%DB7.DBX0.3
P#DB8.DBX992.0
"DB6_Output". %DB5.DBX0.7 %DB2.DBX0.7
"DB8_Timer".T63
"Q0.3_ "DB5_Inputs". "DB2_Alarm".
%M1500.3 DripTray_R4_ "I0.7_ TON "Alarm_I0.7_
"AlwaysFALSE" SV4" DripTrayFB_S6" Time DripTrayFB_S6"

IN Q S
T#5s PT ET T#0ms

P#DB8.
DBX1008.0
%DB5.DBX0.7 %DB2.DBX0.7
"DB8_Timer".T64
"DB5_Inputs". %DB1.DBX0.5 "DB2_Alarm".
"I0.7_ TON "DB1_Param". "Alarm_I0.7_
DripTrayFB_S6" Time ResetMBit DripTrayFB_S6"

IN Q R
T#5s PT ET T#0ms

Network 8: Alarm_I1.0_BottleGripperFB_S7

%DB7.DBX0.2 %DB5.DBX1.0 %DB2.DBX1.0


P#DB8.DBX1024.0
"DB6_Output". "DB5_Inputs". "DB2_Alarm".
"DB8_Timer".T65
"Q0.2_ "I1.0_ "Alarm_I1.0_
%M1500.3 BottleGripper_ BottleGripperFB_ TON BottleGripperFB_
"AlwaysFALSE" R3_SV3" S7" Time S7"

IN Q S
T#5s PT ET T#0ms

P#DB8.DBX1040.
%DB5.DBX1.0 0 %DB2.DBX1.0
"DB5_Inputs". "DB2_Alarm".
"DB8_Timer".T66
"I1.0_ %DB1.DBX0.5 "Alarm_I1.0_
BottleGripperFB_ TON "DB1_Param". BottleGripperFB_
S7" Time ResetMBit S7"

IN Q R
T#5s PT ET T#0ms

Network 9: Alarm_I1.1_AirPressureSwitch_S8

%DB5.DBX1.1 %DB2.DBX1.1
"DB5_Inputs". "DB2_Alarm".
"I1.1_ "Alarm_I1.1_
%M1500.3 PressureSwitch_ AirPressureSwitch
"AlwaysFALSE" S8" _S8"
S

%DB5.DBX1.1 %DB2.DBX1.1
"DB5_Inputs". "DB2_Alarm".
"I1.1_ %DB1.DBX0.5 "Alarm_I1.1_
PressureSwitch_ "DB1_Param". AirPressureSwitch
S8" ResetMBit _S8"
R

Network 10: Alarm_I1.5_EMG_PB

%DB5.DBX1.5 %DB2.DBX1.2
"DB5_Inputs". "DB2_Alarm".
%M1500.3 "I1.5_EMG_ "Alarm_I1.5_
"AlwaysFALSE" PB" EMG_PB"
S

%DB5.DBX1.5 %DB2.DBX1.2
"DB5_Inputs". %DB1.DBX0.5 "DB2_Alarm".
"I1.5_EMG_ "DB1_Param". "Alarm_I1.5_
PB" ResetMBit EMG_PB"
R
Totally Integrated
Automation Portal

Program blocks
ValveTimer [FB1]
ValveTimer Properties
General
Name ValveTimer Number 1 Type FB Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value Retain


Input
Output
InOut
Static
Real Array[0..20] of Real Non-retain
Temp
Constant

Network 1: Valve 1 Timer

%DB1.DBX248.6
"DB1_Param".
%M1500.3 "Filling-Time- ADD
"AlwaysFALSE" Valve-(+)-1" P_TRIG Auto (Real)
CLK Q EN ENO
"DB9".P_Trig[41]
%DB1.DBD142 %DB1.DBD142
"DB1_Param". "DB1_Param".
"Filling-Time- "Filling-Time-
Valve-1" IN1 OUT Valve-1"
%DB1.DBD210
"DB1_Param".
"Filling-Time-
Increment-
Decrement-
Factor"
IN2

%DB1.DBX250.6
"DB1_Param".
"Filling-Time- SUB
Valve-(-)-1" P_TRIG Auto (Real)
CLK Q EN ENO
"DB9".P_Trig[42]
%DB1.DBD142 %DB1.DBD142
"DB1_Param". "DB1_Param".
"Filling-Time- "Filling-Time-
Valve-1" IN1 OUT Valve-1"
%DB1.DBD210
"DB1_Param".
"Filling-Time-
Increment-
Decrement-
Factor"
IN2

MUL CONV
Auto (Real) Real to DInt
EN ENO EN ENO
OUT #Real[1] #Real[1] IN
%DB1.DBD142 %DB8.DBD324
"DB1_Param". "DB8_Timer".
"Filling-Time- T21_FillingVale_
Valve-1" IN1 OUT 01.PT
1000.0 IN2

Network 2: Valve 2 Timer


Totally Integrated
Automation Portal

%DB1.DBX248.7
"DB1_Param".
%M1500.3 "Filling-Time- ADD
"AlwaysFALSE" Valve-(+)-2" P_TRIG Auto (Real)
CLK Q EN ENO
"DB9".P_Trig[43]
%DB1.DBD146 %DB1.DBD146
"DB1_Param". "DB1_Param".
"Filling-Time- "Filling-Time-
Valve-2" IN1 OUT Valve-2"
%DB1.DBD210
"DB1_Param".
"Filling-Time-
Increment-
Decrement-
Factor"
IN2

%DB1.DBX250.7
"DB1_Param".
"Filling-Time- SUB
Valve-(-)-2" P_TRIG Auto (Real)
CLK Q EN ENO
"DB9".P_Trig[44]
%DB1.DBD146 %DB1.DBD146
"DB1_Param". "DB1_Param".
"Filling-Time- "Filling-Time-
Valve-2" IN1 OUT Valve-2"
%DB1.DBD210
"DB1_Param".
"Filling-Time-
Increment-
Decrement-
Factor"
IN2

MUL CONV
Auto (Real) Real to DInt
EN ENO EN ENO
OUT #Real[2] #Real[2] IN
%DB1.DBD146 %DB8.DBD340
"DB1_Param". "DB8_Timer".
"Filling-Time- T22_FillingVale_
Valve-2" IN1 OUT 02.PT
1000.0 IN2

Network 3: Valve 3 Timer

%DB1.DBX249.0
"DB1_Param".
%M1500.3 "Filling-Time- ADD
"AlwaysFALSE" Valve-(+)-3" P_TRIG Auto (Real)
CLK Q EN ENO
"DB9".P_Trig[45]
%DB1.DBD150 %DB1.DBD150
"DB1_Param". "DB1_Param".
"Filling-Time- "Filling-Time-
Valve-3" IN1 OUT Valve-3"
%DB1.DBD210
"DB1_Param".
"Filling-Time-
Increment-
Decrement-
Factor"
IN2

%DB1.DBX251.0
"DB1_Param".
"Filling-Time- SUB
Valve-(-)-3" P_TRIG Auto (Real)
CLK Q EN ENO
"DB9".P_Trig[46]
%DB1.DBD150 %DB1.DBD150
"DB1_Param". "DB1_Param".
"Filling-Time- "Filling-Time-
Valve-3" IN1 OUT Valve-3"
%DB1.DBD210
"DB1_Param".
"Filling-Time-
Increment-
Decrement-
Factor"
IN2

MUL CONV
Auto (Real) Real to DInt
EN ENO EN ENO
OUT #Real[3] #Real[3] IN
%DB1.DBD150 %DB8.DBD356
"DB1_Param". "DB8_Timer".
"Filling-Time- T23_FillingVale_
Valve-3" IN1 OUT 03.PT
1000.0 IN2

Network 4: Valve 4 Timer


Totally Integrated
Automation Portal

Program blocks
FillingAutoCycle [FB5]
FillingAutoCycle Properties
General
Name FillingAutoCycle Number 5 Type FB Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value Retain


Input
Output
InOut
Static
Temp
Constant

Network 1: Conveyor Running

%DB7.DBX0.4
%DB2.DBX1.2 %DB3.DBX0.0 "DB6_Output".
%DB1.DBX0.3 %DB1.DBX0.4 "DB2_Alarm". %DB2.DBX0.0 "DB3_Manual". "Q0.4_
%M1500.3 "DB1_Param". "DB1_Param". "Alarm_I1.5_ "DB2_Alarm". "Auto-0_ MainConveyor_
"AlwaysFALSE" StartMBit StopMBit EMG_PB" GeneralAlarmBit Manual-1" VFD1_R5"

%DB7.DBX0.4
"DB6_Output".
"Q0.4_
MainConveyor_
VFD1_R5"

Network 2: Machine Running

%DB7.DBX0.4
"DB6_Output". %DB2.DBX1.2 %DB3.DBX0.0
%DB1.DBX0.3 "Q0.4_ %DB1.DBX0.4 %DB2.DBX0.0 "DB2_Alarm". "DB3_Manual". %DB1.DBX0.7
%M1500.3 "DB1_Param". MainConveyor_ "DB1_Param". "DB2_Alarm". "Alarm_I1.5_ "Auto-0_ "DB1_Param".
"AlwaysFALSE" StartMBit VFD1_R5" StopMBit GeneralAlarmBit EMG_PB" Manual-1" MachineRunning

%DB1.DBX0.7
"DB1_Param".
MachineRunning

Network 3: Step 0 - Bottle In

%DB7.DBX0.0
%DB1.DBD2 %DB1.DBX0.7 "DB6_Output".
"DB1_Param". "DB1_Param". "Q0.0_GateIN_
Steps MachineRunning R1_SV1"
P_TRIG
==
CLK Q S
DInt
0 "DB9".P_Trig[0]

%DB5.DBX0.0
"DB5_Inputs".
"I0.0_ %DB1.DBX0.7
BottleINSensor_ "DB1_Param". INC
S1" MachineRunning DInt
P_TRIG
CLK Q EN ENO
"DB9".P_Trig[30]
%DB1.DBD58
"DB9".Bypass[51]
"DB1_Param".
"Bottle IN
Counter CV" IN/OUT

P#DB8.DBX0.0
"DB8_Timer".
%DB1.DBD58 T1_InGate_
Close_Delay %DB7.DBX0.0
%DB1.DBX0.7 "DB1_Param". "DB6_Output".
"Bottle IN TON "Q0.0_GateIN_
"DB1_Param". Counter CV"
MachineRunning Time R1_SV1"
>=
IN Q R
DInt
ET T#0ms
%DB1.DBD62
%DB8.DBD4
"DB1_Param". MOVE
"DB8_Timer".
"Bottle IN
T1_InGate_ EN ENO
Counter SP"
Close_Delay.PT PT 1 IN %DB1.DBD2
"DB1_Param".
OUT1 Steps
Totally Integrated
Automation Portal

Network 4: Step 1 - Bottle Gripper Set

P#DB8.DBX16.0
"DB8_Timer".
T2_
BottleGripper_ %DB7.DBX0.2
Engaged_Delay "DB6_Output".
%DB1.DBD2 %DB1.DBX0.7 "Q0.2_
"DB1_Param". "DB1_Param". TON BottleGripper_
Steps MachineRunning Time R3_SV3"
P_TRIG
==
IN Q CLK Q S
DInt
1 %DB8.DBD20 ET T#0ms "DB9".P_Trig[1]
"DB8_Timer". MOVE
T2_
BottleGripper_ EN ENO
Engaged_Delay. 2 IN
PT %DB1.DBD2
PT "DB1_Param".
OUT1 Steps

Network 5: Step 2 - Drip Tray Going Backward- Set

P#DB8.DBX32.0
"DB8_Timer".
%DB5.DBX1.0 T3_DipTray_ %DB7.DBX0.3
"DB5_Inputs". Backward_Delay "DB6_Output".
%DB1.DBD2 "I1.0_ "Q0.3_
%DB1.DBX0.7
"DB1_Param". "DB1_Param". BottleGripperFB_ TON DripTray_R4_
Steps MachineRunning S7" Time SV4"
P_TRIG
==
IN Q CLK Q R
DInt
2 ET T#0ms "DB9".P_Trig[2]
"DB9".Bypass[52] %DB8.DBD36 MOVE
"DB8_Timer".
T3_DipTray_ EN ENO
Backward_Delay. 3 IN
%DB1.DBD2
PT
PT "DB1_Param".
OUT1 Steps

Network 6: Step 3 - Station Down

P#DB8.DBX48.0
"DB8_Timer".
T4_Station_ %DB7.DBX0.6
%DB5.DBX0.7 Down_Delay "DB6_Output".
%DB1.DBD2 "Q0.6_
%DB1.DBX0.7 "DB5_Inputs".
"DB1_Param". "DB1_Param". "I0.7_ TON StationUpDown_
Steps MachineRunning DripTrayFB_S6" Time R7_SV5"
P_TRIG
==
IN Q CLK Q S
DInt
3 ET T#0ms "DB9".P_Trig[3]
%DB8.DBD52
"DB9".Bypass[53] MOVE
"DB8_Timer".
T4_Station_ EN ENO
Down_Delay.PT PT 4 IN
%DB1.DBD2
"DB1_Param".
OUT1 Steps

Network 7: Step 4 - Fillng CMD Delay Timer

P#DB8.DBX64.0
"DB8_Timer".
%DB5.DBX0.6 "T5_Filling_
"DB5_Inputs". Start_Delay_" %DB5.DBX0.3
%DB1.DBD2 "I0.6_
%DB1.DBX0.7 "DB5_Inputs".
"DB1_Param". "DB1_Param". StationDownFB_ TON "I0.3_LevelH_
Steps MachineRunning S5" Time S3" P_TRIG MOVE
==
DInt IN Q CLK Q EN ENO
4 ET T#0ms "DB9".P_Trig[4] 5 IN %DB1.DBD2
"DB9".Bypass[54] %DB8.DBD68
"DB1_Param".
"DB8_Timer". Steps
"T5_Filling_ OUT1
Start_Delay_".
PT
PT MOVE
EN ENO

%DB1.DBD32 %DB1.DBD24
"DB1_Param". "DB1_Param".
MainConvSpeed_ OUT1 MainConvSpeed
Slow IN

Network 8: Step 5 - Fillng Time - 1 to 5

You might also like