Displaying string instead of input

Forum Home Forums Understanding the Software Displaying string instead of input

This topic contains 5 replies, has 3 voices, and was last updated by Mikhail Mikhail 1 month ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2784

    hybrid
    Participant

    Hi there,

    So I’ve got modbus device input set up and displaying in a table. Is it possible for a string to be displayed instead of the integer input and have that string change depending on the input.

    i.e.
    input X
    x = 1 , display “Running”
    x = 2 , display “Not running”
    etc

    Is this don’t in formula or elsewhere ? Could you give me an example.

    Thanks

    #2788
    Mikhail
    Mikhail
    Moderator

    Hi,
    Yes.

    Option 1.
    Use “Enum text” format of input channel and choose a unit with a list of values.

    Option 2.
    Use “ASCII text” or “Unicode text” format of input channel and create a special formula, for example: EncodeAscii(Cnl < 2 ? "Running" : "Not Running")

    #2803

    hybrid
    Participant

    Perfect, option 1 did it. Thanks.

    I presume if I have an list of options greater that 100 chcaracters then I must use option 2 yes ?

    #2806
    Mikhail
    Mikhail
    Moderator

    Definitely.

    #4920

    aluy069
    Participant

    How it can be done using Option 1

    My text are lest than 20 characters

    Can you give me directions to doit

    regards

    #4922
    Mikhail
    Mikhail
    Moderator

    1. Open Administrator.
    2. Open the Utits table, and create your row, for example,
    Running; Not Running
    3. Create an input channel.
    4. Set the Format field to “Enum text”.
    5. Set the Unit field to your the unit you created on step 2.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.