Está en la página 1de 3

Totally Integrated

Automation Portal

P5full / PLC_1 [CPU 1215C AC/DC/Rly] / 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

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:
Totally Integrated
Automation Portal

Network 1: (1.1 / 2.1)

%I0.0 %I0.3 %Q0.0


"Start" "reset" "Cycle"

%Q0.0
"Cycle"

%I0.3 %M10.0
"reset" "ResetAll"
RESET_BF
1000

%M5.0
"resetboxes"
RESET_BF
1000

%Q0.0 %I0.1 ADD


"Cycle" "blister7" Auto (Int)
P EN ENO
%M7.0 %MW12 %MW12
"lastStateA" "totalA" IN1 OUT "totalA"
7
"N7" IN2

ADD
Auto (Int)
EN ENO
%MW16 %MW16
"tmpA" IN1 OUT "tmpA"
1 IN2

%Q0.0 %I0.2 ADD


"Cycle" "blister8" Auto (Int)
P EN ENO
%M8.0 %MW14 %MW14
"LastStateB" "totalB" IN1 OUT "totalB"
8
"N8" IN2

ADD
Auto (Int)
EN ENO
%MW18 %MW18
"tmpB" IN1 OUT "tmpB"
1 IN2

%Q0.0 %MW16 %MW18 %MW16 %Q0.1


"tmpA" "tmpB" "tmpA"
"Cycle" "Tmpc-form1"
<> <> ==
Int Int Int
0 0 %MW18
"tmpB"

%MW16 %MW18 %Q0.2


"tmpA" "tmpB"
"tmpC-Form2"
> >
Int Int
%MW18 0
"tmpB"

%MW18 %MW16 %Q0.3


"tmpB" "tmpA"
"tmpC-form3"
> >
Int Int
%MW16 0
"tmpA"

%Q0.1 ADD SUB


"Tmpc-form1" Auto (Int) Auto (Int)
P EN ENO EN ENO
%M8.1 %MW20 %MW20 %MW16 %MW16
"lastTempC_F1" "cajas" "cajas" "tmpA" "tmpA"
IN1 OUT IN1 OUT
1 IN2 1 IN2

SUB
Auto (Int)
EN ENO
%MW18 %MW18
"tmpB" IN1 OUT "tmpB"
1 IN2

%Q0.2 ADD SUB SUB


"tmpC-Form2" Auto (Int) Auto (Int) Auto (Int)
P EN ENO EN ENO EN ENO
%M8.2 %MW20 %MW20 %MW18 %MW18 %MW16 %MW16
"lastTempc_F2" "cajas" IN1 OUT "cajas" "tmpB" IN1 OUT "tmpB" "tmpA" IN1 OUT "tmpA"
1 IN2 1 IN2 1 IN2

%Q0.3 ADD SUB SUB


"tmpC-form3" Auto (Int) Auto (Int) Auto (Int)
P EN ENO EN ENO EN ENO
%M8.3 %MW20 %MW20 %MW18 %MW18 %MW16 %MW16
"lastTempC_F3" "cajas" IN1 OUT "cajas" "tmpB" IN1 OUT "tmpB" "tmpA" IN1 OUT "tmpA"

2.1 ( Page1 - 3)
Totally Integrated
Automation Portal

Network 1: (2.1 / 2.1)


1.1 ( Page1 - 2)
"lastTempC_F3" "cajas" "cajas" "tmpB" "tmpB" "tmpA" "tmpA"
IN1 OUT IN1 OUT IN1 OUT
1 IN2 1 IN2 1 IN2

ADD
Auto (Int)
EN ENO
%MW12 %MW10
"totalA" IN1 OUT "totalAB"
%MW14
"totalB" IN2

%Q0.0 %MW20 DIV


"Cycle" "cajas" Auto (Int)
<>
Int EN ENO
0 %MW20 %MW24
"cajas" IN1 OUT "lotes"
6
"N6" IN2

También podría gustarte