5.7.3
Settings
Calculating and setting the
number of time slices
The processing time for the self-functions is distributed on time slices
which are called once per cycle. The number of time slices can be
selected. This means that you can increase the time required for the
self-test functions per cycle.
Calculating the number
First, you must estimate the time you can leave for the self-test within
the cycle: the length of a time slice is approximately 500
µ
s, i.e. the
self-test requires 500
µ
s in each cycle.
Once you have estimated how much time is available, you can
calculate the number of time slices each taking approximately 500
µ
s.
Setting the number
You can set the number of time slices in system data word RS 136
(16-bits wide). The default is 1 time slice (minimum value). You can
set up to a maximum of 10 time slices (5 ms required in the cycle).
The number of time slices is derived from the value of system data
word RS 136 as follows:
RS 136 = 0 or 1:
1 time slice
RS 136 = 2:
2 time slices
RS 136 = 3:
3 time slices
etc.
Activating/deactivating the
tests
You can activate the individual tests, e.g. in a start-up block, by setting
the corresponding bits in RS 137 to ’1’ and deactivate the tests by
setting the bits to ’0’.
Note
After an OVERALL RESET on a newly inserted CPU, all the test
functions are switched off.
The next time you make an OVERALL RESET, only the test
functions to be run in the OVERALL RESET are activated. All
other test functions are deactivated.
This means that you can only check the user memory of a newly
inserted CPU by activating the test function in RS 137 following
an OVERALL RESET and then repeating the OVERALL RESET.
Self-Test
CPU 948 Programming Guide
C79000-G8576-C848-04
5 - 37
Содержание 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 ...