HMI Pad Forums Old forum Common Support Requests (old) Application Question

This topic contains 1 reply, has 1 voice, and was last updated by  John 9 years, 11 months ago. This post has been viewed 676 times

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20094

    John
    Keymaster

      One thing I am looking to do is display a “Time Remaining” line.
      Unfortunately this would require two tags to co-exist on the same line at
      the same time. Say XX is the minutes remaining and YY is the seconds
      remaining in a particular process. I’d like to be able to have one line
      read:

      Time Remaining XX:YY

      Is there any way to do this?

      #20095

      John
      Keymaster

        There is no way to do what you need in exactly the way you describe. However you can possibly tweak it a bit your PLC program to produce a similar result.

        Imagine you have a single INT tag, let’s call it ‘time’ that stores minutes and seconds in a way that you have time = minutes*100 + seconds (you must do it in the PLC).

        Now you can display the remaining time in ScadaMobile by adding a divide-by-100 scale attribute and a format attribute to the ‘time’ tag like this

        scale := {0,100,0,1} ; format := “05.2″ ;

        This will display values in the form XX.YY with leading zeroes if XX is less than two digits, for example 01.59 or 00.01 or 15.38

        I hope you can deal with it in that way.

        Joan

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

      You must be logged in to reply to this topic.

      Copyright © SweetWilliam, S.L 2009-2013. All rights reserved.
      Science and Technology Park of the University of Girona, Emili Grahit, 91 (NarcĂ­s Monturiol building, Office P3-B03) 17003-Girona. Phone +34972183244