<< Prev        Next >>

ID : 1879

Numerical Input Button

This part is a button that displays a numerical value. Pressing this button switches the pendant operation screen to numeric keypad input for directly updating that value.

This part has CLICKED and RELEASED events similar to those for buttons.

Numerical Input Button Example

1

Load the editor and place a numerical input box on the panel layout.

(Optional) Specify an initial value.

2

Adding action source code

The procedures for adding action source code are the same as for buttons.

3

Changing numerical input box properties

In addition to the color, position, and other properties that this part shares with buttons, it has the unique properties of a floating-point value (.value) and display format, decimal or hexadecimal (.style).

This example uses a button press on the same screen to read F-type global string variable #10 into a text box and adds 3 to the value then store that value in F-type global string variable #11.

Load the editor and place a numerical input box and button on the panel layout.

Open the Source Code Edit window, select PB1 and CLICKED to create the action source code skeleton, and add the following lines.

The procedures for accessing properties are the same as for all other parts.

NB1.value = F[10]

F[11] = NB1.value + 3

 

ID : 1879

<< Prev        Next >>