What hardware supports UnderOverrange parameter on AO. Controller? Module?
I assume we should aways set UnderOverRange to False if not supported on hardward.
What hardware supports it?
Modulelbus , Profiebus ?
Under/Over range parameters depends from settings of IO modules.
Anyhow, you can use the following example in application in order to to control the status of the channel:
AL_AO_Fail :=(AO.Status AND 16#E7) <> 16#C0;
AL_AO_Fail is a bool, that is =1 in case any error of the channel is present. You can define also exact error code(s) defined in help file
AO is a variable RealIO, connected to the channel