Ex 3 TP / PLC - 1 (CPU 314C-2 DP) / Program Blocks: Main (OB1)
Ex 3 TP / PLC - 1 (CPU 314C-2 DP) / Program Blocks: Main (OB1)
Ex 3 TP / PLC - 1 (CPU 314C-2 DP) / Program Blocks: Main (OB1)
Automation Portal
Main
Name Data type Offset Default value Comment
Temp
OB1_EV_CLASS Byte 0.0 Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
OB1_SCAN_1 Byte 1.0 1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
OB1_PRIORITY Byte 2.0 Priority of OB Execution
OB1_OB_NUMBR Byte 3.0 1 (Organization block 1, OB1)
OB1_RESERVED_1 Byte 4.0 Reserved for system
OB1_RESERVED_2 Byte 5.0 Reserved for system
OB1_PREV_CYCLE Int 6.0 Cycle time of previous OB1 scan (milliseconds)
OB1_MIN_CYCLE Int 8.0 Minimum cycle time of OB1 (milliseconds)
OB1_MAX_CYCLE Int 10.0 Maximum cycle time of OB1 (milliseconds)
OB1_DATE_TIME Date_And_Time 12.0 Date and time OB1 started
Constant
Network 1:
SCALE
EN ENO
%IW752 %MW4
"Tag_2" IN RET_VAL "Tag_4"
1000.0 HI_LIM %MD6
0.0 LO_LIM OUT "Tag_1"
%M1.0
"Tag_3" BIPOLAR
Network 2:
%MD6 %MD6
%M1.1
"Tag_1" "Tag_1" "X"
>= <=
Real Real
0.0 100.0
Network 3:
%M1.1 %Q0.1
"X" "v2"
Network 4:
%M1.1
"X" MOVE
EN ENO
100.0 IN %MD9
OUT1 "EV1"
Totally Integrated
Automation Portal
Network 5:
%M1.1
"X" MOVE
EN ENO
100.0 IN %MD12
OUT1 "EV2"
Network 6:
%MD6 %MD6
%M0.2
"Tag_1" "Tag_1" "Y"
> <=
Real Real
100.0 200.0
Network 7:
%M0.2 %Q0.0
"Y" "v1"
Network 8:
%M0.2
"Y" MOVE
EN ENO
70.0 IN %MD9
OUT1 "EV1"
Network 9:
%M0.2
"Y" MOVE
EN ENO
90.0 IN %MD12
OUT1 "EV2"
Network 10:
%MD6 %MD6
%M0.3
"Tag_1" "Tag_1" "ZZ"
> <=
Real Real
200.0 400.0
Network 11:
%M0.3 %Q0.0
"ZZ" "v1"
Network 12:
%M0.3
"ZZ" MOVE
EN ENO
50.0 IN %MD9
OUT1 "EV1"
Network 13:
%M0.3
"ZZ" MOVE
EN ENO
60.0 IN %MD12
OUT1 "EV2"
Network 14:
%MD6 %MD6
%M0.4
"Tag_1" "Tag_1" "A"
> <=
Real Real
400.0 800.0
Network 15:
%M0.4 %Q0.0
"A" "v1"
%Q0.1
"v2"
Network 16:
%M0.4
"A" MOVE
EN ENO
30.0 IN %MD9
OUT1 "EV1"
Network 17:
Totally Integrated
Automation Portal
%M0.4
"A" MOVE
EN ENO
10.0 IN %MD12
OUT1 "EV2"
Network 18:
%MD6 %MD6
%M0.5
"Tag_1" "Tag_1" "b"
> <=
Real Real
800.0 1000.0
Network 19:
%M0.5 %Q0.0
"b" "v1"
%Q0.1
"v2"
Network 20:
%M0.5
"b" MOVE
EN ENO
5.0 IN %MD9
OUT1 "EV1"
Network 21:
%M0.5
"b" MOVE
EN ENO
10.0 IN %MD12
OUT1 "EV2"
Network 22:
UNSCALE
EN ENO
%MD9 %MW3
"EV1" IN RET_VAL "Tag_7"
100.0 HI_LIM %QW752
0.0 LO_LIM OUT "Tag_8"
%M2.0
"Tag_6" BIPOLAR
Network 23:
UNSCALE
EN ENO
%MD12 %MW2
"EV2" IN RET_VAL "Tag_10"
100.0 HI_LIM %QW753
0.0 LO_LIM OUT "Tag_11"
%M2.1
"Tag_9" BIPOLAR