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

Visualization trace how to reset time x-axsis

DavidBo
2020-08-24
2020-12-15
  • DavidBo - 2020-08-24

    I make an application with a Visualization with a trace. It shows the temperature over time 10-20 min.
    I want by pushing a button reset the trace so it start a 0 again. How can I accomplish that?

     
  • RSmith - 2020-12-14

    Did you ever get this to work? I have the same request.

     
  • Morberis

    Morberis - 2020-12-14

    If this was a Trend what you could do is have a button that
    1) deletes the trend file that is produced
    2) produces a new file with the correct name

    The Library that would let you do this is CAA FILE

    You might be able to do something similar with a Trace.

     
  • RSmith - 2020-12-14

    Thanks for your reply Morberis. I didn't even know Trend existed, as I'm stuck on 3.5.12 (waiting for Festo to update their PLC support to a newer stack).

    I had a play with https://forge.codesys.com/prj/codesys-example/trend-example/home/Home/ in 3.5.15 and it looks more suitable for what I want. Just adding the option of absolute timestamps is better than Trace.

     
    • Morberis

      Morberis - 2020-12-15

      You should have access to the Trend in 3.5.12. However that doesn't mean Festo's Codesys IDE/Target Devices support it.

      Try adding a Trend though. Here is a link on how to add it etc.

       
      • RSmith - 2020-12-15

        Unfortunately Trend is not supported by my PLC. If I change PLC type then it appears in Codesys.

         
        πŸ‘
        1
        • Morberis

          Morberis - 2020-12-15

          Ah I was afraid of that.

          Ok sorry I haven't use Trace before. Looking though I find what looks like a helpful reset command. I don't know if this will make it start at 0 again, it looks like it resets the record trigger.

          It might be worth it for you to peruse the help file for more info on Trace. I apologize if you already have.
          Link 1
          Link 2

          Also if you do want the Trend make sure that Festo know that this is functionality you want. I'm sure there are reasons why it's not there, maybe if customers give them feedback they can look at that again and find it's worth the effort. If it's not a hard hardware limitation.

          For fun you can try importing your Festo Devices and libraries into vanilla codesys, if you have to use a Festo provided Codesys IDE. I found that after doing that Eaton PLC's had some options back. Like rotating visualization elements other than the polygon. But I'm not sure I would do that with a product for a customer.

           

          Last edit: Morberis 2020-12-15

Log in to post a comment.