-

Role Mapping in Data Lists: I/O Variables and Exchange Variables

This topic contains the following sections:

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 variables/functions/FBs are non-safety-related data. The term "standard controller" designates the non-safety-related controller.

The following assignments are possible:
These assignments have to be done in the Data List of ...

Further Info

Possible mappings

The following table shows the possible assignments (mappings) of variables and process data items in the Data Lists of the controller and the Safety PLC. Possibly, the mapping can be done in both Data Lists. Read and use the table as follows:

  1. In the "Result" column, look for the signal, variable or operation type you want to create.
  2. Select the required variables/data items in the Data List columns as shown in the table.

    Note
    The Data Lists also provide commands to create new variables and assign them at the same time.

Note
If a process data item is involved, it has always the leading role in the assignment (in particular in threefold assignments).

ResultVariable
(PLC)
Variable
(Safety PLC)
Process DatumHMI tag 1)Example no.
I/O variable of the standard controllerstandard variablestandard signal (from safety-related or standard I/O device)creatable1
Exchange variablestandard variablestandard variable,
data direction: 'I' or 'Q'
creatable2
Safety-related I/O variable of the Safety PLCsafety-related variable,
data direction: 'I' or 'Q'
safety-related signal (from safety-related I/O device)3
Reading a safety-related input signal in the standard application.

Observe the section "Automatic creation of safety-related variables in the Safety PLC" below.
standard variablesafety-related variable,
data direction: 'I'
safety-related input signal (from safety-related module)creatable4
Reading a safety-related output signal in the standard application.

Writing to a safety output from the standard application is not possible. The standard application, however, can read the value which is written to the safety output by the safety application.

Observe the section "Automatic creation of safety-related variables in the Safety PLC" below.
standard variable
read-only access
safety-related variable,
data direction: 'Q'
safety-related output signal (safety-related module)creatable-
Standard I/O variable of the Safety PLCstandard variable,
data direction: 'I' or 'Q'
standard signal (from safety-related or standard I/O device)5
Reading a standard input signal of the safety application in the standard application.

Observe the section "Automatic creation of safety-related variables in the Safety PLC" below.
standard variablestandard variable,
data direction: 'I'
standard input signal (relating to safety-related application)creatable-
Reading/writing a standard output signal of the safety application from the standard application.
In this case, the Safety PLC has read-only access and the signal is written by the standard controller.

Observe the section "Automatic creation of safety-related variables in the Safety PLC" below.
standard variable
write access
standard variable,
data direction: 'I'
standard output signal (relating to safety-related application)creatable-
Standard diagnostic variable of the Safety PLCstandard variable,
data direction: 'I' or 'Q' and 'Diag' flag set

1)The entries in the "HMI" column of the table relate to the possibility of creating an HMI tag for the respective variable (with its role mapping). "Creatable" means that a context menu command is available for adding an HMI tag.

Further Info
Observe the information given in the topic ""Rules for Assigning Ports and Variables" when assigning roles.

Examples

Example 1: standard I/O variable

Example 2: exchange variable

Example 3: safety-related I/O variable of the Safety PLC

Example 4: reading a safety-related input signal in the safety-related application and in the standard application

Example 5: standard I/O variable of the Safety PLC

Automatic creation of safety-related variables in the Safety PLC

When you connect a safety-related process data item (signal) to a standard PLC variable in a Data List using the Role Picker, PLCnext Engineer automatically creates a corresponding safety-related variable in the Safety PLC and connects it. The name, safety-related data type (and comment, if available) of the automatically created Safety PLC variable are derived from the standard variable. The data direction of the Safety PLC variable is derived from the process data item type:

Note
Although this results in an assignment of a Safety PLC variable and a controller variable, this is not to be confused 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.

Rules for reassigning already connected roles (role replacement)

Already defined assignments (that is to say connected roles) can easily be modified by selecting another element in the corresponding field (without disconnecting it first). When replacing an item in the list, this corresponds to disconnecting and reassigning in one step.

The Data List supports the following reassignments:

What do you want to do?

How to make a data assignment using the Role Picker

Disconnecting variables and process data items

Manual confirmation of modified safety-related I/O variable

How to add/remove an HMI tag for a global variable in the Data List of the 'IEC 61131-3' node, 'Safety PLC' node, or controller node