CODESYS Driver

Observe these guidelines when importing the CODESYS controller tags into
FactoryTalk Optix Studio
.

Controller tags

You can load tags in the offline mode into
FactoryTalk Optix Studio
from these file types:
Version
File
CODESYS 2.3
SYM
CODESYS 3
XML

Shortening of Names

The Shortening of Names feature is only available for CODESYS 3
XML
files.
Confirm that the tag names on the controller are available in this format.
Application name
.
POU name
.
Variable name
Once the
Import Device Variable
dialog box grid populates, in the
Shortening of Names
dialog box, select:
No
No changes will be applied to tag names.
Yes
The following part of the tag name will be removed:
Application name
.
POU name
. This feature is available for controller and file import methods.
For example, if the controller variable is
Application.PLC_PRG.bPower
, the
Application.PLC_PRG
part will be removed and only
bPower
will remain as a Premium HMI®tag name.
Yes, remove all levels
This option is useful if you import multiple variable declaration levels. All declaration levels will be removed and only the variable name will remain. This option is available only when you import tags from a file.
For example, assuming that
Variable name
is nested into POUs like
Application name
.
POU name
.
POU_1 name
.
Variable name
, the Premium HMI® tag will be imported as
Variable name
.
IMPORTANT: The shortening process may not generate unique tag names. If the same variable is declared in more than one POU, the tag will be imported with no shortening applied.

Import Dialog Grid

For every Item in the grid, a row is created with these columns.
Name
-
Type
-
Access Type
-
Size
-
Description
Name
Used to fill the
Item Name
property of the dynamic string and to build the name of the correspondent Supervisor variable. Dots are substituted with underscores.
Type
Represents the variable type in the dynamic string.
Access Type
Determines the permitted type of access:
r
read-only
w
write-only
n
none
b
read and write
Size
Represents the size of the controller variable (in bytes).
Selecting a number of rows from the list and selecting
Import
creates a corresponding number of variables inside the Supervisor. The variable type is inherited from the controller type and the variable name is inherited from the controller tag
Item Name
property.
NOTE: To connect with the controller and retrieve the variables data, verify that the
Device IP Address
and the controller
Address
properties have valid values.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.