Dengt Tu Lam

You might also like

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

Totally Integrated

Automation Portal

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

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: BAT TAT 2 DEN GIAO THONG

%M1.3 %M10.0 %Q0.0 %Q0.5


"AlwaysFALSE" "STAR" "LAMP XANH A" "LAMP DO B"
S S

%M10.1 %Q0.0 %Q0.1 %Q0.2 %Q0.3 %Q0.4 %Q0.5


"STOP" "LAMP XANH A" "LAMP VANG A" "LAMP DO A" "LAMP XANH B" "LAMP VANG B" "LAMP DO B"
R R R R R R

Network 2: XANH A SANG

%DB8
"IEC_Timer_0_DB_
7"

%Q0.0 TON %Q0.1 %Q0.0


"LAMP XANH A" Time "LAMP VANG A" "LAMP XANH A"
IN Q S R
ET T#0ms
%DB1.DBD34
"Data_block_1".
"setup time xanh" PT

DIV
Auto (DInt)
EN ENO
"IEC_Timer_0_DB_
7".ET %DB1.DBD0
IN1 "Data_block_1".
1000 IN2 "TIME LAMP XANH
OUT A"

Network 3: VANG A SANG

%DB9
"IEC_Timer_0_DB_
8"

%Q0.1 TON %Q0.2 %Q0.1


"LAMP VANG A" Time "LAMP DO A" "LAMP VANG A"
IN Q S R
ET T#0ms
%DB1.DBD38
"Data_block_1".
"setup time vang" PT

DIV
Auto (DInt)
EN ENO
"IEC_Timer_0_DB_
8".ET %DB1.DBD4
IN1 "Data_block_1".
1000 IN2 "TIME LAMP VANG
OUT A"

Network 4: DO A SANG
Totally Integrated
Automation Portal

%DB10
"IEC_Timer_0_DB_
9"

%Q0.2 TON %Q0.0 %Q0.2


"LAMP DO A" Time "LAMP XANH A" "LAMP DO A"
IN Q S R
ET T#0ms
%DB1.DBD42
"Data_block_1".
"setup time do" PT

DIV
Auto (DInt)
EN ENO
"IEC_Timer_0_DB_ %DB1.DBD8
9".ET IN1 "Data_block_1".
1000 IN2 OUT "TIME LAMP DO A"

Network 5: DO B SANG

%DB11
"IEC_Timer_0_DB_
10"

%Q0.5 TON %Q0.3 %Q0.5


"LAMP DO B" Time "LAMP XANH B" "LAMP DO B"
IN Q S R
ET T#0ms
%DB1.DBD42
"Data_block_1".
"setup time do" PT

DIV
Auto (DInt)
EN ENO
"IEC_Timer_0_DB_ %DB1.DBD20
10".ET IN1 "Data_block_1".
1000 IN2 OUT "TIME LAMP DO B"

Network 6:

%DB12
"IEC_Timer_0_DB_
11"

%Q0.3 TON %Q0.4 %Q0.3


"LAMP XANH B" Time "LAMP VANG B" "LAMP XANH B"
IN Q S R
ET T#0ms
%DB1.DBD34
"Data_block_1".
"setup time xanh" PT

DIV
Auto (DInt)
EN ENO
"IEC_Timer_0_DB_
11".ET %DB1.DBD12
IN1 "Data_block_1".
1000 IN2 "TIME LAMP XANH
OUT B"

Network 7:

%DB13
"IEC_Timer_0_DB_
12"

%Q0.4 TON %Q0.5 %Q0.4


"LAMP VANG B" Time "LAMP DO B" "LAMP VANG B"
IN Q S R
ET T#0ms
%DB1.DBD38
"Data_block_1".
"setup time vang" PT

DIV
Auto (DInt)
EN ENO
"IEC_Timer_0_DB_
12".ET %DB1.DBD16
IN1 "Data_block_1".
1000 IN2 "TIME LAMP VANG
OUT B"

Network 8:

%FC1
"mo phong xee"
EN ENO
Totally Integrated
Automation Portal

Network 9:
Totally Integrated
Automation Portal

Program blocks
Data_block_1 [DB1]
Data_block_1 Properties
General
Name Data_block_1 Number 1 Type DB Language DB
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Offset Start value Retain Accessi‐ Writ‐ Visible in Setpoint Supervi‐ Comment
ble from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
TIME LAMP XANH A DInt 0.0 0 False True True True False
TIME LAMP VANG A DInt 4.0 0 False True True True False
TIME LAMP DO A DInt 8.0 0 False True True True False
TIME LAMP XANH B DInt 12.0 0 False True True True False
TIME LAMP VANG B DInt 16.0 0 False True True True False
TIME LAMP DO B DInt 20.0 0 False True True True False
CAI TIME XANH DInt 24.0 0 False True True True False
TIME XANH DInt 28.0 0 False True True True False
trung gian 1 Bool 32.0 false False True True True False
trung gian 2 Bool 32.1 false False True True True False
ĐÊM Bool 32.2 false False True True True False
setup time xanh DInt 34.0 0 False True True True False
setup time vang DInt 38.0 0 False True True True False
setup time do DInt 42.0 0 False True True True False
Totally Integrated
Automation Portal

Program blocks
mo phong xee [FC1]
mo phong xee Properties
General
Name mo phong xee Number 1 Type FC Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined ID

Name Data type Default value Comment


Input
Output
InOut
Temp
Constant
Return
mo phong xee Void

Network 1:

%DB2
"IEC_Timer_0_DB"
%DB1.DBX32.0 %DB1.DBX32.0
%Q0.0 "Data_block_1". TON "Data_block_1".
"LAMP XANH A" "trung gian 1" Time "trung gian 1"
IN Q
T#5s PT ET T#0ms
%Q0.1
"LAMP VANG A"

%DB3
"IEC_Timer_0_DB_
1"
%DB1.DBX32.1 %DB1.DBX32.1
%Q0.3 "Data_block_1". TON "Data_block_1".
"LAMP XANH B" "trung gian 2" Time "trung gian 2"
IN Q
T#5s PT ET T#0ms
%Q0.4
"LAMP VANG B"
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB_7 [DB8]
IEC_Timer_0_DB_7 Properties
General
Name IEC_Timer_0_DB_7 Number 8 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB_8 [DB9]
IEC_Timer_0_DB_8 Properties
General
Name IEC_Timer_0_DB_8 Number 9 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB_9 [DB10]
IEC_Timer_0_DB_9 Properties
General
Name IEC_Timer_0_DB_9 Number 10 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB_10 [DB11]
IEC_Timer_0_DB_10 Properties
General
Name IEC_Timer_0_DB_10 Number 11 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB_11 [DB12]
IEC_Timer_0_DB_11 Properties
General
Name IEC_Timer_0_DB_11 Number 12 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB_12 [DB13]
IEC_Timer_0_DB_12 Properties
General
Name IEC_Timer_0_DB_12 Number 13 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB [DB2]
IEC_Timer_0_DB Properties
General
Name IEC_Timer_0_DB Number 2 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


IEC_Timer_0_DB_1 [DB3]
IEC_Timer_0_DB_1 Properties
General
Name IEC_Timer_0_DB_1 Number 3 Type DB Language DB
Numbering Automatic
Information
Title Author Simatic Comment Family IEC
Version 1.0 User-defined ID IEC_TMR

Name Data type Start value Retain Accessible Writ‐ Visible in Setpoint Supervi‐ Comment
from able HMI engi‐ sion
HMI/OPC from neering
UA/Web HMI/
API OPC
UA/
Web
API
Static
PT Time T#0ms False True True True False
ET Time T#0ms False True False True False
IN Bool false False True True True False
Q Bool false False True False True False

You might also like