You are on page 1of 2

Totally Integrated

Automation Portal

MPS_system_V18 / 5) sorting station [CPU 1512C-1 PN] / 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:
Phôi ở đầu băng tải -> Băng tải chạy

%I10.0 %M0.1 %I11.1 %M0.0


"begin sensor" "K2" "stop button" "K1"

%M0.0
"K1"

Network 2:
Cảm biến chữ U phát hiện -> Kích timer

%I10.4 %M0.0 %M0.2 %M0.3 %M0.4 %I11.1 %M0.1


"U sensor" "K1" "K3" "K4" "K5" "stop button" "K2"

%M0.1
"K2"

Network 3:
Cảm biến màu sắc (ko đen) nhận (Phôi đỏ) -> stopper thụt; tay gạt 1 gạt; băng tải chạy

"IEC_Timer_0_ %I10.5 %I10.6 %M0.1 %I10.2 %I11.1 %M0.2


DB".Q "color sensor" "metal sensor" "K2" "full sensor" "stop button" "K3"

%M0.2
"K3"

Network 4:
Không cảm biến nào nhận ( Phôi đen) -> stopper thụt; băng tải chạy

"IEC_Timer_0_ %M0.1 %I10.2 %I11.1 %M0.3


DB".Q "K2" "full sensor" "stop button" "K4"

%M0.3
"K4"

Network 5:
Cảm biến Kim loại nhận ( Phôi kim loại) -> stopper thụt; tay gạt 2 gạt; băng tải chạy

"IEC_Timer_0_ %I10.6 %M0.1 %I10.2 %I11.1 %M0.4


DB".Q "metal sensor" "K2" "full sensor" "stop button" "K5"

%M0.4
"K5"

Network 6:
Băng tải
Totally Integrated
Automation Portal

%Q4.0
%M0.0 "forward
"K1" conveyor"

%M0.2
"K3"

%M0.3
"K4"

%M0.4
"K5"

%M0.1
"K2"

Network 7:
Tay gạt 1

%M0.2 %Q4.1
"K3" "tay gạt 1"

Network 8:

%M0.4 %Q4.2
"K5" "tay gạt 2"

Network 9:
stopper thụt

%M0.2 %Q4.3
"K3" "stopper"

%M0.3
"K4"

%M0.4
"K5"

Network 10:
Timer

%DB1
"IEC_Timer_0_DB"
%M0.1 TON
"K2" Time
IN Q
T#1S PT ET T#0ms

You might also like