Spindle control

More
12 Aug 2010 19:03 #3721 by aike
Spindle control was created by aike
Hi!
I use this code in HAL:
net spindle-start <= pyvcp.spindle-start => halui.spindle.start
net spindle-stop <= pyvcp.spindle-stop => halui.spindle.stop
net spindle-inc <= pyvcp.spindle-inc => halui.spindle.increase
net spindle-dec <= pyvcp.spindle-dec => halui.spindle.decrease

The questions.
1.After the pressed start button the spindle speed 500 appears. Where can I change it?
2.I can increase and increase the spindle speed. My bar show only 3000 RPM, but the spindle
increased up to 4000 and more. Where is the restrict of maximum speed?

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

More
13 Aug 2010 04:41 #3727 by cmorley
Replied by cmorley on topic Re:Spindle control
#1 you can't change the default speed of 500 rpm.It was unfortunately 'hard coded' into halui.
file a bug report and it may get fixed in the future.

#2 in the pyvcp file look for something like:

<bar>
<halpin>"my-bar"</halpin>
<min_>0</min_>
<max_>3000</max_>
<bgcolor>"grey"</bgcolor>
<fillcolor>"red"</fillcolor>
</bar>

change the max to a higher number .

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

More
13 Aug 2010 05:53 #3728 by aike
Replied by aike on topic Re:Spindle control
I did it.
And I see as progress bar stopped at 3000 rpm, but the speed increased and increased (i press + button)
May be the hight border strored in halui or other HAL components (pin)?

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

More
13 Aug 2010 19:41 #3732 by cmorley
Replied by cmorley on topic Re:Spindle control
not sure whats going on then. need to see your HAL and pyvcp files

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

More
14 Aug 2010 07:13 #3736 by aike
Replied by aike on topic Re:Spindle control
cmorley wrote:

not sure whats going on then. need to see your HAL and pyvcp files

Here is the code xml:
################################3
<labelframe text="Spindle Control">
<font>("Helvetica",10)</font>
<vbox>
<relief>RIDGE</relief>
<bd>6</bd>
<label>
<text>"Spindle Speed:"</text>
</label>
<bar>
<halpin>"spindle-speed"</halpin>
<min_>0</min_>
<max_>3000</max_>
</bar>
</vbox>

<hbox>
<button>
<width>6</width>
<halpin>"spindle-start"</halpin>
<text>"START"</text>
</button>

<button>
<width>6</width>
<halpin>"spindle-stop"</halpin>
<text>"STOP"</text>
</button>

<button>
<font>("Helvetica",12)</font>
<width>5</width>
<halpin>"spindle-inc"</halpin>
<text>"+"</text>
</button>

<button>
<font>("Helvetica",12)</font>
<width>5</width>
<halpin>"spindle-dec"</halpin>
<text>"-"</text>
</button>

</hbox>
</labelframe>

and the hal file
######################################3
###HOME COMPUTER
net spindle-cmd => abs.0.in
net absolute-spindle-vel <= abs.0.out => pyvcp.spindle-speed

net spindle-start <= pyvcp.spindle-start => halui.spindle.start
net spindle-stop <= pyvcp.spindle-stop => halui.spindle.stop
net spindle-inc <= pyvcp.spindle-inc => halui.spindle.increase
net spindle-dec <= pyvcp.spindle-dec => halui.spindle.decrease
##################################################
test it please

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

More
14 Aug 2010 18:02 #3744 by cmorley
Replied by cmorley on topic Re:Spindle control
well in this version you just posted the bar max says 3000 change it to 4000

<text>"Spindle Speed:"</text>
</label>
<bar>
<halpin>"spindle-speed"</halpin>
<min_>0</min_>
<max_>3000</max_> <
Right here *******
</bar>
</vbox>

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

More
15 Aug 2010 06:01 #3753 by aike
Replied by aike on topic Re:Spindle control
It was not help me.
The question
How can I restrict the spindel speed.
For example, it mast not be more then 4000 rpm?
Where is the pin or value, permit me to make so.

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

More
15 Aug 2010 10:33 - 17 Aug 2010 08:06 #3756 by Rick G
Replied by Rick G on topic Re:Spindle control
Hello,

Have you set a max spindle speed in the .ini file?

[DISPLAY] Section

MIN_SPINDLE_OVERRIDE = 0.5 The minimum spindle override the user may select. 0.5 means
50% of the programmed spindle speed. (This is useful as it’s dangerous to run a program with
a too low spindle speed).
MAX_SPINDLE_OVERRIDE = 1.0 The maximum spindle override the user may select. 1.0 means
100% of the programmed spindle speed

Rick G
Last edit: 17 Aug 2010 08:06 by andypugh. Reason: Text invisible (sig seperator?)

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

More
15 Aug 2010 10:36 #3757 by Rick G
Replied by Rick G on topic Re:Spindle control
[DISPLAY] Section
Different user interface programs use different options, and not every option is supported by every
user interface.
DISPLAY = tkemc The name of the user interface to use. Valid options may include:

POSITION_OFFSET = RELATIVE The coordinate system (RELATIVE or MACHINE) to show when
the user interface starts. The RELATIVE coordinate system reflects the G92 and G5x coordinate
offsets currently in effect.
POSITION_FEEDBACK = ACTUAL The coordinate value (COMMANDED or ACTUAL) to show when
the user interface starts. The COMMANDED position is the ideal position requested by EMC.
The ACTUAL position is the feedback position of the motors.
MAX_FEED_OVERRIDE = 1.2 The maximum feed override the user may select. 1.2 means 120%
of the programmed feed rate


MIN_SPINDLE_OVERRIDE = 0.5 The minimum spindle override the user may select. 0.5 means
50% of the programmed spindle speed. (This is useful as it’s dangerous to run a program with
a too low spindle speed).
MAX_SPINDLE_OVERRIDE = 1.0 The maximum spindle override the user may select. 1.0 means
100% of the programmed spindle speed

Rick G

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

More
15 Aug 2010 10:40 #3758 by Rick G
Replied by Rick G on topic Re:Spindle control
Sorry about that,:S maybe it will show up this time

MIN_SPINDLE_OVERRIDE = 0.5 The minimum spindle override the user may select. 0.5 means
50% of the programmed spindle speed. (This is useful as it’s dangerous to run a program with
a too low spindle speed).
MAX_SPINDLE_OVERRIDE = 1.0 The maximum spindle override the user may select. 1.0 means
100% of the programmed spindle speed

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

Time to create page: 1.139 seconds
Powered by Kunena Forum