Get MBLogic at SourceForge.net. Fast, secure and Free Open Source 
	software downloads

Help Topics

Topic Details for HMI

Using the SVG Library with Inkscape

Combined Input and Output Devices

Combined input and output devices include features from both input and output devices to allow activating inputs and viewing the current state to be performed by a single widget.


Illuminated Push Buttons

Illuminated push buttons are simply normal push buttons without a colour specified. This allows their colours to be set in the same way as a pilot light. Illuminated push buttons are found with the regular push buttons and can be recognized by their names ending with "none" rather than with a colour.

The properties used are the same as those for regular push buttons, but in this case the "id" must be set in order to act as pilot lights.

  1. Set the SVG "id" property using the same method as perscribed for pilot lights. This enables the output feature.
  2. Set the label text and scripting parameters using the same method as perscribed for push buttons. This enables the input feature.

Selector Switches

Selector switch consists of two differnt components. These are the selector switch labels and the selector switch operator ("knob"). The "labels" are not just for labeling purposes. They also act as push buttons to assist in setting the state of the selector switch.

The selector switch operator serves two purposes. It serves as an input device in that it acts like a push button when activated. It also acts as an output device in that the rotation angle of the operator indicates the current state of the tag it follows.

A two position selector switch requires two labels and one actuator. A three position selector switch requires three labels and one actuator.

The actuator on a two position selector switch will toggle when activated. The actuator on a three position selector switch will move to a set position when actuated (this position is determined by one of the configuration parameters).

selector switches

Two Position Selector Switches

To use a two position selector switch:

  1. Drag a selector switch label onto the drawing and position it where desired.
  2. Set the label text and scripting parameters using the procedures as described for single acting push buttons.
  3. The label should write either a 0 or 1 constant to the server, according to whether you wish this position to be "off" "on".
  4. Repeat this for the second selector switch label. The constant written by label should be the opposite of that chosen for the first label.
  5. Drag a selector switch onto the drawing and position it where desired.
  6. Set the script parameters using the same procedures as described for toggle push buttons.

Three Position Selector Switches

To use a three position selector switch:

  1. Drag three selector switch labels onto the drawing and set their parameters using the same procedure as described for two position selector switches.
  2. However, the three position constants should be a negative number for one position, zero for another, and a positive number for the last position (e.g. -1, 0, and 1).
  3. Drag a selector switch onto the drawing and position it where desired.
  4. Set the script parameters using the same procedures as described for a selector switch label. The constant used will determine the position value the switch writes to the HMI server when activated.