You are on page 1of 8

Totally Integrated

Automation Portal

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 Supervision Comment


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

Network 1: Scaling of Analoge Signal Value

%FC105
"SCALE"
EN ENO
%IW64 %MW116
"AI_Load_Cell" IN Ret_Val "Error_Value"
%MD104 %MD100
"HL_Load_Cell" HI_LIM OUT "Read_Weight"
%MD108
"LL_Load_Cell" LO_LIM
%M50.1
"BiPolar_Bit" BIPOLAR

Symbol Address Type Comment


"AI_Load_Cell" %IW64 Word
Totally Integrated
Automation Portal

Symbol Address Type Comment


"BiPolar_Bit" %M50.1 Bool
"Error_Value" %MW116 Word
"HL_Load_Cell" %MD104 Real
"LL_Load_Cell" %MD108 Real
"Read_Weight" %MD100 Real

Network 2: Calibration of Weight to Zero

%M50.0
"Calibration_Bit" MOVE
EN ENO
%MD100 %MD118
"Read_Weight" IN "Calibration_
OUT1 Error_Value"

Symbol Address Type Comment


"Calibration_Bit" %M50.0 Bool
"Calibration_Error_Value" %MD118 Real
"Read_Weight" %MD100 Real

Network 3: Dispaly Weight after Calibration

SUB
Auto (Real)
EN ENO
%MD100 %MD122
"Read_Weight" IN1 "Calibrated_
OUT Display_Value"
%MD118
"Calibration_
Error_Value" IN2

Symbol Address Type Comment


"Calibrated_Display_Value" %MD122 Real
Totally Integrated
Automation Portal

Symbol Address Type Comment


"Calibration_Error_Value" %MD118 Real
"Read_Weight" %MD100 Real

Network 4: Tare weight

%M50.2
"Tare_Weight_Bit" MOVE
EN ENO

%MD122 %MD126
"Calibrated_ "Tare_weight_
Display_Value" IN OUT1 Value"

Symbol Address Type Comment


"Calibrated_Display_Value" %MD122 Real
"Tare_Weight_Bit" %M50.2 Bool
"Tare_weight_Value" %MD126 Real

Network 5: Material_Weight
Totally Integrated
Automation Portal

SUB
Auto (Real)
EN ENO

%MD122 %MD128
"Calibrated_ "Material _
Display_Value" IN1 OUT Weight"

%MD126
"Tare_weight_
Value" IN2

ADD
Auto (Real)
EN ENO

%MD128 %MD132
"Material _ OUT "Total_Weight"
Weight" IN1

%MD126
"Tare_weight_
Value" IN2

Symbol Address Type Comment


"Calibrated_Display_Value" %MD122 Real
"Material _Weight" %MD128 Real
"Tare_weight_Value" %MD126 Real
"Total_Weight" %MD132 Real

Network 6: Start a Water Pump to Fill in a Tank

%I0.0 %Q0.0
"S1_Start" "Q1_Pump"

Symbol Address Type Comment


"Q1_Pump" %Q0.0 Bool start a water pump to fill in a tank
"S1_Start" %I0.0 Bool Start the process
Totally Integrated
Automation Portal

Network 7: Setpoint of Weight

MUL
Auto (Real)
EN ENO
%MD136 %MD140
"Setpoint_Weight" IN1 OUT "80%_Setpoint"
0.8 IN2

Symbol Address Type Comment


"80%_Setpoint" %MD140 Real
"Setpoint_Weight" %MD136 Real

Network 8: Cycle initional after 80%

%M50.3
"Cycle_per_
%MD140 %MD136 Second_FIlling
"80%_Setpoint" "Setpoint_Weight" _Bit"
> <=
Real Real
%MD128 %MD128
"Material _ "Material _
Weight" Weight"

Symbol Address Type Comment


"80%_Setpoint" %MD140 Real
"Cycle_per_Second_FIlling _Bit" %M50.3 Bool
"Material _Weight" %MD128 Real
"Setpoint_Weight" %MD136 Real

Network 9: Start filling before 80%


Totally Integrated
Automation Portal

%M50.3
"Cycle_per_
%I0.0 Second_FIlling %M50.4
"S1_Start" _Bit" "First_Filling_Bit"

Symbol Address Type Comment


"Cycle_per_Second_FIlling _Bit" %M50.3 Bool
"First_Filling_Bit" %M50.4 Bool
"S1_Start" %I0.0 Bool Start the process

Network 10: First Timer Bit for for filling 80%

%DB1
%M50.3
"IEC_Timer_0_DB"
"Cycle_per_ %M50.5 %M50.5
%I0.0 Second_FIlling "Timmer_Filling_ TON "Timmer_Filling_
"S1_Start" _Bit" Delay_Bit" Time Delay_Bit"
IN Q
T#1S PT ET ...

Symbol Address Type Comment


"Cycle_per_Second_FIlling _Bit" %M50.3 Bool
"S1_Start" %I0.0 Bool Start the process
"Timmer_Filling_Delay_Bit" %M50.5 Bool

Network 11: Second Timer Bit for for filling 100%


Totally Integrated
Automation Portal

%DB2
"IEC_Timer_0_
DB_1"
%M50.5 %M50.6
"Timmer_Filling_ TOF "Timmer _
Delay_Bit" Time Filling_1S_Bit"
IN Q
T#1S PT ET ...

Symbol Address Type Comment


"Timmer _Filling_1S_Bit" %M50.6 Bool
"Timmer_Filling_Delay_Bit" %M50.5 Bool

Network 12: start a water pump to fill in a tank

%M50.4 %Q0.0
"First_Filling_Bit" "Q1_Pump"

%M50.6
"Timmer _
Filling_1S_Bit"

Symbol Address Type Comment


"First_Filling_Bit" %M50.4 Bool
"Q1_Pump" %Q0.0 Bool start a water pump to fill in a tank
"Timmer _Filling_1S_Bit" %M50.6 Bool

Network 13: Tell operator that process is complete


Totally Integrated
Automation Portal

%MD148
"Tolerance_for_
SUB Data
%I0.0 %Q0.1
Auto (Real) Comparsion"
"S1_Start" "Q2_Indication"
>=
EN ENO Real
%MD136 %MD128
%MD148
"Setpoint_Weight" IN1 "Material _
"Tolerance_for_
Data Weight"
%MD144
"Tolerance" IN2 OUT Comparsion"

Symbol Address Type Comment


"Material _Weight" %MD128 Real
"Q2_Indication" %Q0.1 Bool Tell operator that process is complete
"S1_Start" %I0.0 Bool Start the process
"Setpoint_Weight" %MD136 Real
"Tolerance" %MD144 Real
"Tolerance_for_Data Comparsion" %MD148 Real

Network 14: Open the Solenoid Valve Upon reception of Signal

%Q0.2
%I0.1 "Q3_Solenoid_
"S2_Discharge" Valve"

Symbol Address Type Comment


"Q3_Solenoid_Valve" %Q0.2 Bool Open the Solenoid Valve Upon reception of Signal
"S2_Discharge" %I0.1 Bool Discharge the material

You might also like