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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Hey @tvm,
could you attach a project?
Thx a lot.
Best regards,
Marcel
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