Mixing safety-related and standard variables in ST

NOTE:

Term definition: Standard = non-safety-related.

The term "standard" always refers to non-safety-related items/objects. Examples: a standard process data item is only read/written by a non-safety-related I/O device, i.e., a standard device. Standard vari­ables/functions/FBs are non-safety-related data. The term "standard controller" designates the non-safety-related controller.

Safety-related and standard variables can be used together within one ST code worksheet and, under particular circumstances, within one ST statement.

The following rules apply:

For easier distinction of standard and safety-related variables, they are visually distinguished in the ST code editor. Safety-related variables are underlined in red, standard variables are not underlined.

STcode_Safe_Standard_SE.png

NOTE:

Although safety-related and standard variables can be mixed in ST, it is not allowed to realize the enable principle in ST. For that purpose use FBD/LD. Refer to the topic "Program­ming the Enable Principle".