Hello Guest it is March 18, 2024, 11:04:35 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 - TPS

1691
CS-Lab / Re: Problems wit G31/M31 and subs
« on: May 16, 2018, 05:20:33 AM »
i allways declare my Global var's so for Example:

Global X_SENS as Double
Global Y_SENS as Double
Global Z_SENS as Double


1692
CS-Lab / Re: Problems wit G31/M31 and subs
« on: May 15, 2018, 08:36:08 AM »
both of them are using the same uservars for the probing result:

   X_SENS = GetVar(2000)   
   Y_SENS = GetVar(2001)   
   Z_SENS = GetVar(2002)   

1693
CS-Lab / Re: Problems wit G31/M31 and subs
« on: May 15, 2018, 05:54:16 AM »
Code: [Select]
Dim CurrentFeed As Double
Dim CurrentAbsInc, CurrentGmode As Boolean

Sub Main()

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


code "G90"
code "F100"


ReturnG90G91State 'subroutine'


End Sub

Sub ReturnG90G91State()
If CurrentAbsInc = True Then 'if G91 was in effect before then return to it
Code "G90"
Else
Code "G91"
End If
If CurrentGMode = 0 Then 'if G0 was in effect before then return to it
Code "G0"
Else
Code "G1"
End If
Code "F" &CurrentFeed 'restore starting feed rate
End Sub     




1694
General Mach Discussion / Re: "Goto Zero" getting Soft Limits Error
« on: May 11, 2018, 11:33:44 AM »
Soft limits act like limit switches the only difference is, that they are defined in software (Mach3) and don’t need actual switches. It is recommended that you have homing switches properly setup before you configure the soft limits. The soft limits will only work if the machine is properly initialized (homing procedure is completed) and limits are defined.

Homing and Zeroing is a big differnce.

1695
General Mach Discussion / Re: MACH3 spindle behaviour
« on: May 10, 2018, 02:26:47 PM »
hapy to hear, that you get it solved :D

1696
General Mach Discussion / Re: Plasma Z floating head
« on: May 10, 2018, 03:07:19 AM »
but no matter witch road you are trying to go (G28/G31/M03),
your Hardware has to work first.

means Limit Switch has to be set as refZ or probe, and has to work.

if M3 script sould handle this, it also has to use one of this two methodes.

if you have for the example the G31 working, i think it should be no Problem to Setup
your sheetcam to generate the right code, it is only GCode, witch is not Mach3/Mach4
specific.
  

1697
General Mach Discussion / Re: Plasma Z floating head
« on: May 10, 2018, 02:59:20 AM »
as i have written in Reply#18

 am not familar with LUA coding of Mach4, so somebody else must
guide you, if you want to go this road.

1698
General Mach Discussion / Re: Plasma Z floating head
« on: May 10, 2018, 02:44:05 AM »
i assume that you fire up the torch via M3 command.

so you can modify M3 macro code to do the Floating head procedure.

i am not familar with LUA coding of Mach4, so somebody else must
guide you, if you want to go this road.

1699
General Mach Discussion / Re: Plasma Z floating head
« on: May 10, 2018, 02:32:57 AM »
here something what a simple search in the Forum showed:

You can set it up one of two ways using the G28.1 method OR use the G31 method.

With the G28.1 method you set up your floating head as the Z home and have it  home toward the bed. Then the Cam that you use must generate the following type code.

N0120 G28.1 Z0.50
N0130 G92 Z0.0
N0140 G00 Z0.1370
N0150 G92 Z0.0
N0160 G00 Z0.2000

With the G31 method you setup the floating head as a Probe then you cam must generate code like

N0120 G31 Z -100 F19.685
N0130 G92 Z-0.0800
N0140 G00 X5.5505 Y9.8813
N0150 Z0.0000


Hope that helps, (;-) TP


1700
please use the additional Options -> attach -> search for posting files