The logical device Choice provides a dropdown field which could be used to shows and saves a selection. By default "ON" and "OFF" are set as possible options, but this could be changed in the device setup. The choice field is also lockable by pressing a button which means that you can set it to readonly.
Device window pages
The following table shows which device window pages are available with this individual device type. Tool-bar functions not mentioned here are described at the general description of device windows .
--- This page shows the choice and lock button
--- The device info page.
--- The maintenance page. The configuration parameters described below are set at this page.Configuration parameters
At the maintenance contains settings to configure this logical device.
| parameter | description |
|---|---|
| choice | A comma separated list with all choices which should be available in the dropdown list |
| label | Sets the label of the comment field in the device window. (not required) |
Choice and lock status are saved on the M&C system and preserved after a system restart
Variables defined by this device driver
| name | type | flags | range |
|---|---|---|---|
| info.driver | TEXT | R/O | StringRange R/O |
| info.type | TEXT | R/O | StringRange R/O |
| info.port | TEXT | R/O | StringRange R/O |
| info.frame | TEXT | R/O | StringRange R/O |
| config.choices | TEXT | SAVE SETUP | StringRange |
| config.label | TEXT | SAVE SETUP | StringRange |
| comment | CHOICE | SAVE | EnumRange (OFF ON) |
| lock | BOOLEAN | SAVE | BooleanRange (true false) |