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" DW 0: KH = 4D41
DW 1: KH = 534B
DW 2: KH = 5830
1st field ID/length DW 3: KH = 0101
Parameters DW 4: KH = 1001
2nd field ID/length DW 5 KH = 0202
Parameters
1)
DW 6: KH = BB00
DW 7: KH = 0000
3rd field ID/length DW 8 KH = 0402
Parameters
1)
DW 9: KH = 1000
DW10: KH = 00FA
4th field ID/length DW11: KH = 0504
Parameters
1)
DW12: KH = 1000
DW13: KH = 0002
Parameters
1)
DW14: KH = 5000
DW15: KH = 0001
End ID DW16: KH = EEEE
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!
Examples of Parameter Assignment
CPU 948 Programming Guide
C79000-G8576-C848-04
7 - 13