Highlighting safe logic in the FBD-editor

The FBD-editor highlights safe logic with shades of yellow so you can visually distinguish safe logic from non-safe logic when developing safety-related applications.

For developing safety-related applications, you must use a logi.CAD 3 version that has been qualified for this purpose. See the documentation "Safety instructions on working with the IDE" for the appropriate information and valid safety instructions.

logi.cals recommends that you and/or your system integrator do not use yellow shades when designing FBD-elements because the color "Yellow" is used for tracking safe signals when developing safety-related applications. logi.CAD 3 does not check if colors are already used elsewhere. So the use of the yellow shades by you and/or your system integrator could have the consequence that "yellow" might also identify a non-safe logic as well.

The following FBD elements are displayed with shades of yellow:

This logic is a non-safe logic because the data type INT is used:
images/download/attachments/504365571/UnsafeLogic1-version-1-modificationdate-1666080075242-api-v2.png

Here is the same logic but with the safe data type SAFEINT - which causes the elements to be displayed with shades of yellow to indicate the safe logic:
images/download/attachments/504365595/SafeLogic1-version-1-modificationdate-1666080093499-api-v2.png

You can also mix safe logic and non-safe logic. The implicit conversion of a safe data type to a non-safe data type is allowed.
images/download/attachments/504365619/MixedLogic1-version-1-modificationdate-1666080107894-api-v2.png

Illegal constructs will be highlighted as errors or warnings in the FBD-editor. Since the implicit conversion of a non-safe data type to a safe data type is an illegal construct, the assignment of the ADD output to the safe variable resultB is highlighted as faulty in the above example. Reason: The inputs of the ADD block are connected to non-safe variables.
Workaround: Call the respective safe-convert function , for the above example this is the TO_SAFEINT block:images/download/attachments/504365655/MixedLogic2-version-1-modificationdate-1666081364944-api-v2.png