Siemens CPU 948 Programming Manual page 415

Simatic s5 s5-155u
Table of Contents

Advertisement

Example of editing DB 1
DB1
FD: CPU948ST.S5D
0:
KH = 4D41;
1:
KH = 534B;
2:
KH = 3031;
3:
KH = DE00;
4:
KF = +00000;
5:
KF = +00001;
6:
KF = +00002;
7:
KF = +00003;
8:
KF = +00007;
9:
KF = +00010;
10:
KH = DA00;
11:
KF = +00000;
12:
KF = +00002;
13:
KF = +00004;
14:
KF = +00012;
15:
KH = CE00;
16:
KF = +00050;
17:
KF = +00051;
18:
KF = +00060;
19:
KH = CA00;
20:
KF = +00070;
21:
KF = +00072;
22:
KF = +00100;
23:
KH = EEEE;
24:
CPU 948 Programming Guide
C79000-G8576-C848-04
2. Type in the individual operand areas (from data word 3 onwards).
Before each operand area, you must specify an ID. The possible ID
words are as follows:
ID word for digital inputs
ID word for digital outputs
ID word for IPC input flags
ID word for IPC output flags
After each ID word, use fixed-point format to list the numbers of the
inputs and outputs used.
3. Complete the entries with the DB 1 end ID "KH = EEEE" and
transfer DB 1 to the CPU.
Note
You can make the DB 1 entries in any order. Remember that the
process image of the inputs and outputs is updated in the reverse
order to which you store the addresses in DB 1 (i.e. the last entry
is updated first).
Multiple entries of the same bytes (e.g., for test purposes) are
possible. The system program makes multiple updates of the process
images of bytes that are entered more than once.
DW 0-2:
Start ID
for DB 1
ID word for digital inputs
Input byte 0
Input byte 1
Input byte 2
Input byte 3
.
Input byte 10
ID word for digital outputs
Output
byte 0
Output byte
.
Output byte 12
ID word for IPC flag inputs
Flag byte 50
.
Flag byte 60
ID word for IPC flag outputs
Flag byte 70
.
Flag byte 100
End ID
Multiprocessor Mode
KH = DE00
KH = DA00
KH = CE00
KH = CA00
2
10 - 11

Advertisement

Table of Contents
loading

Table of Contents