Structure
Storing the 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.
Interfaces to the
system program
Organization blocks are available as interfaces to the system program
for the special types of processing.
User memory
Code blocks
Data blocks
Organization
blocks
OB
DB
DX
PB
FB/FX
SB
FB 8
SEGMENT 1
NAME :TRANS
0005 :L IB 3
0006 :T FW 200
0007 :C DB 5
0008 :DO FW 200
0009 :L DW 0
000A :T QW 6
000B :BE
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:
STEP 5
operations
static or dynamic data
(bits, bytes, words, double words)
static or dynamic data
(bits, bytes, words, double words)
STEP 5
operations
STEP 5
operations
STEP 5
operations
Program
blocks
Function
blocks
Sequence
blocks
&
&
=
1
I1.5
I1.6
I1.4
I1.3
Q3.1
=
1
F 50.1
F 50.2
F 50.3
Q5.3
F1.7
I2.6
S
RQ
I1.3
User program
Fig. 1-2 Structure of a STEP 5 user program
The Programs in a CPU
CPU 948 Programming Guide
1 - 10 C79000-G8576-C848-04