-

Exchanging Data between Controller and Safety PLC

If a Safety PLC is included in your project, communication between the standard (non-safety-related) controller and the Safety PLC is possible and allows the coupling of the standard application with the safety-related application.

Communication possibilities between controller and Safety PLC:

Note
To edit safety-related data you have to be logged on to the Safety-related Area: Left-click the
area in the status bar, enter your password and press <Enter>.

Exchange variables

In Data Lists, global controller variables can be mapped to global standard Safety PLC variables.

For the Safety PLC variable (i.e., in the Safety PLC Data List), a data direction has to be set which determines whether data is transferred from or to the Safety PLC: 'I' means that the variable can be read by the safety-related application and 'Q' that it can be written by the safety-related application. Accordingly, the standard application has write or read access.

Exchange variables are always standard variables: only a non-safety-related variable declared with 'Global' keyword in the Data List of the Safety PLC can be assigned to a 'Global' variable of the standard controller. No process datum (input or output signal from the process) is involved.
Do not confuse exchange variables with the threefold assignment of a process data item and a Safety PLC variable and a controller variable. In such cases, the process data item has the leading role and the Safety PLC variable has a safety-related data type. (Refer to section "Reading safety-related signals in the standard controller" for details.)

Use cases for exchange variables
The coupling has to be done in the Data List of the standard controller or of the Safety PLC.
There are two possibilities to create exchange variables:

Example

What do you want to do?

How to create a new exchange variable

How to disconnect an exchange variable

How to delete an exchange variable

Reading safety-related signals in the standard controller

The standard controller can read the status of safety-related signals. This applies to safety-related input signals and output signals:

Note
Although this is an assignment of a Safety PLC variable to a controller variable, do not confuse it with an exchange variable. Exchange variables in the Safety PLC always have a standard data type and no process datum is assigned. In this present threefold assignment, however, the process data item has the leading role. Therefore, the Safety PLC variable has a safety-related data type.

How to read a safety-related input/output in the standard controller

Processing standard signals of the safety application in the standard controller

The standard controller can process standard signals which belong to the safety application.

The necessary assignments can be done in the Data List of the controller or the Safety PLC using the Role Picker. Please refer to the previous section for details.