Hello Guest it is April 24, 2024, 08:49:51 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 - Davek0974

1471
Ok, my manual does not list the msgbox function, what is the difference between msgbox and machmsg ?? They both seem to display message boxes.

;)

1472
Ok, thanks

so it sounds like it will be possible to do what i want, what is the correct way to code a feed-hold in a macro?

Would it be just DoOEMButton (1001)

with maybe Code "M05" to stop the spindle ?

Flowchart sounds good, but i do have a pretty good idea of what is needed anyway, just unsure how to achieve it :)

1473
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: July 25, 2016, 02:41:52 PM »
Their diagram, which i had not seen before as its not in the manual shows all encoder screens connected to pin 25 on the encoder port.

I just been poking about with my trusty Fluke and I have inadvertently connected to encoder shields to mains earth at the drives - probably not the best method ;)

Cable should be here tomorrow, bit of fiddly soldering and things should get better.

Still trying to find ideas for my semi-complex speed control method explained in my other thread ;)

1474
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: July 25, 2016, 08:15:20 AM »
Had a reply from CS_Labs re the red flashing encoder numbers - they are not an error message, just a count of every error received from that encoder, it seems they only run from 1 to 255 though but any error is bad i guess so it spits out the "check encoder connection" message.

1475
heres a link to a list...

http://www.machsupport.com/Mach3Wiki/index.php?title=OEM_Buttons

feed hold is 1001

:)

1476
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: July 25, 2016, 05:31:25 AM »
Looks like a simple wiring fault - CS-Labs replied and the shielding is wrong.

My pre-made cable idea has the shield connected to the DB25 shell - this is then grounded via the drive socket. CS reckon that the shield must be isolated at the drive and connected to the ground terminal on the encoder input terminal (25)

I will make up some proper cables when the wire arrives this week ( i ordered some 7-pair stuff) , that should fix it.

1477
This is my current spindle speed.m1s code, so far it warns me to either change the mechanical speed dial (this must be done with spindle running) OR change back-gear (must be done with spindle off) and speed dial as well.

It needs to somehow tell Mach to not process G-code as well as stop the spindle at certain combinations of speed/pulley. I guess a manual spindle start is ok.

Can this be done, I'm beginning to think i should have just used the cash and fitted a servo spindle :(

Code: [Select]
rpm = GetRPM()
pulley = GetOEMDRO(56)

Select Case rpm
case 0 To 126
  If pulley <> 1 then
    Call SetOEMDRO(56,1)
    if pulley = 2 then
      MachMsg ("Change Speed Dial To 700rpm","Wrong Speed Range",0)
    else
      MachMsg ("Change Back-Gear To Low Range And 700rpm","Wrong Speed Range",0)
    end if
  End If
Case 127 To 366
  If pulley <> 2 Then
    Call SetOEMDRO(56,2)
    if pulley = 1 then
      MachMsg ("Change Speed Dial To 2200rpm","Wrong Speed Range",0)
    else
      MachMsg ("Change Back-Gear To Low Range And 2200rpm","Wrong Speed Range",0)
    end if
  End If
Case 367 To 1031
  If pulley <> 3 Then
    Call SetOEMDRO(56,3)
    if pulley = 4 Then
      MachMsg ("Change Speed Dial To 700rpm","Wrong Speed Range",0)
    else
      MachMsg ("Change Back-Gear To High Range And 700rpm","Wrong Speed Range",0)
    end if
  End If
Case 1032 To 3000
  If pulley <> 4 Then
    Call SetOEMDRO(56,4)
    if pulley = 3 Then
      MachMsg ("Change Speed Dial To 2200rpm","Wrong Speed Range",0)
    else
      MachMsg ("Change Back-Gear To High Range And 2200rpm","Wrong Speed Range",0)
    end if
  End If
Case 3001 To 99999
  Call SetOEMDRO(56,4)
  MachMsg ("Speed Limited By Machine, Check Code, Change Back-Gear To High Range And 2200rpm","Wrong Speed Range",0)
End Select

SetSpinSpeed( rpm )

1478
Yeah, i tried messing with the M3 way back but it does not read the speed correctly and does very odd things, cant recall exactly what happened now but its all in my main conversion thread, it didn't work anyway which is what lead me to the spindlespeed macro which worked better but I still have this issue where it says do this or that but does not give you a chance to actually do it :)

1479
If you were to use a tool range for special tools that need manual zeroing, say tool 50 upwards, then you can test for that in your M6 script, and handle them differently.

That sounds interesting but will need to learn some more macro stuff i think.

As for the spindle speed, I think you're probably going to need to use some non-standard coding in your g-code files.
Does your current M6 script have anything in it to activate a feedhold while the speed is being changed?

Pretty certain there is no feed-hold stuff in the M6 macros at present, Ideally it would advise of the speed change before starting the spindle as it has to be stopped when going into or out of back-gear, but not when going from high speed to low speed where it must be running :)

1480
General Mach Discussion / Re: Bridgeport Knee Mill Conversion?
« on: July 24, 2016, 04:00:55 PM »
Ah, yes i was thinking of cat network cable - not meant for moving, forgot about patch cable :)

I'll probably still get some better cable and solder the plugs up, it'll be better in the long run i think.

The MPG has plain cable too, shielded but not twisted, probably about 8' long if stretched out.

I'm sure the error numbers mean something - very annoying when they keep it secret.