ID : 3518
Example of Program for Status Monitoring
For programs to monitor task status or COBOTTA status in a supervisory task or the like, consider monitoring frequency and CPU load.
For normal monitoring with relatively less load, use the Wait statement.
Normal Monitoring
Sub SurveillanceErr
Do
Wait CurErr
' Processing in the event of any error
Loop
End Sub
Do not use the following example for normal monitoring as it generates high CPU load.
Monitoring with High CPU Load
Sub SurveillanceErr
Do
If CurErr Then
Set io[128]
End If
Loop
End Sub
ID : 3518