Create a PLCopen Axis

  1. In the Project Explorer, under PLCopen, right-click the Axes folder.
  2. Select the New Axis command in the menu.
    The Create PLCopen Axis dialog box opens. (Figure 1)
  3. Figure 1: Create PLCopen Axis dialog box

  4. In the Name text box, enter the new axis name.
  5. Click OK to save the changes or selections and close the dialog.
  6. Right-click on the new axis.
  7. Complete the axis properties.
    See Change a PLCopen Axis.
  8. Figure 2: Dictionary - Variables tab

  9. Compile the project to generate the code for the PLCopen axis reference(s).
    Each axis appears in the variable type PLCopenCode.
    This code is used by the PLCopen Global variable.
    The PLCopen.XXXXXX_ref (e.g., MyAxis1) is an instance of an AXIS_REF Structure that can be used in PLC programs. (Figure 3 and Figure 4)

Figure 3: Example: PLCopen.XXXXXX_ref (e.g., MyAxis1)

 

Figure 4: Example: PLCopen.XXXXXX_ref (e.g., MyAxis1)


  • The PLCopen axis Name and Number (created in the PLCopen Axis Data dialog) are automatically applied to the PLCopen instance under Global variables in the Dictionary when the project is compiled.