Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 26, 2012, 07:02:52 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
General Mach Discussion
( COMMENT ) causes stall on rapid moves?
Pages:
1
Go Down
« previous
next »
Author
Topic: ( COMMENT ) causes stall on rapid moves? (Read 471 times)
0 Members and 1 Guest are viewing this topic.
vi_tasIT
Active Member
Offline
Posts: 4
( COMMENT ) causes stall on rapid moves?
«
on:
August 13, 2010, 03:07:21 AM »
I've been having issues with losing steps on rapid moves in my programs. This appears on all axes, and seems to be highly repeatable re-running the offending programs.
Previously this has happened on plunges in Z at the beginning of a program, stepping through the code in single block mode works fine, and this was enough to get me going and move on.
I had a thread milling program this week that calls a sub-routine which was stalling on every traverse in X, so it forced me to spend some more time looking into the issue.
I know that it is not the slides binding. I can run a program with a different Z offset and see identical behaviour. Manual jogging rapids and single block rapids both work fine.
This has to be something to do with how Mach3 processes code.
I tried all kinds of things with the subroutine to try and find the source of the bug, thinking this is something to do with my code, or the complexity of interpolating the helical moves as it reads ahead.
Eventually I stepped through the entire thread milling program just to get the part off the machine.
Today I've finally got to running a program that mills away webbing between parts in a billet. I had this stall in Z issue meaning my webs were left intact and rerunning the program gave me the same results.
This prompted me to look more at the read-ahead settings.
Conspicuously, the "( MILLING POCKET )" comment/message that TurboCADCAM puts in the code was 19 lines ahead of the rapid move which stalled. Changing the read-ahead settings to 10 lines gave me a stall in Z at a different level (convenient coincidence that my cutting passes were 9 lines long and there was a rapid move in Z).
So far, I've not observed this behaviour where a feed-rate move is at the appropriate position in the code, but a global replace of '(' with '%(' to make the headings real comments appears to have fixed the issue.
Does anyone have any experience with this kind of thing or anything else to add on the topic of comments/messages in code, and how Mach3 (doesn't) handle them?
I can post some example code or provide more information next week if anyone would like to look into replicating the behaviour themselves.
It's been a long week, far too many nonsense errors. The weekend came just in time!
Thanks,
- Ian.
Logged
alcwell
Active Member
Offline
Posts: 12
Re: ( COMMENT ) causes stall on rapid moves?
«
Reply #1 on:
August 13, 2010, 04:36:22 AM »
I had the same problem.
I my case it was caused by the computer going beep when the comment was displayed.
I disabled sounds and haven't had any issues since.
Alastair
Logged
Hood
Active Member
Offline
Posts: 17,358
Carnoustie, Scotland
Re: ( COMMENT ) causes stall on rapid moves?
«
Reply #2 on:
August 13, 2010, 06:38:12 AM »
Never seen this problem but would certainly give your code a test to see.
Alastair may have hit on the cause though so might be worth trying the disable as he describes.
Hood
Logged
vi_tasIT
Active Member
Offline
Posts: 4
Re: ( COMMENT ) causes stall on rapid moves?
«
Reply #3 on:
August 16, 2010, 12:30:42 AM »
Thanks Alastair,
How on earth did you think to turn off sounds as a possible fix for this one?
We've never had any speakers plugged into our mill machine, so I generally forget about that beep.
I can confirm that turning off all the sounds under windows changes the behaviour - the offending programs run smoothly!
The operating system must be prioritising the comms to the sound card over the parallel port, or otherwise just slowing things down and messing up the stepper movement.
Hood,
I've attached the threading program and a trimmed version of the parting out program for you to look at. (The rest of the program is really just repeats of the pocket, with some side milling in the 4 corners)
The threading program stalls on traverses between subroutines.
The parting program stalls on the rapid before the plunge to Z-25 on the first side-milling path - Line 116
If you can observe the same behaviour it might be good to get a note somewhere to turn off sounds in windows.
Very pleased to have this worked-around/solved.
Cheers.
- Ian
St04b_Threading_ex.txt
(1.09 KB - downloaded 42 times.)
St04c_Parting out_ex.txt
(16.28 KB - downloaded 39 times.)
Logged
alcwell
Active Member
Offline
Posts: 12
Re: ( COMMENT ) causes stall on rapid moves?
«
Reply #4 on:
August 16, 2010, 04:44:52 AM »
Glad you got it going.
The monitor I use had built in speakers so I could here the beeb. Eventually the penny droped that the stall always happened shortly after a beep.
Alastair
Logged
Hood
Active Member
Offline
Posts: 17,358
Carnoustie, Scotland
Re: ( COMMENT ) causes stall on rapid moves?
«
Reply #5 on:
August 16, 2010, 06:15:17 AM »
Sorry forgot I removed the parallel port from the only machine I have with steppers so cant test
Hood
Logged
vi_tasIT
Active Member
Offline
Posts: 4
Re: ( COMMENT ) causes stall on rapid moves?
«
Reply #6 on:
August 16, 2010, 08:33:18 PM »
Not to worry Hood - there's only so many problems you can look into for other people.
The thread dragged Alastair out of the woodwork to post a fix, and I'm on my way.
Hopefully anyone else out there experiencing the same problem will stumble on this thread too.
Logged
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...