Home Button  Buy Button 

Topic:   can't restart after program completes

By: ChadPosted on: Mar 24 2018 at 01:27:37 PM
I am not able to restart again after hitting reset at the machine, Fanuc control. Even if the program runs through 100%, I have to shut down the send window, pull the usb, and then open the send window again to refresh. Seems like the machine is not letting the software know it is complete or vice versa. Chad

By: GuestPosted on: Mar 26 2018 at 03:54:30 AM
It sounds as though the USB transmit buffer still has data that the CNC no longer wants. The DNC does not know that so it just sits there waiting for the CNC to come back and accept the data.

In the DNC setup is an option 'TX Timeout'. Change that to 10 seconds.

Now the DNC will only wait 10 seconds. if the CNC doesn't come back for the data the DNC assumes it's completed.

Does that fix it?

By: ChadPosted on: Mar 26 2018 at 09:49:32 AM
That did not fix it. Is there phone support? It would be much easier to discuss this on the phone. There is something else I need to also try and make sure that this is able to do. Chad

By: GuestPosted on: Mar 27 2018 at 10:10:48 AM
In your email you said Seems like the machine is not letting the software know it is complete

Actually the machine "is" letting the DNC know it's complete. It does that by sending an XOff command to the computer.

Flow control rules are very strict and the computer must not send more data until the CNC is ready to receive. Usually just pressing the stop button on the DNC software or getting the DNC software ready to send again is enough. But in your case it sounds as if the USB is hung up trying to send but can't (because XOff is in force).

Usually that is no problem because when the CNC is ready to receive another program it sends XOn and that releases the port and the DNC can be restarted.

Obviously pulling the USB plug kills the serial port and you can restart but it's not an ideal solution.

So, when the machine is complete, it's possible that the DNC is still trying to send something - maybe just blank tape leader/trailer. So, instead of pulling the USB cable try pressing the receive/input button on the CNC. That would cause it to send an XOn to the computer and that should release the serial port allowing you to restart.

By: ChadPosted on: Mar 28 2018 at 05:24:48 AM
Ok, so I did make a little headway. What it takes to get it running again after a program completion is to hit send in the software, then cycle start on machine, I then get an LSK alarm, hit reset on machine and then cycle start again.

To further explain what we are trying to get to though, is to start in the middle of a program, we usually start at a line of code which has spindle speed and it goes through a series of code then starts rapiding down in "Z". We feed hold as it is coming down and then skip ahead to the portion of code we would like to start at again.

Is it possible to do the restart as mentioned above, where it is a feed hold after starting, skipping ahead and then starting at a line again. I would say the issue of us having a problem with the Xon/Xoff may not make this possible.

Also something else I am trying to start up mid program at our line of code where the spindle would come on and it does not turn on like it would normally. Do you have to high lite the line of code ahead of where it should start? Or is this also related to the Xon/Xoff issue.

The responses I am getting is it from the software owner, or individuals helping? I sent an email to support for a response, but have not heard back. I appreciate the help on the forum, but it is very delayed and I really think this would be much easier over the phone if possible.

By: SupportPosted on: Mar 30 2018 at 12:16:52 PM
We did reply to your email, Chad.
Please check and adjust your spam filter.

In the DNC setup is an option "Wait for CNC start cmd". Is that enabled? Try it disabled.
When it's disabled you'll need to get the computer ready to go but don't click send. Go to the CNC and do cycle start. then go to the computer and click the send button.

Another problem though is that if you stop in the middle of the program by doing stop or reset at the CNC then that is likely to stop the DNC feeding data but any blocks of data that were already in transit (in the computer/usb transmit buffers) will still be there and the cnc will get them as soon as you press cycle start again. The only way to clear the buffers would be to then close the dnc window, open it again then select the line you want to start from.

As I said though, we did reply to your email. Check your spam filter.

By: chadPosted on: Mar 30 2018 at 12:50:07 PM
Sorry, I did find your response by email, and I will continue trying the above and then let you know the results by email. Thanks for the help. Chad

By: SupportPosted on: Mar 30 2018 at 02:25:09 PM
Chad. I just sent another email.

By: SupportPosted on: Mar 30 2018 at 02:37:08 PM
Chad. Thanks for your email. It's good to hear that unsetting the 'wait for cnc' option did fix one of your problems.

In your email you mentioned difficulty restarting after a toolbreak.

When a toolbreak happens and it all stops there's likely going to be a few block of data still waiting in the buffers. There's two buffers. One in the computer serial port and the other is the receive buffer in the cnc.

When the cnc crashes and you do a reset, or whatever you do to clear the alarm, i would expect that to clear the buffer in the cnc.

At the computer clicking the dnc stop button 'should' clear the serial port buffer. Then clicking the line you want to start from and you're ready to go. If clicking the stop button doesn't work then closing the dnc window and reopening it again should do it. Last resort is to pull the usb plug.

I have seen at least one usb/rs232 adapter that simply refused to clear its buffer no matter what I did. If data was stopped because of an xoff then the usb would hang on to whatever was in the buffer even if the port was closed and reopened. In that case the only solution was to pull the usb plug and reinsert it.

If you're suffering that problem it might be worth trying another brand of usb adapter. They only cost a few dollars so having few in your toolbox is never a bad thing.

On the other hand. Hopefully you don't get too many toolbreaks so having to pull the plug in the rare occasions that it does happen shouldn't be too much of a problem

Reply - add a comment to this topic.

You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected.

Topic:- can't restart after program completes

Enter the numbers.

Your name here is optional