Hello Guest it is April 19, 2024, 05:02:29 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 - dude1

781
General Mach Discussion / Re: Wrong Plug-In Installed
« on: May 23, 2015, 06:44:11 AM »
c\mach3\plugins\ESS_v10r2d1d.dll or what ever version of the ESS plug you have

782
Mach4 General Discussion / Re: Mach 4 Bug Reports
« on: May 23, 2015, 01:35:26 AM »
keyboard plug is still dead

783
General Mach Discussion / Re: Wrong Plug-In Installed
« on: May 23, 2015, 01:10:56 AM »
delete ess plug

784
Share Your GCode / Re: Probe Script
« on: May 21, 2015, 06:53:58 AM »
do what TPS says

785
Share Your GCode / Re: Probe Script
« on: May 21, 2015, 06:34:26 AM »
look how the Code"F' is done in this code

Rem   VBScript To probe In the z axis    

If GetOemLED(801) Then            'check if English Units
   If GetOemLED(16)<>0 Then 'Checks for machine coordinates
         code "(Please change to working coordinates)"
   Else

   
   If GetOemLed (825) <> 0 Then       'check to see if the probe is already grounded or faulty
      Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
   Else
      Code "G4 P1"         'pause 1 seconds to give time to position probe plate
      PlateOffset = GetUserDRO(1151)   'get plate offset DRO
      CurrentFeed = GetOemDRO(818)    'get the current feedrate to return to later
      Code "F10"         'slow down feedrate to 10 ipm

      Rem Probe In the z direction
         ZNew = GetDro(2) - 6         'probe move to current z - 6 inches
         Code "G31Z" &ZNew
         While IsMoving()      'wait for probe move to finish
         Wend
   
         ZNew = GetVar(2002)       'read the touch point
         Code "G0 Z" &ZNew +.1      'move back  +.1 to hit point incase there was overshoot +.1
         While IsMoving ()
         Wend
   
      Rem End add lines   
   
      Code "F2"         'slow down feedrate to 2 ipm
      ZNew = GetDro(2) - .25      'probe move to current z - .25 inches
      Code "G31Z" &ZNew
      While IsMoving()      'wait for probe move to finish
      Wend

      ZNew = GetVar(2002)       'read the touch point
      Code "G0 Z" &ZNew       'move back to hit point incase there was overshoot
      While IsMoving ()
      Wend

      If PlateOffset <> 0 Then
         Call SetDro (2, PlateOffset)   'set the Z axis DRO to  plate thickness
         Code "G4 P0.25"       'pause for Dro to update.
         'ZNew = PlateOffset + 3.6315   'calc retract
         'Code "G0 Z" &ZNew       'put the Z retract height you want here
         Code("G53G0Z-0.5")      'Z retract

         While IsMoving ()
         Wend
         Code "(Z axis is now zeroed in English Units)"    'puts this message in the status bar
      
      End If

      Code "F" &CurrentFeed       'returns to prior feed rate
   End If
   End If         
Else                                             'This portion of script is for Metric Native Units

   If GetOemLed (825) <> 0 Then       'check to see if the probe is already grounded or faulty
      Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
   Else
      Code "G4 P1"         'pause 1 seconds to give time to position probe plate
      PlateOffset = GetUserDRO(1151)   'get plate offset DRO
      CurrentFeed = GetOemDRO(818)    'get the current feedrate to return to later
      Code "F300"         'slow down feedrate to 300 mmpm

      Rem Probe In the z direction
         ZNew = GetDro(2) - 150      'probe move to current z - 150 mm
         Code "G31Z" &ZNew
         While IsMoving()      'wait for probe move to finish
         Wend
      
         ZNew = GetVar(2002)       'read the touch point
         Code "G0 Z" &ZNew + 3      'move back  + 3 mm to hit point incase there was overshoot + 3 mm
         While IsMoving ()
         Wend
   
      Rem End add lines   

      Code "F50"         'slow down feedrate to 50 mmpm
      ZNew = GetDro(2) - 6      'probe move to current z - 6 mm
      Code "G31Z" &ZNew
      While IsMoving()      'wait for probe move to finish
      Wend

      ZNew = GetVar(2002)       'read the touch point
      Code "G0 Z" &ZNew       'move back to hit point incase there was overshoot
      While IsMoving ()
      Wend

      If PlateOffset <> 0 Then
         Call SetDro (2, PlateOffset)   'set the Z axis DRO to  plate thickness
         Code "G4 P0.25"       'pause for Dro to update.
         'ZNew = PlateOffset + 50      'calc retract
         Code("G53G0Z-12")
         'Code "G0 Z" &ZNew       'put the Z retract height you want here
         While IsMoving ()
         Wend
         Code "(Z axis is now zeroed in Metric units)"    'puts this message in the status bar
      
   End If

      Code "F" &CurrentFeed       'returns to prior feed rate
      Code "F200"
      Sleep 100
   End If   
End If     
     

786
Share Your GCode / Re: Probe Script
« on: May 21, 2015, 06:31:42 AM »
feed is Code "F"

787
Share Your GCode / Re: Probe Script
« on: May 21, 2015, 06:20:40 AM »
Code "G4 P0.25"  'pause  might pay to add pause in to you know its working properly and to give time for the Estop to be hit before the next move

788
Share Your GCode / Re: Probe Script
« on: May 21, 2015, 06:09:24 AM »
Code "F10"         'slow down feedrate to 10 ipm

789
Mach4 General Discussion / Re: Defining Signal Scripts in Mach4
« on: May 19, 2015, 02:14:01 AM »
just been playing with your code since I cant get mine working set to num keys you are right about it working if in estop or not, something I found is set some jog keys and see what happens when in estop or not

790
Mach4 General Discussion / Re: Lua Signal Table
« on: May 18, 2015, 07:02:45 PM »
right it goes like this.

SignalTable = {001,                                  --your sig table number goes here it compiles and runs like this
     [mc.ISIG_INPUT0] = function (on_off)
        if (on_off == 1) then
            mc.mcCntlCycleStart(inst)             --name of button command
        end
    end
}

I think this is now correct if I am wrong someone comment please.

the only problem now when I run the other part of the code it cant find the signal table.

this is the other part

if (SignalTable[sig] ~= nil) then   --I think sig is the number of the table
SignalTable[sig](state)                --I think state is (on_off) or on_off == 1) like I have it below
end

if (SignalTable[001] ~= nil) then
SignalTable[001](on_off)
end