Engine information panel

More
3 years 3 months ago #274614 by MarkoPolo
 

Attachment not found


He writes a panel for monitoring the temperature of engines.
The fields at the top are editable.
How can I make it save these names in the preferences file to restore the names after restarting the program?
I would also like to add engine RPM.
Is there a simple way to read the rpm from linuxcnc, or do you have to calculate from the feed rate?
Marek

Please Log in to join the conversation.

More
3 years 3 months ago #274644 by cmorley
Replied by cmorley on topic Engine information panel
This looks like qtvcp not pyqtvcp - or is the added panel pyqtvcp?

Please Log in to join the conversation.

More
3 years 3 months ago #274645 by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
Yes, qtvcp. I used the spindle_belts panel as a source.
I have motors built in quite a small space and I want to control their temperature.
I would like to add engine RPM.
How to get engine RPM value?

Please Log in to join the conversation.

More
3 years 3 months ago #274646 by tommylight
Replied by tommylight on topic Engine information panel
Moved to "QtVCP" section.

Please Log in to join the conversation.

More
3 years 3 months ago #274649 by cmorley
Replied by cmorley on topic Engine information panel
linuxcnc.org/docs/2.9/html/gui/qtvcp-vcp...ler_programming_tips

mentions how to use the main screen's preference file for an embedded panel.

Most stepper/servo components have a velocity pin to connect to.

Please Log in to join the conversation.

More
3 years 3 months ago #274654 by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
There is exception: in the documentation, but it doesn't work.
Shouldn't be except: ?

 

Attachment not found

Please Log in to join the conversation.

More
3 years 3 months ago #274661 by rodw
Replied by rodw on topic Engine information panel
I wrote the belts panel with a lot of help from Chris.
The final files are here in the development thread:
forum.linuxcnc.org/qtvcp/48061-how-to-ma...n-hd?start=70#270283
It shows how to save and retrieve values from the .ui file.
To change the field names displayed should not be hard. You just need to set the label or name. i don't use this enough to be specific,

And yes I think exception should be except.

Please Log in to join the conversation.

More
3 years 3 months ago #274663 by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
Yes, the titles of individual sections with engines already work for me, it saves and reads from the preferences file.
I don't know yet from which pin I can read the engine speed.

Please Log in to join the conversation.

More
3 years 3 months ago #274680 by rodw
Replied by rodw on topic Engine information panel
I don't think you can get motor RPM. Motor velocity as it is translated to velocity. joint.L.vel-cmd  gives you the commanded velocity but that might not reflect actual velocity.
If you really wanted RPM you would need to scale it based on the parameters you entered into stepconf or pncconf.
But motion.current-vel is the only one that gives actual velocity (of all joints). 
​​​

Please Log in to join the conversation.

More
3 years 3 months ago #274795 by MarkoPolo
Replied by MarkoPolo on topic Engine information panel
I also thought that you would need to calculate engine revolutions, for now the panel will remain without engine revolutions.
The panel is pre-ready.
If anyone needs something similar, I can share it.

 

Attachment not found

Please Log in to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum