Create a numeric input object
Use the numeric input object to enter a value that will be written to a tag in an external device or a tag database. At runtime, the numeric information must be entered in the numeric format of the current runtime language. You can configure the decimal symbol and digit grouping symbol of the current runtime language in the Windows Region and Language of Control Panel. When you write a value to a tag, the previous value is also logged in the Diagnostics List so that you can view the values easier.
If you specify
Maximum
and Minimum
values in the Connections
tab, this creates a range of values that is valid. At runtime, if the number entered is outside these values or not in the correct format, the input object changes color. A message is logged to the Diagnostics List and the download is canceled.You can also use the option,
Continuously update
, to set up an input field to display a value when it is not being used to enter a value. This eliminates the need for creating both input and display objects for a single tag.To create a numeric input object:
- In the Graphics editor, clickObjects>Numeric and String>Numeric Input.
- Drag the mouse to draw a box the approximate size the numeric input object is to be.
- In theNumeric Input Propertiesdialog box, in theConnectionstab, specify theValueproperty. If required, specify theMinimumandMaximumvalues.
- In theGeneral,Appearance, andCommontabs, set up how the numeric input object will appear and behave at runtime.TIP:In theBehaviortab of theDisplay Settingsdialog box you can specify the color that input objects will be when operator input errors occur.Values can be uploaded from a recipe file or a tag in an external device, to numeric input objects.You can create a recipe at runtime by saving the values from numeric input objects in a graphic display to a recipe file.
Provide Feedback