0% found this document useful (0 votes)
26 views

Code

This document describes an automation program with multiple program blocks including a Main program, Startup program, and function block. The programs contain networks of logic to control various automation functions like operating modes, sensors, outputs, and pulses. Variables and tags are defined for inputs, outputs, and internal logic.

Uploaded by

Pham Dang
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)
26 views

Code

This document describes an automation program with multiple program blocks including a Main program, Startup program, and function block. The programs contain networks of logic to control various automation functions like operating modes, sensors, outputs, and pulses. Variables and tags are defined for inputs, outputs, and internal logic.

Uploaded by

Pham Dang
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/ 24

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 Comment


Input
Initial_Call Bool Initial call of this OB
Remanence Bool =True, if remanent data are available
Temp
Constant

Network 1: SELECT OPERATING MODES

%I0.0 %Q0.0
"I_Mode" "Q_lamp_Auto"
NOT

%M10.0 %Q0.1
"M_Mode" "Q_lamp_Manu"

Network 2: AUTO MODE

%Q0.0 %FC3
"Q_lamp_Auto" "FC_AUTO"
EN ENO

Network 3: MAUNAL MODE

%Q0.1 %FC2
"Q_lamp_Manu" "FC_MANU"
EN ENO

Network 4: READ ANALOG SENSOR

%M15.0
"TG_Simulation_ %FC1
PB" "FC_Read_Loadshell"
EN ENO

Network 5: OUTPUT

%FC4 %FC6
"FC_OUTPUT" "FC_LOW_SENSORS"
EN ENO EN ENO

Network 6: SIMULATION

%M15.0
"TG_Simulation_ %FC5
PB" "FC_SIMULATION"
EN ENO

Network 7: PULSE 100MS


Totally Integrated
Automation Portal

%DB1
"TIME_PULSE_
100MS"
%M17.1 %M17.1
%M1.3 "TG_PULSE_ TON "TG_PULSE_
"AlwaysFALSE" 100MS" Time 100MS"
IN Q P
T#100ms PT ET T#0ms %M44.7
"P40"

Network 8: STOP

%M20.0
%I0.2 "Q_Auto_V1_
"I_Stop" Stone"
RESET_BF
100
%M10.2
"M_Stop" MOVE MOVE MOVE
EN ENO EN ENO EN ENO
0 IN 0 IN 0 IN
%MW304 %MW300 %MW302
"Act_mixing_ "Act_time_dry_ "Act_time_wet_
OUT1 batch" OUT1 mix" OUT1 mix"

%M15.0
"TG_Simulation_
PB"
RESET_BF
50

%M40.0
"P1"
RESET_BF
50
Totally Integrated
Automation Portal

Program blocks
Startup [OB100]
Startup Properties
General
Name Startup Number 100 Type OB Language LAD
Numbering Automatic
Information
Title "Complete Restart" Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value Comment


Input
LostRetentive Bool True if retentive data are lost
LostRTC Bool True if date and time are lost
Temp
Constant

Network 1:

MOVE MOVE MOVE


EN ENO EN ENO EN ENO
2 IN 10 IN 10 IN
%MW204 %MW200 %MW202
"Set_mixing_ "Set_time_mix_ "Set_time_mix_
OUT1 batch" OUT1 dry" OUT1 wet"
Totally Integrated
Automation Portal

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

Name Data type Default value Comment


Input
Output
InOut
Temp
Constant
Return
FC_Read_Loadshell Void

Network 1: STONE LOADSHELL (0-1000KG)

NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN 0.0 MIN
%MD350 %MD306
%IW64 "TG_STONE_ %MD350 "Act_stone_
"I_Loadcell_ OUT LOADSHELL" "TG_STONE_ OUT weight"
Stone" VALUE LOADSHELL" VALUE
27648 MAX 1000.0 MAX

Network 2: SAND LOADSHELL (0-1000KG)

NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN 0.0 MIN
%MD354 %MD310
%IW66 "TG_SAND_ %MD354 "Act_sand_
"I_Loadcell_Sand" VALUE OUT LOADSHELL" "TG_SAND_ OUT weight"
27648 MAX LOADSHELL" VALUE
1000.0 MAX

Network 3: WATER LOADSHELL (0-500KG)

NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN 0.0 MIN
%MD358 %MD314
%IW68 "TG_WATER_ %MD358 "Act_water_
"I_Loadcell_ OUT LOADSHELL" "TG_WATER_ OUT weight"
Water" VALUE LOADSHELL" VALUE
27648 MAX 1000.0 MAX

Network 4: ADMIXTURE LOADSHELL (0-500KG)

NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN 0.0 MIN
%MD362 %MD318
%IW70 "TG_ADMIXTURE_ %MD362 "Act_admixture_
"I_Loadcell_ OUT LOADSHELL" "TG_ADMIXTURE_ OUT weight"
Admixture" VALUE LOADSHELL" VALUE
27648 MAX 500.0 MAX

Network 5: CEMENT LOADSHELL (0-500KG)


Totally Integrated
Automation Portal

NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN 0.0 MIN
%MD366 %MD322
%IW72 "TG_CEMENT_ %MD366 "Act_cement_
"I_Loadcell_ OUT LOADSHELL" "TG_CEMENT_ OUT weight"
Cement" VALUE LOADSHELL" VALUE
27648 MAX 500.0 MAX
Totally Integrated
Automation Portal

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

Name Data type Default value Comment


Input
Output
InOut
Temp
Constant
Return
FC_MANU Void

Network 1: INTERMEDIATE OUTPUT FOR STONE V1 (PROVIDE)

%M30.0
%I0.3 "Q_Manual_V1_
"I_SW_V1_Stone" Stone"

%M10.3
"M_SW_V1_Stone"

Network 2: INTERMEDIATE OUTPUT FOR STONE V2 (EXHAUST)

%M30.1
%I0.4 "Q_Manual_V2_
"I_SW_V2_Stone" Stone"

%M10.4
"M_SW_V2_Stone"

Network 3: INTERMEDIATE OUTPUT FOR SAND V1 (PROVIDE)

%M30.2
%I0.5 "Q_Manual_V1_
"I_SW_V1_Sand" Sand"

%M10.5
"M_SW_V1_Sand"

Network 4: INTERMEDIATE OUTPUT FOR SAND V2 (EXHAUST)

%M30.3
%I0.6 "Q_Manual_V2_
"I_SW_V2_Sand" Sand"

%M10.6
"M_SW_V2_Sand"

Network 5: INTERMEDIATE OUTPUT FOR WATER V1 (PROVIDE)

%M30.4
%I0.7 "Q_Manual_V1_
"I_SW_V1_Water" Water"

%M10.7
"M_SW_V1_Water"
Totally Integrated
Automation Portal

Network 6: INTERMEDIATE OUTPUT FOR WATER V2 (EXHAUST)

%M30.5
%I1.0 "Q_Manual_V2_
"I_SW_V2_Water" Water"

%M11.0
"M_SW_V2_Water"

Network 7: INTERMEDIATE OUTPUT FOR ADMIXTURE V1 (PROVIDE)

%I1.1 %M30.6
"I_SW_V1_ "Q_Manual_V1_
Admixture" Admixture"

%M11.1
"M_SW_V1_
Admixture"

Network 8: INTERMEDIATE OUTPUT FOR ADIXTURE V2 (EXHAUST)

%I1.2 %M30.7
"I_SW_V2_ "Q_Manual_V2_
Admixture" Admixture"

%M11.2
"M_SW_V2_
Admixture"

Network 9: INTERMEDIATE OUTPUT FOR CEMENT XILO MOTOR

%I1.3 %M31.0
"I_SW_Cement_ "Q_Manual_
Xilo" Cement_Xilo"

%M11.3
"M_SW_Cement_
Xilo"

Network 10: INTERMEDIATE OUTPUT FOR CEMENT XILO EXHAUST VALVE

%M31.1
%I1.4 "Q_Manual_V_
"I_SW_V2_XM" Cement"

%M11.4
"M_SW_V2_
Cement"

Network 11: INTERMEDIATE OUTPUT FOR CONVEYOR MOTOR

%M31.2
%I1.5 "Q_Manual_
"I_SW_Conveyor" Conveyor"

%M11.5
"M_SW_Conveyor"

Network 12: INTERMEDIATE OUTPUT FOR MIXING MOTOR


Totally Integrated
Automation Portal

%I2.6 %M31.3
"I_SW_Mixing_ "Q_Manual_
Motor" Mixing_Motor"

%M11.6
"M_SW_Mixing_
motor"

Network 13: INTERMEDIATE OUTPUT FOR MIXING TANK EXHAUST VALVE

%I2.7 %M31.4
"I_SW_Mixing_ "Q_Manual_V_
valve" Mixing_Tank"

%M11.7
"M_SW_Mixing_
Valve"
Totally Integrated
Automation Portal

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

Name Data type Default value Comment


Input
Output
InOut
Temp
Constant
Return
FC_AUTO Void

Network 1: LED FAULT

%I2.0
%M1.3 "I_Sensor_Low_ %Q0.2
"AlwaysFALSE" Stone" "Q_lamp_Fault"

%M12.0
"M_Sensor_Low_
Stone"

%I2.1
"I_Sensor_Low_
Sand"

%M12.1
"M_Sensor_Low_
Sand"

%I2.2
"I_Sensor_Low_
Water"

%M12.2
"M_Sensor_Low_
Water"

%I2.3
"I_Sensor_Low_
Admixture"

%M12.3
"M_Sensor_Low_
Admixture"

%I2.4
"I_Sensor_Low_
Cement"

%M12.4
"M_Sensor_Low_
Cement"

Network 2: OPERATING CONDITION OK

%MW204 %MW200 %MW202 %MD206 %MD210 %MD214 %MD218 %MD222 %M15.6


%Q0.2 "Set_mixing_ "Set_time_mix_ "Set_time_mix_ "Set_stone_ "Set_sand_ "Set_water_ "Set_admixture_ "Set_cement_ "TG_Operate_
batch" dry" wet" weight" weight" weight" weight" weight" Condition"
"Q_lamp_Fault"
> > > > > > > >
Int Int Int Real Real Real Real Real
0 0 0 0.0 0.0 0.0 0.0 0.0

Network 3: STEP 1: EXHAUST THE INGREDIENT TO THE WEIGHING TANK


Totally Integrated
Automation Portal

%M15.6 %M20.0 %M20.2 %M20.4 %M20.6 %M21.0


"TG_Operate_ %I0.1 %M15.1 "Q_Auto_V1_ "Q_Auto_V1_ "Q_Auto_V1_ "Q_Auto_V1_ "Q_Auto_ %M15.7
Condition" "I_Start" "TG_Step1" Stone" Sand" Water" Admixture" Cement_Xilo" "TG_REPEAT"
S S S S S S R

%M10.1
"M_Start"

%M15.7
"TG_REPEAT"

Network 4: STEP 2: WEIGHING THE STONE. SAND AND CEMENT THEN EXHAUSTING INGREDIENT TO THE MIXING TANK
Totally Integrated
Automation Portal

%M20.0 %MD306 %M20.1 %M21.2 %M20.0


%M15.1 "Q_Auto_V1_ "Act_stone_ "Q_Auto_V2_ "Q_Auto_ "Q_Auto_V1_
Stone" weight" Stone" Conveyor" Stone"
"TG_Step1"
>=
S S R
Real
%MD206
"Set_stone_
weight"

%MD310
%M20.2 %M20.3 %M21.2 %M20.2
"Q_Auto_V1_ "Act_sand_ "Q_Auto_V2_ "Q_Auto_ "Q_Auto_V1_
Sand" weight" Sand" Conveyor" Sand"
>=
S S R
Real
%MD210
"Set_sand_
weight"

%MD322 %M21.1 %M21.0


%Q2.3 "Act_cement_ "Q_Auto_V_ "Q_Auto_
weight" Cement" Cement_Xilo"
"Q_Cement_Xilo"
>=
S R
Real
%MD222
"Set_cement_
weight"

%M20.1 %MD306 %M16.0 %M20.1


"Q_Auto_V2_ "Act_stone_ "TG_STONE_ "Q_Auto_V2_
Stone" weight" EXHAUST_DONE" Stone"
<=
S R
Real
0.0

%M20.3 %MD310 %M16.1 %M20.3


"Q_Auto_V2_ "Act_sand_ "TG_SAND_ "Q_Auto_V2_
Sand" weight" EXHAUST_DONE" Sand"
<=
S R
Real
0.0

%M21.1 %MD322 %M16.2 %M21.1


"Q_Auto_V_ "Act_cement_ "TG_CEMENT_ "Q_Auto_V_
Cement" weight" EXHAUST_DONE" Cement"
<=
S R
Real
0.0

%DB2
"TIME_DELAY_
CONVEYOR"
%M16.0 %M16.1 %M21.2 %M16.3 %M16.1 %M16.0
"TG_STONE_ "TG_SAND_ TON "Q_Auto_ "TG_CONVEYOR_ "TG_SAND_ "TG_STONE_
EXHAUST_DONE" EXHAUST_DONE" Time Conveyor" DONE" EXHAUST_DONE" EXHAUST_DONE"
IN Q R S R R
T#5S PT ET T#0ms

%M16.2 %M16.3 %M16.2 %M16.3


"TG_CEMENT_ "TG_CONVEYOR_ %M15.2 %M15.1 "TG_CEMENT_ "TG_CONVEYOR_
EXHAUST_DONE" DONE" "TG_Step2" "TG_Step1" EXHAUST_DONE" DONE"
S R R R

%M20.4 %MD314 %M16.4 %M20.4


"Q_Auto_V1_ "Act_water_ "TG_WATER_ "Q_Auto_V1_
Water" weight" WEIGHING_DONE" Water"
>=
S R
Real
%MD214
"Set_water_
weight"

%M20.6 %MD318 %M16.5 %M20.6


"Act_admixture_
"Q_Auto_V1_ "TG_ADMIXTURE_ "Q_Auto_V1_
weight"
Admixture" WEIGHING_DONE" Admixture"
>=
S R
Real
%MD218
"Set_admixture_
weight"

Network 5: STEP 3: DRY MIX


Totally Integrated
Automation Portal

%M21.3
%M15.2 %M17.2 "Q_Auto_Mixing_
"TG_Step2" P_TRIG "TG_DRY_MIX" Motor"
CLK Q S S
%M40.0
"P1"

%M17.2 %M0.5 ADD


"TG_DRY_MIX" "Clock_1Hz" P_TRIG Auto (Int)
CLK Q EN ENO
%M40.1
%MW300 %MW300
"P2"
"Act_time_dry_ "Act_time_dry_
mix" IN1 OUT mix"
1 IN2

%MW300 %M16.4 %M20.5 %M16.4


"Act_time_dry_ "TG_WATER_ "Q_Auto_V2_ "TG_WATER_
mix" WEIGHING_DONE" Water" WEIGHING_DONE"
>=
S R
Int
%MW200
"Set_time_mix_
%M16.5 %M20.7 %M16.5
dry"
"TG_ADMIXTURE_ "Q_Auto_V2_ "TG_ADMIXTURE_
WEIGHING_DONE" Admixture" WEIGHING_DONE"
S R

MOVE
EN ENO
0 IN %MW300
"Act_time_dry_
OUT1 mix"

%M17.2
"TG_DRY_MIX"
R

%M20.5 %MD314 %M16.6 %M20.5


"Q_Auto_V2_ "Act_water_ "TG_WATER_ "Q_Auto_V2_
Water" weight" EXHAUST_DONE" Water"
<=
S R
Real
0.0

%M20.7 %MD318 %M16.7 %M20.7


"Q_Auto_V2_ "Act_admixture_ "TG_ADMIXTURE_ "Q_Auto_V2_
Admixture" weight" EXHAUST_DONE" Admixture"
<=
S R
Real
0.0

%M16.6 %M16.7 %M16.7 %M16.6


"TG_WATER_ "TG_ADMIXTURE_ %M15.3 "TG_ADMIXTURE_ "TG_WATER_ %M15.2
EXHAUST_DONE" EXHAUST_DONE" "TG_Step3" EXHAUST_DONE" EXHAUST_DONE" "TG_Step2"
S R R R

Network 6: STEP 4: WET MIX

%M15.3 %M0.5 ADD


"TG_Step3" "Clock_1Hz" P_TRIG Auto (Int)
CLK Q EN ENO
%M40.2
%MW302 %MW302
"P3"
"Act_time_wet_ "Act_time_wet_
mix" IN1 OUT mix"
1 IN2

%MW302 %M21.3
"Act_time_wet_ %M15.4 "Q_Auto_Mixing_ %M15.3
mix" Motor"
"TG_Step4" "TG_Step3"
>=
S R R
Int
%MW202
"Set_time_mix_ MOVE
wet"
EN ENO
0 IN %MW302
"Act_time_wet_
OUT1 mix"

Network 7: STEP 4: EXHAUST THE MIXING TANK VALVE


Totally Integrated
Automation Portal

%M21.4
%M15.4 "Q_Auto_V_
"TG_Step4" P_TRIG Mixing_Tank"
CLK Q S
%M40.3
"P4"

%M21.4 %I2.5 %M21.4


"Q_Auto_V_ "I_Sensor_Low_ %M15.5 "Q_Auto_V_ %M15.4
Mixing_Tank" Mixing" N_TRIG "TG_Step5" Mixing_Tank" "TG_Step4"
CLK Q S R R
%M40.3
"P4"
%M12.5
"M_Sensor_Low_
Mixing_tank"

Network 8: STEP 5: REPEAT THE PROCESS

%MW304
%M15.5 ADD "Act_mixing_ %M15.7
Auto (Int) batch"
"TG_Step5" P_TRIG "TG_REPEAT"
<
CLK Q EN ENO S
Int
%M40.4 %MW204
%MW304 %MW304
"P5" "Set_mixing_
"Act_mixing_ "Act_mixing_
batch" batch" batch"
IN1 OUT
1 IN2

%MW304
%M17.0
"Act_mixing_ "TG_DONE_
batch" PROCESS"
>=
S
Int
%MW204
"Set_mixing_
batch"

%M15.5
"TG_Step5"
R
Totally Integrated
Automation Portal

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

Name Data type Default value Comment


Input
Output
InOut
Temp
Constant
Return
FC_OUTPUT Void

Network 1: OUTPUT FOR STONE V1 (PROVIDE)

%M20.0
%Q0.0 "Q_Auto_V1_ %Q0.2 %Q0.3
"Q_lamp_Auto" Stone" "Q_lamp_Fault" "Q_V1_Stone"

%M30.0
%Q0.1 "Q_Manual_V1_
"Q_lamp_Manu" Stone"

Network 2: OUTPUT FOR STONE V2 (EXHAUST)

%M20.1
%Q0.0 "Q_Auto_V2_ %Q0.2 %Q0.4
"Q_lamp_Auto" Stone" "Q_lamp_Fault" "Q_V2_Stone"

%M30.1
%Q0.1 "Q_Manual_V2_
"Q_lamp_Manu" Stone"

Network 3: OUTPUT FOR SAND V1 (PROVIDE)

%M20.2
%Q0.0 "Q_Auto_V1_ %Q0.2 %Q0.5
"Q_lamp_Auto" Sand" "Q_lamp_Fault" "Q_V1_Sand"

%M30.2
%Q0.1 "Q_Manual_V1_
"Q_lamp_Manu" Sand"

Network 4: OUTPUT FOR SAND V2 (EXHAUST)

%M20.3
%Q0.0 "Q_Auto_V2_ %Q0.2 %Q0.6
"Q_lamp_Auto" Sand" "Q_lamp_Fault" "Q_V2_Sand"

%M30.3
%Q0.1 "Q_Manual_V2_
"Q_lamp_Manu" Sand"

Network 5: OUTPUT FOR WATER V1 (PROVIDE)


Totally Integrated
Automation Portal

%M20.4
%Q0.0 "Q_Auto_V1_ %Q0.2 %Q0.7
"Q_lamp_Auto" Water" "Q_lamp_Fault" "Q_V1_Water"

%M30.4
%Q0.1 "Q_Manual_V1_
"Q_lamp_Manu" Water"

Network 6: OUTPUT FOR WATER V2 (EXHAUST)

%M20.5
%Q0.0 "Q_Auto_V2_ %Q0.2 %Q2.0
"Q_lamp_Auto" Water" "Q_lamp_Fault" "Q_V2_Water"

%M30.5
%Q0.1 "Q_Manual_V2_
"Q_lamp_Manu" Water"

Network 7: OUTPUT FOR ADMIXTURE V1 (PROVIDE)

%M20.6 %Q2.1
%Q0.0 "Q_Auto_V1_ %Q0.2 "Q_V1_
"Q_lamp_Auto" Admixture" "Q_lamp_Fault" Admixture"

%M30.6
%Q0.1 "Q_Manual_V1_
"Q_lamp_Manu" Admixture"

Network 8: OUTPUT FOR ADMIXTURE V2 (EXHAUST)

%M20.7 %Q2.2
%Q0.0 "Q_Auto_V2_ %Q0.2 "Q_V2_
"Q_lamp_Auto" Admixture" "Q_lamp_Fault" Admixture"

%M30.7
%Q0.1 "Q_Manual_V2_
"Q_lamp_Manu" Admixture"

Network 9: OUTPUT FOR CEMENT XILO MOTOR

%M21.0
%Q0.0 "Q_Auto_ %Q0.2 %Q2.3
"Q_lamp_Auto" Cement_Xilo" "Q_lamp_Fault" "Q_Cement_Xilo"

%M31.0
%Q0.1 "Q_Manual_
"Q_lamp_Manu" Cement_Xilo"

Network 10: OUTPUT FOR CEMENT EXHAUST VALVE

%M21.1
%Q0.0 "Q_Auto_V_ %Q0.2 %Q2.4
"Q_lamp_Auto" Cement" "Q_lamp_Fault" "Q_V_Cement"

%M31.1
%Q0.1 "Q_Manual_V_
"Q_lamp_Manu" Cement"

Network 11: OUTPUT FOR CONVEYOR MOTORS


Totally Integrated
Automation Portal

%M21.2
%Q0.0 "Q_Auto_ %Q0.2 %Q2.5
"Q_lamp_Auto" Conveyor" "Q_lamp_Fault" "Q_Conveyor"

%M31.2
%Q0.1 "Q_Manual_
"Q_lamp_Manu" Conveyor"

Network 12: OUTPUT FOR MIXING MOTOR

%M21.3
%Q0.0 "Q_Auto_Mixing_ %Q0.2 %Q2.6
"Q_lamp_Auto" Motor" "Q_lamp_Fault" "Q_Mixing_Motor"

%M31.3
%Q0.1 "Q_Manual_
"Q_lamp_Manu" Mixing_Motor"

Network 13: OUTPUT FOR MIXING TANK EXHAUST VALVE

%M21.4 %Q2.7
%Q0.0 "Q_Auto_V_ %Q0.2 "Q_V_Mxing_
"Q_lamp_Auto" Mixing_Tank" "Q_lamp_Fault" Tank"

%M31.4
%Q0.1 "Q_Manual_V_
"Q_lamp_Manu" Mixing_Tank"
Totally Integrated
Automation Portal

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

Name Data type Default value Comment


Input
Output
InOut
Temp
Constant
Return
FC_SIMULATION Void

Network 1: INCREASE_DECREASE STONE WEIGHT

%M17.1
%M1.3 %Q0.3 "TG_PULSE_ ADD
"AlwaysFALSE" "Q_V1_Stone" 100MS" Auto (Real)
EN ENO

%MD306 %MD306
"Act_stone_ "Act_stone_
weight" IN1 OUT weight"
7.242 IN2

%M17.1
%Q0.4 "TG_PULSE_ SUB
"Q_V2_Stone" 100MS" Auto (Real)
EN ENO

%MD306 %MD306
"Act_stone_ "Act_stone_
weight" IN1 OUT weight"
7.342 IN2

Network 2: INCREASE_DECREASE SAND WEIGHT

%M17.1
%M1.3 %Q0.5 "TG_PULSE_ ADD
"AlwaysFALSE" "Q_V1_Sand" 100MS" Auto (Real)
EN ENO

%MD310 %MD310
"Act_sand_ "Act_sand_
weight" IN1 OUT weight"
5.742 IN2

%M17.1
%Q0.6 "TG_PULSE_ SUB
"Q_V2_Sand" 100MS" Auto (Real)
EN ENO

%MD310 %MD310
"Act_sand_ "Act_sand_
weight" IN1 OUT weight"
5.842 IN2

Network 3: INCREASE_DECREASE WATER WEIGHT

%M17.1
%M1.3 %Q0.7 "TG_PULSE_ ADD
"AlwaysFALSE" "Q_V1_Water" 100MS" Auto (Real)
EN ENO

%MD314 %MD314
"Act_water_ "Act_water_
weight" IN1 OUT weight"
2.025 IN2

%MD314 %M17.1
%Q2.0 "Act_water_ "TG_PULSE_ SUB
weight" 100MS" Auto (Real)
"Q_V2_Water"
>
Real EN ENO
0.0 %MD314 %MD314
"Act_water_ "Act_water_
weight" IN1 OUT weight"
2.147 IN2

Network 4: INCREASE_DECREASE ADMIXTURE WEIGHT


Totally Integrated
Automation Portal

%Q2.1 %M17.1
%M1.3 "Q_V1_ "TG_PULSE_ ADD
"AlwaysFALSE" Admixture" 100MS" Auto (Real)
EN ENO

%MD318 %MD318
"Act_admixture_ "Act_admixture_
weight" IN1 OUT weight"
0.942 IN2

%Q2.2 %MD318 %M17.1


"Q_V2_ "Act_admixture_ "TG_PULSE_ SUB
Admixture" weight" 100MS" Auto (Real)
>
Real EN ENO
0.0 %MD318 %MD318
"Act_admixture_ "Act_admixture_
weight" IN1 OUT weight"
0.957 IN2

Network 5: INCREASE_DECREASE CEMENT WEIGHT

%M17.1
%M1.3 %Q2.3 "TG_PULSE_ ADD
"AlwaysFALSE" "Q_Cement_Xilo" 100MS" Auto (Real)
EN ENO

%MD322 %MD322
"Act_cement_ "Act_cement_
weight" IN1 OUT weight"
1.342 IN2

%MD322 %M17.1
%Q2.4 "Act_cement_ "TG_PULSE_ SUB
weight" 100MS" Auto (Real)
"Q_V_Cement"
>
Real EN ENO
0.0 %MD322 %MD322
"Act_cement_ "Act_cement_
weight" IN1 OUT weight"
1.416 IN2

Network 6: SIMULATING MIXING TANK LOW SENSOR

%DB3
"SIMU_MIXING_
LOW_SENSOR"
%M21.1 %M12.5
%M1.3 "Q_Auto_V_ TON "M_Sensor_Low_
"AlwaysFALSE" Cement" Time Mixing_tank"
IN Q S
T#3S PT ET T#0ms

%M21.2
"Q_Auto_
Conveyor"

%DB4
"DONE_SIMU_
MIXING_LOW_
SENSOR"
%M21.4 %M12.5
"Q_Auto_V_ TON "M_Sensor_Low_
Mixing_Tank" Time Mixing_tank"
IN Q R
T#5s PT ET T#0ms
Totally Integrated
Automation Portal

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

Name Data type Default value Comment


Input
Output
InOut
Temp
Constant
Return
FC_LOW_SENSORS Void

Network 1: LOW SENSOR STONE

%I2.0 %M51.0
"I_Sensor_Low_ "ACTIVATE_LOW_
Stone" STONE"

%M12.0
"M_Sensor_Low_
Stone"

Network 2: LOW SENSOR SAND

%I2.1 %M61.0
"I_Sensor_Low_ "ACTIVATE_LOW_
Sand" SAND"

%M12.1
"M_Sensor_Low_
Sand"

Network 3: LOW SENSOR WATER

%I2.2 %M71.0
"I_Sensor_Low_ "ACTIVATE_LOW_
Water" WATER"

%M12.2
"M_Sensor_Low_
Water"

Network 4: LOW SENSOR ADMIXTURE

%I2.3 %M81.0
"I_Sensor_Low_ "ACTIVATE_LOW_
Admixture" ADMIXTURE"

%M12.3
"M_Sensor_Low_
Admixture"

Network 5: LOW SENSOR CEMENT


Totally Integrated
Automation Portal

%I2.4 %M91.0
"I_Sensor_Low_ "ACTIVATE_LOW_
Cement" CEMENT"

%M12.4
"M_Sensor_Low_
Cement"

Network 6: LOW SENSOR MIXING TANK

%I2.5 %M101.0
"I_Sensor_Low_ "ACTIVATE_LOW_
Mixing" MIXING_TANK"

%M12.5
"M_Sensor_Low_
Mixing_tank"
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


TIME_PULSE_100MS [DB1]
TIME_PULSE_100MS Properties
General
Name TIME_PULSE_100MS Number 1 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


TIME_DELAY_CONVEYOR [DB2]
TIME_DELAY_CONVEYOR Properties
General
Name TIME_DELAY_CONVEYOR Number 2 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


SIMU_MIXING_LOW_SENSOR [DB3]
SIMU_MIXING_LOW_SENSOR Properties
General
Name SIMU_MIXING_LOW_SEN‐ Number 3 Type DB Language DB
SOR
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


DONE_SIMU_MIXING_LOW_SENSOR [DB4]
DONE_SIMU_MIXING_LOW_SENSOR Properties
General
Name DONE_SIMU_MIX‐ Number 4 Type DB Language DB
ING_LOW_SENSOR
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False

You might also like