Visualization element ‘Dip switch’, ‘Power switch’, ‘Push switch’, ‘Push switch LED’, ‘Rocker switch’

Symbol: Dip switch c949af41f81c8ef6c0a8640e00e06195_ffb2e84b82ae1cd1c0a8640e00358814 , Power switch c949af41f81c8ef6c0a8640e00e06195_8025f51182abe4b4c0a8640e01dc273c , Push switch c949af41f81c8ef6c0a8640e00e06195_474e0cac8321e37fc0a8640e0006bb7f , Push switch LED c949af41f81c8ef6c0a8640e00e06195_240069ad832445d0c0a8640e0047ad7b , Rocker switch c949af41f81c8ef6c0a8640e00e06195_edee998987664557c0a8640e0094b4f5

Tag: Lamps/Switches/images

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 ( c949af41f81c8ef6c0a8640e00e06195_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 c949af41f81c8ef6c0a8640e00e06195_9a3f06830c0506c5c0a8640e012f0ace : The Transparent color property is selected.
Transparent color

Pixels in this color are displayed as transparent.

Requirement: Transparency is activated.

  • c949af41f81c8ef6c0a8640e00e06195_2be833ef7deb1e6ec0a8640e0056e76c The Color dialog box opens.
  • c949af41f81c8ef6c0a8640e00e06195_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.
Tap FALSE

c949af41f81c8ef6c0a8640e00e06195_9a3f06830c0506c5c0a8640e012f0ace : The value TRUE is assigned to the Variable property instead of the value FALSE, and back.

Requirement: Image tapper is selected in the Element behavior property.

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