Applies To:
  • CitectSCADA 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0
  • CitectHMI 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0
  • CitectFacilities 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0
  • CitectSCADA Batch 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0
  • CitectSCADA Pocket 5.31, 5.40, 5.41, 5.42, 5.50, 6.0, 6.1, 7.0

Summary:

We usually can set an object (numeric, text, etc) to receive numeric input directly from the keyboard when the mouse is hovered over the object in runtime by having the keyboard commands on the object properties as follows:

Keyboard Sequence:    ### ENTER

Keyboard Comands:     iTag = Arg1

While this applies for any Integer / numeric values, can we do the same for string?

 

Solution:

The principal can still be applied when you want to have a direct string / text input on the object by having a keyboard command on them. The object properties can be configured as follows:

Keyboard Sequence:    ### ENTER

Keyboard Comands:     sTag = Arg1

The settings can still be applied as the keyboard sequence '#' takes in any character and not restricted to numbers as explained in the help file (in this case, the explanation in the help is misleading).

However, the keyboard sequence has a total limit of 32 input space in a sequence, which will left you only around 26-27 characters available to take the string input in runtime since you need "ENTER" which takes 5 input space (6 if you put a space before).

Therefore, to overcome the limitation, you can easily use a cicode function called "Input" which will prompt you a textbox to enter the string/text.

Refer to the help file for further details on "Input" cicode function.

 

Keywords:
 

Attachments