Symmetric PDO mapping

Creating general process data / simple data exchange (symmetric PDO mapping)

Procedure:

Right-click on IO Inputs or IO Outputs within the EL6695 directory tree to show the context menu. Select Insert Variable… (TwinCAT 2) or Add New Item (TwinCAT 3) to create new variables / process data (see following figure).

Symmetric PDO mapping 1:
Context menu for IO inputs: Adding new variables
Symmetric PDO mapping 2:
Dialog for adding new variables (here 4 x BYTE), beginning with the name Var89

In this dialog a name can now be assigned for the variable, and the data type can be selected from a wide range of possible types. Several variables of the same type can be declared simultaneously via the Multiple selection box, and a defined start address can be set. Once the above dialog is confirmed, the process image shown below appears.

Symmetric PDO mapping 3:
Newly added variables on the secondary side of the EL6695

The variable names are incremented automatically, as shown here. Output variables are created accordingly.

On the primary side, i.e. the “remote side” of the EL6695, four suitable output variables of the same type should now be created for the data exchange. These variable do not have to have the same name, i.e. they can be called Var85 to Var88.

Symmetric PDO mapping 4:
Creating process data

Once here too 4 x BYTE variables have been added to the outputs on the primary side of the EL6695, all values are output continuously via the four input variables, once the variables have been written, e.g. via a PLC program. If, for example, a value is written into variable Var86, the same value is written to the sequence corresponding output variable Var90 in the mapping of the remote side of the EL6695 (as long as the terminal is in OP state).

Transfer direction of two controls PLC1 to PLC2

Generally the terminal will be used to transfer data between two controls. Given that the bridge maps an output as an input and an input as an output the following manner of transmission is the result:

In each case, the EL6695 bridge terminal “maps” output value to input value in byte order and vice versa (without other configurations or settings). Thereby the data type of the used variables have to be the same on every side.

Automatic configuration via the configuration interface/extension:

The EL6695 extension with the Create Configuration button makes the created variables readable online on the other side, so that they do not have to be created separately there. Obviously, this function is recommended to use for a wide process image and is available by the plug-In [EL6695], only. Additionally, the EL6695 have to be ready to operate and accessible "online“ from both sides. The procedure for TwinCAT 3 will be described below by created variables on the primary side automatic mirrored on the secondary side:

According to the procedure described here the variables could also be created for the primary side, if a set of I/O variables, i.e. a PDO-Configuration is present on the secondary side.

Restriction Variables

The following PDO/variable types are to be used for this procedure:
Byte, UINT, UDINT

Use without TwinCAT

If no TwinCAT EtherCAT Master with [Load PDO info from device] is available on the other side, the PDO upload mechanism must be reproduced there:

- Read PDO assignment objects 0x1C12, 0x1C13
- then read out the PDO Mapping Objects 0x160x (outputs), 0x1A0x (inputs) and
- read out the PDOs 0x60xx, 0x70xx accordingly

Symmetric PDO mapping 16:

If a scan procedure is not possible/ not desired

To let variables be created on the secondary side, after steps B) and C) of [Create configuration], the terminal on the primary side must be set manually into the INIT state and then again into the OP state ("Online" tab: click on Init, then: Safe-Op, Pre-Op, Op). On the secondary side the respective variant of the EL6695 (-0002) can then be inserted instead. Besides the procedure is like described above since E).

Symmetric PDO mapping 17:

Using the sample programs

This document contains sample applications of our products for certain areas of application. The application notes provided here are based on typical features of our products and only serve as examples. The notes contained in this document explicitly do not refer to specific applications. The customer is therefore responsible for assessing and deciding whether the product is suitable for a particular application. We accept no responsibility for the completeness and correctness of the source code contained in this document. We reserve the right to modify the content of this document at any time and accept no responsibility for errors and missing information.

→ Example configuration: symmMap_cfg2