Create a Motor object

Object properties will be used to generate interface elements automatically.
  1. Create the Motor object:
    1. In Project view pane, right-click theModel folder and select New > Object.
    2. Hover-over the object, select Edit, and enter Motor.
  2. Create Motor variables:
    1. In Properties pane, create seven variables by selecting Add at the top and selecting Variable.
    2. Rename the variables, by hovering over each variable, selecting 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 checkbox.
    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.