Siemens CPU 948 Programming Manual page 18

Simatic s5 s5-155u
Table of Contents

Advertisement

The Programs in a CPU
Structure
Storing the user program
Interfaces to the
system program
1 - 10
Organization
blocks
OB
STEP 5
operations
I 1.5
&
I 1.6
1
=
I 1.4
&
I 1.3
Q 3.1
DB
static or dynamic data
(bits, bytes, words, double words)
DX
static or dynamic data
(bits, bytes, words, double words)
Fig. 1-2
Structure of a STEP 5 user program
After programming the user program, you must load it in the user
memory of the CPU 948 (directly from the PG) or via a memory card
whose contents are copied to the user memory by an OVERALL
RESET of the CPU.
Organization blocks are available as interfaces to the system program
for the special types of processing.
User memory
User program
Code blocks
Program
Function
blocks
blocks
PB
FB/FX
STEP 5
STEP 5
operations
operations
FB 8
F 50.1
1
=
SEGMENT 1
F 50.2
NAME
:TRANS
Q 5.3
F 50.3
0005
:L IB
0006
:T FW 200
0007
:C DB
0008
:DO
FW 200
0009
:L DW
000A
:T QW
000B
:BE
Data blocks
Sequence
blocks
SB
STEP 5
operations
F 1.7
I 2.6
S
I 1.3
R
Q
3
5
0
6
1:
KH = 0101;
2:
KF = +120;
3:
KS = xy;
4:
KY = 4.5;
5:
KG =
6:
KM =
7:
1:
KH = FFFF;
2:
KH = FFFF;
3:
KH = FFFF;
4:
KH = FFFF;
5:
KH = FFFF;
6:
KH = FFFF;
7:
CPU 948 Programming Guide
C79000-G8576-C848-04

Advertisement

Table of Contents
loading

Table of Contents