0% found this document useful (0 votes)
0 views2 pages

Simatic S7 Example Logic

The document outlines the structure and properties of a main program block (OB1) for a PLC system, including various data types and their default values. It details the configuration of different networks within the program, including input and output tags. The program is designed for automation tasks with specific cycle time parameters and event handling capabilities.

Uploaded by

rimonmalak5
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)
0 views2 pages

Simatic S7 Example Logic

The document outlines the structure and properties of a main program block (OB1) for a PLC system, including various data types and their default values. It details the configuration of different networks within the program, including input and output tags. The program is designed for automation tasks with specific cycle time parameters and event handling capabilities.

Uploaded by

rimonmalak5
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

Totally Integrated

Automation Portal

DRAFT / PLC_1 [CPU 314C-2 PN/DP] / Program blocks


Main [OB1]
Main Properties
General
Name Main Number 1 Type OB
Language LAD Numbering Manual
Information
Title "Main Program Sweep Author Comment
(Cycle)"
Family 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 (millisec‐
onds)
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_Ti 12.0 Date and time OB1 started
me
Constant

Network 1:

%I0.0 %I0.1 %M0.0


"Tag_1" "Tag_3" "Tag_2"

%M0.0
"Tag_2"

Network 2:

%I0.2 %I0.3 %I0.4 %Q0.0


"Tag_4" "Tag_5" "Tag_6" "Tag_7"

Network 3:

[Link]
Totally Integrated
Automation Portal

%DB1
"IEC_Timer_0_DB"
%M0.0 TON %M0.1
"Tag_2" Time "Tag_8"
IN Q
T#10s PT ET ...

Network 4:

INFINTY

%I1.0 %I1.1 %Q0.1


"Tag_9" "Tag_10" "Tag_11"

Network 5:

%M0.1
"Tag_8" INFINTY
JMP

[Link]

You might also like