Enable I/O auto assignment in the exported CSV file
- Last UpdatedJul 26, 2024
- 2 minute read
You can use exporting to a CSV file to convert a Galaxy that contains traditional I/O hard coding to use I/O auto assignment instead. If you are planning to expand an existing Galaxy by adding many objects, or if you are upgrading PLCs, converting hard coded I/O references to auto assignment can save you time. To convert the references, edit the CSV file as described below. This bulk edit is faster than changing each object individually in the IDE object editor.
The exported CSV file displays the entry "---Auto---", for input and output attributes that use I/O auto assignment. This entry indicates that I/O auto assignment is enabled for the attribute. The actual I/O auto assignment to a DI Object and scan group is not preserved in the exported file. If you want to preserve existing I/O auto assignment settings, export objects to a package files instead of to a CSV file. See Export objects for additional information.
To convert hard coded I/O references, edit the CSV file to replace the hard coded reference with "---Auto---" for each <attribute>.InputSource and/or <attribute>.Output.Dest. Import the edited objects back into the Galaxy, and then assign the objects in the IO Devices view of the IDE to a DI Object and scan group.
For more information about I/O auto assignment, see I/O auto assignment.
To convert hard coded I/O references to I/O auto assignment
-
Export the objects with hard coded I/O references to a CSV file.
-
Open the exported .CSV file in a text editor or Excel.
-
In the data row of the Attribute.InputSource column, delete the hard coded I/O assignment. Enter "‑‑‑Auto‑‑‑" in the data row.
-
Repeat for each object that you want to enable for I/O auto assignment.
-
In the data row of the Attribute.OutputDest column, delete the hard coded I/O assignment. Enter "‑‑‑Auto‑‑‑" in the data row.
-
Repeat for each object that you want to enable for I/O auto assignment.
-
Save your changes.
To complete the process of activating I/O auto assignment
-
Import the objects in the edited CSV file. See Import objects from a CSV file for additional information.
Once imported, the objects will appear in the IO Devices view, under the Unassigned IO Device folder.
-
Drag and drop objects in the IO Devices view to link the objects to the applicable DI Object and scan group. See I/O auto assignment for additional information.