0% found this document useful (0 votes)
5 views

B7 / PLC - 1 (CPU 314) / Program Blocks: Main (OB1)

Uploaded by

tkhoi894
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

B7 / PLC - 1 (CPU 314) / Program Blocks: Main (OB1)

Uploaded by

tkhoi894
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Totally Integrated

Automation Portal

B7 / PLC_1 [CPU 314] / Program blocks


Main [OB1]
Main Properties
General
Name Main Number 1 Type OB Language LAD
Numbering Manual
Information
Title "Main Program Sweep (Cy‐ Author Comment Family
cle)"
Version 0.1 User-defined ID

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:

%M10.1 %Q0.1
"Start" "B1"
S

%Q0.2
"B2"
S

Network 2:

%M20.1 %Q0.1
"S2" "B1"
R

Network 3:

%M20.2 %Q0.2
"S1" "B2"
R

%Q0.3
"DC"
S

Network 4:

%T1
%Q0.3 "Tag_11" %Q0.3
"DC" S_ODT "DC"
S Q R
S5T#5s TV BI ...
... R BCD ... %M20.3
"Vx"
S

Network 5:
Totally Integrated
Automation Portal

%M20.3 %M20.4 %M20.3


"Vx" "S3" "Vx"
R

%M5.1
"Tag_30"
S

Network 6:

%T2
%M5.1 "Tag_27" %M10.1
"Tag_30" S_ODT "Start"
S Q
S5T#20s TV BI ...
... R BCD ... %M5.1
"Tag_30"
%C1 R
"Tag_29"
S_CU
CU Q
%M5.5 %MW0
"Tag_33" S CV "Tag_31"
C#10 PV CV_BCD ...
%M5.2
"Tag_32" R

Network 7:

%MW0 %M10.1
"Tag_31" "Start"
==
R
Int
5
%M5.1
"Tag_30"
R

%M5.2
"Tag_32"

You might also like