Hello Guest it is March 19, 2024, 01:32:11 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 - TPS

322
General Mach Discussion / Re: Z homing not retracting
« on: July 07, 2021, 01:31:53 AM »
homing sequence depends in most cases from Motion Controller you are using.
Mach3 with PP will only move until Limit Switch is cleared, without retract.

323
General Mach Discussion / Re: Mach3 macro homing
« on: July 02, 2021, 01:28:14 PM »
attached a macro i use on one of my machines.

and this is a typical Header for my g-code

Code: [Select]
N0001 %1 (Teutoburger GC01 +C01 Tür links)
N0002 G61                                 (Genauhalt)
N0003 G90                       (Absolute Maßangaben)
N0004 G90.1                             (I/J absolut)
N0005 M5                                (Spindel aus)
N0006 G17                             (X-Y Fräßebene)
N0007 G21                               (alles in mm)
N0008 G40                       (Radiuskorrektur aus)
N0009 G49                       (Längenkorrektur aus)
N0010 G50                         (Skallierungen aus)
N0011 G54                  (Werkstückkoordinaten ein)
N0012 G43 H0             (Werkzeughöhenkorrektur aus)
N0013 M1004               (alle Achsen referenzieren)

i run this macro in all my programs

324
General Mach Discussion / Re: Mach3 macro homing
« on: July 02, 2021, 01:10:01 PM »
this with the cycle start must be smoothstepper specific.

i use Buttons 22-24 on my machines (CSLAB controller) within macros and do not have to press cycle start.

325
General Mach Discussion / Re: Mach3 macro homing
« on: July 02, 2021, 03:37:24 AM »
have you tryed to use G28.1 insteed of G28

G28 is a Return to home Position
G28.1 is a Reference Axis

326
General Mach Discussion / Re: Mach3 macro homing
« on: June 26, 2021, 03:09:16 AM »
here is a piece of code that i am using on one of my machines:

Code: [Select]
Sub Main()
' -------------------------------------------------------------------------------
' TPS 26.06.2021 
' do a referece 
' new version with OEM Led's
' -------------------------------------------------------------------------------
'quit if file is loaded
If IsLoading() Then
    GoTo Ende
End If

Message ("automatic reference started")

'reference Z
Message ("Z-axis reference")
DoOemButton(1024) 'Ref Z
Sleep(500)
While GetOemLed(809) = true
    Sleep(200)
    If GetOemLed(800) Then
        Sleep(500)
        Message"error while referencing"
        End
    End If
Wend

Sleep(500) 'wait
Message (" ") 'clear status line
Sleep(200) 'wait
Exit Sub
 '--------------------------------------------------------------------------------

Ende:   
End Sub     

it is for z-axis because i have no c-axis.
it runs from VB-Editor and also due g-code call.

in your case it would be oembutton(1027) and oemled(812) for c-axis.

327
General Mach Discussion / Re: Mach3 macro homing
« on: June 25, 2021, 01:36:46 AM »
witch Motion Controller are you usining?

328
General Mach Discussion / Re: Mach3 macro homing
« on: June 14, 2021, 01:13:53 AM »
sorry, missed your answer.

for the Moment the only idea i have is, that Mach may be corrupted.
i would try to install a fresh copy.

329
General Mach Discussion / Re: Mach3 macro homing
« on: June 11, 2021, 01:58:10 AM »
sounds strange. witch Version of Mach3 are you using?

330
General Mach Discussion / Re: Mach3 macro homing
« on: June 10, 2021, 11:21:42 AM »
you can try to do a

RefCombination(32)

insteed of

DoOEMButton(1027)

maybe it helps