Code buổi số 8 - nâng cao / PLC - 1 (CPU 1214C DC/DC/DC) / Program blocks
Code buổi số 8 - nâng cao / PLC - 1 (CPU 1214C DC/DC/DC) / Program blocks
Code buổi số 8 - nâng cao / PLC - 1 (CPU 1214C DC/DC/DC) / Program blocks
Automation Portal
Code buổi số 8_nâng cao / PLC_1 [CPU 1214C DC/DC/DC] / 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:
"Data_block_ %DB1
1".LAMP "TON_01"
TON
"TON_01".Q Time
IN Q
"Data_block_
"Data_block_ 1".TIMER
1"."SETTING ET
RED+YELLOW+
GREEN"
PT
"Data_block_ "Data_block_
%Q0.0
1".TIMER 1".TIMER
"RED"
> <=
DInt DInt
0 "Data_block_
1"."SETTING
RED"
Network 2:
ADD
DInt
EN ENO
"Data_block_ "Data_block_
1"."SETTING 1"."SETTING
RED" IN1 OUT RED+YELLOW"
"Data_block_
1"."SETTING
YELLOW" IN2
ADD
DInt
EN ENO
"Data_block_ "Data_block_
1"."SETTING 1"."SETTING
RED+YELLOW" IN1 RED+YELLOW+
GREEN"
"Data_block_ OUT
1"."SETTING
GREEN" IN2
Network 3:
Totally Integrated
Automation Portal
NORM_X SCALE_X
Int to Real Real to Real
EN ENO EN ENO
0 MIN "Data_block_ 0.0 MIN
"Data_block_
%MW100 OUT 1"."Trun gian" "Data_block_ 1"."ket qua
"Tag_1" VALUE 1"."Trun gian" VALUE OUT do"
27648 MAX 10.0 MAX
Network 4:
"Data_block_ "Data_block_
1"."Mo phong". 1"."Mo phong".
"Nut nhan mo "loi qua tai
phong qua tai" dong co"
"Data_block_
1"."Mo phong".
"Nut nhan mo "Data_block_
phong loi cam 1"."Mo phong".
bien" "loi cam bien"
Network 5:
%DB3
"CTU_01"
%M0.5 CTU
"Clock_1Hz" Int
CU Q
"Data_block_
CV 1".CV
"Data_block_
1".CV
>=
Int R
10 10 PV