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 25, 2012, 07:34:06 AM
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
Third party software and hardware support forums.
SmoothStepper USB
(Moderator:
Warp9TD
)
G-Code execution halts
Pages:
«
1
2
Go Down
« previous
next »
Author
Topic: G-Code execution halts (Read 1705 times)
0 Members and 2 Guests are viewing this topic.
Jeff_Birt
Active Member
Offline
Posts: 809
Re: G-Code execution halts
«
Reply #10 on:
September 09, 2009, 08:25:13 AM »
I noticed looking at your XML that you have a couple of Brains running. What do they do? Did you move them over too? It looks like the combination of calling a macro followed by a pause might be the problem. I wonder what would happen if you put in some Gcode between the macro and Pause? It would not really be needed but it would cause Mach/SS plug-in to get into a 'Gcode finished' state before entering the pause. See the example below.
N30 T0101 %(Set front tool)
N40 M801 %(Be sure Tailstock is retracted)
N50 G0 Z-69.4 X40.0
N60 M3 %(Spindle On)
N70 M800 %(extend Tailstock)
N80 G0 Z-69.4 X40.0 %(***Do nothing***)
N80 G04 P1000 %(Dwell 1000 milliseconds)
Logged
Happy machining , Jeff Birt
Check out
www.soigeneris.com
TunerTom
Active Member
Offline
Posts: 60
Re: G-Code execution halts
«
Reply #11 on:
September 09, 2009, 02:40:49 PM »
> Posted by: Jeff_Birt
> I noticed looking at your XML that you have a couple of Brains running. What do they do?
TomsBrain.brn...
I have two push-buttons wired to Inputs #1 & #2. The buttons are Active Low. The first button executes "FeedHold"; the second button Executes "CycleStart". The third item in this file monitors the state of OemLED(853) OemLED(853) Is toggled with a user-entered button through a vbStript...
If GetOemLED (853) Then
DeActivateSignal (OutPut4)
Else
ActivateSignal (Output4)
End If
Output4 is wired to a relay which operated the tailstock extending.
In addition to the toggle function above.
Macro M800 Turns OemLED(853) "on" which extends the Tailstock
Macro M801 Turns OemLED(*03) off, which retracts the Tailstock
Fishey Huh? This is all tied to where my program execution gets hung up. Hmmmm...
The other Brain... I have no idea what this was... I removed it.
TomsBrain_TunerTom.jpg
(15.54 KB, 397x210 - viewed 94 times.)
«
Last Edit: September 09, 2009, 02:44:40 PM by TunerTom
»
Logged
Jeff_Birt
Active Member
Offline
Posts: 809
Re: G-Code execution halts
«
Reply #12 on:
September 09, 2009, 04:14:23 PM »
I would try getting rid of both Brains and change your macros 800 & 801 to directly manipulate Output 4 to extend/retract the tailstock. That will eliminate any possible interaction with Brains.
Logged
Happy machining , Jeff Birt
Check out
www.soigeneris.com
TunerTom
Active Member
Offline
Posts: 60
Re: G-Code execution halts
«
Reply #13 on:
September 14, 2009, 03:43:11 AM »
Hi Jeff, Thanks for your patience...
It took me two days to try your latest suggestion. I decided to bite the bullet and reformat the hard drive on my PC at home (where the plotter and the Smoothstepper board is being tried out) and reinstall Windows and only my essential applications here. With that done, I reinstalled Mach3 and the Smoothstepper software & driver.
Now, there are NO brain files in this setup. As I said earlier, I added a push-button and LED to the "Cycle" screen. The purpose of this is to be able to extend/retract the tailstock manually by clicking the button. Click the button the first time and the LED {oemled(853)} lights up... push the button again and the LED goes off. This works properly. Then I wrote a simple vbScript to monitor the state of the LED and turn Output(4) "on" whenever the LED is illuminated....
RowlandLathe.m1s...
If GetOEMLED(853) Then
DeactivateSignal(Output4)
Else
ActivateSignal(Output4)
End If
Then with Hood's help, he explained how I make a vbScript function as an M-Code, by simply naming the files using the M-Code numbers I wish to use. They are...
M800.m1s...
ActivateSignal(Output4)
M801.m1s...
DeactivateSignal(Output4)
Now, the button I added toggles the OEMLED(853), on & off as expected. I have a physical LED on the plotter that indicates whether or not the tailstock is extended. The plotter's pen has a solenoid that raises/lowers the pen. The pen is associated with the Lathe Spindle motor. So the plotter "draws" only while the spindle is "on" and the tailstock LED on the plotter is lit, only when the tailstock is supposed to be extended. This is just perfect for debugging profiles before taking them to the lathe.
In Mach3 in Manual Mode, if I enter an "M800", Output(4) blinks (debug screen) the OEM LED lights up, and the physical LED on the plotter lights up... PERFECT!
If I enter "M801", Output(4) on the debug screen goes off and the physical LED on the plotter goes out.
If I repeatedly click the User Button I added to my screen the OEM LED toggles on/off and the Output(4) LED on the debug screen follows accordingly as well as the physical LED for the tailstock on the plotter.
So now I try the G-Code file. The file executes through the first "M801" and it works just fine. This first "M801" was intended to ensure the tailstock was retracted until after the spindle is turned on. This one works. If I start the profile with the tailstock extended, it will retract as the first "M801" is executed, and program execution continues on. If I start the program with the tailstock already retracted, execution still continues on past the first "M801" line
Now (and this happens every time) when the program gets to the M800 Line, The tailstock extends (LED on the plotter turns on) and then DWELL comes "on" and remains on. The program is stuck with a DWELL If I click the [Cycle Start] button the DWELL stops and execution continues on its own until it reaches the remaining "M801" near the end of the profile. The tailstock retracts and once again, execution is stuck with a stuck DWELL. I click [Cycle Start] and the profile completes the reaming couple of lines.
Do you think there is a possible conflict with the vbScripts?
If I disconnect the Smoothstepper and connect my PC's parallel port directly to the plotter, executing this profile works without getting stuck.
«
Last Edit: September 14, 2009, 04:49:05 AM by TunerTom
»
Logged
Pages:
«
1
2
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...