Hello Guest it is April 19, 2024, 01:08:21 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zmajmr

Pages: « 1 2 3 4 5 6 7 8 9 »
51
So I was trying to say that is not possible to send tool changer on different position for each tool (there is no interface in CAM to do something like that).

52
Here is update



So when I choose Goto Home I can send complete toolchanger in one point in space which is predefined in Machine setup and name of that point is safe (home) toolchange position, it would be nice if I could send toolchanger on exact position for each tool , i guess I did not try that because it name suggested what will happen and now when I have little experience with post processor I can see that Goto Home will send tool changer on coordinates that defined in Machine setup.

Other thing , so G49 does not work in Mach3 Turn but I can accomplish same effect with typing in MDI T0000 or what I at the end chose T0909 because I do not have tool number 9 in turret (have only 8 tools  ;)), so because of that additional tool my tracking off tools in turret after choosing non existing tool was messed up and functions GetCurrentTool() and GetSelectedTool() were not enough to determine according to difference of those two return value which tool I actually want so mach3 can execute rotation of turret to get in reality tool number same as in Mach3 , and after reading on net and experimenting , I first thought that static variables will help but they also loose value after I escape out of tool changer macro so at the end I concluded that I need to save data in file and if I get request for T0909 that means save tool number before tool in file because you will need that data to calculate in next step what tool you need to get later.

I mange to find here good source how to use saving data to file

http://henriksplace.se/cnc/cnc_mach3_vb.html

Now I need to see is it possible to adjust post processor to control tool changer as I want (I saw it is not so easy and I could not imagine what all problems exist untill I mange to re edit tool changer macro, easiest way is to use G53 and to send tool changer on fixed place every time and probably is the safest way), but it would be cool that tool changer does not need to travel every time to fixed place, my idea is that safe place is different according to upcoming tool  :)


53
Please don't take offence but I am afraid I don't really have time to sit through long videos.

If I understand what you are wanting then maybe this would work.

For each job set a tool change position that is just clear of the raw stock, maybe 2mm bigger in X and Z.
Next you could use the GoTo option to then define individual positions for the move to where you wish to change the tool.
You have 2 ways of accessing the GoTo, you can pick it from the Icons as I mentioned earlier but you can also choose it from within each operation, it should be under the More Options tab.
That way you effectively have the choice of different tool change positions for each tool.


I have tried this out and it seems to work well but afraid I don't know where my Dongle is so I am unable to post code to see what it looks like, it may or may not work but is worth a try.
 If Dolphin allowed you to disable tool change position or had the option to have a position for each tool it would be simple, sadly it doesn't but it is still a nice affordable CAM especially for Lathes.
Hood

Hi, no problem if you have no time for videos, I know where is Goto and I used it to move from rawstock , even tried before to position toolchanger on place which is safe for rotation of turret (but I did not choose option goto home position because I thought it will bring toolchanger on place where it toolchanger ends up automaticaly every time when I want to select new tool, and thing was that that place was only ok for master tool so I alone reedited postprocessor so that tools comes to that place same as in cam, from right side. Anyway I know where is Goto comand only need to try what will happen if I in Goto menu select send to home position )now I have idea that maybe it will work diffrent then I expected).


I need information how to use or is it possible to use variables inside macros in Mach3 that have memory , I can not find any example so I am not sure is that possible or I am just searching under wrong tags )english is not my mother langauge, so it would be huge help if someone have some link where I can see how are used variables inside mach3 macros that can remeber values of variables, from what I tested every time I enter in macro it does not remebre what whas previous value of varibale.




54
With that cammand you can just pick a point anywhere on the screen, or define a specific point, and also define how that move
should be done in the options.

RICH

Yes, I tried goto https://youtu.be/K1ttceK0PtM?t=1m13s

I did not tried to activate send home , I thought it will sent it to safe (home) tool change positon which I defined in setup machine for rear turret.

Does anybody have some example with using vairables that can remeber values isnide macro, I would need that to modife my tool changer macro.

In video from link I analyzide what is happening with Goto command (even I did not checked send to home position).

55
I meant that if I remembered Dolphin only had the possibility of one tool change position and from what you said that was correct, the CAM I use now can have a different change position for each tool.

Anyway did you try the additional command  I mentioned? See attached pic..

It has been a long time since I have looked at Dolphin so I can't recall if you can tell it not to use the tool change position, if that is the case then you could use the command mentioned above instead and enter values to suit each tool.
Hood



Hi

Yes, I have Goto but it does not work for me or I do not know how to use it, I recorded video about that

https://www.youtube.com/watch?v=K1ttceK0PtM

56
Bit rushed to read all you have written but if I recall Dolphin just lets you set a tool change position for ALL TOOLS rather than one for individual.
You could do a few things if you want to clear the offsets,
1. Is like I mentioned above, call the slot number but with 00 for the offset part of it.
2.You could call T0000 and depending on your Macro it would probably just do the same as above.
3.Use the additional Command option in Dolphin to insert a G53G0X*Z* (ie a machine coords move) so that the machine goes to the desired position depending on the tool you are currently at and the one you want.

For the last one you could probably  even write in the PP to automatically enter a G53 move and have it look at current and next tool and decide the position required, I did something similar when I had both front and rear toolposts and was using Dolphin.

Hood

Hi and thx for help, that was good idea, I tried that , T0000 and it is same effect as G49 that does not work in Mach3 apperently.

I have Partmaster Lathe V13, and I opend all tabs and I did mange to find only where to define safe tool change (home position) for front and rear turret, I have only rear turret, so maybe it was possible in older version or I just do not know where should I enter those data , even I saw in manual from post processor commands that serves for taking coordiantes of tool change positions, so this is why I am not sure did I can not find where to enter those data (that would be totaly crazy) or that just does not exist for lathe, maybe it is for mill, I do not know.

So have idea what to make with T0000 when G49 does not work and now I came to problem that is connected with how is my tool changer designed, it can only rotate in one direction and then it locks in opposite side, and everything worked perfectly until I stated to experiment with entering T0000, it does not rotates turret but inside of macro are two functions, one gives information about previous tool and other about tool that I want to choose, so according to difference between those 2 information I made checks how to determine for how much I need to actually to rotate turret that will give me in reality tool same as in mach3.

Other thing when I enter in mach3 I need to reference turret first ( I have one optical sensor in turret) and after turret is referenced (rotation of magazine is stopped on place after I press command T0101 I will get in reality tool 1).

So problem is I do not know how to adjust function that it only once rotate turret so I have synchronization between mach3 tool number 1 and really tool 1 in turret, I tried to use ( I had idea to use variable that could be flag, so if I once initialize turret I can remove value of flag from 1 to zero in order not to enter in that part of    if     then  check, so I think that I conclude every time I enter in macro for controlling tool changer flag loses its value, so how to make that variable save/ memorize value.

I will post code of m6start , it works fine until I choose T000 and after that T0101, it should not move turret but it does, because I do not know how to write conditions that if OldTool is =0 and NewTool =1 that that part should only be entered once , I know it is possible how it is written to find combination that I enter multiple time but I really can not think of some solution without variable that can save data (marker, flag, I hope you get idea).

So here is code, if somebody have idea how to make that (will help me a lot), I was trying to think out solution yesterday till 2 in the morning and I thought that I save macro and today when I start all over again , I opened macro and it was empty, I could not believed LOL, luckily I manage to remember logic (If then parts), rest of it I had saved under another name in case that this happens.

  Sub main ()
Dim OldTool, NewTool , a As Integer


CurrentFeedrate = GetOemDRO(818)
Code"G90 G94"

Message "Old tool New Tool      " &GetCurrentTool () &GetSelectedTool ()

OldTool= GetCurrentTool ()
NewTool = GetSelectedTool ()
SetCurrentTool (NewTool)

If NewTool=1  And  OldTool=0 Then
a=1
GoTo label1
End If

If NewTool=0  And  OldTool=0Then
a=0
GoTo label1
End If


If NewTool=0 Then
a=0
End If

If NewTool > 0 And  OldTool>0 Then
a=NewTool - OldTool
End If

If NewTool > 1 And  OldTool=0 Then
a=NewTool-OldTool-1
End If


label1:

If (a = 1) Or (a = -7) Then
Code "G91G01 Y1.251 F200"
While IsMoving()
sleep(50)
Wend
Code "G91G01 Y-0.201 F20"
While IsMoving()
sleep(50)
Wend
End If

If (a = 2)  Or (a = -6) Then
Code "G91G01 Y2.301 F200"
While IsMoving()
sleep(50)
Wend
Code "G91G01 Y -0.201 F20"
While IsMoving()
sleep(50)
Wend
End If

If (a =3)  Or (a = -5) Then
Code "G91G01 Y3.351 F200"
While IsMoving()
sleep(50)
Wend
Code "G91G01 Y -0.201 F20"
While IsMoving()
sleep(50)
Wend
End If

If (a =4) Or (a = -4) Then
Code "G91G01 Y4.401 F200"
While IsMoving()
sleep(50)
Wend
Code "G91G01 Y -0.201 F20"
While IsMoving()
sleep(50)
Wend
End If

If (a =5)  Or (a = -3) Then
Code "G91G01 Y5.451 F200"
While IsMoving()
sleep(50)
Wend
Code "G91G01 Y -0.201 F20"
While IsMoving()
sleep(50)
Wend
End If

If (a =6)   Or (a = -2) Then
Code "G91G01 Y6.501 F200"
While IsMoving()
sleep(50)
Wend
Code "G91G01 Y -0.201 F20"
While IsMoving()
sleep(50)
Wend
End If

If (a =7) Or (a = -1) Then
Code "G91G01 Y7.551 F200"
While IsMoving()
sleep(50)
Wend
Code "G91G01 Y -0.201 F20"
While IsMoving()
sleep(50)
Wend
End If

Code " G90 "
Code "F" & CurrentFeedrate
End Sub

57
I made wrong quotation  :)

58
Seems you are making things complex.

I also never use G49 and G43 for the lathe. My home is also the tool change position ( quick change and not turret) which is set based on max tool offset values for tools to be used. Touch off with longest tool to set Z reference and use G28 for an intermediate move to clear stock before going home or pick move location via CAM. I let Mach do it's job of taking care of tool offsets. There are other variations on the theme depending on how you want to work. Don't do mass parts on the lathe and if in an industrial setting would probably allow for tool offset check and wear, etc.

RICH



Hi
Thx for replay, I never tried to use G28, I tried G53 , thing is that with G53 I can not make some relationship that will automatically calculated where to move toolcahnger before rotation of turret (because of part that is variable length in chuck so zero from part can be on diffrent location on Z axis), I know how to adjust post processor that inside of it is calculated for how much tool changer needs to be moved right and up, for every tool it is usually different set of values for (x and Z), maybe it sounds complicated to do that but it is not. So for that what I what to make I need G49 or T0000 as Hood said.

And Mach3 cares about tool offests, I just entere same values in CAM as in Mach3 Tool table and as post processor does not use values for oofest from CAM because how it is written , I use them to calculate moves of tool changer, like I described above.


59
I have never used G43 and G49 in Turn as you do not really require it and it likely doesnt work anyway. The tool table holds the X and Z offsets for the tools so when you call a tool you will also call an offset.
Normally you would have the same offset number as the tool number but depending on how your M6Start macro is written you may have to use different ones.
For example if you had an 8 position turret and your tools could be removed and replaced easily and repeatable, then you may have several different tools that fit in the same slot so you would call different offsets for the same tool slot depending on which tool was currently in that slot.
 You can also write the M6 macro so that you can call tools greater than the slot number of your turret and still have it go to the correct slot, for example if you had 4 tools set for Slot 1 in an 8 position turret you could call T0101, T0909, T1717, T2525 and they would all seek position 1 on the turret but apply the offsets from the tool table corresponding to the number just called.

This is also handy for using inserts with different nose rads, you can pre-set these in the tool table and depending on the offset you call it will adjust for the nose rad you have in.
 As an example I have a tool in my turret and I have 3 different offsets set up for it, it is Tool 1 with 0.2mm, 0.4mm and 0.8mm nose rads on the Insert, so I can call T0101 for the 0.2 rad, t0909 for the 0.4 rad and t1717 for the 0.8 rad.

 If you  did wish to call a tool and have no X and Z offsets applied, not sure why you would but there may be a reason,  you would simply call T0100 or T0200 ....... T0800 etc. ie the 00 of the tool call will not look in the tool table for the offset, no need for G49 as far as I can see.

Hood

Hi, thx for replay, will try to explain why I would need G49. So I have tool changer with turret that can accept 8 tools and on given command like T0101 I got rotation of turret and chosen tool in its coordinate system, and I want turret to work like that, I could use G53 inside macro for controlling tool changer to position it self in safe place before rotation but in that way I would need to update that position every time when I make different part in case I do not want tool changer travel back and forth unnecessary.

So my idea was to make adjustments in post processor so that according to data how my longest tool is , how much stick part out of chuck to define safe home tool change point, (this is how it is called in CAM) but in reality it represents point from which tip of every used tool starts before machining process. So if I want that every tool look same as in CAM graphic representation/2D view it means that before rotation to get choosen tool, complete tool changer needs to move right and up for upcoming tool offset. And by analyzing how post processor work I concluded that before rotation is executed (of turret) in current coordinate system is being calculated where tool changer need to be moved, and I used that fact to calculate position where toolchanger needs to move in order that selected tool is active (tool that just need to be active) will have its tool tip very near safe tool change point, next step was to position it exactly in its activate coordinate system ,to its tip is positioned in safe (home ) tool change point (and after that point tool proceeds to machine chosen task that I chose in CAM).

So thing is with that how I made it , it would work perfectly fine (100%) if my machine would have double sized working space  (theoretically unlimited) but as it does not, what happens , if I have for example active drill as tool in tool changer and I want to chose some other drill as both of this tools have offset ed coordinate systems to my master toll (their space is much smaller then space in which can move master tooll, in right side, so if I apply logic for calculating in coordinate system of tool that already have small space compare to master toll (master tool is profiling tool) when I add value (that is offset to according to master tool) to current x  and z value that is active in coordinate system, post processor will calculate point in which is necessary to move tool changer before rotation of turret to have my another drill and when I run my gcode , it will hapen that soft limits will engage (nothing dangerous).

Other situation is that I use machining operations like this , I start with master tool (it have big coordinate space) then I want to use drill, I can make good calculation to back off drill in coordinate system of master tool, then after drill I should chose some tool that sticks out little out of turret like (parting tool or some other turning tool), next I should choose again some tool that sticks out like drill , for example boring bar (this is just example to show in which case it works with no necessary intervention for editing too change coordinates).

Anyway, this is strategy short tool, long tool, short tool.. it works good, but I could make it work 100% good if G49 would work, will try to experiment with T0100 and T0200... stuff

Probably it sounds that I am complicating but it is really simple and should be very easy to use, I do not need to mess with macros in Mach3 , once I made it it stays for ever like it is , and I only define safe tool change (home) position in CAM and post processor takes care about everything from there.

This on video is how I adjusted post processor to work as I described before , version, short tool, long tool, short tool , with fact that I manually edited 3 potions (or 2 not sure any more) where tool changer need to go (until I realized how it actually works, got opportunity only when I mounted in turret long tools like on video).

https://www.youtube.com/watch?v=FhQPxXn28vc

So why I was asking for G49, I wanted to cancel current offset ed coordinate system (which are all rest of 7 tools in turret) and I wanted to make calculations in coordinate system of master tool where to retract tool changer before rotation of turret, in that way I would not get as result coordinates that are out of limit my working area.

Also I saw that post processors as it was made  originally from Dolphin support outputted command G49 after G00 Xx Zx command, and when I asked support why my tool changer works only good for master tool, it happens that all other tools until their tip comes to safe tool change (home) point can pass through part or spindle on their way to that point, so I got answer it is Mach3 issue, and by the time I did not know on what they mean, now I suspect that maybe they meant on G49, it is Mach3 issue, maybe it would work all fine if G49 works, I do not know...
 So it is possible that they had good idea how should tool changer be positioned but it seams that G49 have no effect in Mach3 as it have in other controllers.

60
Hi,

 so I am newbie with Gcode. Was playing with post processor for Partmaster Lathe V13 and got advise from friend to try to use G49 and G43 to control my tool changer as I want.

So today I went to do some testing how G49 work, before that I surfed on net to see how it is used and what it does, it say:

To use no tool length offset, program: G49 , also found term to cancel tool offset.

So will try to explain what I did, I have tool changer with 8 tools, DIY ATC , it only rotates turret on commands T0x0x (x can be number from 1 to eight), I measured tool offsets according to my master tool and entered them in my Tool table in Mach3 , everything works correct.

Next what I did I choose tool number 1 (my master tool, and set it to show coordinates x=0, Z=0 in DRO), now I wanted to see what will happen when I enter G49 in MDI )manual data input), so I entered G49 and after that T0808, turret rotated to tool number 8 and I expected that when I read data for coordinates on DRO it will say x=0, z=0, but it was for example X=10, Z=20. Tried same experiment with G43 but nothing changed.

In general configuration I checked under Tool Change options, Auto tool changer, I also tried with Ignore tool chane but even with that option I could change tools, I enter T0101 , I get tool number 1 in its coordinate system, enter tool T0808 again I get tool 8 in offset ed coordinate system according to tool 1 (master tool).

So, what I am doing wrong if I am doing wrong and how should look G49 (what I can see on screen so I now it works good) when it is used good. I tried to search  net but I mange to find threads where they use that only for cnc mills so I am not sure why I can not find some example with use for cnc lathe and Mach3 Turn.

Any help will be appreciated,
thx :)

Pages: « 1 2 3 4 5 6 7 8 9 »