📄Add Additional Axis
Adding additional axis
Here are the steps to add a new axis to the project using the provided axis template:
- Copy the AxisTemplate package that is located in the MachineControl package of the Logical View. Paste it into the MachineControl package.

- Rename the copied package. (Note: for the rest of these steps, the copied package will be referred to as the "NewAxis" package.)

- Rename the contained AxisMgr task to match the new package name. Deploy this task to the Software Configuration.
- In AxisInfo.tmx of the NewAxis package:
- Change the namespace to something unique (make sure it starts with "IAT/").
- Modify the value of the text ID “Name” to describe the axis.

- In AxisAlarms.tmx of the NewAxis package:
- Change the namespace to something unique.
- Delete all existing entries. Generic axis alarms are handled by the AxisTemplate package.
- Add entries to correspond to alarm messages as needed.
- In the Configuration View → TextSystem →TC.textconfig, add the two text files from step 4 and 5 to the "Tmx files for target" list.

- In the Configuration View, copy/paste AppAxis_1.axis file in the mappMotion package. Re-name the copied file. (Note that the renamed file cannot exactly match the name of the corresponding task in the Logical View.) Then execute the following steps within the copied file:
- Re-name the MpLink as desired
- Update the namespace references in the Alarms section to the namespaces you chose in steps 4.a and 5.a. Alternatively, you can open the .axis file in a text editor and do a find-and-replace. The namespace is identified with the ‘$’ within the first set of curly brackets. For example: {$Namespace/TextID}

- Optional: If you are planning to run the axis in simulation, then also copy/paste the VAppAxis1.purevaxcfg file from within the AppAxis_1 package in the Configuration View. Then execute the following steps within the pasted file:
- Rename the MpLink
- Assign the axis reference to the MpLink from step 9.a.

- In the Logical View → MachineControl package → NewAxis package → AxisMgr.st, update the MpLink reference on line 33 to the name you chose in step 9.a.

- In the Configuration View → mappServices package, copy/paste the AppAxis_1 package. Rename the copied package. Then execute the following steps within the two contained files:
- Rename the .mpalarmxcore file accordingly. Within this file, re-name the MpLink. Then in AxisMgr.st on line 42, paste this new MpLink.

- Rename the .mpcomgroup file accordingly. Within this file:
1.Rename the MpLink of the group accordingly.
2.Change the Child 1 element to match the new MpLink from step 7.a.
3.Change the Child 2 element to match the new MpLink name you created step 10.a.
- Rename the .mpalarmxcore file accordingly. Within this file, re-name the MpLink. Then in AxisMgr.st on line 42, paste this new MpLink.
- If you are not running a virtual axis, then in the Physical View, in the drive configuration that corresponds to this axis, set the axis reference to the MpLink you named in step 7.1.

Note that in a future version of the Framework, this process will be more automated.