Hi there,
I am new to this forum and I am building my maslow from the february batch.
I am building a custom Z axis with custom hardware and motor, but I get oscillations on the Z motor.
I use GC and Firmware 1.17
I am trying to change the Z axis z kp ki kd PID with the gcode $29, $30, $31 …
I set in “advanced settings” the “Enable custom velocity PID values” and “Enable custom velocity PID values”
When I set them one by one with a macro it works fine but it is tedious …
When I set them with a gcode file with a content like this
$29=100
$30=0
$31=0
the global setting is updated but a few line later in the log they are reset to the default values
an extract of the log is written at the end of this post
My questions are
1) Did i miss something regarding z axis PID parameters in the settings
2) How to make permanent changes to z axis kp ki kd Position and Velocity
thanks
Dominique
extract of log.txt ...........................................................................................
Sent: $29=100
ok
Sent: $30=0
<Idle,MPos:170.55,101.99,64.27,WPos:0.000,0.000,0.000>
[PE:0.00,0.00,127]
ok
Sent: $31=0
ok
Sent: $$
$0=2438.40 (machine width, mm)
$1=1219.19995117 (machine height, mm)
$2=3000.00000000 (motor distance, mm)
$3=480.00000000 (motor height, mm)
$4=310.00000000 (sled width, mm)
$5=139.00000000 (sled height, mm)
$6=79.00000000 (sled cg, mm)
$7=2 (Kinematics Type 1=Quadrilateral, 2=Triangular)
$8=140.00000000 (rotation radius, mm)
$9=2000 (axis idle before detach, ms)
$10=3360 (full length of chain, mm)
$11=1650 (calibration chain length, mm)
$12=8113.73046875 (main steps per revolution)
$13=63.50000000 (distance / rotation, mm)
$15=800 (max feed, mm/min)
$16=1 (Auto Z Axis, 1 = Yes)
$17=0 (auto spindle enable 1=servo, 2=relay_h, 3=relay_l)
$18=20.00000000 (max z axis RPM)
$19=1.00000000 (z axis distance / rotation)
$20=18270.00000000 (z axis steps per revolution)
$21=1300.00000000 (main Kp Pos)
$22=0.00000000 (main Ki Pos)
$23=34.00000000 (main Kd Pos)
$24=1.00000000 (main Pos proportional weight)
$25=5.00000000 (main Kp Velocity)
$26=0.00000000 (main Ki Velocity)
$27=0.28000001 (main Kd Velocity)
$28=1.00000000 (main Velocity proportional weight)
$29=100.00000000 (z axis Kp Pos)
$30=0.00000000 (z axis Ki Pos)
$31=0.00000000 (z axis Kd Pos)
$32=1.00000000 (z axis Pos proportional weight)
$33=5.00000000 (z axis Kp Velocity)
$34=0.00000000 (z axis Ki Velocity)
$35=0.28000001 (z axis Kd Velocity)
$36=1.00000000 (z axis Velocity proportional weight)
$37=0.00000000 (chain sag correction value)
$38=1 (chain over sprocket)
$39=3 (PWM frequency value 1=39,000Hz, 2=4,100Hz, 3=490Hz)
$40=63.50000000 (distance / rotation, including chain tolerance, left chain, mm)
$41=63.50000000 (distance / rotation, including chain tolerance, right chain, mm)
$42=2.00000000 (position error alarm limit, mm)
ok
Sent: $29=1300.0
<Idle,MPos:170.55,101.99,64.27,WPos:0.000,0.000,0.000>
[PE:0.00,0.00,127]
ok
Sent: $31=34.0
ok