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

Xy Chart Y axis numbers

tvm
2021-03-02
2021-03-02
  • tvm

    tvm - 2021-03-02

    Any ideas why an XY chart would display like the attached screenshot? The curve variable is an ARRAY[1..1440] OF REAL, at the time of the screenshot only a few of the variables had values, between 15.7 and 21.6, and the rest were 0. Autoscale on the y axis is turned on, so I would expect to see the scale between 0 and 21.6. Instead i'm getting these massive numbers on the scale.

     

    Last edit: tvm 2021-03-02
  • m.prestel

    m.prestel - 2021-03-02

    Hey @tvm,
    could you attach a project?

    Thx a lot.

    Best regards,
    Marcel

     
  • tvm

    tvm - 2021-03-02

    it seems to have something to do with the use of reference variables. I have the XY chart in a frame, the interface of which looks like this:
    VAR_IN_OUT
    ChartData: ARRAY[1..1440] OF REAL;
    END_VAR

    Change it to this, and it works:
    VAR_INPUT
    ChartData: ARRAY[1..1440] OF REAL;
    END_VAR

     

Log in to post a comment.