These logical I/Os are used for the exchange of safety-oriented I/Os between the safety PLC and the standard PLC.
The safe field device is inserted below the standard PLC as in standard CODESYS.
|
Tip |
|---|---|
|
Information about linking safe 1oo1 and 1oo2 input modules with the safety application and what you should pay attention to when doing so can be found in the CODESYS Safety User Manual: "Linking Digital 1oo1 and 1oo2 Input Modules". |
When inserting the safe field device under the standard controller, the corresponding logical I/O is automatically inserted in the Logical I/Os node of the safety application, provided that only one safety controller exists under the standard controller under which the safe field device is inserted.
-
In the project tree, select the corresponding fieldbus slave below the standard PLC.
-
In the context menu, click Add Device.
-
In the dialog that opens, select the desired safe field device from the corresponding subcategory (for example, Safe modules) in the Fieldbuses category. The safe field devices are grouped as follows:
-
For PROFIsafe:
-
For FSoE:
-
For PROFINET:
-
-
Click the Add Device button.
-
Click the Close button.
|
Caution |
|---|---|
|
The type consistency of the I/O channels is only ensured
|
If the logical I/O is not inserted automatically when the safe field device is inserted into the safety application, then you must insert it manually as follows:
-
In the project tree, select the Logical I/Os node point of the safety application object.
-
Click the Add Object context menu command with the Logical Device selection.
-
Select the logical I/O below the corresponding fieldbus in the Add Logical Device dialog:
-
For PROFIsafe:
-
For FSoE:
-
For PROFINET:
-
-
Click the Add button.
The Device Editor of Logical I/Os opens.
-
Select the safe physical field device of the standard controller.
-
Click Edit object in the context menu.
-
Open the (...) I/O Mapping tab.
-
Click the Logical I/O mapping combo box.
-
Select the corresponding logical I/O from the list that opens.
Among the logical I/Os, only those that have not already been mapped to other devices or Logical Exchange GVLs can be selected. The system accepts only the selection of a logical I/O that has the same device description as the physical device.
An existing connection is terminated by clicking the Reset button.
Linking of EtherCAT devices
-
EtherCAT devices that have both safety channels and standard channels (e.g. EL2904): Only the safety channels are mapped to a logical I/O of the safety application. On the other hand, the data of the standard channels of the main application are available.
-
EtherCAT devices that drive two safety connections in parallel (example: SamX_Bi_Axes or BLK20): The physical device is mapped to 2 different logical devices.
|
Caution |
|---|---|
|
For EtherCAT devices with several parallel FSoE connections, each one must have its own FSoE address specified. These different FSoE addresses of the same EtherCAT device must not be confused. |
These logical I/Os serve the exchange of standard I/Os between the standard and safety controllers.
If standard I/Os are used in the safety application, then this data is not safe!
First the desired standard field device is inserted under the standard controller, depending on the device. The procedure corresponds to standard CODESYS.
Subsequently, the appropriate logical I/O ("generated logical device") must be inserted manually under the safety application object:
Adding the "generated logical device"
-
Select the Logical I/Os node point of the safety application object in the project tree.
-
Click the Add Object context menu command with the Logical Device selection.
-
In the Add Logical Device dialog in the Logical devices category, select the corresponding logical I/O in the Generated Logical Devices subcategory
-
Click the Add button.
The Device Editor of Logical I/Os opens.
After successful insertion of the standard field device under the standard controller and the corresponding logical I/Os under the safety controller, they must be "linked" to one another in order to be able to exchange I/O data.
-
Select standard field device in the project tree
-
Click "Edit object" in the context menu.
-
Open the (...) I/O Mapping tab (in the case of PROFIBUS).
-
Click the Logical I/O mapping combo box.
-
Select the corresponding logical I/O from the list that opens.
Among the logical I/Os, only those that have not already been mapped to other devices or Logical Exchange GVLs can be selected. The system accepts only the selection of a logical I/O that has the same device description as the physical device.
A function block of the type NonSafeIO is generated as a stack instance.
|
Tip |
|---|---|
|
The editor of the logical I/Os of standard devices has no Safe Configuration tab or Safe device parameterization tab. The configuration and the device parameterization take place under the default application as in CODESYS standard. |
|
Important |
|---|---|
|
The type consistency of the I/O channels is only ensured
|
The exchange of data between the safety controller and standard controller takes place via variables, which are defined in the logical I/Os Logical exchange device. In addition, a Logical Exchange GVL is created on the standard side and connected with the corresponding Logical exchange device.
This data is used as inputs/outputs in the safety controller; in the default application they are available as global variables.
|
Tip |
|---|---|
|
The data flow between two variables is clear. This means that the same variable from one application cannot be exchanged with two variables of the other application. |
Steps for the configuration of data exchange between the safety controller and standard controller
-
Adding the "Logical Exchange GVL" (see: Logical Exchange GVL)
-
Adding the logical exchange device (see below)
-
Connection of the logical exchange GVL with the Logical exchange device object of the safety application (see: Logical Exchange GVL)
-
Select the Logical I/Os node point of the safety application object in the project tree.
-
In the context menu, click .
-
In the Add Logical Device dialog (see illustration) in the Logical devices category, select the desired logical I/O in the Logical exchange devices subcategory.
-
Click the Add button.
The Device Editor of Logical I/Os opens.
In the Add Logical Device dialog, the following are defined for the individual variables:
-
Exchange direction:
INorOUTIN: From the default application to the safety applicationOUT: From the safety application to the default application -
Data type:
BYTE,DINT,INT, orWORD
NonSafeIO is created as the stack instance.
|
Tip |
|---|---|
|
The exchange variables can be edited only in the logical IO. Variables cannot be entered or changed in the logical exchange GVL. |
|
Tip |
|---|---|
|
Only data whose variables possess a standard data type can be exchanged. Variables of a data type with the prefix |
If changes are made in the connected logical exchange device, then the Update button in the Logical Exchange GVL must be clicked in order to update the variable list.
A Logical Exchange GVL is the object of the standard application that ensures the data exchange with the safety application. The Logical Exchange GVL is connected for the data exchange with a suitable logical I/O of the safety application.
The exchange variables can be edited only in the Logical exchange device of the safety application. Variables cannot be entered or changed in the Logical Exchange GVL (Logical Exchange GVL – Editor).
Only data whose variables possess a standard data type can be exchanged. Variables of a data type with the prefix SAFE cannot be exchanged between a safety controller and a standard controller.
-
Select the default application object in the project tree
-
In the context menu, click Insert object and select Logical Exchange GVL.
-
A name can be edited for the GVL in the Add Logical Exchange GVL dialog. The default name is Logical_GVL.
-
Click the Add button.
-
Select logical exchange GVL of the default application in the project tree
-
Click Edit object in the context menu.
-
Click the Logical Exchange Mapping combo box
-
Select the corresponding logical exchange object from the list that opens (example:
Logical_exchange_object_INT_1xIn.
All logical exchange objects that have not yet been mapped are available in the combo box.
If a logical exchange device is selected, then the variables are implicitly updated.
If changes are made in the connected logical exchange device, then the Update button in the logical exchange GVL must be clicked in order to update the variable list.
An existing connection is terminated by clicking the Reset button.
A change of the variable exchange can only become active by downloading the safety application and the default application again.
Substitute values are used for variable exchange as long as the application has not been terminated but no current values can presently be exchanged (see Safety User Manual "Coordination with the Standard Controller").
|
Important |
|---|---|
|
The type consistency of the I/O channels is guaranteed only if the application revision levels on the safety controller and on the standard controller correspond to the revision level of the same translatable project. |