Hello Guest it is October 15, 2019, 12:40:15 AM

Author Topic: Homing on the fly  (Read 468 times)

0 Members and 1 Guest are viewing this topic.

Re: Homing on the fly
« Reply #10 on: January 06, 2019, 09:14:16 AM »
What few lines of code will return the machine to the home limit switches, stop on those limit switch and set the machine zero to the new positions? And then continue on with additional lines of code, hands off? Thanks All Edward

Offline Graham Waterworth

*
  • *
  •  1,888 1,888
  • Yorkshire Dales, England
    • View Profile
Re: Homing on the fly
« Reply #11 on: April 02, 2019, 09:26:30 PM »
You could try something like this, NOT tested so be careful

Put a copy of these lines where you think they are needed

M1001 (call macro to record current positions)
G00 Z(Move to save level)
G91 G28.1 X0 Y0 Z0
G00 G90 X#1000 Y#1001
G01 Z#1002 Fffff
continue with code
....

Macro M1001 to be stored as M1001.m1s in current profile macro folder

‘ Get Machine Positions and store into #vars
SetVar(1000,GetABSPosition(0))
SetVar(1001,GetABSPosition(1))
SetVar(1002,GetABSPosition(2))

« Last Edit: April 02, 2019, 09:28:38 PM by Graham Waterworth »
Without engineers the world stops