0% found this document useful (0 votes)
11 views4 pages

Main Program Sweep in TIA Portal

This document contains a program for controlling the movement of an axis using a totally integrated automation portal. It consists of 9 networks that control the axis through different states including starting, adjusting, working, homing, and moving to specified positions at defined velocities. Input and output variables are used to track the status and control the logical flow between states.

Uploaded by

Đạt Tiến
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)
11 views4 pages

Main Program Sweep in TIA Portal

This document contains a program for controlling the movement of an axis using a totally integrated automation portal. It consists of 9 networks that control the axis through different states including starting, adjusting, working, homing, and moving to specified positions at defined velocities. Input and output variables are used to track the status and control the logical flow between states.

Uploaded by

Đạt Tiến
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

Totally Integrated

Automation Portal

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:

%M0.0 %M0.1
"start" "duy tri"

Network 2:

%DB3
"MC_Power_DB"
MC_Power

EN ENO
%DB1 Status false
"Axis_1" Axis Error false
%M0.1
"duy tri"
Enable
1 StartMode
0 StopMode

Network 3:

%M0.3
%M0.1 %M0.2 "duy tri hieu
"duy tri" "hieu chinh" chinh"

Network 4:

%M0.5
%M0.1 %M0.4 "san sang lam
"duy tri" "lam viec" viec"

Network 5:

%DB4
"MC_Home_DB"
MC_Home

EN ENO
%DB1 Done false
"Axis_1" Axis Error false

%M0.3
"duy tri hieu %M0.6
chinh" "Set Home"
Execute
0.0 Position
0 Mode

Network 6:
Totally Integrated
Automation Portal

%DB5
"MC_MoveJog_
DB"
MC_MoveJog

EN ENO
%DB1 InVelocity false
"Axis_1" Axis Error false

%M0.3
"duy tri hieu %M0.7
chinh" "Chay Tien"
JogForward

%M0.3
"duy tri hieu %M1.0
chinh" "Chay Lui"
JogBackward
10.0 Velocity

Network 7:

%DB6
"MC_
MoveAbsolute_
DB"

MC_MoveAbsolute

EN ENO
%DB1 Done false
"Axis_1" Axis Error false

%M0.5
"san sang lam %M1.1 %M1.2
viec" "Kep xy lanh" "Nha xy lanh"
Execute
0.0 Position
100.0 Velocity

Network 8:

%M0.5
"san sang lam %M1.3
viec" "Chay" MOVE
EN ENO
"Vitri"."Vị trí "MC_
Home" IN MoveAbsolute_
OUT1 DB".Position

Network 9:

%M0.5
"san sang lam %M2.7
viec" "Axis_1".Position "lấy"
==
Real
"Vitri"."Vị trí
piston đen" %M4.1
"Vi tri 1"

"Axis_1".Position
==
Real
"Vitri"."Vị trí
piston trắng"

"Axis_1".Position
==
Real
"Vitri"."Vị trí lò xo"

%M1.1
"Axis_1".Position "Kep xy lanh"
==
Real
"Vitri"."Vị trí
định vị lỗ
phôi"

Network 10:
Totally Integrated
Automation Portal

%M0.5
"san sang lam %M2.7
viec" "Axis_1".Position "lấy"
==
Real
"Vitri"."Vị trí phôi"
%M4.2
"Vi tri 2"

Network 11:

%M0.5
"san sang lam %M3.0 %M1.2 %M1.1
viec" "Lấy 1" "Nha xy lanh" "Kep xy lanh"

%M1.1 %DB7
"Kep xy lanh" "Thoi gian lay
phoi"
TON %M3.5
Time "VT 1_1" MOVE
IN Q EN ENO
T#10s PT ET T#0ms "Vitri"."Vị trí "MC_
lắp ráp" IN MoveAbsolute_
OUT1 DB".Position

"Thoi gian
kiem tra mau". %M3.6
Q "VT 2_2" MOVE
EN ENO
"Vitri"."Vị trí "MC_
kiểm tra màu" IN MoveAbsolute_
OUT1 DB".Position

%M3.7
"VT 3_3" MOVE
EN ENO

"Vitri"."Vị trí "MC_


định vị lỗ MoveAbsolute_
phôi" IN OUT1 DB".Position

%M4.0
"VT 4_4" MOVE
EN ENO
"Vitri"."Vị trí "MC_
thả sản phẩm" IN MoveAbsolute_
OUT1 DB".Position

Network 12:

%M0.5
"san sang lam %M2.7
viec" "Axis_1".Position "lấy"
==
Real
"Vitri"."Vị trí nắp"
%M4.3
"Vi tri 3"

Network 13:

%M0.5
"san sang lam %M3.1 %M1.2
viec" "Thả 1" "Nha xy lanh"

%DB9
"Thoi gian nha
phoi"
TON
Time
IN Q
T#10s PT ET T#0ms

Network 14:
Totally Integrated
Automation Portal

%M0.5
"san sang lam %M2.6 %M2.7
viec" "Axis_1".Position "đủ" "lấy"
==
Real
"Vitri"."Vị trí
lắp ráp" %M4.4
"Vi tri 4"

%M3.2
"thả"

Network 15:

%DB8
"Thoi gian
kiem tra mau"
%M0.5
"san sang lam TON
viec" "Axis_1".Position Time
==
IN Q
Real
"Vitri"."Vị trí T#10s PT ET T#0ms
kiểm tra màu"

"Thoi gian
kiem tra mau". "Thoi gian nha
Q phoi".Q MOVE
%M1.7
"den vi tri EN ENO
kiem tra mau" "Vitri"."Vị trí "MC_
lắp ráp" IN MoveAbsolute_
OUT1 DB".Position

Network 16:

%M0.5
"san sang lam "Thoi gian nha %M3.3 %M3.4 %M2.6 %M2.2
viec" phoi".Q "Lo xo" "nap" "đủ" "Phoi mau den" MOVE
EN ENO
"Vitri"."Vị trí "MC_
piston trắng" IN MoveAbsolute_
OUT1 DB".Position

%M2.3
"Phoi mau con
lai" MOVE
EN ENO
"Vitri"."Vị trí "MC_
piston đen" IN MoveAbsolute_
OUT1 DB".Position

Network 17:

%M0.5
"san sang lam "Thoi gian nha %M3.3 %M3.4 %M2.6
viec" phoi".Q "Lo xo" "nap" "đủ" MOVE
EN ENO
"Vitri"."Vị trí lò xo" IN "MC_
MoveAbsolute_
OUT1 DB".Position

Network 18:

%M0.5
"san sang lam "Thoi gian nha %M3.4 %M2.6
viec" phoi".Q "nap" "đủ" MOVE
EN ENO
"Vitri"."Vị trí "MC_
lắp ráp" IN MoveAbsolute_
OUT1 DB".Position

Network 19:

%M0.5
"san sang lam %M4.5
viec" "San pham" MOVE
EN ENO
"Vitri"."Vị trí "MC_
Home" IN MoveAbsolute_
OUT1 DB".Position

You might also like