Numeric and Alphanumeric Screens

Movicon allows you to customize Numeric and Alphanumeric Pads which are opened up the  "numeric pad" and "alphanumeric pad" commands, or with the respective basic script functions. Customized panels can be created by using the Movicon screens and symbols. The customized panel can be created with a screen within which an "Editable Display" and a series of "Buttons" can be positioned. You can then associate the "Append Value", "Remove Value", "Swap Plus-Minus" and "Append Decimal Mode ON-OFF" commands to these buttons so that the values in the display can be changed. To allow Movicon to manage this screen  as a Pad you must insert it into the project's "Numeric Screen" or "Alphanumeric Screen" execution properties. When a request is made to open a Numeric or Alphanumeric Pad, Movicon will open the customized screen instead of the default Pad. The screen will be opened in modal mode. In addition to the two Numeric or Alphanumeric screens some of the system's local variables are managed so that the Pad can work properly. These local variables are:

 

Numeric Screen:

value

value_

minValue_

maxValue_

title_

OK_

 

Alphanumeric Screen:

value

value_

maxChars_

title_

isPassword_

OK_

 

The meaning of these variables are as follows:

 

value = current value of the variable to be changed. When Movicon loads the screen, the local variable is set to the same value as the variable to be set through the  "numeric pad" and "alphanumeric pad" command. The "value" variable should be declared as string type if an Alphanumeric screen is used, or numeric type (i.e. Double) if a Numeric screen is used.

value_ = new value to be assigned to the variable through the "numeric pad" and "alphanumeric pad" command. When Movicon loads the screen, the"value_"variable is set to zero.

The "value_" variable should be declared as string type if an Alphanumeric screen is used, or numeric type (i.e. Double) if a Numeric screen is used.

minValue_ = the minimum value which the variable may obtain.  When Movicon opens the Screen the local minValue_ variable minValue_ is set with the same value in the Pad's open command "Min. Value" field.  No error message will be generated when this limit is exceeded but when the Screen is closed the value will not be transferred to the variable. The minValue_ variable must be declared numeric type (eg. Double)

maxValue_ = the maximum value that the variable may obtain. When Movicon opens the Screen the local mxValue_ variable is set with the same value in the Pad's open command's "Max. Value" field. No error message will be generated when this limit is exceeded but when the screen closed the value will not be transferred to the variable. The maxValue_ variable must be declared numeric type (eg. Double)

maxChars_ = maximum number of characters that the variable may obtain. When Movicon opens the Screen the local maxChars_ variable is set with the same value in the Pad's open command's  "Max. Chars"  field. No error messages are generated when this limit is exceeded but when the screen closes the value will not be transferred to the variable. The maxChars_ variable must be declared numeric type (eg. Word)

title_ = Pad title. When  Movicon opens the Screen the local title_ variable is set with the name of the variable to be modified. The title_ variable must be declared string type

isPassword_ = this variable is set at 1 when the Alphanumeric screen is called from a password entry window. This allows the display to be set with the "Password" property and therefore display text entries are protected. The isPassword_ variable must be declared numeric or Bit type.

OK_ = this variable is needed in the screen's closing phase. If its value is different from zero, the local value_ variable's value will be returned to the variable to be modified when the screen is closed.  If, however, its value is zero, the value of the variable to be modified will remain unvaried when the screen is closed. The OK_ variable must be declared numeric or Bit type

 

Local variables as described above should be created by the designer when needed, respecting the proper syntax. If Templates from the Symbols library are used, when the Template is added to a screen, the local variables will be automatically created.

 

An error message will arise when editing a value out of range (such as numbers for the numeric pad or figures for the alphanumeric pad).  To customize the message's text use the appropriate string ID described in the section "Change System Language".

 

 

See Also