USE 3 independent Z axis to leveling the bed
-
The duet 2 wifi has tmc 2660 ,I want to use 2 4 and a leadshine cl57 connected the EXPANSINO on E2。 I have browsed the document https://duet3d.dozuki.com/Wiki/Bed_levelling_using_multiple_independent_Z_motors
There are some G coder and M coder Like M 584 M350 and M92
My config.g
;Duet WiFi(固件版本2.03)的配置文件
; 启动时由固件执行
;
; 由RepRapFirmware配置工具生成 v2.1.8 on Thu Jul 23 2020 17:56:56 GMT+0800 (中国标准时间); 一般偏好
G90 ; send absolute coordinates... 发送绝对坐标...
M83 ; ...but relative extruder moves 相对挤压机移动
M550 P"EVA-01" ; 设置打印机名称M667 S1 ; 选择CoreXY模式
; 网络
M552 S1 ; 启用网络
M586 P0 S1 ; 开启 HTTP
M586 P1 S0 ; 禁用 FTP
M586 P2 S0 ; 禁用 Telnet; 电机
M569 P0 S1 ; 物理驱动器 0 移动方向 正转
M569 P1 S1 ; 物理驱动器 1 移动方向 正转
M569 P2 S0 ; 物理驱动器 2 移动方向 反转
M569 P3 S1 ; 物理驱动器 3 移动方向 反转
M569 P4 S0 ; 物理驱动器 4 移动方向 反转
M569 P5 S0 R1 T2.5:2.5:5:10
M584 X0 Y1 Z2:4:5 E3 ; 设置驱动器映射
M671 X-15:-15:420 Y260:20:140 S20 ; leadscrews at rear left, front middle and rear right
M350 X16 Y16 Z16:16:1 E1 I1 ; 使用插值配置驱动细分
M92 X100.00 Y100.00 Z200.00:200.00:2000.00 E400 ; 设定步长/毫米
M566 X900.00 Y900.00 Z12.00:12.00:12.00 E120.00 ; 设置最大瞬时速度变化(毫米/分钟)
M203 X6000.00 Y6000.00 Z180.00:180.00:180.00 E1200.00 ; 设置最大速度(毫米/分钟)
M201 X500.00 Y500.00 Z20.00:20.00:20.00 E250.00 ; 设定加速度(mm/s^2)
M906 X800 Y800 Z600:600:600 E800 I30 ; 设置电动机电流(mA)和电动机空转系数,以百分比为单位
M84 S30 ; 设置空闲超时; Axis Limits
M208 X0 Y0 Z0 S1 ; 设定轴最小值
M208 X400 Y290 Z300 S0 ; 设定轴最大值; 限位开关
M574 X1 Y2 S1 ; 设置为高电平(NC)限位开关
M574 Z2 S2 ; 设置为探针限位开关; Z-探针
M307 H3 A-1 C-1 D-1 ; disable heater on PWM channel for BLTouch 禁用BLTouch的PWM通道上的加热器
M558 P9 H20 F120 T6000 ; 将Z探针类型设置为 bltouch 以及潜水高度+速度
G31 P500 X0 Y0 Z0.89 ; 设置Z探针触发值,偏移和触发高度
M557 X20:300 Y20:260 S40 ; 定义网格; 加热器
M305 P0 T100000 B4138 R4700 ; 设置加热器的热敏电阻+ ADC参数 0
M143 H0 S120 ; 设置加热器的温度极限 0 to 120C
M305 P1 T100000 B4138 R4700 ; 设置加热器的热敏电阻+ ADC参数 1
M143 H1 S280 ; 设置加热器的温度极限 1 to 280C; 风扇
M106 P0 S0 I0 F500 H-1 ; 设置风扇 0 PWM信号反相和频率,恒温控制 关闭
M106 P1 S1 I0 F500 H1 T45 ; 设置风扇 1 PWM信号反相和频率,恒温控制 打开
M106 P2 S1 I0 F500 H1 T45 ; 设置风扇 2 PWM信号反相和频率,恒温控制 打开; 喷头
M563 P0 D0 H1 F0 ; 设置喷头 0
G10 P0 X0 Y0 Z0 ; 设置喷头 0 偏移
G10 P0 R0 S0 ; 设置喷头 0 主用和备用温度均为0C; 未定义自定义设置
i believe that there was something wrong in the folowing code
//
M569 P5 S0 R1 T2.5:2.5:5:10
M584 X0 Y1 Z2:4:5 E3 ; 设置驱动器映射
M671 X-15:-15:420 Y260:20:140 S20 ; leadscrews at rear left, front middle and rear right
M350 X16 Y16 Z16:16:1 E1 I1 ; 使用插值配置驱动细分
M92 X100.00 Y100.00 Z200.00:200.00:2000.00 E400 ; 设定步长/毫米
M566 X900.00 Y900.00 Z12.00:12.00:12.00 E120.00 ; 设置最大瞬时速度变化(毫米/分钟)
M203 X6000.00 Y6000.00 Z180.00:180.00:180.00 E1200.00 ; 设置最大速度(毫米/分钟)
M201 X500.00 Y500.00 Z20.00:20.00:20.00 E250.00 ; 设定加速度(mm/s^2)
M906 X800 Y800 Z600:600:600 E800 I30 ; 设置电动机电流(mA)和电动机空转系数,
//i found that M584 can work well but the
M350 Z16:16:1 and M92 Z200.00:200.00:2000.00do not workit caused 2 and 4 motors work well but the 5motor on the expansion Rotate slowly . THE cl57 default microstepping is 400, no mater how i changed the M92 and M350 it always rotate slowly 。it seems that the 1 in M350 and 2000 in M92 do not work 。
I am a Chinese people and My English is not well 。There maybe somewhere expressioned Inaccurate。
Hopes for help -
-
@fcwilt I bwoswered the M350 and M92 G code examples
M92 X80 Y80 Z400 ; set axis steps/mm
M92 E420:430 ; set extruder 0 and 1 steps/mm
M350 X128 Y128 Z128 E128:128 ; set microsteppingit seems that use two Extruders shoud use ":"to set another parameter。SO i think have three Z axis should use Znn:nn:nn to set the second Z axis and the third Zaxis... My throught maybe wrong. The "1" in the M350 i want to set the third leadshine CL57 deny microstepping and "2000" in M92 is the steps of leadshine CL57
-
@tangougou said in USE 3 independent Z axis to leveling the bed:
leadshine CL57
OK I understand.
Have you considered putting all three Z steppers on the Duet WiFi outputs (Z, E0 E1), thus allowing the use of the same parameters for all three steppers.
Then you could put the extruder stepper on the CL57.
Frederick
-
@fcwilt yes i already do that and it works very well。 but my bmg Extruder only support 42 motors the cl57 and 57 motors can't be work. it seems that my 57motor is unusefull。
-
@tangougou said in USE 3 independent Z axis to leveling the bed:
it seems that use two Extruders shoud use ":"to set another parameter。SO i think have three Z axis should use Znn:nn:nn to set the second Z axis and the third Zaxis...
The Z parameters of the M350 and M92 commands take only a single value, which will be applied to all Z motors. So all 3 drivers/motors should be of the same type, or (in the case of external drivers) at least have the same steps/mm.
-
@tangougou said in USE 3 independent Z axis to leveling the bed:
@fcwilt yes i already do that and it works very well。 but my bmg Extruder only support 42 motors the cl57 and 57 motors can't be work. it seems that my 57motor is unusefull。
What is the exact part number of your driver.
I was looking at a StepperOnLine CL57T which works with NEMA 17, 23 and 24 steppers.
Perhaps yours can be set to work with your stepper?
Frederick
-
@dc42 thanks for reply ,next i will change the cl 57's steps/mm.
-
@dc42 By the way , The Z parameters of the M566 M203 M201 M906 commands whether take only a single value? Thanks a lot.
-
Hi,
So you got it working?
What was the final setup as to how you drove the three Z axes?
Frederick
-
@fcwilt I haven't try it , The tmc 2660 of duet2 wifi only set "1 2 8 16 32 64 128 256" steps/mm MY leadshine CL57 cloud set "200-40000". So i prepare to change the tmc2660 to 256 steps/mm and the CL57 same as 256 steps/mm , hope it will work well ,but i don't know tmc 2660 set 256 steps/mm , my motors whether will make big noises.
MY g code will like thisM569 P0 S1;
M569 P1 S1;
M569 P2 S0;
M569 P3 S1;
M569 P4 S0;
M569 P5 S0 R1 T2.5:2.5:5:10
M584 X0 Y1 Z2:4:5 E3;
M671 X-15:-15:420 Y260:20:140 S20;
M350 X16 Y16 Z256 E1 I1;
M92 X100.00 Y100.00 Znn.00 E400; 设定步长/毫米
M566 X900.00 Y900.00 Z12.00 E120.00;
M203 X6000.00 Y6000.00 Z180.00 E1200.00;
M201 X500.00 Y500.00 Z20.00 E250.00;
M906 X800 Y800 Z600 E800 I30;
M84 S30; -
@tangougou said in USE 3 independent Z axis to leveling the bed:
@dc42 By the way , The Z parameters of the M566 M203 M201 M906 commands whether take only a single value? Thanks a lot.
Correct, also M913. It's only the E parameter that can have multiple values.
-
@tangougou said in USE 3 independent Z axis to leveling the bed:
The tmc 2660 of duet2 wifi only set "1 2 8 16 32 64 128 256" steps/mm MY leadshine CL57 cloud set "200-40000".
My guess is that the 200-40000 figure is steps per rotation. If so, and assuming 1.8deg stepper motors, then I suggest you use x16 microstepping on the Duet and 3200 steps/rotation on the Leadshine.
-
@dc42 Ok that's very kind of you ,I will try this and report the final results to you.