Introduction:
When importing an iR-ETN’s XML file into Codesys, you may encounter a message stating, “The PLCopenXML import is not possible because Device not found”. If you see this message, don’t fret, follow the instructions below.
Software Version:
Codesys IDE 3.5.15.50
Codesys package
EasyRemote IO 1.4.7.3+
Codesys install:
We highly recommend using Codesys 3.5.15.50 as the recommended Modbus TCP driver was validated within this version. To install Codesys, please see the section labeled “Where can I download Codesys?” in this post: Click here
Instructions:
Follow the instructions below to avoid the “Device not found” message when importing the iR-ETN’s XML file.
XML Export:
-
To export the iR-ETN’s description file, click on “Export PLCopenXML” within the “File” tab of EasyRemote IO:
-
Configure the “Export file version” to 3.5.15.0 and ensure that you’ve installed the latest Codesys package:
Note: If you have not installed the recommended version of Codesys and the latest Codesys package, Codesys may not recognize the iR-ETN or iR-ETN40R as a Modbus TCP slave device.
-
Uncheck “Init” and ensure that only certain parameters you would like made available within the PLC are selected:
Example: The “Life Guard time” can be re-initialized within the Codesys project.
-
Click “Ok” to save this file when finished.
XML Import:
-
Within the project tree, right-click “Device (Weintek Built-in CODESYS)” and select “Add Device…”:
-
Within the following menu, select an “Ethernet” adapter with version 3.5.15.0 and click the “Add Device…” button in the bottom right corner:
Note: This driver is installed with Weintek’s Codesys package, however, you may need to select the “Display all versions” check box to view this driver.
-
With the “Add Device…” menu still open, click on the “Ethernet” driver within the project tree and select an instance of a “Modbus TCP Master” with version 3.5.15.0 and click the “Add Device…” button in the bottom right corner:
Note: This driver is installed with Weintek’s Codesys package, however, you may need to select the “Display all versions” check box to view this driver.
-
Within the “Add Device…” menu, click “Close”. Then, within the “Project” tab click “Import PLCopenXML”:
-
Locate the PLCopenXML file generated by EasyRemote IO and click “Open”:
-
Ensure that the “Modbus_TCP_Master” is selected and click “Ok”:
Note: If “Modbus_TCP_Master” is not selected the dialog will state that “There are no objects in the export file which can be imported at the currently selected location”.