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

Totally Integrated

Automation Portal

Project2 / PLC_1 [CPU 1516F-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 (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

%I2.3 %M0.3 %M0.4 %M0.5 %M0.6 %M0.0


"Cảm Biến 1Y2" "D1" "D2" "D3" "D4" "M1"

%I2.5
"Cảm biến 2Y2"

%I2.2
"Cảm biến 1Y1"

%I2.4
"Cảm biến 2Y1"

%DB3
"IEC_Timer_0_
DB_1"

%M0.0 %M0.1 TP %M0.2


"M1" "M2" Time "M3"
IN Q
T#1s PT ET T#0ms

%DB4
"IEC_Timer_0_
DB_2"

%M0.2 TOF %M0.1


"M3" Time "M2"
IN Q
T#0.5s PT ET T#0ms

Network 2:
Totally Integrated
Automation Portal

%I2.4 %I2.2 %M0.3 %Q2.1 %Q2.0


"Cảm biến 2Y1" "Cảm biến 1Y1" "D1" "Đèn xanh" "Đèn vàng"

%M0.2
"M3"

%M0.0 %I2.0 %M0.4 %M1.0 %M0.3


"M1" "Nút ấn S1" "D2" "D6" "D1"

%M0.3
"D1"

%M0.7
"D5"

%M0.3 %M1.0 %Q2.0 %Q2.1


"D1" "D6" "Đèn vàng" "Đèn xanh"

%Q2.1
"Đèn xanh"

Network 3:
Totally Integrated
Automation Portal

%DB5
"IEC_Timer_0_
DB_3"

%M0.3 %I2.1 TON %I3.0 %M0.5 %M0.4


"D1" "Cảm biến B5" Time "Stop" "D3" "D2"
IN Q
T#3s PT ET T#0ms

%M0.4
"D2"

Network 4:

%DB1
"IEC_Timer_0_
DB_4"

%M0.4 %I2.1 TON %I3.0 %M0.6 %M0.5


"D2" "Cảm biến B5" Time "Stop" "D4" "D3"
IN Q
T#2s PT ET T#0ms

%M0.5
"D3"

Network 5:
Totally Integrated
Automation Portal

%M0.5 %I3.0 %M0.7 %M0.6


"D3" "Stop" "D5" "D4"

%M0.6
"D4"

Network 6:

%M0.6 %I3.0 %M0.3 %M0.7


"D4" "Stop" "D1" "D5"

%M0.7
"D5"

Network 7:

%DB6
"IEC_Counter_
0_DB"

%M0.7 CTU %M1.0


"D5" Int "D6"
CU Q
%I2.0 CV 0
"Nút ấn S1" R
3 PV

Network 8: bỏ khi 2.2


Totally Integrated
Automation Portal

%M0.4 %Q3.2
"D2" "Van1.2"
S

%Q3.1
"Van1.1"
R

Network 9: bỏ khi 2.3

%M0.5 %Q2.3
"D3" "Van 2"
S

Network 10: bỏ khi 2.3

%M0.6 %Q2.3
"D4" "Van 2"
R

Network 11: bỏ khi 2.2

%M0.7 %Q3.1
"D5" "Van1.1"
S

%Q3.2
"Van1.2"
Totally Integrated
Automation Portal

Network 12: bỏ khi 2.2

%M0.3 %Q3.1
"D1" "Van1.1"
S

%Q3.2
"Van1.2"
R

%Q2.3
"Van 2"
R

You might also like