Visualization element ‘Rotary switch’

Symbol: b1a8d4b3cca5e319c0a864632310ab5d_7fd05815cd097c6dc0a864636e92685e

Tag: Lamps/Switches/Bitmaps

This element assigns a value to a Boolean variable. The switch position “on” the value TRUE to the variable, and the switch position “off” assigns the value FALSE. You use the mouse to change the switch position.

Element properties

Element name

Optional

Tip: Assign individual names for elements so that they are found faster in the element list.

Example: Operating_Switch.

Element type Element-dependent: Dip switch, Power switch, Push switch, Push switch LED, or Rocker switch.

Element property ‘Position’

The position defines the location and size of the element in the visualization window. These are based on the Cartesian coordinate system. The origin is located at the upper left corner of the window. The positive horizontal x-axis runs to the right. The positive vertical y-axis runs downwards.

X

X coordinate of the upper left corner of the element

Specified in pixels.

Example: 10.

Y

Y coordinate of the upper left corner of the element

Specified in pixels.

Example: 10.

Width

Specified in pixels.

Example: 150

Height

Specified in pixels.

Example: 30

Note

You can also change the values by dragging the box symbols ( b1a8d4b3cca5e319c0a864632310ab5d_7b449e02d0393877c0a8640e01fd8c9e ) to other positions in the editor.

See also

Variable

Variable (BOOL).

The value of the variables TRUE and FALSE indicates the switch position on/off.

Image settings

Transparency b1a8d4b3cca5e319c0a864632310ab5d_9a3f06830c0506c5c0a8640e012f0ace : The Transparent color property is selected.
Transparent color

Pixels in this color are displayed as transparent.

Requirement: Transparency is activated.

  • b1a8d4b3cca5e319c0a864632310ab5d_2be833ef7deb1e6ec0a8640e0056e76c The Color dialog box opens.
  • b1a8d4b3cca5e319c0a864632310ab5d_379d3b8945773148c0a8640e0139d9cb : A drop-down list with style colors opens.
Scaling type

Reaction of the element when the dimension of the Frame element is changed:

  • Isotropic: The height and width of the image are resized proportionally to the Frame.

    Please note: To retain the alignment of elements also within a scaled Frame element, define the Horizontal alignment or Vertical alignment explicitly with Centered.

  • Anisotropic: The image fills the entire Frame regardless of its proportions.

Horizontal alignment

Horizontal alignment of the image within the element frame or element

  • Left
  • Centered
  • Right

Requirement: Scaling type is Isotropic.

Vertical alignment

Vertical alignment of the image within the element frame or element

  • Top
  • Centered
  • Bottom

Requirement: Scaling type is Isotropic.

Element behavior
  • Image toggler: Every mouse click changes the switch and the Variable value.
  • Image tapper: The switch is “on” and the Variable value is TRUE while the mouse button is pressed.
Orientation
  • At top: The switch turns from top right to top left.
  • At side: The switch turns from top right to bottom right.
Color change b1a8d4b3cca5e319c0a864632310ab5d_9a3f06830c0506c5c0a8640e012f0ace : The element changes its color if Variable is set to TRUE.

Element property ‘Texts’

Tooltip String display as tooltip for the element. Example: Valid access.

Element property ‘State variables’

The variables control the element behavior dynamically.

Invisible

Variable (BOOL). Toggles the visibility of the element.

TRUE: The element is not visible at runtime.

Deactivate inputs

Variable (BOOL). Toggles the operability of the element.

TRUE: User inputs do not have any effect in runtime more. The element is shown as deactivated.

Element property ‘Background’

Image

Drop-down list with background colors

Depends on the visualization style

Element property ‘Access rights’

Requirement: User management is set up for the visualization.

Access rights

Opens the Access rights dialog box for changing the access rights for the element.

Status messages:

  • Not set. All rights.: Access rights for all user groups : operable
  • Rights are assigned: limited rights: Access is restricted for at least one group.

See also