Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Communication Drivers

Connect to CODESYS 2​.x or 3​.x runtime using CFILE

Connect to CODESYS 2​.x or 3​.x runtime using CFILE

  • Last UpdatedSep 02, 2024
  • 2 minute read

Connect to CODESYS 2.x or 3.x Runtime using CFILE

Configure the Station parameter using the following syntax:

CFILE,<Configuration File>,<Configuration ID>

where,

<Configuration File>,: the path relative to the application path.

<Configuration ID>: the configuration ID within the configuration file.

Note: The parameters specified between angle brackets < > indicate that the parameter is mandatory, and the parameters between square brackets [ ] indicate that it is optional.

Examples:

Station

Description

CFILE,.\A\File.ini,PLC:PLCWinNT

Connects to the Runtime using the configuration in the file located in a sub-directory A which is inside the application folder. The connection is established using the configuration in section [PLC:PLCWinNT] inside the file.

CFILE,C:\Config\OPCServer.ini,0

See below for explanation

To find the Configuration file, find the OPCConfigurator for the device that comes with the device software, as shown in the image below.

OPC-Configurator

From the File menu click Save As and choose a location to save the file in. This is the first parameter in the example of station CFILE,C:\Config\OPCServer.ini,0

The file looks like this on opening in notepad:

OPCServerFile

Note the Parameter under [Server] for the PLC# which pertains to the controller you want to communicate with. This corresponds to 0 in the example station : CFILE,C:\Config\OPCServer.ini,0

TitleResults for “How to create a CRG?”Also Available in