Stephen Wille Padnos wrote:
> Jon Elson wrote:
> 
> 
>>Stephen Wille Padnos wrote:
>> 
>>
>>
>>>Jon Elson wrote:
>>>   
>>>
>>>
>>>>[snip]
>>>>
>>>>Oh, I've got one, too:  If you have a start spindle (M03 S1234) 
>>>>in the first line of the program, and use the "run from line" 
>>>>function in Axis, it will not start the spindle!  There is no 
>>>>workaround for this except a manual spindle switch.
>>>>     
>>>>
>>>
>>>Are you saying it does this if you run from line 1?
>>>
>>>Not starting the spindle would be expected behavior if you start 
>>>execution after the line containing "M03 S1234".
>>>
>>>There may be a bug there, just trying to clarify the circumstances if so.
>>>   
>>>
>>
>>If you use the run command without setting a starting point, 
>>everything is OK.  If you select a start point other than
>>line 1, then the spindle will not run, and will be stopped if 
>>you manually started it.  This makes the "run from line" 
>>function unusable unless you have a manual spindle override.
>>Plowing a non-spinning cutting tool through metal doesn't work 
>>very well!  There may be specific functions to skip when 
>>scanning through the G-code to be in the right mode when you 
>>begin from the middle of a program, but M03/M04 are modal 
>>commands, and should be obeyed.
>> 
>>
> 
> Hmmm.
> 
> OK.  I guess it's a bug because the spindle gets stopped when you run 
> from line, rather than leaving it in its current state.
> 
> One or the other of these needs to be done:  either leave modal settings 
> the way they are, or scan through the program and apply the set of modal 
> commands needed to put the machine in the same state it would have been 
> had the program run from the beginning
Given the way the rest of the modal settings work in EMC2, I 
think it makes the most sense to follow that pattern, and treat 
the spindle as other modal G-codes.  So, if the spindle is 
stopped, like if you aborted a program or had to hit E-stop, 
then want to resume, it should start the spindle while it is 
scanning the earlier part of the program.  It should set the 
spindle to the last S word, too.  I don't have 
computer-controlled coolant on my machine, but that might be 
another modal function that needs to be checked.

Thanks for looking into it.

Jon

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to