Spindle Load feedback in Gmoccapy

More
11 May 2022 20:59 #242675 by PhilCNC
Hello, I have spindle load feedback working in Axis GUI and now I'm trying to make it work in Gmoccapy. What's the best way to do this? I think I could use the PYVCP control panel from axis, but I don't think this would blend in nicely with the rest of the screen. Looks like GladeVCP is an option, but I haven't seen a spindle load feedback example. Your advice is appreciated :D

Please Log in or Create an account to join the conversation.

More
12 May 2022 04:56 #242726 by newbynobi
Gmoccapy allows embedding glade panels. There are several positions to integrate that panels. 
Within the configs / sim / gmoccapy folder you will find several examples for that purpose.
There is also a detailed part for embedding panels in the documentation.

To create the panel you need, just use the glade editor.

Norbert 

Please Log in or Create an account to join the conversation.

More
13 May 2022 14:27 #242882 by HansU
I have created quickly a very basic display GladeVCP for displaying this.
It provides  a pin "spindle_load.bar_spindle_load" where you can connect your spindle load value to.
Just copy the attached files to your config folder an add following lines to the display section of the ini file:
Note that this will only work for Python3 / LinuxCNC 2.9 (master)
For 2.8 there are some very little changes to be made.
EMBED_TAB_NAME = Spindle_load
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} -u glade/spindle_load.py glade/spindle_load.glade

 
Attachments:
The following user(s) said Thank You: tommylight, PhilCNC

Please Log in or Create an account to join the conversation.

Moderators: newbynobi
Time to create page: 0.161 seconds
Powered by Kunena Forum