ID : 660
Example of Program for Status Monitoring
For programs to monitor task status or controller status in a supervisory task, TP panel task or the like, consider monitoring frequency and CPU load.
Especially, please avoid the following cases as much as possible because CPU load will be increased.
-
Timer interval of TP panel task is extremely short
If you edit the timer interval of TP panel task, set the large value for "Interval", which is one of the timer parameter. For the setting procedure, refer to "Specifying the Timer Interval".
-
Delay command of the supervisory task is not used
When you use Delay command, it is effective if you insert multiple Delay commands to separate the customer's process in the Loop process as below and execute.
Sub Main Do '-----------------------------------' '---Customer process 1--- '-----------------------------------' Delay 1 '-----------------------------------' '---Customer process 2--- '-----------------------------------' Delay 1 '-----------------------------------' '---Customer process 3--- '-----------------------------------' Delay 1 Loop End Sub
ID : 660