Conditional Range Check Section 6 Program Code Issues
106 3BSE042835-600
if MyPar > MyLimit then
(* No assignment, use last good value *)
ParErrorInt := true;
else
MyParInt := MyPar;
end;
(* More range checked assignments ... *)
else
(* Assignment without range checks *)
MyParInt := MyPar;
(* More assignments ... *)
end_if;
Note that MyPar is copied to a local variable because it is not allowed to change IN
parameters.