Hello Guest it is March 29, 2024, 05:37:22 AM

Author Topic: Bridgeport Knee Mill Conversion?  (Read 270446 times)

0 Members and 1 Guest are viewing this topic.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #410 on: September 02, 2016, 04:44:28 AM »
Seems lots of ways to bake this cake, I need to get chips flying first i think :)

Any chance you could show us the code used on your tool height setter macros ?
Should have the ENC module today so i can get that fitted and programmed.

Dave

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #411 on: September 02, 2016, 07:22:42 AM »
in the macropump I have

Setter = GetUserDRO(1502)
sleep 10
Setter2=Setter/200
SetOemDRO(100,Setter2)

In the screen button I have

If GetOemLED(800) Then
MsgBox ("Mach In Reset, Enable and start again")
End
End If

Offset = GetOemDRO(100)

SetOemDRO(1555,Question("Enter Offset Number"))

Tool = GetOemDRO(1555)

Code "G90" & "G10" & "L1" & "P" & Tool &"Z" & Offset
DoOemButton(121)     


And then I also have the zero button which just pulses the Index input on the Enc module.


I have OEM DRO 100 on my screenset but technically it is not required although it is handy as you see the numbers so you know it is working.


Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #412 on: September 02, 2016, 07:33:01 AM »
Nice, thanks again.

Is it possible to use the actual A axis DRO on screen - i already have that and the CSMIO will not be using it any more??

The index pulse needs a relay as it uses the index 5v supply ??

The /200 is your steps-per calculation?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #413 on: September 02, 2016, 07:39:10 AM »
It may be possible but you would have to enable the axis for the DRO to read I would think and that may then cause issues with things like GoToZero or whatever.

I think you actually need to Gnd the I+ via the relay but not 100% sure but it sticks in my mind that we had to do that when doing my friends Avons height setter.


Yes my glass scale is 200 pulses per mm.
Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #414 on: September 02, 2016, 07:48:33 AM »
Hmm, i might have to dump a small DRO somewhere then - thats the only thing with the 2010 screen-set, its so tidy and well filled that there is no where to shove anything else without making a mess :)

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #415 on: September 02, 2016, 07:59:23 AM »
Not sure it won't work - i have the 4-axis 2010 set loaded on my laptop and with the axis disabled in ports & pins it seems to behave just like a plain user DRO - i can type values in it, made a macro that reads it, doubles the value then writes it back and that works so it could be good to go.

Goto zero has no effect as the axis is turned off :)

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #416 on: September 02, 2016, 08:06:09 AM »
If it doesn't work then just make a tool set page on the screen, could even incorporate labels to read the tool names from the tool table like I have on the Chiron and also the Computurn lathe ;)

In Mach4 I have it one step better, I can write the labels on my page and it will update the table when I exit or I can update the table and it will get updated from it when I open.

Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #417 on: September 02, 2016, 08:11:02 AM »
Nice :)

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #418 on: September 02, 2016, 01:04:00 PM »
Ok, i have the ENC module wired and i can see the LED's flashing as i move the encoder.

But i cannot get any signal into the CSMIO test page for the ENC module OR into Mach3.

Could it be the Index pulse ?
I have tried taking the Index input to 0v as well as 5v - no change, do i need to do anything with the differential Index input?

Nearly there but not quite ;)

Edit...

Got the data showing in the Plugin monitor, but not from the macro pump yet, going to change screen sets and throw in a user dro.
« Last Edit: September 02, 2016, 01:17:35 PM by Davek0974 »

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #419 on: September 02, 2016, 02:21:42 PM »
Hmm, some progress.

I now have the macro pump updating the A axis DRO nicely, calibrated the display, got sensible data showing. The +Index pulse only needs to go low once after Mach comes out of reset each time.

Anyway, next issue seems to be that the macro code will not write to the tool table anymore?

Here's the button code, basically a hacked-down version of a previous attempt but one which did update the table ok.

It's not just writing a zero, i tested it by changing the DRO value with a fixed number and it would not write that either.

Code: [Select]
Sub Main()

Dim Response, Style, Tool

Style = 48
If GetOemLED(800) Then
  Response = MsgBox ("Mach In Reset, Enable And Start Again", Style, "Tool-Height Setting")
  End
End If

Style = 65
Response = MsgBox ("Ensure Toolsetter Is Empty, Reading Is Zero, Place Tool In Setter", Style, "Tool-Height Setting")
If Response = 2 Then End 'user pressed cancel

Tool = Question("Enter Tool Number For This Offset, Enter -1 To Abort")

If Tool = -1 Then End

Code "G90" & "G10" & "L1" & "P" & Tool &"Z" & GetOEMDRO(803)

DoOemButton(121)  'show the tooltable

Style = 64
Response = MsgBox ("Tool No." & Tool & " Height Set", Style, "Tool Height Setting")

End Sub              

Feet were aching a bit by now so i gave up without trying a PC reboot, will be back on the case in the morning but is there anything that can stop the code updating the table??

Also, when writing to the tool table in code then loading it via  DoOEMBUTTON(121) why doesn't the new value show up, if you close and reload it it shows?? This was when it was working BTW.
« Last Edit: September 02, 2016, 02:33:21 PM by Davek0974 »