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
Hey,
i will display a graph on the xy_chart. That works pretty nice, only the one line in the Picture from (0,0) to the third quarter is bothering me.
that is the Skrip for the graph.
VL_global.X_Array[zahler2]:=-10+zahler1;
IF VL_global.Referenzkorrektur_alt>=-1 THEN
VL_global.Y_Array[zahler2]:=-(EXPT(VL_global.X_Array[zahler2]/1.2,2))+VL_global.Referenzkorrektur_alt;
END_IF
IF VL_global.Referenzkorrektur_alt<0 THEN
VL_global.Y_Array[zahler2]:=(EXPT(VL_global.X_Array[zahler2]/1.2,2))+VL_global.Referenzkorrektur_alt;
END_IF
Had anyone a solution to delete the little line?
greeting
Moritz
Hi,
check the values inside array, probably some of them could be the problem. It seems the value 0,0 is the initial point of this line. Check if there is any value in array with 0,0.
BR
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey,
i will display a graph on the xy_chart. That works pretty nice, only the one line in the Picture from (0,0) to the third quarter is bothering me.
that is the Skrip for the graph.
VL_global.X_Array[zahler2]:=-10+zahler1;
IF VL_global.Referenzkorrektur_alt>=-1 THEN
VL_global.Y_Array[zahler2]:=-(EXPT(VL_global.X_Array[zahler2]/1.2,2))+VL_global.Referenzkorrektur_alt;
END_IF
IF VL_global.Referenzkorrektur_alt<0 THEN
VL_global.Y_Array[zahler2]:=(EXPT(VL_global.X_Array[zahler2]/1.2,2))+VL_global.Referenzkorrektur_alt;
END_IF
Had anyone a solution to delete the little line?
greeting
Moritz
Hi,
check the values inside array, probably some of them could be the problem. It seems the value 0,0 is the initial point of this line. Check if there is any value in array with 0,0.
BR