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, 01:41:01 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
Mach Discussion
VB and the development of wizards
Time estimation until tool change
Pages:
1
2
Go Down
« previous
next »
Author
Topic: Time estimation until tool change (Read 1175 times)
0 Members and 1 Guest are viewing this topic.
Baumeister25
Active Member
Offline
Posts: 10
Time estimation until tool change
«
on:
May 01, 2010, 04:28:45 PM »
Dear all,
due to the fact that i run quite long tap files and dont have a automatic tool changer on my mill i would like to know how long the estimated time
until the next tool change is. I didnt find much in the forum about that topic. Could somebody give me a hint how such a macro could look like?
Great would be of course to have a DRO which shows the time until next tool change and which is updated every minute or so. Possible?
Thanks in advance for your ideas and support!
Wolfgang
Logged
stirling
Global Moderator
Offline
Posts: 1,189
UK
Re: Time estimation until tool change
«
Reply #1 on:
May 04, 2010, 06:27:52 AM »
Hi Wolfgang - not sure how you'd do this and as no one else has come up with a solution...
I remember reading somewhere how you could come at it from a different angle. Stick a mobile phone somewhere appropriate on your rig and a "finger" somewhere on your Z assembly. Pre set a text and toolchange gcode to hit the send button. Now your mill texts you when it needs a toolchange - cute or what?
Cheers
Ian
Logged
Baumeister25
Active Member
Offline
Posts: 10
Re: Time estimation until tool change
«
Reply #2 on:
May 04, 2010, 02:16:59 PM »
Hi Ian,
yeah, cute!
I already thought my question is so unbelievable good that nobody
has a solution. But i see you are creative. Unfortunately my wife always demands that
i know in advance when i need to go back to basement to my cnc......how to do?
Still hope somebody can help me to find out in advance when i have the next meeting with my
cnc to change the tools!
Thanks!!!
Wolfgang
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #3 on:
May 04, 2010, 03:45:59 PM »
I have looked through all my notes and don't have a solution. The only way to know when the next tool change would be is to let mach do an TIME estimate based on the gcode(feedrate * distance) to the next TC THEN start a countdown timer running, BUT we don't have access to that info(;-).
That would need to be done at a pluin level OR the driver level.
You could use a digital kitchen timer and set it for each segment?
PS: It is not a new question(;-) that was asked several years back along with a countdown timer for program end.
THERE IS a process that mach does when loading a new program file that checks the code for errors before it loads. THAT would be a place to include the countdown timer calculation process. You would just have to convince Brian that it is a good idea.
«
Last Edit: May 04, 2010, 03:52:35 PM by BR549
»
Logged
stirling
Global Moderator
Offline
Posts: 1,189
UK
Re: Time estimation until tool change
«
Reply #4 on:
May 05, 2010, 09:54:59 AM »
The best I can suggest is that you turn off your controler, select auto toolchange in configs and modify the M6start macro. Then you can do a real time simulation run prior to your actual cutting which will record the time of the toolchanges. Not ideal but at least it is 100% accurate. (remember to switch back to manual toolchange before your real run)
here's a skeletal addition to M6start.m1s. I'll leave it to you to convert to HH:MM:SS
Open "toolchangetimes.txt" For Append As #1
Print #1, Timer & " " & getselectedtool()
Close #1
Just don't let your wife see it she'll probably point out that it's not an optimal or ideal solution
Cheers
Ian
«
Last Edit: May 05, 2010, 10:03:32 AM by stirling
»
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #5 on:
May 05, 2010, 10:36:19 AM »
HUM that is a good idea Ian. You could also just look at the TC led to use to trigger the time function as the program ran.
I think I will ADD that routine to the JOB REPORT function that we run. It might be handy to know the spans between tool changes along with total run time of the job.
Then if really needed you could run a simple countdown routine that you plugged in the span times and it would allow you to see the countdown time LIVE.
You could also add a function to output to a relay so a TC warning alarm could be used say 5min BTC the flashing light/buzzer goes off to alert you to an upcoming TC.
(;-)
«
Last Edit: May 05, 2010, 10:40:23 AM by BR549
»
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #6 on:
May 05, 2010, 03:53:13 PM »
OK it is possible to do a SOSO countdown timer BUT you would need to input each leg or devise a scheme to use #vars in the preamble of your GCode to set #vars with the TC times.
NOW to integrate it into looking at T#s and the M6start macro to do a tool count.
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #7 on:
May 05, 2010, 11:18:17 PM »
The new WorkLog works with the new TC code.
Sample report:
"5/5/2010.....C:\Mach3\GCode\TestWorkLog.txt, StartTime 11:28:57 PM"
"__________ToolChange T# 1 ,11:28:58 PM"
"__________ToolChange T# 2 ,11:29:17 PM"
"__________ToolChange T# 3 ,11:29:46 PM"
"__________ToolChange T# 4 ,11:30:05 PM"
" C:\Mach3\GCode\TestWorkLog.txt..........EndingTime11:30:26 PM"
"5/5/2010.....C:\Mach3\GCode\roadrunner.tap, StartTime 11:31:26 PM"
"__________ToolChange T# 6 ,11:31:26 PM"
"__________ToolChange T# 12 ,11:33:57 PM"
"__________ToolChange T# 0 ,11:37:02 PM"
" C:\Mach3\GCode\roadrunner.tap..........EndingTime11:37:10 PM"
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #8 on:
May 07, 2010, 01:07:17 PM »
THis will do a basic Time to TC countdown based on times derived from the worklog it will ouput the countdown to either the message bar OR a user DRO you would create on the screen.
'Program Load, Program The Vars to the TC time values derived from the WorkLog
#310 = 0 'Turns OFF Timer
#400 = 0 'Sets TC Var Holder to Zero
#401 = 10 'Start of the TC values 401 = 1st TC time
#402 = 2 '2nd
#403 = 6 '3rd
#404 = 0 '4th, etc
***************************
'M6Start (add too)
setvar(310,0) 'Turn Off Timer
SetVar(400,(Getvar(400)+1) 'Up the Tool# count
IF GetVar(400) = 0 Then End 'IF var value = 0 then end
IF GetVar(400) > 0 then SetVar(301,400) 'IF Var has a value then process
End
***************************
'M6End (add too)
SetVar(310,1) 'Turn ON Timer
End
**************************
'M1030 End ( Create) , Is called by the M30/program end
Message" End Of Program Run"
SetVar(310,0) 'Turn Off Timer
'SetOemDro(1000,0) 'Reset Dro
SetVar(400,0) ' Reset TC Vars to Zero
SetVar(401,0)
SetVar(402,0)
SetVar(403,0)
SetVar(404,0)
SetVar(405,0)
SetVar(406,0)
SetVar(407,0)
SetVar(408,0)
SetVar(409,0)
SetVar(410,0)
End
***************************
'Macropump (add to)
If Getvar(310)<>1 Then End ' IF Timer is OFF then end
settimer(10)
SETvar(298,(GetTimer(10)))
setvar(299, (Getvar(299) + (GetVar(298)/60)))
Setvar(301, (Getvar(300)- Fix(Getvar(299))))
Message" Next TC Due In " &getvar(301) &" Minutes" 'Use IF you use message bar
'SetOemDro(1000,Getvar(301)) 'Use only if you use a DRO to display countdown
End
Hope it helps,
Logged
Baumeister25
Active Member
Offline
Posts: 10
Re: Time estimation until tool change
«
Reply #9 on:
May 09, 2010, 09:02:20 AM »
Dear BR549,
i have some questions to your post. Sorry for the maybe stupid questions but i am not that experienced with macros yet.
1) Where do i get the "new WorkLog" Macros from?
2) When/how to start the "Worklog" Macros? Like a button which starts worklog and then directly the program run?
3) What do you mean with the " 'Program Load " part? What/how to create to get the
TC times from the worklog inside the #40x variables? Do i manually need to input?
4) Is the M1030 macro automatically called if the program reaches the M30 line
or do i need to change anything?
Thanks for your support!
Wolfgang
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...