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:22 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 2 Guests are viewing this topic.
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #10 on:
May 09, 2010, 11:16:23 AM »
OK Lets start with the Code for the WorkLog,
First create a new button on the main screen OR use an existing EMPTY button. I used the AutoToolZero button as it is NOT used. This button is used to START any program that you want logged. Just load your program and if you want it logged then Push the Button to start the program. It will turn ON the LOG function and start the log. IF there is NO worklog.txt file IT will create the file for you.
Next add in the M6start code to the M6start macro
NOW create an M1030 macro. It will automatically be called by the M30 in the program. You must enclude an M30 and your program end for this to work.
Once you have started the program with the LOGFILE button you do not use it again until the next program start. To restart after the tool changes you do the standard cyclestart as you normally do.
IF you do not want to log the file then just use the Cycle start button. The M1030 will sense that you did not use the LogFile button and wil NOT add any info to the file.
******************************************************
'Macro ProgramRun use for start worklog code
Open"C:/Mach3/worklog.txt" For Append As #1
Write #1,"" & Date &"....." & Filename &"," &"StartTime " & Time()
Close#1
SetVar(499,0)
DoButton(0)
End
*******************************************
'M6Start Macro
tool = GetSelectedTool()
SetCurrentTool( tool )
Open "C:/Mach3/Worklog.txt" For Append As #1
Write #1,"__________ToolChange " & "T# " & GetSelectedTool() & "," & Time()
Close #1
End
*******************************************
'Macro M1030 use to build the M1030 macro that the M30 calls at program end
Sub main()
If GETvar(499) <> 0 Then End
If GetVar(499) =0 Then
Open "C:/mach3/worklog.txt" For Append As #1
Write #1," " &Filename &"..........EndingTime" & Time()
Close #1
setVar(499,1)
End If
End Sub
*******************************************
WorkLog Sample Output
"5/9/2010.....C:\Mach3\GCode\TestWorkLog.txt,StartTime 12:01:42 PM"
"__________ToolChange T# 1,12:01:43 PM"
"__________ToolChange T# 2,12:01:55 PM"
"__________ToolChange T# 3,12:02:00 PM"
"__________ToolChange T# 4,12:02:05 PM"
" C:\Mach3\GCode\TestWorkLog.txt..........EndingTime12:02:10 PM"
Hope that helps
Logged
Baumeister25
Active Member
Offline
Posts: 10
Re: Time estimation until tool change
«
Reply #11 on:
May 13, 2010, 09:48:59 AM »
Dear BR549,
thanks for your help. I can create the Worklog now (sample see below). But its running in real time, so for my programs
it would run 10h or so. How can i make the worklog creation running faster? Furthermore i need to click start after TC each
time.
"5/13/2010.....O:\Zeichnungen\BF20L_3Phasenmotor\lichtschrankenhalter.tap,StartTime 4:21:44 PM"
"__________ToolChange T# 8,4:21:45 PM"
"__________ToolChange T# 7,4:25:03 PM"
"__________ToolChange T# 14,4:26:37 PM"
"__________ToolChange T# 13,4:28:30 PM"
"__________ToolChange T# 8,4:32:51 PM"
" O:\Zeichnungen\BF20L_3Phasenmotor\lichtschrankenhalter.tap..........EndingTime4:41:53 PM"
Now i have the TC times inside the worklog file. How do i now get it used for the DRO? Shall i just add
the code from your post from May 7 and create a OemDRO 1000? In this case i need to manually input
the #401, #402... variables each time as far as i understand. Is it possible to read it out from the worklog or
in some other way that i dont need to input the times manually?
Wolfgang
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #12 on:
May 31, 2010, 01:04:12 PM »
Sorry Wolfgang I missed your reply, Did you get it working??
Logged
Baumeister25
Active Member
Offline
Posts: 10
Re: Time estimation until tool change
«
Reply #13 on:
May 31, 2010, 01:40:09 PM »
Hi BR549,
somehow. Its working to create the worklog file. But it runs 10h in case of a 10h program.
Thats not what i really want.
Besides that i tried to directly write the times until next tool change
into the #40x variables. It works to write the TC times into the variables but when i click "CycleStart" to
really run the program the variables are all reset ...
Does Mach always reset all variables when i use "CycleStart"??
Wolfgang
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #14 on:
May 31, 2010, 01:45:15 PM »
DID you mean 10hours in the case of 10 minute program?? OR do you mean you would like to run the program quickly to "GET" the TC times without having to wait the ten hours(;-)
NO mach does not reset vars automatically UNLESS you close down mach then only Vars#500-600 are persistant and are saved by mach.
We can start from there IF you wish to continue. YOUR choice(;-)
«
Last Edit: May 31, 2010, 01:48:53 PM by BR549
»
Logged
Baumeister25
Active Member
Offline
Posts: 10
Re: Time estimation until tool change
«
Reply #15 on:
May 31, 2010, 01:56:03 PM »
I would like to get the TC times "quickly" without waiting 10h in case of a 10h program.
Ok. Maybe my programming error. Need to try again and check if i can find out why the variables where
gone after new CycleStart. I didnt close down Mach so it should work.
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #16 on:
May 31, 2010, 02:05:36 PM »
OK I see what you mean by reset the VARs. In the M1030 routine, WHICH is automatically called by the M30, it does reset the Vars back to zero. AS it thinks you are finished with the Program (M30 program end)
OR that can be changed to NOT reset the VARS(;-) at program end.
This process is assuming that your Vars were originally loaded from the Gcode file. IF you hand load the Vars from the MDI then you must do it each time you run the program.
UNfortunately it cannot PRE RUN the program Quickly AS mach does not have a function call to access any times from the preveiw routine like some other system have.
This routine ASSUMES that you have run it before and already have the times available. Perhaps you can ask Brian to consider this function in the new MachV4.
Sorry for the confusion, (;-)
«
Last Edit: May 31, 2010, 02:08:59 PM by BR549
»
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #17 on:
May 31, 2010, 02:17:12 PM »
Saying that, SOME cams can output those TC times as VARs in the original POST so they would be available.
We are working with LES over at SheetCam to do just that. SO in that case"Sheetcam" users would have that info available first hand and at first run of the program.
Logged
Baumeister25
Active Member
Offline
Posts: 10
Re: Time estimation until tool change
«
Reply #18 on:
May 31, 2010, 02:26:30 PM »
I use Pro Engineer as CAM. Need to check if i can get my post processor to tell me this times
and put it into the G code file...could be.
I think a countdown until next TC would be a good idea for the MachV4!
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: Time estimation until tool change
«
Reply #19 on:
May 31, 2010, 03:03:10 PM »
I agree, YOU have a GREAT idea (;-) Might want to drop your idea in the new features section.
(;-)
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...