A “SP PLCWinNT V2.4” CODESYS V2.3 Gateway Server is running on the remote device. Moreover, an application is running with a symbol configuration. The remote device exists in another network so that the communication has to be routed via a gateway.
-
Below your application in the device tree, insert a “Data Sources Manager” object.
-
Select the “Data Sources Manager” object and click “Add Object Data Source”.
The “Add Data Source” dialog opens.
-
In the “Name” field, specify the data source name.
Example:
ds_Remote_Device
-
As the data source type, select “ CODESYS Symbolic”.
The data transfer is done via symbolic monitoring. The “Initialize Data Source Wizard – Provider settings” dialog opens.
-
As the connection type, select “ CODESYS V2 (via gateway)”.
You can also specify the communication parameters for the gateway.
-
In the “Connection Settings” group, specify the connection parameters for both the gateway and the device configuring the remote device.
Example: driver type
TCP/IP (Level 2 Route)
, addresslocalhost
, port1200
The connection to the remote device is established and the application is read. The “Initialize Data Source Wizard – Browse data items” dialog opens. The remote control variables are displayed in the tree view on the “Variables” entry.
-
In the “Connection Settings” group, specify the connection parameters for configuring the remote device. Example: “[03A7)”
The connection to the remote device is established and the application is read. The “Initialize Data Source Wizard – Browse data items” dialog opens. The read remote control variables are displayed in the tree view on the “Variables” entry. The top node is the application, which is displayed with its remote application name.
-
In the tree view, select which control variables should be transferred. Then click “Finish”.
The data source is initially configured. The
ds_Remote_Device
object is added below the “Data Sources Manager” node. The object is open, and on the “Variables” tab, the data source variables to be generated are displayed in the tree view. The GVLds_Remote_Device
, where the data source variables are declared, is located below the “DataSource_Objects” folder.