Create a compound object to display the motor start and stop states and rotation speed.
By using a [STRUCT] compound object property, start, stop, and rotation speed can be displayed in the [Properties] window of the Compound Object as associated properties. After placing the Compound Object on the screen, assign variables to each property.

Create the following properties
Parent element
| [Name] | [Display Name] | [Type] |
| MOTOR | MOTOR | [STRUCT] |
Child element
| [Name] | [Display Name] | [Type] | [Supported Values] |
| START | START | [BOOL] | Select only [Variable] |
| STOP | STOP | [BOOL] | Select only [Variable] |
| SPEED | SPEED | [DINT] | [Select All] |
Drag and drop the following objects from the [Tool Chest] to the [Layout].
| Tab | Sub Tab | Property | Value |
|
| [Function] | [Touch] | [Operation] | [Type] | [Bit] |
| [Operation] | [Set] | |||
| [Destination] |
[Name]: START |
|||
| Tab | Sub Tab | Property | Value |
|
| [Function] | [Touch] | [Operation] | [Type] | [Bit] |
| [Operation] | [Set] | |||
| [Destination] |
[Name]: STOP |
|||
| Tab | Sub Tab | Property | Value |
[Function] |
[Basic] |
[Current Value] |
[Name]: SPEED |
Default value