SIM - TIA - V15 / PLC - 1 (CPU 1516-3 PN/DP) / Program Blocks: Main (OB1)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Totally Integrated

Automation Portal

SIM_TIA_V15 / PLC_1 [CPU 1516-3 PN/DP] / Program blocks


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

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

Network 1: POWER AND RUNING SYSTEM


Totally Integrated
Automation Portal

%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

%I0.0 %I0.1 %I0.2 %M0.0


"RUN" "STOP" "EM" "RUN_TG"

%M0.0
"RUN_TG"

%M0.0 %Q0.1
"RUN_TG" "RUN_LAMP"

%M0.0 %Q0.2
"RUN_TG" "STOP_LAMP"

%M0.0 %I0.6 %M0.3


"RUN_TG" "RESET" "RESET_ALL"

%M0.2
"DONE_1"
R

Network 2: Count Product Move To Stock


Totally Integrated
Automation Portal

Network 2: Count Product Move To Stock (1.1 / 2.1)

%DB1
"IEC_Counter_
0_DB"

%M0.0 %I0.3 %M0.1 %M0.2 CTU


"RUN_TG" "SENSOR 1" "RESET_1" "DONE_1" Int
CU Q
%MW10
%M0.1 CV "CV_S1"
"RESET_1"
R
0 PV
%M0.3
"RESET_ALL"

%M0.0 %M0.1 %M0.2 %Q0.5


"RUN_TG" "RESET_1" "DONE_1" "MOTOR_1"

%MW10
%M0.0 %M0.1
"RUN_TG" "CV_S1" "RESET_1"
==
S
Int
3

%M0.0 %M0.1 %Q0.3


"RUN_TG" "RESET_1" "VALVE_1"

%DB4
"IEC_Timer_0_
DB_1"
TON %I0.4
Time "LM1_VALVE_1"
IN Q S
T#1S PT ET ...

%M0.0 %I0.4 %Q0.4


"RUN_TG" "LM1_VALVE_1" "VALVE_2"

%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"

%M0.0 %I0.5 CTU


"RUN_TG" "LM1_VALVE_2" Int
CU Q
%MW12
%M0.2 CV "CV_P1"
"DONE_1"
R
0 PV
%M0.3
"RESET_ALL"

2.1 ( Page1 - 4)
Totally Integrated
Automation Portal

Network 2: Count Product Move To Stock (2.1 / 2.1)


1.1 ( Page1 - 3)
"RESET_ALL"

%M0.0 %I0.5 %M0.1


"RUN_TG" "LM1_VALVE_2" "RESET_1"
R

%I0.4
"LM1_VALVE_1"
R

%I0.5
"LM1_VALVE_2"
R

%M0.0 %MW12 %M0.2


"RUN_TG" "CV_P1" "DONE_1"
==
S
Int
3
Totally Integrated
Automation Portal

Network 3: Sort Product Into Stock


Totally Integrated
Automation Portal

Network 3: Sort Product Into Stock (1.1 / 3.1)

%M0.0 %M0.2 %M0.7 %Q0.6


"RUN_TG" "DONE_1" "DONE_2" "VALVE_3"
S

%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

Network 3: Sort Product Into Stock (2.1 / 3.1)


1.1 ( Page1 - 6)
DB_5"
TON %Q1.1
Time "MOTOR_3_REV"
IN Q S
T#1S PT ET ...
%Q1.2
"MOTOR_3_FOR"
R

%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

%M0.7 %I1.1 %Q1.1


"DONE_2" "LM1_M3" "MOTOR_3_REV"
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"

%M0.7 %M0.5 CTU


"DONE_2" "CT2" Int
CU Q
%M1.1 %MW14
"MOVE_PRODUCT" R CV "CV_P2"
0 PV

%M0.7 %I1.2 %Q1.2


"DONE_2" "LM2_M3" "MOTOR_3_FOR"

3.1 ( Page1 - 8)
Totally Integrated
Automation Portal

Network 3: Sort Product Into Stock (3.1 / 3.1)


2.1 ( Page1 - 7)
"DONE_2" "LM2_M3" "MOTOR_3_FOR"
R

%M0.0 %M0.6 %M0.4


"RUN_TG" "KTCT" "CT1"
R

%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

Network 4: Move Next Ballet Into

%M0.0 %M1.1 %Q1.4


"RUN_TG" "MOVE_PRODUCT" "MOTOR_4"
S

%I1.3
"SENSOR 2"

%DB7
"IEC_Counter_
0_DB_3"

%M0.0 %Q1.4 %I1.3 %I1.3 CTU


"RUN_TG" "MOTOR_4" "SENSOR 2" "SENSOR 2" Int
P CU Q
%M1.2 false R %MW16
"NEW_BALLET" 0 "CV_P3"
PV CV

%M0.0 %M1.1 %MW16 %Q1.4


"CV_P3"
"RUN_TG" "MOVE_PRODUCT" "MOTOR_4"
>
R
Int
%MW18
"OLD_CV_P3" MOVE
EN ENO
%MW16 %MW18
%I1.3 %M1.1 "CV_P3" IN OUT1 "OLD_CV_P3"
"SENSOR 2" "MOVE_PRODUCT"
%M1.1
"MOVE_PRODUCT"
R

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy