Join us today!
Twincat 3 HMI Server Graph display problem
Hi all,
I got a little project where i read Temperature and Time values from SQL server, format them into Array to act as X and Y axis and then i try to show these values in Twincat 3 HMI server as a graph. I got my code working fine, but i seem to have some troubles when trying to display the data points.
I am using Line chart for my graph and i got the Temperature and Time values in array. Data types and more can be seen from pictures. (pictures as attachment)
The Y axis seems to auto adjust itself to display my values correctly, but X axis shows Nan(not a number). Which my date_time variable is not, but i would assume graphs with time axis are so common that it would be supported format, i could be wrong thou.
And as an extra clarification this is for the "HMI SERVER"(TF2000) and not the basic visualization.
I have wondered could the "trend line chart" be the correct option for this rather than the basic "line chart" but i dont know and haven't tested.
Has anyone worked previously with Twincat 3 hmi server(TF2000) and Line charts? Any ideas what might be going wrong here?
Thanks in advance.
-
I cannot add a variable to the TwinCat scope project.
4 months ago
-
Detecting low voltage on PLC bus
2 years ago
-
Passing a structure between PLCs via ADS using symbolic addressing
2 years ago
-
TwinCAT - using a single input link to read 18 individual bytes from an EtherCAT slave
2 years ago
-
How to create a generic queue which works for every datatype including structs?
2 years ago
- 17 Forums
- 267 Topics
- 924 Posts
- 1 Online
- 737 Members