@Phaedrux Wow, I can't believe I missed that. Everything seems to be working perfectly now.
Thank you for all the help.
@Phaedrux Wow, I can't believe I missed that. Everything seems to be working perfectly now.
Thank you for all the help.
@Phaedrux That was it. Thank you for your help.
@Alijambo73 it seems it had something to do with the z offset getting saved in config-override.g. this seems to be working well```
code_text
G28
G1 X58 Y100 F3000
; === Run Z probing macro ===
G91 ; relative
M291 P"Connect probe and jog tip over Z touchplate. Press OK to continue." R"Z Probe" S3
G38.2 Z-100 F75
G1 Z2 F300
G38.2 Z-100 F45
G4 P0.1
G92 Z5.89
G1 Z5 F300
G90 ; absolute
; === Proceed with squaring ===
M558 P5 C"!io6.in" H5 F120 T6000
M584 Z0.2:0.4 P3
M671 X58:1183 Y100:100 S15
G10 L2 P1 Z0
var iterations = 0
while true
G1 X58 Y100 F3000
G30 P0 Z-99999
G1 X1183 Y100 F3000
G30 P1 Z-99999 S2
set var.iterations = var.iterations + 1
if abs(move.calibration.initial.deviation) < 0.01 || var.iterations >= 2
break
M584 X0.0 Y0.1:0.3 Z0.2:0.4 U0.3 V0.4 P3
M671 X58:1183 Y100:100 S5
M118 P0 S"Z gantry squaring complete."
I have 2 z motors and I'm strying to auto level my gantry but am having some issues. I have my bed.g as
while true
G30 P0 X20 Y100 Z-99999 ; probe near a leadscrew, half way along Y axis
G30 P1 X180 Y100 Z-99999 S2 ; probe near a leadscrew and calibrate 2 motors
if abs(move.calibration.initial.deviation) < 0.01 || iterations > 3
break
when I first tried this the other day it worked perfectly but now when I run G32 my machine crashes into the bed of my cnc without even moving to the x,y corrdinates.
I can't figure out why it woked Saturday but not today. There were not any other changes made to my config.g or anywhere else.
; General
G90 ; absolute coordinates
M83 ; relative extruder moves
M550 P"Duet3CNC" ; set hostname
M453 ; select CNC mode
; Accessories
M575 P1 S0 B57600 ; configure PanelDue support
; Smart Drivers
M569 P0.0 S1 D3 ; driver 0.0 goes backwards (X axis)
M569 P0.1 S0 D3 ; driver 0.1 goes backwards (Y axis)
M569 P0.2 S1 D3 ; driver 0.2 goes forwards (Z axis)
M569 P0.3 S1 D3 ; driver 0.3 goes forwards (U or Y2 axis)
M569 P0.4 S1 D3 ; driver 0.4 goes forwards (V or Z2 axis)
; Motor Idle Current Reduction
M906 I30 ; set motor current idle factor
M84 S1000 ; set motor current idle timeout
; Axis
M669 K0 ; set Cartesian kinematics
M584 X0.0 Y0.1:0.3 Z0.2:0.4 U0.3 V0.4 P5 ; U=Y2 V=Z2 set axis mapping
;M584 X0.0 Y0.1:0.3 Z0.2:0.4 P3
; Leadscrew locations for automatic Z squaring
M671 X58:1183 Y80:80 S5 ; leadscrew positions for Z0 (left), Z1 (right)
M350 X16 Y16 Z16 U16 V16 I1 ; configure microstepping with interpolation
M906 X1200 Y1100 Z1100 U1100 V1100 ; set axis driver currents
M92 X100.067 Y100.067 Z400 U100.067 V100.067 ; configure steps per mm
M566 X300 Y300 Z60 U300 V60 ; set maximum instantaneous speed changes (mm/min)
M203 X12000 Y9000 Z3000 U9000 V3000 ; set maximum speeds (mm/min)
M201 X300 Y300 Z60 U300 V60 ; set accelerations (mm/s^2)
; Axis Limits
M208 X0 Y0 Z-150 U0 V-150 S1 ; Z min is -150 (full depth)
M208 X1252 Y2467.8 Z150 U2467.8 V150 S0 ; set axis maximum
; Endstops
M574 X1 S1 P"io1.in" ; configure active-high endstop for low end on X via pin io2.in
M574 Y1 S1 P"io2.in+io3.in" ; Y endstops on io2.in (Y) and io3.in (U)
M574 Z2 S1 P"io4.in+io5.in" ; Z homes to the **max** end (top)
; Z Probe Configuration
M558 P5 C"!io6.in" H5 F120 T6000 ; Digital probe using io6.in, active-low
G31 P850 X-10 Y-10 Z5.89 ; set Z probe trigger value, offset and trigger height
I am using a 3 way touchplate and the bit to probe. Everything works as expected when I run my probe z macro to find the surface of the work peice.
please let me know if you have any insights.
@dc42 thats what i thought but i'm never quite sure of my own thoughts. So I will ground the PSU Negative to ac mains and use the octocoupler.
Thanks
@dc42 thanks. I have ordered a octocoupler. In the meantime time I was going to ground the DC to mains. Just to clarify, would I connect the DC out from the power supply or should I connect the VIN- ac ground.
My spindle is passing the ground through the bit. Im using a duet 3 6hc and the probe is connected to io6. Is it okay to remove the probe ground and just have a single wire connected to io6.in and use the spindle ground?
I read somewhere to measure the ac and DC voltage between the duet power in ground and the spindle. The ac voltage was 0 and the DC voltage is .03v. Based on what I read with those measurements it should be OK to use the spindle ground and the io6.in.
Should I tie the -24v out to the ac ground?
I would just like confirmation that this will be ok.
Thanks
@Alijambo73 I switched the pwm converter to a 24V power supply and switched to using out2 then played with it until I got to the point that it can reach 24,000 rpm and when set to 12,000 rpm I'm getting 12,500. I ended up adjusting the hz to 400 to acheive this.
M950 R0 C"out2" Q400 L0:24000 K0:1
I would love to get it dialed in more if anyone has any suggestions.
@dc42 I did try to adjust the potentiometer but the highest i could could get to was 9.11V.
Should I use the "M950 R0 C"vfd" Q2000 L0:1 K0:24000" or "M950 R0 C"vfd" Q2000 L0:24000" and wich value should I adjust?
I have a similar issue. I noticed that when I disconnect the pwm to analog converter the vfd out output is 4.85v when set to 24000 rpm but when connected to the converter it drops to 3.9v and the output from the converter is only 9v.
My config.g is
M453
M950 R0 C"vfd" Q2000 L0:1 K0:24000
M563 P1 S"Spindle" R0 F0
I had the same result with the M950 line as M950 R0 C"vfd" Q2000 L0:24000
Im using a HY 115V, 1.5KW VFD. Any idea on what would be causing the voltage drop when connected to the converter? I double checked to make sure the jumper was on 5V.
@dc42 thanks for the reply. I'm using the laser / vfd on out 9. I'm measuring it from the pwm input terminals on the converter.
If there is something you have to suggest that would be great. The further I got into it I discovered it might not be an issue but I have some other weird things going on with the vfd that I need to get figured out before I could even know.
Has it been an issue with the other reports of the converter not reaching 10v?