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
Содержание CPU 948
Страница 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Страница 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Страница 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Страница 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Страница 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Страница 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Страница 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Страница 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Страница 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Страница 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Страница 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Страница 404: ...Operations with the Base Address Register BR Register CPU 948 Programming Guide 9 34 C79000 G8576 C848 04 ...
Страница 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Страница 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Страница 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Страница 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Страница 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...