ABB AC500-S Safety User Manual page 215

Safety programmable logic controllers system
Hide thumbs Also See for AC500-S:
Table of Contents

Advertisement

4.4.3.6
Data types
Of the data types defined in CoDeSys the following are approved for creating safety-oriented applications:
Table 11: Simple data type
Keyword
BOOL
BYTE, SINT, USINT
WORD, INT, UINT
DWORD, DINT, UDINT
TIME, TOD, DATE, DT
STRING
REAL
Table 12: Complex data types
Keyword
ARRAY
STRUCT
Listing types
Subrange types
POINTER
The following rules must be followed when complex data types are used:
n
For complex data types we recommend using type declarations
Before each access to an array an explicit range check of the index should be carried out. In the event of
n
a violation that cannot be explained through the application, the control system should be switched to
safe state.
DANGER!
The memory access using POINTERs (e.g., ADR function) is error-prone and is generally NOT recom-
mended. If used in safety applications, then the responsibility for correct usage of these and related
functions lies entirely with the organization and persons who use those functions in AC500-S safety
PLC.
30.03.2017
CoDeSys Safety programming guidelines > Language-specific programming guidelines
Suitable (Yes / To a limited extent / No) (comment)
Yes
Yes
Yes
Yes
Yes
To a limited extent (technically possible, although it makes little sense due to
the lack of safety-oriented input/output devices)
To a limited extent (prone to error through rounding errors, therefore no query
with EQ operator, note invalid operations such as division by zero, square
root of a negative number, logarithm of a negative number)
Suitable (Yes / To a limited extent / No) (comment)
To a limited extent (Only with explicit range check, otherwise too prone to
errors)
Yes
Yes
Yes
To a limited extent (Recommended measures: no pointer arithmetic, range
check, new allocation of pointer value at the start of each cycle)
AC500-S
Configuration and programming
215

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents