MBLogic for an open world in automation
All push buttons contain embedded Javascript with parameters that must be edited using the XML editor in Inkscape. Illuminated push buttons are also output devices which are controlled via the SVG "id" property.
A menu push button selects an SVG layer for display.
Type | Name | Label text? | Embedded Javascript? | Address with ID? | Description | |
---|---|---|---|---|---|---|
SVG menu push button. | pb_menu_<colour> | Yes | Yes | No | Push button for selecting SVG layers. |
A momentary push button writes a value to the server whenever it is activated. It writes a different value when it is deactivated, or when the mouse cursor is moved away from the button (this prevents the operator from "locking" the button down by sliding the mouse away while depressed).
Type | Name | Label text? | Embedded Javascript? | Address with ID? | Description | |
---|---|---|---|---|---|---|
Momentary push button. | pb_oblong_moment_<colour> | Yes | Yes | No | Oblong momentary action push button. | |
Momentary push button. | pb_rectangular_moment_<colour> | Yes | Yes | No | Rectangular momentary action push button. | |
Momentary push button. | pb_square_moment_<colour> | Yes | Yes | No | Square momentary action push button. |
A toggle action push button writes to the server the opposite boolean state of the value in a reference tag.
Type | Name | Label text? | Embedded Javascript? | Address with ID? | Description | |
---|---|---|---|---|---|---|
Toggle push button. | pb_oblong_toggle_<colour> | Yes | Yes | No | Oblong toggle action push button. | |
Toggle push button. | pb_rectangular_toggle_<colour> | Yes | Yes | No | Rectangular toggle action push button. | |
Toggle push button. | pb_square_toggle_<colour> | Yes | Yes | No | Square toggle action push button. |
A single action push button writes a value to the server when activated, but unlike a momentary action push button does nothing when released.
Type | Name | Label text? | Embedded Javascript? | Address with ID? | Description | |
---|---|---|---|---|---|---|
Single action push button. | pb_oblong_single_<colour> | Yes | Yes | No | Oblong single action push button. | |
Single action push button. | pb_rectangular_single_<colour> | Yes | Yes | No | Rectangular single action push button. | |
Single action push button. | pb_square_single_<colour> | Yes | Yes | No | Square single action push button. |
An increment or decrement push button reads a reference tag, adds a specified amount to the value, and then writes the result to the same or a different tag on the server. Whether an increment or decrement operation takes place is determined by the sign of the increment amount specified as a parameter.
Type | Name | Label text? | Embedded Javascript? | Address with ID? | Description | |
---|---|---|---|---|---|---|
Decrement push button. | pb_tridown_<colour> | No | Yes | No | Triangular numeric decrement push button. | |
Decrement push button. | pb_oblong_dec_<colour> | Yes | Yes | No | Oblong numeric decrement push button. | |
Decrement push button. | pb_rectangular_dec_<colour> | Yes | Yes | No | Rectangular numeric decrement push button. | |
Decrement push button. | pb_square_dec_<colour> | Yes | Yes | No | Square numeric decrement push button. | |
Increment push button. | pb_triup_<colour> | No | Yes | No | Triangular numeric increment push button. | |
Increment push button. | pb_oblong_inc_<colour> | Yes | Yes | No | Oblong numeric increment push button. | |
Increment push button. | pb_rectangular_inc_<colour> | Yes | Yes | No | Rectangular numeric increment push button. | |
Increment push button. | pb_square_inc_<colour> | Yes | Yes | No | Square numeric increment push button. |
Illuminated push buttons combine the characteristics of a push button and a pilot light. Each of the push buttons described above has an illuminated equivalent. They have both embedded Javascript and SVG "id" properties.
The buttons are listed here briefly.
Type | Names |
---|---|
SVG menu | pb_menu_none |
Momentary | pb_oblong_moment_none, pb_rectangular_moment_none, pb_square_moment_none |
Single | pb_oblong_single_none, pb_rectangular_single_none, pb_square_single_none |
Toggle | pb_oblong_toggle_none, pb_rectangular_toggle_none, pb_square_toggle_none |
Increment/decrement | pb_tridown_none, pb_triup_none |
Selector switch labels | ss2_label_none, ss3_label_none |