Visualization Element ‘Spin’¶
Symbol:
Tag: Common controls
This element increments or decrements the value of a variable in defined intervals.
Element properties
Element name | Optional Tip: Assign individual names for elements so that they are found faster in the element list. Example: |
Element type | spin |
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: |
Y | Y coordinate of the upper left corner of the element Specified in pixels. Example: |
Width | Specified in pixels. Example: |
Height | Specified in pixels. Example: |
Note
You can also change the values by dragging the box symbols ( ) to other positions in the editor.
See also
Variable | Variable with a numeric data type (example: PLC_PRG.iTemp ) |
Number format | The format of the value in printf syntax (example: %d, %5.2f) |
Interval | Interval used for modification of the value. |
Element property ‘Value range’
Minimum value | Lower limit of the output value
|
Maximum value | Upper limit of the output value
|
Element property ‘Text properties’
The properties contain fixed values for the text properties.
Usage of |
|
Individual text properties Requirement: The Individual settings text property is defined. |
|
Horizontal alignment | Horizontal alignment of the text within the element. |
Vertical alignment | Vertical alignment of the text within the element. |
Font | Example: Default
|
Font color | Example: Black
|
Transparency | Whole number (value range from Example:
Please note: If the color is a style color and already has a transparency value, then this property is write-protected. |
Element properties ‘Color variables’
The properties contains variables for dynamically controlling variables.
Toggle color | Dynamic control of toggle color
|
See also
Element property ‘State variables’
The variables control the element behavior dynamically.
Invisible | Variable (
|
Deactivate inputs | Variable (
|
Element property ‘Input configuration’
The properties contain the configurations for the user input when using the mouse or keyboard. User input is a user event from the perspective of the element.
Note
The input configuration refers to the text area of the element only, not the two buttons.
The Configure button opens the Input configuration dialog box for creating or modifying a user input configuration. A configuration contains one or more input actions for the respective input event. Existing input actions are displayed below it. Example: Execute ST code: |
|
OnDialogClosed | Input event: The user closes the dialog box. |
OnMouseClick | Input event: The user clicks the element completely. The mouse button is clicked and released. |
OnMouseDown | Input event: The user clicks down on the element only. |
OnMouseEnter | Input event: The user drags the mouse pointer to the element. |
OnMouseLeave | Input event: The user drags the mouse pointer away from the element. |
OnMouseMove | Input event: The user moves the mouse pointer over the element area. |
OnMouseUp | Input event: The user releases the mouse button over the element area. |
See also
Tap | When a mouse click event occurs, the variable defined in Variable is described in the application. The coding depends on the options Tap FALSE and Tap on enter if captured. |
Variable | Variable ( Example:
Requirement: The Tap FALSE option is not activated. |
Tap FALSE |
|
Tap on enter if captured |
The value is |
Shift | When a mouse click event occurs, the variable here is described in the application. When the mouse click event ends, its value is toggled with the Toggle on up if captured option. |
Variable | Variable ( If the user releases the mouse button while the mouse pointer is outside of the element area, then the mouse click event is not ended and the value is not toggled. Tip: The user can cancel a started toggle input by dragging the mouse pointer out of the element area. |
Toggle on up if captured | ![]() |
Hotkeys | Keyboard shortcut on the element for triggering specific input actions. When the keyboard shortcut event occurs, the input actions in the Event(s) property are triggered. In this way, it is not the input action itself that leads to this input action, but the mouse input action. |
Key | Key pressed for input action. Example: Note: The following properties appear when a key is selected. |
Event(s) |
|
Shift |
Example: |
Control |
Example: |
Alt |
Example: |
Note
All keyboard shortcuts and their actions that are configured in the visualization are listed in the Keyboard configuration tab.
See also