Re: [Emc-users] starting spindle during restart in the middle of the program

2008-05-19 Thread Fabio Gilii
Stuart,

Thank you for your attention..

I'll try something and post the results...

Best regards,
Fabio
-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] starting spindle during restart in the middle of the program

2008-05-17 Thread Stuart Stevenson
>   Maybe you can help me - I need to make a command for restart the milling
> from any line of the file but I don't know how to make this. (and probably
> you idea to restart spindle will be very usefull in this case).

   The reason for the restart of the spindle was to then be able to
restart at any line in the program.

>   If i'm not wrong, I think this feature is present in 'mini' or 'Tkemc'
> gui, but will be usefull in 'axis' gui.
>
> The only thing I made with successs was a command (via pyvcp button) do send
> all axis back do origin phisically...
>
> Thank you and best regards,
>
> Fabio

   You will need to add:

loadrt toggle count=1
loadrt not count=1

addf toggle,0 servo-thread
addf not.0 servo-thread

   if the 'toggle' component and the 'not' component are the first and
only ones you are using and you have a thread called 'servo-thread'
then these exact commands will work. Otherwise you will have to modify
these commands for your configuration.

ie. if you have a

loadrt not count=1
addf not.0 servo-thread

in your config files to be able to add another 'not' component you
will need to change the lines to look like this

loadrt not count=2
addf not.1 servo-thread

   If you are not using a servo-thread you will need to substitute a
different thread for the 'servo-thread'.

   You will need to add this to your ?.xml file for pyvcp

   
  ('courier_bold',25)
  "Spindle"
   

   "spindle"   


   You will need to at this to your postgui.hal file

net spindle pyvcp.spindle halui.program.pause toggle.0.in
net spinON toggle.0.out halui.spindle.stop not.0.in
net spinOff not.0.out halui.spindle.start

   If you had to change the loadrt and the addf commands you will need
to change the toggle.0 and/or the not.0 to match what you added.


   This will allow you to restart at any point in the program:

highlight the line you want to start from
from the drop down under the 'machine' heading - click on 'set next line'
push the step button - this is the arrow pointing right along the top
of the axis gui
push the button under the pyvcp spindle - you may need to push this
button twice - the spindle will start
start your program using the buttons across the top of the axis gui.


   To stop the program and spindle at any time:

push the pyvcp spindle button - this will pause the program and stop the spindle
push the pyvcp spindle button - again - this will start the spindle
push the pause button on the top of the axis gui - this will restart
the program operation


   This is not the perfect solution because you are able to push the
pause button and restart the program without the spindle running. This
may lead to reduced tool life and increased scrap parts. BE CAREFUL

thanks
Stuart

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] starting spindle during restart in the middle of the program

2008-05-16 Thread Fabio Gilii
Hello Stuart,

   Maybe you can help me - I need to make a command for restart the milling
from any line of the file but I don't know how to make this. (and probably
you idea to restart spindle will be very usefull in this case).
   If i'm not wrong, I think this feature is present in 'mini' or 'Tkemc'
gui, but will be usefull in 'axis' gui.

The only thing I made with successs was a command (via pyvcp button) do send
all axis back do origin phisically...

Thank you and best regards,

Fabio
-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] starting spindle during restart in the middle of the program

2008-05-16 Thread Stuart Stevenson
Gentlemen,
   I have been playing with this. I have a 'sort of' answer. It
functions and allows the spindle to be started. You can stop the
spindle at any time and restart it at any time as long as an s number
has been read by the control.
   It doesn't inhibit the axis motion for the restart (still working
on it) but it allows the machine to be restarted in the middle of the
program and start the spindle.
   You must be using the 'axis' gui.

use a 'pyvcp' button
connect in postgui.hal like this:
net spindle pyvcp.spindle halui.program.pause toggle.0.in
net spinON toggle.0.out halui.spindle.stop not.0.in
net spinOff not.0.out halui.spindle.start

use 'set next line'
restart using 'step'
push the pyvcp button twice

   Like I said, this is a 'sort of' workaround. This function needs to
be addressed more complete and in a better fashion but in the interim
this will allow you to restart in the middle of a program.
thanks
Stuart

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users