Siemens CPU 948 Programming Manual page 319

Simatic s5 s5-155u
Table of Contents

Advertisement

Example B:
The parameter assignment for DX 0 shown below achieves the following:
- the mode "interrupts at operation boundaries" is set,
- the timer updating is switched off,
- the cycle time is set to 2.5 seconds,
- the level priority of timed interrupts is set to '2'
and
- the system interrupt INT E is activated with level priority '1'.
DX 0
Start ID "MASKX0"
1st field ID/length
Parameters
2nd field ID/length
Parameters
3rd field ID/length
Parameters
4th field ID/length
Parameters
Parameters
End ID
This parameter assignment in DX 0 has the following effects on program
execution:
Program execution is interrupted by higher priority levels at operation
boundaries instead of at block boundaries.
The runtime of the system program is slightly reduced since no timers are
updated.
A cycle error is only recognized when the runtime of the user program and
the system program together exceeds 2.5 seconds.
No process interrupts from input byte IB 0 are processed, but rather system
interrupt INT E. Owing to its higher priority, this interrupts timed
interrupt servicing, the processing of the delayed interrupt and the
processing of a timed job.
1)
Under "field length", specify the number of data words occupied by a
parameter!
CPU 948 Programming Guide
C79000-G8576-C848-04
1)
1)
1)
1)
Examples of Parameter Assignment
DW 0:
KH = 4D41
DW 1:
KH = 534B
DW 2:
KH = 5830
DW 3:
KH = 0101
DW 4:
KH = 1001
DW 5
KH = 0202
DW 6:
KH = BB00
DW 7:
KH = 0000
DW 8
KH = 0402
DW 9:
KH = 1000
DW10:
KH = 00FA
DW11:
KH = 0504
DW12:
KH = 1000
DW13:
KH = 0002
DW14:
KH = 5000
DW15:
KH = 0001
DW16:
KH = EEEE
7 - 13

Advertisement

Table of Contents
loading

Table of Contents