7
Introduction to STEP 5
7.1
Writing a Program
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 1
7.1.1
Methods of Representation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 1
7.1.2
Operand Areas
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 3
7.1.3
Circuit Diagram Conversion
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 3
7.2
Program Structure
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 4
7.2.1
Linear Programming
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 4
7.2.2
Structured Programming
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 5
7.3
Block Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 7
7.3.1
Organization Blocks (OBs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 8
7.3.2
Program Blocks (PBs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 11
7.3.3
Sequence Blocks (SBs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 11
7.3.4
Function Blocks (FBs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 11
7.3.5
Data blocks (DBs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 16
7.4
Program Execution
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 18
7.4.1
RESTART Program Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 18
7.4.2
Cyclic Program Execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 20
7.4.3
Time-Controlled Program Execution
. . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 20
7.4.4
Interrupt-Driven Programming Execution
. . . . . . . . . . . . . . . . . . . . . . 7 - 22
7.4.5
Handling Programming Errors and PLC Malfunctions
. . . . . . . . . . . . 7 - 23
7.5
Processing Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 25
7.5.1
Modifying the Program
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 25
7.5.2
Modifying Blocks
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 25
7.5.3
Compressing the Program Memory
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 25
7.6
Number Representation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 - 26
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
EWA 4NEB 811 6130-02b
Summary of Contents for SIMATIC S5-115U
Page 6: ...EWA 4NEB 811 6130 02b ...
Page 16: ...EWA 4NEB 811 6130 02b ...
Page 18: ...EWA 4NEB 811 6130 02b ...
Page 26: ......
Page 62: ...EWA 4NEB 811 6130 02b ...
Page 64: ...EWA 4NEB 811 6130 02b ...
Page 67: ......
Page 74: ......
Page 79: ......
Page 80: ......
Page 81: ......
Page 82: ......
Page 83: ......
Page 84: ......
Page 97: ......
Page 98: ......
Page 99: ......
Page 114: ...EWA 4NEB 811 6130 02b ...
Page 280: ...EWA 4NEB 811 6130 02b ...
Page 372: ...EWA 4NEB 811 6130 02b ...
Page 432: ...EWA 4NEB 811 6130 02b ...
Page 442: ......
Page 528: ...EWA 4NEB 811 6130 02b ...
Page 590: ......
Page 591: ......
Page 592: ......
Page 593: ......
Page 594: ......
Page 600: ...EWA 4NEB 811 6130 02b ...
Page 602: ...EWA 4NEB 811 6130 02b ...
Page 604: ...EWA 4NEB 811 6130 02b ...
Page 624: ...EWA 4NEB 811 6130 02b ...
Page 632: ...EWA 4NEB 811 6130 02b ...
Page 644: ...EWA 4NEB 811 6130 02b ...
Page 646: ...EWA 4NEB 811 6130 02b ...
Page 652: ...EWA 4NEB 811 6130 02b ...
Page 654: ...EWA 4NEB 811 6130 02b ...
Page 660: ...EWA 4NEB 811 6130 02b ...
Page 662: ...EWA 4NEB 811 6130 02b ...
Page 666: ...EWA 4NEB 811 6130 02b ...
Page 668: ...EWA 4NEB 811 6130 02b ...
Page 674: ...EWA 4NEB 811 6130 02b ...