Create a Motor object

Object properties will be used to automatically generate interface elements.
  1. Create the Motor object:
    1. In
      Project view
      pane, right-click the
      Model
      folder and select
      New
      Object
      .
    2. Hover-over the object, select
      Edit
      Edit
      , and enter
      Motor
      .
  2. Create Motor variables:
    1. In
      Properties
      pane, create seven variables by selecting
      Add
      Add
      at the top and selecting
      Variable
      .
    2. Rename the variables, by hovering over each variable, selecting
      Edit
      Edit
      , and entering:
      • Acceleration
      • Address
      • Address2
      • Enabled
      • Image
      • Speed
      • Variable1
  3. Configure the Motor variables types:
    TIP: Graphical objects are created based on the variables types.
    1. Next to
      Acceleration
      , select
      Int32
      and select
      Float
      .
    2. Next to
      Address
      , select
      Int32
      and select
      String
      .
    3. Next to
      Address2
      , select
      Int32
      and select
      String
      .
    4. Next to
      Enabled
      , select
      Int32
      and select
      Boolean
      .
    5. Next to
      Image
      , select
      Int32
      and select
      ResourceUri
      .
      TIP: If you do not see the required option, select the
      Show all
      check box.
    6. Next to
      Variable1
      , select
      Int32
      and select
      Float
      .
  4. Set the Motor variables values:
    1. Set the
      Acceleration
      variable value to
      23.9
      .
    2. Set the
      Address
      variable value to
      192.168.0.1
      .
    3. Set the
      Address2
      variable value to
      10.90.0.1
      .
    4. Set the
      Image
      variable value to
      %PROJECTDIR%\A2_Motor-1.svg
      .
    5. Set the
      Speed
      variable value to
      75
      .
    6. Set the
      Variable1
      variable value to
      35.5
      .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.