-

Safety Semantic Error: The Function or Function Block '...' cannot be used in safety programs.

A standard (non-safety-related) function or FB (user-defined or from a library) has been inserted into a safety-related code network. In safety-related POUs, however, only safety-related functions and FBs may be called.

Remedy:

  1. Implement the functionality of the required standard FU/FB into a user-defined safety-related function block.
  2. Instantiate this user-defined FB in your safety-related code.