Hello Guest it is April 16, 2024, 02:48:47 AM

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 - Davek0974

2051
General Mach Discussion / Re: Msgbox function...
« on: January 29, 2016, 02:38:21 PM »
Ok, must be missing something.
I put this in M6start.m1s

CurrentTool = SelectedTool

IF CurrentTool = 1 then
   SetVar(1000,GetToolParam(1,1))
   Message("" & GetToolDesc(1)) &"  Offset> " & GetToolParam(1,1)
end if

Changed my IHS to use var 1000.

I have 1 tool in my table T1

Stick M6 T1 in the MDI and nothing happens, should i see some feedback??

I dont understand the If CurrentTool = 1 line, what if current tool =2 ??

This is not on the machine CNC, I have a test setup of Mach without the port drive installed on my laptop.

2052
General Mach Discussion / Re: Msgbox function...
« on: January 29, 2016, 12:50:25 PM »
Brilliant, so it does not use the switch offset at all, but reads the offset direct from the table - neat.

I did not know you could read the table with GetToolParam etc, not learnt that much yet, hence my first attempt was messy and dabbled with offsets etc.

The #var in the G0 Z#1000 is identical to my existing method but a different var.

Stupid question, how do you initiate tool-change if its not in sheetcam?


Thanks for that

2053
General Mach Discussion / Re: Msgbox function...
« on: January 29, 2016, 10:56:57 AM »
Brilliant thanks

i was only using the g43 to get the stored value - it was cancelled with g49 after

2054
General Mach Discussion / Re: Msgbox function...
« on: January 29, 2016, 10:41:36 AM »
Thinking out loud...

Dim Offset

Code "G43 H1"       'Apply offset from tool table tool 1
Offset = GetDRO(2)       'Get the offset value from the Z DRO
SetOEMDRO(1045,Offset)    'Move the offset into the switch-offset DRO
something here to negate the effects of implementing Z offsets with G43??  --- G49 ?

That would seem to function in some way I think, basically modifies the switch offset from values in the tool table
Need a way to invoke it and a way to call any tool number

On the right path ??

2055
General Mach Discussion / Re: Msgbox function...
« on: January 29, 2016, 10:02:29 AM »
Ok, I'm a bit denser than I like at times ;)

Does the tool table method work by using a z-offset ?

Just watching a video from Tormach and it seems that way, I just have to work out how it all plays on the plasma :)

Of course I could be a thousand miles away from reality here having never seen the tool table before yesterday ;)

2056
General Mach Discussion / Re: Msgbox function...
« on: January 29, 2016, 09:39:31 AM »
Ok, you have peaked my interest :)

Care to pull out your notebooks and give a sketch of how the tool-table var was transferred from tool-table to switch offset DRO please ;)

Also, can tools be called from sheet cam, never done this so no idea :)

2057
General Mach Discussion / Re: Msgbox function...
« on: January 29, 2016, 02:18:23 AM »
Yes but without an automatic torch turret with two mounted torches ;) how would it cope with the fact that the torch can be mounted in different positions each time ??

My way keeps me in control but removes the forgetful aspect and automates the setting and verifying stages - a step down from auto but a few steps up from current manual option.

In a mill or lathe with tool-changer it would be like programming the height for tool 1 as 50mm then removing tool 1 and re-seating it in the mount 3mm lower - your tool-talble now has the wrong offset. My auto-manual idea has a built-in tool-setter to get the new tool in the right position each time.

:)

2058
General Mach Discussion / Re: Msgbox function...
« on: January 28, 2016, 04:27:17 PM »
Gameboy button maker - love it :)

Functions are king - if something needs doing, why not fit a button to do it ;)

I did browse the tool table thing BUT as there is no fixed stop for the torch (it does not like being slammed up against the clamp as air comes out round the top of the nozzle-tube-mount thingy, presumably to cool the handle?) I couldn't see a way of making it work that way.

I think this will do it, will test it this weekend.

Should i add any while-ismoving lines or change any of the inc/abs switches????

2059
18,000 seriously?

this is not manual work surely?
cnc would be worn out before running that lot?

2060
General Mach Discussion / Re: Msgbox function...
« on: January 28, 2016, 04:01:37 PM »
Slight edit, new If...Then section

If Response = 1 Then
  Code "G91" 'switch To incremental mode
  Code "G00 X22.00" 'position probe switch
  Code "G90" 'switch To absolute mode
  ActivateSignal(OutPut3) 'triggers the probe cylinder
  Code "G28.1 Z10.000" 'probe the surface
  Code "G92 Z#15045" 'apply the probe switch offset from settings screen DRO
  DeActivateSignal(OutPut3) 'raise the probe
  Sleep(200)
  Code "G91" 'switch To incremental mode
  Code "G00 X-22.00" 'put the axes back To where we came from
  Code "G90" 'switch To absolute mode
  Code "G00 Z0.00"

  Msg = "Change Consumables And Replace Torch" 'Define message.
  Style = 0 + 64 + 0 'Define buttons.'Style = vbokonly + vbinformation + vbDefaultButton1 button
  Response = MsgBox(Msg, Style, Title) 'Display message.

  Code "G00 Z25.00"
  Code "G91" 'switch To incremental mode
  Code "G00 X22.00" 'position probe switch
  Code "G90" 'switch To absolute mode
  ActivateSignal(OutPut3) 'triggers the probe cylinder
  Code "G28.1 Z10.000" 'probe the surface
  Code "G92 Z#15045" 'apply the probe switch offset from settings screen DRO
  DeActivateSignal(OutPut3) 'raise the probe
  Sleep(200)
  Code "G91" 'switch To incremental mode
  Code "G00 X-22.00" 'put the axes back To where we came from
  Code "G90" 'switch To absolute mode
  Code "G00 Z1.00"

  Msg = "Verify Calibration With 1mm Feeler Gauge" 'Define message.
  Response = MsgBox(Msg, Style, Title) 'Display message.

  Code "G00 Z20.00"'raise torch to safe height ready for work
End If

It now does a fresh IHS after replacing the parts and goes to 1mm for verification.

Questions...

In the above code,

Do I need any "While IsMoving" commands??
Can I dump any of the Abs / Inc switches???