SIM - TIA - V15 / PLC - 1 (CPU 1516-3 PN/DP) / Program Blocks: Main (OB1)
SIM - TIA - V15 / PLC - 1 (CPU 1516-3 PN/DP) / Program Blocks: Main (OB1)
SIM - TIA - V15 / PLC - 1 (CPU 1516-3 PN/DP) / Program Blocks: Main (OB1)
Automation Portal
Main
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
%Q0.0
"POWER_LAMP"
%I0.2 %Q1.0
"EM" "MOTOR_2_FOR"
R
%I0.1 %Q0.7
"STOP" "MOTOR_2_REV"
R
%M1.1 %Q1.2
"MOVE_PRODUCT" "MOTOR_3_FOR"
R
%Q1.1
"MOTOR_3_REV"
R
%M0.0
"RUN_TG"
%M0.0 %Q0.1
"RUN_TG" "RUN_LAMP"
%M0.0 %Q0.2
"RUN_TG" "STOP_LAMP"
%M0.2
"DONE_1"
R
%DB1
"IEC_Counter_
0_DB"
%MW10
%M0.0 %M0.1
"RUN_TG" "CV_S1" "RESET_1"
==
S
Int
3
%DB4
"IEC_Timer_0_
DB_1"
TON %I0.4
Time "LM1_VALVE_1"
IN Q S
T#1S PT ET ...
%DB5
"IEC_Timer_0_
DB_2"
TON %I0.5
Time "LM1_VALVE_2"
IN Q S
T#1S PT ET ...
%DB2
"IEC_Counter_
0_DB_1"
2.1 ( Page1 - 4)
Totally Integrated
Automation Portal
%I0.4
"LM1_VALVE_1"
R
%I0.5
"LM1_VALVE_2"
R
%M0.7
"DONE_2"
S
%DB3
"IEC_Timer_0_DB"
%M0.0 %Q0.6 TON %Q1.0
"RUN_TG" "VALVE_3" Time "MOTOR_2_FOR"
IN Q S
T#1S PT ET ...
%Q0.7
"MOTOR_2_REV"
R
%I0.7
"LM1_M2"
R
%M0.2
"DONE_1"
R
1
%M0.7 %I1.0 %Q1.0
"DONE_2" "LM2_M2" "MOTOR_2_FOR"
R
%DB6
"IEC_Timer_0_
DB_3"
TON %Q0.6
Time "VALVE_3"
IN Q R
T#1S PT ET ...
%M0.4
%M0.7 %M0.4 %Q0.7 "CT1"
"DONE_2" "CT1" "MOTOR_2_REV" S
S
%Q1.0
"MOTOR_2_FOR"
R
%I1.0
"LM2_M2"
R
%Q1.3
"VALVE_4"
S
%DB8
"IEC_Timer_0_
DB_5"
2.1 ( Page1 - 7)
Totally Integrated
Automation Portal
%I1.2
"LM2_M3"
R
%DB12
"IEC_Timer_0_
DB_9"
TON %I0.7
Time "LM1_M2"
IN Q S
T#3S PT ET ...
%I1.1
%M0.7 %I0.7 %Q0.7 "LM1_M3"
"DONE_2" "LM1_M2" "MOTOR_2_REV" S
R
%DB9
"IEC_Timer_0_
DB_6"
TON %Q1.3
Time "VALVE_4"
IN Q R
T#1S PT ET ...
%M0.5
%M0.7 %M0.5 %Q1.2 "CT2"
"DONE_2" "CT2" "MOTOR_3_FOR" S
S
%I1.1
"LM1_M3"
R
%DB14
"IEC_Timer_0_
DB_11"
TON %I1.2
Time "LM2_M3"
IN Q S
T#2S PT ET ...
%M0.6
"KTCT"
%DB16
"IEC_Counter_ S
0_DB_2"
3.1 ( Page1 - 8)
Totally Integrated
Automation Portal
%M0.5
"CT2"
R
%M0.7
"DONE_2"
R
%MW14
%M1.1
"CV_P2" "MOVE_PRODUCT"
==
S
Int
3
%M0.6
"KTCT"
R
%DB11
"IEC_Timer_0_
DB_8"
TON %I1.0
Time "LM2_M2"
1 IN Q S
T#3S PT ET ...
Totally Integrated
Automation Portal
%I1.3
"SENSOR 2"
%DB7
"IEC_Counter_
0_DB_3"