0% found this document useful (0 votes)
7 views15 pages

File Chuongtrinhplc

The document outlines the structure and functionality of a PLC program using the Totally Integrated Automation Portal, detailing various program blocks, networks, and their respective inputs and outputs. It includes specific configurations for program blocks such as OB1 and FC_SIMU, with a focus on automation processes like starting, stopping, and resetting operations. Additionally, it describes the use of timers and data blocks for managing operational parameters within the automation system.

Uploaded by

Thắng Hoàng
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views15 pages

File Chuongtrinhplc

The document outlines the structure and functionality of a PLC program using the Totally Integrated Automation Portal, detailing various program blocks, networks, and their respective inputs and outputs. It includes specific configurations for program blocks such as OB1 and FC_SIMU, with a focus on automation processes like starting, stopping, and resetting operations. Additionally, it describes the use of timers and data blocks for managing operational parameters within the automation system.

Uploaded by

Thắng Hoàng
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

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: START

%I0.1 %Q0.0
"I_START" "Q_H1"
S

%M5.0 %Q0.1
"M_START" "Q_DST"
R

%Q0.2
"Q_DSC"
R
Totally Integrated
Automation Portal

Network 2: STOP

%M3.0
%I0.0 "Tag_1" %Q0.0
"I_STOP" SR "Q_H1"
S Q R

%M5.1 %Q0.1
"M_STOP" "Q_DST"
S

%I0.1 %Q0.2
"I_START" "Q_DSC"
R1 R

%M5.0
"M_START"

%MW200 %MW202 %MW204 %Q0.4


"Act_Count_Cao" "Act_Count_TB" "Act_Count_Thap"
"Q_BT"
>= >= >=
R
Int Int Int
3 3 3
%Q0.0
"Q_H1"
R

%MW200 %MW202 %MW204


%Q0.1 %Q0.4
"Q_DST" "Act_Count_Cao" "Act_Count_TB" "Act_Count_Thap" "Q_BT"
>= >= >=
R
Int Int Int
3 3 3

Network 3: ĐÈN SC
Totally Integrated
Automation Portal

%M3.1
%I0.2 "Tag_2" %M0.7 %Q0.2
"I_QS" SR "Clock_0.5Hz" "Q_DSC"
S Q

%M5.2 %Q0.4
"M_QS" "Q_BT"
R

%I0.1 %Q0.0
"I_START" "Q_H1"
R1 R

%M5.0
"M_START"

Network 4: RESET BO DEM

%I1.1
"I_RESET" MOVE MOVE MOVE
EN ENO EN ENO EN ENO
0 IN %MW200 0 IN %MW202 0 IN %MW204
%M5.3 OUT1 "Act_Count_Cao" OUT1 "Act_Count_TB" OUT1 "Act_Count_Thap"
"M_Reset"

Network 5: Băng tải phân loại


Totally Integrated
Automation Portal

Network 5: Băng tải phân loại (1.1 / 2.1)

%I0.1 %Q0.4
"I_START" P_TRIG "Q_BT"
CLK Q S
%M3.2
"Tag_17"
%M5.0
"M_START"

%Q0.5 %Q0.4
"Q_Xylanh_Cao" N_TRIG "Q_BT"
CLK Q S
%M3.3
"Tag_18"

%Q0.6 %Q0.4
"Q_Xylanh_TB" N_TRIG "Q_BT"
CLK Q S
%M3.4
"Tag_19"

%Q0.7 %Q0.4
"Q_Xylanh_THAP" N_TRIG "Q_BT"
CLK Q S
%M3.5
"Tag_20"

%M10.0 %Q0.4
"M_CB_Cao" P_TRIG "Q_BT"
CLK Q R
%M3.6
"Tag_21"

%M10.1
"M_CB_Trung_ %Q0.4
Binh" P_TRIG "Q_BT"
CLK Q R
%M3.7
"Tag_22"

2.1 ( Page1 - 5)
Totally Integrated
Automation Portal

Network 5: Băng tải phân loại (2.1 / 2.1)


1.1 ( Page1 - 4)

%M10.2 %Q0.4
"M_CB_Thap" P_TRIG "Q_BT"
CLK Q R
%M4.0
"Tag_23"
Totally Integrated
Automation Portal

Network 6: Đóng/mở xi lanh sản phẩm cao

%I0.3 %M10.4
"I_CB_Cao" P_TRIG "M_Xylanh_Cao"
CLK Q S
%M4.1
"Tag_24"
%M10.0
"M_CB_Cao"

%DB1
"T1"
%M10.4 TON %M10.4
"M_Xylanh_Cao" Time "M_Xylanh_Cao"
IN Q R
T#3s PT ET T#0ms

%M10.4 %Q0.5
"M_Xylanh_Cao" "Q_Xylanh_Cao"

Network 7: Đóng/mở xi lanh sản phẩm trung bình


Totally Integrated
Automation Portal

%I0.4 %M10.5
"I_CB_Tb" P_TRIG "M_Xylanh_TB"
CLK Q S
%M4.2
"Tag_25"
%M10.1
"M_CB_Trung_
Binh"

%DB2
"T2"
%M10.5 TON %M10.5
"M_Xylanh_TB" Time "M_Xylanh_TB"
IN Q R
T#3S PT ET T#0ms

%M10.5 %Q0.6
"M_Xylanh_TB" "Q_Xylanh_TB"

Network 8: Đóng/mở xi lanh sản phẩm thấp


Totally Integrated
Automation Portal

%I0.5 %M10.6
"I_CB_Thap" P_TRIG "M_Xylanh_THAP"
CLK Q S
%M4.3
"Tag_26"
%M10.2
"M_CB_Thap"

%DB3
"T3"
%M10.6 TON %M10.6
"M_Xylanh_THAP" Time "M_Xylanh_THAP"
IN Q R
T#3S PT ET T#0ms

%M10.6 %Q0.7
"M_Xylanh_THAP" "Q_Xylanh_THAP"

Network 9: DEM SP CAO

%I0.3 ADD
"I_CB_Cao" P_TRIG Int
CLK Q EN ENO
%M4.4 %MW200 %MW200
"Tag_27" "Act_Count_Cao" "Act_Count_Cao"
%M10.0 IN1 OUT
"M_CB_Cao" 1 IN2

Network 10: DEM SP TB


Totally Integrated
Automation Portal

%I0.4 ADD
"I_CB_Tb" P_TRIG Auto (Int)
CLK Q EN ENO
%M4.5 %MW202 %MW202
"Tag_28" "Act_Count_TB" "Act_Count_TB"
%M10.1 IN1 OUT
"M_CB_Trung_ 1 IN2
Binh"

Network 11: DEM SP THAP

%I0.5 ADD
"I_CB_Thap" P_TRIG Auto (Int)
CLK Q EN ENO
%M4.6 %MW204 %MW204
"Tag_29" "Act_Count_Thap" "Act_Count_Thap"
%M10.2 IN1 OUT
"M_CB_Thap" 1 IN2

Network 12:

%FC1
"FC_SIMU"
EN ENO
Totally Integrated
Automation Portal

Program blocks
FC_SIMU [FC1]
FC_SIMU Properties
General
Name FC_SIMU 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
FC_SIMU Void

Network 1: BĂNG TẢI CHẠY HỆ THỐNG TĂNG GIÁ TRỊ

%Q0.4 %M5.4 %M0.5 ADD


"Q_BT" "SIMU_CB_CAO" "Clock_1Hz" P_TRIG Auto (Int)
CLK Q EN ENO
%M4.7 %MW206 %MW206
"Tag_30" "Simu_VT_SP" "Simu_VT_SP"
%M5.5 IN1 OUT
"SIMU_CB_TB" 1 IN2

%M5.6
"SIMU_CB_THAP"
Totally Integrated
Automation Portal

Network 2: RESET VI TRI KHI CẢM BIẾN NÀO ĐÓ TÁC ĐỘNG

%M10.0
"M_CB_Cao" MOVE
EN ENO
0 IN %MW206
OUT1 "Simu_VT_SP"
%M10.1
"M_CB_Trung_
Binh"

%M10.2
"M_CB_Thap"

Network 3: MÔ PHỎNG TÁC ĐỘNG CẢM BIẾN CAO

%M5.4 %MW206 %M10.0


"SIMU_CB_CAO" "Simu_VT_SP" "M_CB_Cao"
>=
S
Int
4
%M5.4
"SIMU_CB_CAO"
R

%MW206 %M10.0
"Simu_VT_SP"
"M_CB_Cao"
<=
R
Int
1

Network 4: MÔ PHỎNG TÁC ĐỘNG CẢM BIẾN TB


Totally Integrated
Automation Portal

%M10.1
%M5.5 %MW206 "M_CB_Trung_
"SIMU_CB_TB" "Simu_VT_SP" Binh"
>=
S
Int
10
%M5.5
"SIMU_CB_TB"
R

%M10.1
%MW206 "M_CB_Trung_
"Simu_VT_SP" Binh"
<=
R
Int
1

Network 5: Cảm biến sản phẩm THAP

%MW206
%M5.6 %M10.2
"SIMU_CB_THAP" "Simu_VT_SP" "M_CB_Thap"
>=
S
Int
14
%M5.6
"SIMU_CB_THAP"
R

%MW206 %M10.2
"Simu_VT_SP"
"M_CB_Thap"
<=
R
Int
1
Totally Integrated
Automation Portal

Program blocks / System blocks / Program resources


T1 [DB1]
T1 Properties
General
Name T1 Number 1 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


T2 [DB2]
T2 Properties
General
Name T2 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


T3 [DB3]
T3 Properties
General
Name T3 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