
Section 6 Program Code Issues
Range Check
3BSE042835-600
103
Range Check
Table 14. Example, Function Block Type
Name
Data
type
Attributes
Direction
Initial
value
Description
ParError
bool
Retain
Out
Indicates parameter range error.
Table 15. Example, Function Block Type
Name
Data
type
Attributes
Direction
Initial
value
Description
AEConfig
dint
Retain
In
1
Config (0=None, 1=Alarm,
2=Event, 3=Event1,
4=Indication, Else Alarm +
ParError)
A
real
,
integer
,
data type,
or
time
input parameter may have a range. This means that
it may be required to have a relation (for example > or <) to one or several constants
or other parameters.
Generally, the object must have a predictable behavior for out-of-range input values.
One example can be to use the closest range border value for internal calculations.
What action that is most reasonable when out-of-range values are detected has to be
decided from case to case.
If any real, integer, or time input parameter is out-of-range a graphical indication
shall be visible in the faceplate and interaction window. In addition, a bool output
parameter ParError shall be set to true (see also sub-section
The parameter description shall state the range, the action for valid input values, and
the action for out-of-range values.
Exception: A ParError parameter (or other parameters) shall not be added to types
where the parameter interface is defined by IEC 61131-3, for example TOn.
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: ......