ToggleButton
Graphic button that allows to control a PLC label valueDescription of properties:
- stringID: text to be displayed inside the button (mandatory). Using char “\” as separator, it’s possible to divide the text on multiple lines. To increase space between lines use more than one “\” chars as separator (example: “\\\”).
- align: vertical alignment of text
- justify: horizontal alignment of text
- alignImage: vertical alignment of the image inside the button
- JustifyImage: horizontal alignment of the image inside the button
- image: icon or bitmap to be displayed inside the button (mandatory)
- stretched: it allows to stretch the icon or bitmap size up to button size.
- hint: Lets you assign to the data a description string taken from the text database, displayable in another part of the screen as a hint. For this purpose, use the StringHint component.
- flat: if set on true, the 3D effect of the button is reduced to a minimum, increasing the space available to the image
- mode: if “label” is used, it specifies how to control the PLC value.
- TOGGLE: every time the button is pressed and released, the PLC label inverts its value (0 => 1, 1 => 0)
- MOMENTARY: pressing the button the PLC label is set to “1”, releasing the button the PLC label is resetted to “0”. In this case the setting is not recorded in DataHistory.
- inverted: when used with mode “momentary” it inverts the value (pressed = 0, released = 1)
- label: identifies the data on the PLC (allowed formats: label, label[constant], label[label2])
- toHistory: it allows to choose if the data change, which occurs to the data associated to “label”, should enter inside the global Data History log, or not.
- bitmask: if specified, it allows to control a single bit value inside the PLC label. 0 = bit 0 LSB, 31 = bit 31 MSB.