![background image](http://html1.mh-extra.com/html/abb/ac-800m/ac-800m_library-object-style-manual_3371230106.webp)
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.
Summary of Contents for AC 800M
Page 2: ......
Page 3: ...AC 800M Library Object Style Guide System Version 6 0...
Page 12: ...Related Documentation About This User Manual 12 3BSE042835 600...
Page 18: ...Naming Convention Section 1 Libraries 18 3BSE042835 600...
Page 108: ...SIL Mark Restrictions Section 6 Program Code Issues 108 3BSE042835 600...
Page 116: ...Standard Library Parameters Appendix A Names and Abbreviations 116 3BSE042835 600...
Page 119: ......