Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Seconds displayed instead of ms in visual.

Peter1983
2019-07-07
2019-07-09
  • Peter1983 - 2019-07-07

    Hi,

    How do I get second to show in visual ie: 5sec instead of 5000ms in elapsed time of a FB?

    Thank you for your help.

     
  • JAPIB

    JAPIB - 2019-07-09

    You can use format style.
    For example, in the rectangle' properties used to show the elapsed time of Timer1, you can write :
    Text : %t[ss] sec
    Text variable : Timer1.ET

    And you will see, only the seconds : 00 sec

    By the same way you can use : %t[mn:ss:ms] to see only 00:00:00
    It's better than T#00ms

    BR

     

Log in to post a comment.