![Bailey infi 90 IMMFC03 Instructions Manual Download Page 33](http://html1.mh-extra.com/html/bailey/infi-90-immfc03/infi-90-immfc03_instructions-manual_467109033.webp)
CONFIGURATION
FUNCTION BLOCKS
4 - 4
I-E96-211A
®
b. Calculate the amount of CPU time that is used each
time the normal priority function blocks are executed.
100 PID blocks x 690 microseconds =
0.069 seconds
100 Square Root blocks x 190 microseconds =
+0.019 seconds
0.088 seconds
c.
Calculate the total time used by the normal priority
function blocks during the available 2 seconds:
Normal priority blocks = 0.088 seconds used each time
they are executed.
Executed 8 times during the 2 second interval.
Therefore 8 x 0.088 = 0.704 CPU seconds used by the nor-
mal priority tasks.
8. Calculate the amount of time required for high priority
function blocks to execute.
a. Multiply 5 PID blocks by 690 microseconds = 0.00345
seconds
b. Multiply 5 Square Root blocks by 190 microseconds =
0.00095 seconds.
c.
Add products:
0.00345
+ 0.00095
0.00440 seconds
The above sum represents CPU time used by one pass of
the high priority loop.
d. Multiply 20 times per second by 2 seconds = 40 times
in 2 seconds (number of times the high priority loops are
run within maximum CPU time allotted).
e.
Multiply 0.00440 by 40 = 0.176 seconds (the amount of
CPU time the high priority loops use within the 2 second
maximum).
9. Add the final products.
0.088 (CPU seconds used by low priority loops)
0.704 (CPU seconds used by normal priority loops)
+0.176 (CPU seconds used by high priority loops)
0.968 seconds = total CPU time used by this configuration