Author Topic: Help on Z-axis reference  (Read 4246 times)

PD0RUZ

  • Full Member
  • ***
  • Posts: 123
  • Let there be light, LASER LIGHT!
    • View Profile
Help on Z-axis reference
« on: December 09, 2017, 04:13:57 AM »
pleae help with setup the Z-axis, to  get Z-axis referencing automaticly.
Can it be done with the GBRL parameters, or should it be done by config.h in the source?
Got all setup, but ignores the Z-axis with reference.
It runs really well in CNC mode with the T2 laser software.
*A3 Laser 2500mW
*T2Laser Licensed software*
*Modified 2.5Watt laser module*
*Running Agastar Linear Pwm laser board*
*Co2 Laser 40W, DSP-X7, Air nozzle, Autofocus, Stepper controlled Z-table*

Stonemull

  • Hero Member
  • *****
  • Posts: 951
    • View Profile
Re: Help on Z-axis reference
« Reply #1 on: December 09, 2017, 04:47:29 AM »
I have not tried a home switch on Z axis, is that what you mean by reference ?
If so, you can tell grbl to home only one axis I think with configuration bits.
If not, you could add a startup line to the reboot to raise Z axis 50mm on connection then drop 30mm say, jam it into the top end stop.
You could add a switch and connect it to the probe input and run a probe command.
Apart from that, you might need to compile your own version from source, the home command sequence is a little bunch of well commented lines and from memory, Z axis is not in the default sequence.
A3 Eleksmaker 2500mW
Solidoodle V2 Pro
Wanhao I3+ touch
Hacked Roland DXY-880
CNC3018 engraver
CNC Plasma (work in progress)

Stonemull

  • Hero Member
  • *****
  • Posts: 951
    • View Profile
Re: Help on Z-axis reference
« Reply #2 on: December 09, 2017, 05:04:35 AM »
ok, 1.1f has it enabled by default, I suspect the T2 version has it compiled with it disabled as lasers generally have no Z axis or limit, so you will need to install the regular 1.1F from github or compile your own.

from config.h


// NOTE: Defaults are set for a traditional 3-axis CNC machine. Z-axis first to clear, followed by X & Y.
#define HOMING_CYCLE_0 (1<<Z_AXIS)                // REQUIRED: First move Z to clear workspace.
#define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS))  // OPTIONAL: Then move X,Y at the same time.
// #define HOMING_CYCLE_2                         // OPTIONAL: Uncomment and add axes mask to e
A3 Eleksmaker 2500mW
Solidoodle V2 Pro
Wanhao I3+ touch
Hacked Roland DXY-880
CNC3018 engraver
CNC Plasma (work in progress)

PD0RUZ

  • Full Member
  • ***
  • Posts: 123
  • Let there be light, LASER LIGHT!
    • View Profile
Re: Help on Z-axis reference
« Reply #3 on: December 09, 2017, 12:48:16 PM »
yes, by refrencing axis i meant homing the axis.
Thanks for the information...will try this...
I use a limit switch in top of the z-axis, and have a probe input too..
What i'm trying, is homing all axis, and set the focus distance by value preset.
using z-axis for cutting materials in vector mode with multiple passes.
So that my focus point will drop after each cycle.
*A3 Laser 2500mW
*T2Laser Licensed software*
*Modified 2.5Watt laser module*
*Running Agastar Linear Pwm laser board*
*Co2 Laser 40W, DSP-X7, Air nozzle, Autofocus, Stepper controlled Z-table*

PD0RUZ

  • Full Member
  • ***
  • Posts: 123
  • Let there be light, LASER LIGHT!
    • View Profile
Re: Help on Z-axis reference
« Reply #4 on: December 10, 2017, 02:44:19 AM »
ok, 1.1f has it enabled by default, I suspect the T2 version has it compiled with it disabled as lasers generally have no Z axis or limit, so you will need to install the regular 1.1F from github or compile your own.

from config.h


// NOTE: Defaults are set for a traditional 3-axis CNC machine. Z-axis first to clear, followed by X & Y.
#define HOMING_CYCLE_0 (1<<Z_AXIS)                // REQUIRED: First move Z to clear workspace.
#define HOMING_CYCLE_1 ((1<<X_AXIS)|(1<<Y_AXIS))  // OPTIONAL: Then move X,Y at the same time.
// #define HOMING_CYCLE_2                         // OPTIONAL: Uncomment and add axes mask to e

Used firmware 1.1f, does de homing cycle, but doen't stop on the limit switch.
can't see what is in the firmware concerning the limit switch for Z axis.
does it use another pin, like D10?
*A3 Laser 2500mW
*T2Laser Licensed software*
*Modified 2.5Watt laser module*
*Running Agastar Linear Pwm laser board*
*Co2 Laser 40W, DSP-X7, Air nozzle, Autofocus, Stepper controlled Z-table*

Stonemull

  • Hero Member
  • *****
  • Posts: 951
    • View Profile
Re: Help on Z-axis reference
« Reply #5 on: December 10, 2017, 05:29:03 AM »
D12 is standatd Z input, not sure if default grbl uses multiple home switch inputs or not, on mobile so not wading through code.
plenty of info on the grbl wiki, suggest having a read.
A3 Eleksmaker 2500mW
Solidoodle V2 Pro
Wanhao I3+ touch
Hacked Roland DXY-880
CNC3018 engraver
CNC Plasma (work in progress)

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7308
    • View Profile
    • T2Laser
Re: Help on Z-axis reference
« Reply #6 on: December 10, 2017, 06:40:27 AM »
In the custom menu you'll find a version I use on my CNC. It uses independent pins as I have them wired NC (safer).

1.1f CNC Z-XY. Uses D9, D10 and D12 for home switches (XYZ). Performs Z home followed by X/Y. Laser mode is disabled

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3263
    • View Profile
Re: Help on Z-axis reference
« Reply #7 on: December 10, 2017, 06:46:47 AM »
You may need to set the parameters related to homing. The following are what I have on a desktop mill. Notice $23 has z = 0, y = 1; x = 1.

$20=0 (soft limits, bool)
$21=0 (hard limits, bool)
$22=1 (homing cycle, bool)
$23=3 (homing dir invert mask:00000011)
$24=20.000 (homing feed, mm/min)
$25=300.000 (homing seek, mm/min)
$26=250 (homing debounce, msec)
$27=1.000 (homing pull-off, mm)
SARCASM - Just one more service we offer here.

PD0RUZ

  • Full Member
  • ***
  • Posts: 123
  • Let there be light, LASER LIGHT!
    • View Profile
Re: Help on Z-axis reference
« Reply #8 on: December 10, 2017, 08:18:30 AM »
thanks for the info,
But there are too many differences between 1.1f and the 1.1e.
Need the 1.1e in laser mode, and the homing of the 1.1f Z-XY version...
can somebody help me with that?

« Last Edit: December 10, 2017, 08:34:17 AM by PD0RUZ »
*A3 Laser 2500mW
*T2Laser Licensed software*
*Modified 2.5Watt laser module*
*Running Agastar Linear Pwm laser board*
*Co2 Laser 40W, DSP-X7, Air nozzle, Autofocus, Stepper controlled Z-table*

Zax

  • T2Laser
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7308
    • View Profile
    • T2Laser
Re: Help on Z-axis reference
« Reply #9 on: December 10, 2017, 09:35:15 AM »
Load the Z-XY version and then enable laser mode in the settings / advanced menu. It's one up from the bottom.

That's all there is to it unless you want different pin assignment.

PD0RUZ

  • Full Member
  • ***
  • Posts: 123
  • Let there be light, LASER LIGHT!
    • View Profile
Re: Help on Z-axis reference
« Reply #10 on: December 10, 2017, 09:46:33 AM »
pin assignment is not the problem. Allready changed the hardware for that. But with the 1.1f firmware all axis vibrate in travel.
1.1e runs without shaking, but does not have the homing cycle..
Use the cnc mode in T2 and use z geoth of 5mm and 5 passes. works great!!!
But reacts a lot different with the 1.1f , and did reset the eprom and changed settings like it used to be.
*A3 Laser 2500mW
*T2Laser Licensed software*
*Modified 2.5Watt laser module*
*Running Agastar Linear Pwm laser board*
*Co2 Laser 40W, DSP-X7, Air nozzle, Autofocus, Stepper controlled Z-table*

PD0RUZ

  • Full Member
  • ***
  • Posts: 123
  • Let there be light, LASER LIGHT!
    • View Profile
Re: Help on Z-axis reference
« Reply #11 on: December 11, 2017, 07:03:40 AM »
Can somebody please check the 1.1f on a laser.
Homing works fine now. But when $32=1 laser mode enable. axis vibrate on contouring.
Wghen turned off $32=0 it runs great.. What does this bit when set enabled or disable ?
*A3 Laser 2500mW
*T2Laser Licensed software*
*Modified 2.5Watt laser module*
*Running Agastar Linear Pwm laser board*
*Co2 Laser 40W, DSP-X7, Air nozzle, Autofocus, Stepper controlled Z-table*

ggallant571

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3263
    • View Profile
Re: Help on Z-axis reference
« Reply #12 on: December 11, 2017, 07:57:17 AM »
A major difference is acceleration is disabled. Do you have options (jumpers) for the stepping mode. When I had stepping mode equal 1 the vibrations were horrible. Post you grbl parameters via the $$ command.
SARCASM - Just one more service we offer here.

Stonemull

  • Hero Member
  • *****
  • Posts: 951
    • View Profile
Re: Help on Z-axis reference
« Reply #13 on: December 11, 2017, 08:36:49 AM »
what speed are you using, grbl breaks when you go too fast..

A3 Eleksmaker 2500mW
Solidoodle V2 Pro
Wanhao I3+ touch
Hacked Roland DXY-880
CNC3018 engraver
CNC Plasma (work in progress)

PD0RUZ

  • Full Member
  • ***
  • Posts: 123
  • Let there be light, LASER LIGHT!
    • View Profile
Re: Help on Z-axis reference
« Reply #14 on: December 11, 2017, 09:12:51 AM »
GBRL 1.1f

$0=10 Step pulse, microseconds (10)
$1=25 Step idle delay, milliseconds (25)
$2=0 Step port invert, mask (0)
$3=4 Direction port invert, mask (0)
$4=0 Step enable invert, boolean (0)
$5=0 Limit pins invert, boolean (0)
$6=0 Probe pin invert, boolean (0)
$10=1 Status report, mask (1)
$11=0.010 Junction deviation, mm (0.020)
$12=0.002 Arc tolerance, mm (0.020)
$13=0 Report inches, boolean (0)
$20=0 Soft limits, boolean (0)
$21=0 Hard limits, boolean (0)
$22=1 Homing cycle, boolean (0)
$23=3 Homing dir invert, mask (0)
$24=100.000 Homing feed, mm/min (100.000)
$25=1000.000 Homing seek, mm/min (1000.000)
$26=244 Homing debounce, milliseconds (250)
$27=1.000 Homing pull-off, mm (1.000)
$30=255 Max spindle speed, RPM (255)
$31=0 Min spindle speed, RPM (0)
$32=1 Laser mode, boolean (1)
$100=80.000 X steps/mm (80.000)
$101=80.000 Y steps/mm (80.000)
$102=400.000 Z steps/mm (80.000)
$110=4000.000 X Max rate, mm/min (5000.000)
$111=4000.000 Y Max rate, mm/min (5000.000)
$112=6000.000 Z Max rate, mm/min (5000.000)
$120=800.000 X Acceleration, mm/sec^2 (800.000)
$121=800.000 Y Acceleration, mm/sec^2 (800.000)
$122=1000.000 Z Acceleration, mm/sec^2 (5000.000)
$130=345.000 X Max travel, mm (400)
$131=220.000 Y Max travel, mm (300)
$132=35.000 Z Max travel, mm (200)
*A3 Laser 2500mW
*T2Laser Licensed software*
*Modified 2.5Watt laser module*
*Running Agastar Linear Pwm laser board*
*Co2 Laser 40W, DSP-X7, Air nozzle, Autofocus, Stepper controlled Z-table*