Project1 / PLC - 1 (CPU 1215C AC/DC/Rly) / Program Blocks: Main (OB1)
Project1 / PLC - 1 (CPU 1215C AC/DC/Rly) / Program Blocks: Main (OB1)
Automation Portal
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:
%Q0.0 %M0.0
"Den" "bittrunggian"
Network 2:
Network 3:
%M0.2
"bom2"
S
%M0.5
"vanxa"
R
%M0.4
"khuay"
R
%M0.5 %M0.1
"vanxa" "bom1"
R
%M0.2
"bom2"
R
%M0.4
"khuay"
R
Network 4:
Totally Integrated
Automation Portal
%M0.1
"bom1"
R
%M0.5
"vanxa"
R
%DB1
"timer1"
%M0.5 TON %M0.4
"vanxa" Time "khuay"
IN Q R
T#10s PT ET T#0ms
%M0.5
"timer1".Q "vanxa"
S
Network 5:
%DB2
"ct1"
%M0.5 CTU
"vanxa" N_TRIG Int
CLK Q CU Q
%M10.0 "timer2".Q R %MW2
"Tag_7" 10 PV CV "giatri"
Network 6:
%DB5
"timer2"
%M0.0 TON
"ct1".PV Time
"bittrunggian" "timer2".Q
==
Int IN Q
%MW2 T#10s PT %MD4
"giatri" ET "giatritm"