Create a Motor object
Object properties will be used to generate interface elements automatically.
- Create the Motor object:
- InProject viewpane, right-click theModelfolder and select .
- Hover-over the object, select , and enterMotor.
- Create Motor variables:
- InPropertiespane, create seven variables by selecting at the top and selectingVariable.
- Rename the variables, by hovering over each variable, selecting , and entering:
- Acceleration
- Address
- Address2
- Enabled
- Image
- Speed
- Variable1
- Configure the Motor variables types:TIP: Graphical objects are created based on the variables types.
- Next toAcceleration, selectInt32and selectFloat.
- Next toAddress, selectInt32and selectString.
- Next toAddress2, selectInt32and selectString.
- Next toEnabled, selectInt32and selectBoolean.
- Next toImage, selectInt32and selectResourceUri.TIP: If you do not see the required option, select theShow allcheckbox.
- Next toVariable1, selectInt32and selectFloat.
- Set the Motor variables values:
- Set theAccelerationvariable value to23.9.
- Set theAddressvariable value to192.168.0.1.
- Set theAddress2variable value to10.90.0.1.
- Set theImagevariable value to%PROJECTDIR%\A2_Motor-1.svg.
- Set theSpeedvariable value to75.
- Set theVariable1variable value to35.5.
Provide Feedback