Mô tả:
đoạn code viết mạch đèn giao ngã tư dùng plc s7-1200 ,xanh 1 :25s vàng 1 :5s ,xanh 2 :25s vàng 5 s,đỏ 1vaf đỏ 2 là 25s
Totally Integrated
Automation Portal
goao thon / PLC_1 [CPU 1214C DC/DC/DC] / Program blocks
Main [OB1]
Main Properties
General
Name
Main
Number
Numbering
automatic
Information
Title
"Main Program Sweep (Cy‐ Author
cle)"
Version
0.1
User-defined
ID
Main
Name
Input
Data type
Initial_Call
Remanence
Temp
Bool
Bool
thoi gian
DTL
Type
1
Language
OB
Comment
Family
Default value
Comment
Initial call of this OB
=True, if remanent data are available
UInt
USInt
USInt
USInt
USInt
USInt
USInt
UDInt
YEAR
MONTH
DAY
WEEKDAY
HOUR
MINUTE
SECOND
NANOSECOND
Constant
Network 1:
%M0.1
"stop"
%M0.0
"start"
%M0.2
"tg"
%M0.2
"tg"
%DB1
"t1"
TON
Time
"t1".Q
T#60s
IN
Q
PT
ET
Symbol
"start"
"stop"
"t1".Q
"Tag_1"
"tg"
Address
%M0.0
%M0.1
Type
Bool
Bool
Bool
Time
Bool
%MD100
%M0.2
%MD100
"Tag_1"
Comment
Network 2:
den xanh sang 25s
%M0.2
"tg"
Symbol
"Tag_1"
"tg"
"xanh 1"
Address
%MD100
%M0.2
%M0.3
%MD100
"Tag_1"
<=
Time
T#25s
Type
Time
Bool
Bool
%M0.3
"xanh 1"
Comment
Network 3:
den vang sang 5s
%MD100
"Tag_1"
>=
Time
T#25s
Symbol
"Tag_1"
"vang 1"
Network 4:
Address
%MD100
%M0.4
%MD100
"Tag_1"
<=
Time
T#30s
Type
Time
Bool
%M0.4
"vang 1"
Comment
LAD
Totally Integrated
Automation Portal
%M0.3
"xanh 1"
%M1.0
"do 2"
%M0.4
"vang 1"
Symbol
"do 2"
"vang 1"
"xanh 1"
Address
%M1.0
%M0.4
%M0.3
Type
Bool
Bool
Bool
Comment
Network 5:
den xanh 2 sang 25s
%M0.2
"tg"
Symbol
"Tag_1"
"tg"
"xanh 2"
Address
%MD100
%M0.2
%M0.6
%MD100
"Tag_1"
>=
Time
T#30s
%MD100
"Tag_1"
<=
Time
T#55s
Type
Time
Bool
Bool
%M0.6
"xanh 2"
Comment
Network 6:
vang 2 sang trong 5s
%M0.2
"tg"
Symbol
"Tag_1"
"tg"
"vang 2"
Address
%MD100
%M0.2
%M0.7
%MD100
"Tag_1"
>=
Time
T#55s
Type
Time
Bool
Bool
%MD100
"Tag_1"
<=
Time
T#60s
%M0.7
"vang 2"
Comment
Network 7:
%M0.6
"xanh 2"
%M0.5
"do1"
%M0.7
"vang 2"
Symbol
"do1"
"vang 2"
"xanh 2"
Address
%M0.5
%M0.7
%M0.6
Type
Bool
Bool
Bool
Comment
- Xem thêm -