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

More
30 Dec 2016 19:31 #84927 by nigel-tufnel
nigel-tufnel created the topic: Are there no increase/decrease spindle speed buttons in Gmoccapy?
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!
More
31 Dec 2016 08:14 #84948 by newbynobi
newbynobi replied the topic: Are there no increase/decrease spindle speed buttons in Gmoccapy?
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
More
09 Mar 2017 00:57 #89227 by turbo
turbo replied the topic: Are there no increase/decrease spindle speed buttons in Gmoccapy?

newbynobi wrote: 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.
More
11 Mar 2017 02:40 #89395 by turbo
turbo replied the topic: Are there no increase/decrease spindle speed buttons in Gmoccapy?
I got it working.
More
11 Mar 2017 13:50 #89416 by ikkuh
ikkuh replied the topic: Are there no increase/decrease spindle speed buttons in Gmoccapy?
would be nice if you shared what you did to get it working!
More
11 Mar 2017 14:56 #89420 by turbo
turbo replied the topic: Are there no increase/decrease spindle speed buttons in Gmoccapy?
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
More
12 Mar 2017 13:15 - 12 Mar 2017 13:16 #89463 by newbynobi
newbynobi replied the topic: Are there no increase/decrease spindle speed buttons in Gmoccapy?
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.
Moderators: newbynobi
Time to create page: 0.073 seconds
Powered by Kunena Forum