Config.g vs Machine Properties
-
I have an Idex BigBox using dual Z drives. I finished the conversion to IDEX and Dual Z a week or so back, and have produced quite a few successful prints. However I am trouble shooting a noisy Z2 drive, and have noticed a considerable difference between what Machine Properties shows vs what the config.g implies. Any help would be appreciated…
Using
Firmware Name: RepRapFirmware for Duet WiFi
Firmware Electronics: Duet WiFi 1.0 + DueX5
Firmware Version: 1.20 (2017-12-23)
WiFi Server Version: 1.20
Web Interface Version: 1.20Below is the Machine Properties, which seem to map drive 3 to U axis (U is mapped to drive 5 in config, and E1 is mapped to drive 3) , Drive 4 seems mapped to E1 (E2 in config) Drive 5 seems mapped to E2 (U axis is config) Drive 6 doesnt seem mapped (Z2 in config).
Machine Properties:
Drive Endstop hit Minimum Maximum InstantDv Max Speed Acceleration Motor Current
0 No -36 mm 270 mm 8 mm/s 150 mm/s 400 mm/s² 500 mA
1 No -40 mm 200 mm 10 mm/s 250 mm/s 1000 mm/s² 800 mA
2 Yes -0.2 mm 280 mm 1 mm/s 6 mm/s 15 mm/s² 800 mA
3 No 0 mm 306.2 mm 8 mm/s 150 mm/s 400 mm/s² 500 mA
4 Yes n/a n/a 5 mm/s 60 mm/s 1000 mm/s² 500 mA
5 Yes n/a n/a 5 mm/s 60 mm/s 1000 mm/s² 500 mA
6 Yes n/a n/a 2 mm/s 60 mm/s 1000 mm/s² 0 mA
7 Yes n/a n/a 2 mm/s 60 mm/s 1000 mm/s² 0 mA
8 Yes n/a n/a 2 mm/s 60 mm/s 1000 mm/s² 0 mA
9 Yes n/a n/a 2 mm/s 20 mm/s 250 mm/s² 0 mA
10 Yes n/a n/a 2 mm/s 20 mm/s 250 mm/s² 0 mA
11 Yes n/a n/a 2 mm/s 20 mm/s 250 mm/s² 0 mAAnd the config.g
; Configuration file for BigBox 3D printer
; Communication and general
M111 S0 ; Debug off
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves;WIFI
M550 PBigBox DuetWifi ; Machine name and Netbios name (can be anything you like)
M551 Preprap ; Machine password (used for FTP)
;*** If you have more than one Duet on your network, they must all have different MAC addresses, so change the last digits
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
;*** Wifi Networking
M552 S1 ; Enable WiFiM555 P2 ; Set output to look like Marlin
M575 P1 B57600 S1 ; Comms parameters for PanelDue; Drives (change to S0 to reverse it)
M569 P0 S1 ; Drive 0 goes forwards (X) (X)
M569 P1 S1 ; Drive 1 goes forwards (Y) (Y)
M569 P2 S0 ; Drive 2 goes forwards (Z) (Z)
M569 P3 S1 ; Drive 3 goes forwards (E0) (Extruder Left)
M569 P4 S0 ; Drive 4 goes forwards (E1) (Extruder Right)
M569 P5 S0 ; Drive 5 goes forwards (E2) (Z_2)
M569 P6 S0 ; Drive 6 goes forwards (E3) (U)
M569 P7 S0 ; Drive 7 goes forwards (E4)
M569 P8 S0 ; Drive 8 goes forwards (E5)
M569 P9 S0 ; Drive 9 goes forwards (E6); Configure U axes
M584 X0 Y1 Z2:5 U6 E3:4:7:8:9;Configure Dual Z Drive
M671 X18:268 Y100:100 S3 ; leadscrews at centre left and centre right on X; Motors
; Extruders Nema 17 Bipolar 1.8deg 13Ncm (18.4oz.in) 1A 3.5V 42x42x20mm 4 Wires
; X&U Nema 11 Bipolar 1.8deg 9.5Ncm (13.5oz.in) 0.67A 4.6V 28x28x45mm 4 Wires; Movement section
M906 X500 Y800 Z800 U500 E500:500 I30 ; Set motor currents (mA) and motor idle factor in per cent (tweaked for motor temps)
M201 X400 Y1000 Z15 U400 E1000 ; Accelerations (mm/s^2) 20/08 1000 to 900 X&Y
M203 X9000 Y15000 Z360 U9000 E3600 ; Maximum speeds (mm/min)
M566 X480 Y600 Z30 U480 E300:300 ; Set maximum instantaneous speed changes (mm/min)
M84 S300 ; Reduce current to all steppers after 300 seconds of inactivity on all axes.; Stepping
M350 X32 Y16 Z16 U32 E16:16 I1 ; Configure microstepping with interpolation
M92 X200 Y360 Z1600 U200 E422:422 ; Set steps per mm; Set limits
M208 X-36 Y-40 Z-0.2 U0 S1 ; Set axis minima, Z minima must be at least equal to a positive Z offset of an extruder
M208 X270 Y200 Z280 U306.2 S0 ; Set axis maxima; Endstops
M574 X1 Y1 Z0 U2 S1 ; Define active high microswitches;Pressure Advance
M572 D0 S0.05 ; Set pressure advance coefficient for tool 0 (Right extruder); Z probe section
M558 P1 X0 Y0 Z1 H3 F200 T5000 ; Smart IR Z probe, used for homing Z axis, dive height 3mm, probe speed 200mm/min, travel speed 5000mm/min
G31 Z1.4 X=21 Y=-42 P500 ; Set the probe height,threshold and offsets(put your own values here)
G29 S1 ; load Mesh Map; Heater and thermistor section
;*** If you have a Duet board with 1K thermistor series resistors, change R4700 to R1000 to the following M305 commands
M305 P0 T100000 B4388 R4700 H30 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 X200; Put your own H and/or L values here to set the first nozzle thermistor ADC correction
M305 P2 X201; Put your own H and/or L values here to set the second nozzle thermistor ADC correction
M301 H1 P10 I0.10 D100 T0.50 S1.0 ; PID settings for extruder 0
M301 H2 P10 I0.10 D100 T0.50 S1.0 ; PID settings for extruder 1
M570 S120 ; Increase to allow extra heating time if needed; Fans
M106 P0 F10 ; Part cooling fan (P0 is PWM Fan 0 on duet wifi, 10Hz)
M106 P1 S255 T45 H1 ; Trigger hotend 1 (left) fan at 45C (P1 is PWM Fan 1 on Duet WiFi)
M106 P2 F10 ; Part cooling fan (P2 is PWM Fan 2 on duet wifi, 10Hz)
M106 P3 S255 T45 H2 ; Trigger hotend 2 (right) fan at 45C (P3 is PWM Fan 3 on Duex5); Tool definition section
;Tool 0
M563 P0 D0 H1 X0 F0 ; Define tool 0 to use extruder drive 0 and heater 1
G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
;Tool 1
M563 P1 D1 H2 X3 F2 ; Define tool 1
G10 P1 X0 Y-6 Z0 ; Set tool 1 axis offsets
G10 P1 S0 R0 ; Set tool 1 operating and standby temperatures
; Tool 2 (Use both X&U)
M563 P2 D0:1 H1:2 X0:3 F0:2 ; tool 2 uses both extruders and hot end heaters and maps X to both X and U
G10 P2 X67.5 Y0 U-67.5 S0 R0 ; set tool offsets and temperatures
M567 P2 E1:1 ; set mix ratio 100% on both extruders
M568 P2 S1 ; turn on mixing for tool 2; Epilogue
;*** If you are using axis compensation, put the figures in the following command
M556 S78 X0 Y0 Z0 ; Axis compensation here
M140 S0 ; Zero the temp on the head bed -
The column labeled "Drive" should really be labelled "Axis/extruder", and instead of reading 0, 1, 2… it should read X, Y, Z, [insert additional axes here], E0, E1, …
Does it make more sense with that interpretation? The additional axis rows will be in the order that you created them.
-
In a sense Dave, but then the drive mapping is incorrect, and most importantly it reports :
Z1=2 Yes -0.2 mm 280 mm 1 mm/s 6 mm/s 15 mm/s² 800 mA which is correct
Z2=5 Yes n/a n/a 5 mm/s 60 mm/s 1000 mm/s² 500 mA ??I was under the impression that Z2 would inherit the settings from Z1….?
-
This was the same thing I reported. the acceleration settings or other bits don't show up correctly.
-
In a sense Dave, but then the drive mapping is incorrect, and most importantly it reports :
Z1=2 Yes -0.2 mm 280 mm 1 mm/s 6 mm/s 15 mm/s² 800 mA which is correct
Z2=5 Yes n/a n/a 5 mm/s 60 mm/s 1000 mm/s² 500 mA ??I was under the impression that Z2 would inherit the settings from Z1….?
There is no separate Z1 and Z2 row in the table, just a Z row - the one labelled "2" because Z is axis #2. The row labeled "5" is the second extruder, referred to as D1 and mapped to driver E4 (aka driver 7) in your config.g.
-
It is if you really follow it, in my example, it maps the drive current to that field. just nothing else. My Z axis is 2:4, so if it is truly just axis based, then the current shouldn't update, if it is drive number it should match, but it shouldn't be a combination of both. Maybe the web control should be updated to only include configured Axis.
0 No 0 mm 224 mm 15 mm/s 100 mm/s 1500 mm/s² 1200 mA
1 No -22 mm 202 mm 15 mm/s 100 mm/s 1500 mm/s² 1200 mA
2 No 0 mm 180 mm 1.67 mm/s 20 mm/s 300 mm/s² 450 mA
3 Yes n/a n/a 110 mm/s 36.67 mm/s 600 mm/s² 1350 mA
4 Yes n/a n/a 2 mm/s 20 mm/s 250 mm/s² 450 mA -
So that list should be showing one row for each of the X, Y, Z, U axes and the first extruder, in that order. Which figures are wrong?
-
So for me, I don't have a U, but drive 4's current matches drive 2s current as it should as it is mapped Z2:4, but none of the other values do corresponding to that drive. I would expect drive 4 to be a mirror image of drive 2.
-
In that case the rows you list should show the settings for X, Y, Z and E0. There will be no separate row for the second Z motor. The row labelled 4 may be showing default values for a second extruder, except for the motor current.
-
It is showing default for a second extruder except for the current, that's the point I'm making. But, when I see something change with it i.e. the current, it would lead me to believe there is a bug or something that needs cleaned up.
-
I noticed that in your post Heathmanc…. but looks like it was a fluke. In mine there is no correlation whatsoever.
OK Dave thanks, yes, that is how I saw it was being mapped, but was under the impression that the second drive would have mappings somewhere in the table.
So no way of seeing if the settings are applied equally to both Z drives then in machine properties. It doesn't help me with trouble shooting my problem, so I need to figure out a different way of checking this.. Maybe M111 via terminal..?
-
I think what's happening is that extruder 1 was mapped to motor 4 by default, and even though extruder 1 no longer exists the entry for it in the mapping table still exists. I guess I should have it return zero current for a non-existent extruder instead.