I am currently evaluating Codesys for possible use in future projects using 'off the shelf' products running Codesys. One requirement I have is for a particular graphic function where a moving object (solid circle) leaves a trace behind it on the screen as it moves.
Can this function be easily implemented?
I have had a look at the available libraries on the download of v2.3. The library targetVisu.lib looks as though it may provide the required functionality, but I can't see any documentation (I appreciate this library probably represents the low level interface requirements for hardware developers).
Any help or ideas would be appreciated.
Best regards,
Andy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think your requirement can be fulfilled using the element "Trend" that is available in the integrated visualization of codesys if it is supported by your hardware.
The library you looked at can not be used for direct painting on the screen of your device. This library will only be used internally for the output of the visualization as the so called "Targetvisualization" on a hardware that supports graphical output.
I hope my answer helps anyway.
Kind regards,
Michael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've tried looking at the trend control but it does not seem to be able to handle an XY plot. My version (v2.3) has a combo box for selecting curve type but it is disabled with X/t greyed out in the text area.
Best regards,
Andy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If plotting/ trending is not what you are looking for but truely want to show some circles then it can be done by showing / hiding the circle object. The problem is like Michael stated you can't create objects at run time.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am currently evaluating Codesys for possible use in future projects using 'off the shelf' products running Codesys. One requirement I have is for a particular graphic function where a moving object (solid circle) leaves a trace behind it on the screen as it moves.
Can this function be easily implemented?
I have had a look at the available libraries on the download of v2.3. The library targetVisu.lib looks as though it may provide the required functionality, but I can't see any documentation (I appreciate this library probably represents the low level interface requirements for hardware developers).
Any help or ideas would be appreciated.
Best regards,
Andy
Hi Andy,
I think your requirement can be fulfilled using the element "Trend" that is available in the integrated visualization of codesys if it is supported by your hardware.
The library you looked at can not be used for direct painting on the screen of your device. This library will only be used internally for the output of the visualization as the so called "Targetvisualization" on a hardware that supports graphical output.
I hope my answer helps anyway.
Kind regards,
Michael
Thanks Michael,
I've tried looking at the trend control but it does not seem to be able to handle an XY plot. My version (v2.3) has a combo box for selecting curve type but it is disabled with X/t greyed out in the text area.
Best regards,
Andy
you will have to make or a vector database or a cad system.
i would choose for a small array with all the points in it and then have a pointer walk through these points.
If plotting/ trending is not what you are looking for but truely want to show some circles then it can be done by showing / hiding the circle object. The problem is like Michael stated you can't create objects at run time.
use a scada program like labview or any maybe even visual basic.