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 28, 2012, 02:08:19 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
VB and the development of wizards
Script in a button or in a macro. Which is more efficient?
Pages:
1
Go Down
« previous
next »
Author
Topic: Script in a button or in a macro. Which is more efficient? (Read 1575 times)
0 Members and 2 Guests are viewing this topic.
tagrace
Active Member
Offline
Posts: 15
Script in a button or in a macro. Which is more efficient?
«
on:
June 09, 2006, 11:20:23 PM »
I'm working on a project and in my initial testing I am seeing some problems with running macros repetitively.
Here's what I have,
M90001.m1s
code "G31 z-10 f35"
while IsMoving
wend
code "M3"
code "G0Z1"
M90002.m1s
code "g31 z-10 f35"
while IsMoving
wend
code "M5"
code "G0Z1"
In my tap file I setup this test
M90001
g0y1
M90002
g0y0
m30
Note, the spindle command are controlling a vacuum pickup nozzle. The test is supposed to pick up an object whit the vacuum, move to the y1 location and drop the object.
This whole process runs perfectly each time I hit Cycle Start
BUT, as a test, I set up multipass for 100 repetitions to test my just completed digitize probe. It runs fine for a few iterations. Then the motors start making more and more noise. After about 6 iterations the motors ar grinding and an start to lock up.
If I hit Estop, reset, restart, it repeats this process each time. Runs fine and then starts to grind.
Whats going on? My guess is that the PC is spending more and more resources opening and closing the Macro files robbing time from Mach3.
Anyone seen anything like this before? Would I be better of putting the scripts into buttons where disk access would not be involved?
Any Ideas?
Ted
Logged
ART
Administrator
Offline
Posts: 1,080
Tough as soggy paper.
Re: Script in a button or in a macro. Which is more efficient?
«
Reply #1 on:
June 10, 2006, 07:04:06 AM »
Hi Ted:
Hmm. Sounds like a memory leak. Ill run some tests...
Art
Logged
ART
Administrator
Offline
Posts: 1,080
Tough as soggy paper.
Re: Script in a button or in a macro. Which is more efficient?
«
Reply #2 on:
June 10, 2006, 07:19:06 AM »
Well, the good news is there is no leak. But running those IsMoving loops realy hog bandwidth. I must come up with a better way of doing that..
Ill do some investigation oon how better to do that. Next version may handle it better. In answer to your question, buttons woudl be quicker as they dont need file access..
(Subroutines would be better still... )
M98O1
G0Y1
M98O2
g0y0
M30
O1
G31Z-10F35
M3
M99
O2
G3131Z-10
M5
M99
Regards,
Art
Logged
tagrace
Active Member
Offline
Posts: 15
Re: Script in a button or in a macro. Which is more efficient?
«
Reply #3 on:
June 10, 2006, 09:34:27 AM »
Well Art, Glad to hear it's not ME this time.
I re-wrote the test using subroutines and it works perfectly with hundreds of passes.
I can see how the IsMoving() would be polling the port for the probe contact using up all the bandwidth. In fact, during one of the runs yesterday using the Macros, windows reported that Mach3 was using 93% of the CPU Usage. Too bad we did not have an interupt structure to play with.
I'm going to try the Button method as soon as the family is done with me for the day.
Logged
ART
Administrator
Offline
Posts: 1,080
Tough as soggy paper.
Re: Script in a button or in a macro. Which is more efficient?
«
Reply #4 on:
June 10, 2006, 12:26:23 PM »
Hi:
Well, as to an interrupt structure, as of this weeks release th eplugin structure will be very stable I think. And it offers an interrupt sturcture.
So it woudl actually be cabale of doing things such as that will no overhead. Soonm things will get mnuch better I think.. We're in a bit of flux at the moment in terms of what can be done..
Art
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...