Programming Example: Cyclic Monitoring Of The Cpu Load - Bosch rexroth IndraControl XM21 Operating Instructions Manual

Hide thumbs Also See for rexroth IndraControl XM21:
Table of Contents

Advertisement

58/69
Device description
Fig. 12-22: Exception code

12.8.2 Programming example: Cyclic monitoring of the CPU load

The PLC program can be used alternatively or additionally to cyclically monitor
the CPU load. Due to the cyclic monitoring of the CPU load, irregularities in the
CPU load can be detected early in the operating mode before the watchdog
shuts it down completely. Measure the CPU load in normal mode and specify a
suitable threshold value for a special handling in the PLC program. The code has
to be called cyclically within the PLC.
Example:
Cyclic analysis of the CPU load in the PLC user program
1.
#
Fig. 12-23: Definition of a global variable, e.g. "gboOverload" to display an invalid ex-
ceedance of the CPU load
2.
#
Bosch Rexroth AG R911340667_Edition 04
IndraControl XM21, XM22 Controls

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents