603,923 active members*
3,498 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Gecko Drives > G540 input not working?
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008
    Posts
    78

    G540 input not working?

    Setting up the auto tool zero in Mach.

    I connected a wire to pos1 on the integrated BOB. Went into pins and configured the probe to enabled, active low, port1 pin 10.
    Then I edited the auto tool change button with:
    Code:
    Message( "Auto Zeroing..." )
    If IsSuchSignal (22) Then
    code "G31 Z-3 F20"
    While IsMoving()
    Wend
    Call SetDRO( 2, .060 )
    code "G1 Z1"
    End If
    I then exited mach, and restarted mach.

    I then went into diagnostics and cannot get the input light to come on. I even touched the wire to the ground wire and nothing.

    Am I doing this right?

  2. #2
    Join Date
    Feb 2007
    Posts
    4550
    CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
    CurrentAbsInc = GetOemLED(48) 'Get the current G90/G91 state
    CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state
    PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

    If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
    DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
    Code "G4 P2" ' this delay gives me time to get from computer to hold probe in place
    Code "G90 G31Z-20 F100" 'probing move, can set the feed rate here as well as how far to move
    While IsMoving() 'wait while it happens
    Wend
    ZProbePos = GetVar(2002) 'get the axact point the probe was hit
    Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
    While IsMoving ()
    Wend
    Call SetDro (2, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
    Code "G4 P0.25" 'Pause for Dro to update.
    Code "G1 Z20 F800" 'put the Z retract height you want here
    While IsMoving ()
    Wend
    Code "(Z axis is now zeroed)" 'puts this message in the status bar
    Code "F" &CurrentFeed 'Returns to prior feed rate
    Else
    Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
    End If
    If CurrentAbsInc = 0 Then 'if G91 was in effect before then return to it
    Code "G91"
    End If
    If CurrentGMode = 0 Then 'if G0 was in effect before then return to it
    Code "G0"
    End If
    Exit Sub
    Patience and perseverance have a magical effect before which difficulties disappear and obstacles vanish.

Similar Threads

  1. g540
    By Scooby Doo in forum Gecko Drives
    Replies: 62
    Last Post: 05-17-2009, 07:44 PM
  2. Hot G540
    By jdemille in forum Gecko Drives
    Replies: 1
    Last Post: 05-08-2009, 06:40 PM
  3. Anyone get the G540 working?
    By Fixittt in forum Gecko Drives
    Replies: 10
    Last Post: 05-08-2009, 03:12 PM
  4. can you... BOB to G540?
    By Fixittt in forum Gecko Drives
    Replies: 7
    Last Post: 01-28-2009, 01:37 PM
  5. 3 phase input VFD for single phase input?
    By Redhead in forum Phase Converters
    Replies: 4
    Last Post: 02-27-2008, 05:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •