How to manage variables when an IO module is moved from one location to another within the iCube Engineer project
| Version Number | Description |
|---|---|
| 1.0 | Moving SLIO slices within the iCube Project |
This application note shows how to move SLIO slices around in the Project. i.e. Bus Coupler to Slicebus or exchanging one SLIO slice for a similar SLIO slice (but different part number).
1. Supported Components
| Component Name | Version |
|---|---|
| iC9200 series | ≥ 2024.9 |
| iCube Engineer | ≥ 2024.9 |
2. Solution Details
Moving a SLIO component from a Bus Coupler to Slicebus:
- The user needs to physically add the slice hardware to the Slicebus of the iC9200 series controller.
- Inside iCube Engineer the slice needs to be added to the Slicebus area inside the plant
- Inside the PLC data list, the bus coupler based variable (EC_xx) needs to be refactored to the variable name of the Slicebus slice (SB_xx).
- Select the row with the item that needs to be refactored (EC_slio1_do1). Right click and select 'refactoring'. One may need to update the cross reference table to be able to refactor.
- Once refactored, there will be two instances of the SB_xx variable in the PLC data list. Both variables will be highlighted red because there are duplicate PLC variables.
- Delete the one under the EtherCAT bus Coupler because this module is being removed from the plant. If the EC bus coupler module has already been deleted from the plant, the EC_xx variable will have the comment that it has been unlinked from hardware ports.
- All of the code that was in the POUs is now associated to the SLIO slice on the Slicebus.
Changing a SLIO slice to a different variant on the Bus Coupler or Slicebus:
For this example the 022-1BF50 DO8 (NPN) card will be replaced with the 022-1BF00 DO8 card
- The user needs to physically change the slice hardware from the 022-1BF50 DO8 to the 022-1BF00 DO8 module.
- Inside iCube Engineer, the 022-1BF50 module needs to be removed from the bus coupler and the 022-1BF00 module needs to be added
- Inside the PLC data list the old Slice variable needs to be refactored to the same name and Datatype as the new slice variable. Note that the removed module's variable will have an "unlinked" comment attached to it.
- Select the row with the item that needs to be refactored (EC_slio1_do1). Right click and select 'refactoring'. One may need to update the cross reference table to be able to refactor.
- Once refactored, in the PLC data list, both variables will be highlighted red because there are duplicate PLC variables.
- Delete the one under the EtherCAT bus Coupler
- All of the code that was in the POUs is now associated to the 022-1BF00 DO8 module