EasyManuals Logo

ABB AC 800M Library Object Style Guide

ABB AC 800M
120 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #105 background imageLoading...
Page #105 background image
Section 6 Program Code Issues Conditional Range Check
3BSE042835-600 105
Conditional Range Check
Table 16. Parameter interface for an example type with conditional range check and last good value
Name
Data
type
Attributes Direction
Initial
value
Description
MyPar dint Retain In 1 Config (<=0 = Event1,
1 = Event2,
2 = Event3,
Else Last good value + ParErr)
EnablePar
Err
or
bool Retain In false EDIT Enable par error
calculation for Non-SIL
applications.
ParError bool Retain Out Indicates parameter range
er
ror.
If a conditional range check is applied, the execution time can be reduced in
Non-SIL applications.
In the example code, the parameter Enabl
eParError is copied during the first scan
to a local variable EnParError for Non-SIL application, otherwise the local
variable will be true. If the range check finds an out-of-range value, the last good
value will be used.
if Init then
Init := false;
(* Force range checks if SIL application *)
EnParError := EnableParError or GetApplicationSIL() <> 0;
MyParInt:= MyLimit; (* Last good value *)
ParErrorInt := false;
end_if;
if EnParError then
(* Perform parameter range check each scan *)
(* before assignment *)
ParErrorInt := false;

Table of Contents

Other manuals for ABB AC 800M

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ABB AC 800M and is the answer not in the manual?

ABB AC 800M Specifications

General IconGeneral
BrandABB
ModelAC 800M
CategoryController
LanguageEnglish

Related product manuals