Are there no increase/decrease spindle speed buttons in Gmoccapy?

More
30 Dec 2016 19:31 #84927 by nigel-tufnel
So I am making the switch from Axis to Gmoccapy. In Axis, there are +/- buttons for changing the spindle speed. I am not seeing a way in Gmoccapy to start at a low speed and increment up. If I set my 'starting RPM' to say 300rpm and the 'spindle bar max' to 5000rpm, when I click the spindle start button, it goes to 300rpm at 100% (slider bar maxed out). Would seem weird to have to change the max spindle speed override to almost a factor of 20 to get to 5000rpm. Am I missing something?

Also the horizontal bar chart showing the spindle speed, below the spindle off/fwd/rev buttons, doesn't show any bar no matter what the speed. I'm assuming I need to do something with pins gmoccapy.spindle_feedback_bar and gmoccapy.spindle_at_speed_led. What code do I use and where do I need to put it? I'm a newb so the more explicit details, the better.

Spindle is standard VFD 0-10v. (not actually hooked up at this moment)
ini/hal files are carry over from Axis PncConfig setup.

Any help greatly appreciated! Thanks!

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

More
31 Dec 2016 08:14 #84948 by newbynobi
Hallo,

you are right, there are no button to increase or decrease the spindle speed.
The Slider is only an override, not a spindle speed adjustment.
You should use Gcode or MDI commands to set the spindle speed, such as S3000 M3

If you need the button, you may use the corresponding halui pin and connect them to hal button in an custom panel.

The at speed led and the feedback bar needs to be connected in your hal file.
Does your VFD support feedback ?

Otherwise you could connect them to the motion commands directly.

Norbert

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

More
09 Mar 2017 00:57 #89227 by turbo

Hallo,

The at speed led and the feedback bar needs to be connected in your hal file.
Does your VFD support feedback ?

Otherwise you could connect them to the motion commands directly.

Norbert


Could you tell me how to do this? I think not getting a spindle at speed signal is causing my code to hang, but that is probably not a gmoccapy issue.

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

More
11 Mar 2017 02:40 #89395 by turbo

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

More
11 Mar 2017 13:50 #89416 by ikkuh
would be nice if you shared what you did to get it working!

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

More
11 Mar 2017 14:56 #89420 by turbo
I mean i just got the gmoccapy spindle meter and led working.

In the ini hal section I added

# Single file that is executed after the GUI has started.
POSTGUI_HALFILE = custom_postgui.hal

in custom_postgui.hal

net spindle-fb-rpm-abs-filtered => gmoccapy.spindle_feedback_bar
net spindle-at-speed => gmoccapy.spindle_at_speed_led

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

More
12 Mar 2017 13:15 - 12 Mar 2017 13:16 #89463 by newbynobi
Please find attached two files.
Just place both files in your config dir.

Than add the following lines to the [DISPLAY] section of your INI file.
EMBED_TAB_NAME = Spindle Button
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} -H spindle_button.hal spindle_button.glade

After starting your config you have spindle increase and decrease button.

Norbert
Attachments:
Last edit: 12 Mar 2017 13:16 by newbynobi.
The following user(s) said Thank You: CORBETT, blue0cean

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

More
16 Mar 2020 17:43 - 17 Mar 2020 01:04 #160454 by alkabal
Hi

two year later, but i like to do the same with master branch and i does not see any button (i have other working panel inside ntb-preview
[DISPLAY]
DISPLAY = gmoccapy

EMBED_TAB_NAME = Macro
EMBED_TAB_LOCATION = ntb_preview 
EMBED_TAB_COMMAND = gladevcp -u ./python/lathehandler.py -x {XID} ./lathemacro-fr-numpad.ui
#EMBED_TAB_COMMAND = gladevcp -u ./python/lathehandler.py -x {XID} ./lathemacro-fr-+-.ui

EMBED_TAB_NAME = Machine-status
EMBED_TAB_LOCATION = ntb_preview
EMBED_TAB_COMMAND = gladevcp -x {XID} -H gladevcp.hal gladevcp.ui

EMBED_TAB_NAME = Spindle Button
EMBED_TAB_LOCATION = box_custom_4
EMBED_TAB_COMMAND = gladevcp -x {XID} -H spindle_button.hal spindle_button.glade

Br
Last edit: 17 Mar 2020 01:04 by alkabal.

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

More
16 Mar 2020 23:34 #160487 by cmorley
run linuxcnc from the terminal and see if there are error messages.

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

More
17 Mar 2020 01:03 #160496 by alkabal
Hi

You are right this is because i use 2.9 with halui.spindle.0.increase halui.spindle.0.decrease

I don't see this before because i launch Gmoccappy at full screen, sorry for basic error.

Now the problem is this signal are already linked to my pendant lool.

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

Moderators: newbynobiHansU
Time to create page: 0.093 seconds
Powered by Kunena Forum