@diy-o-sphere unfortunately it doesn't seem (G4 S0 has the same function) to work with the home buttons.
Posts made by nriviera
-
RE: Run macro as part of homing move
-
RE: Run macro as part of homing move
I eventually managed to solve my issue by working out the conditional GCode (if sensors.gpIn[In].value = 1 with the macro in the file. Just would be nice to be able to keep this information centrally in a macro.
-
RE: Run macro as part of homing move
@herve_smith Thanks for picking up my copy and paste error. Unfortunately running them manual still doesn't seem to make things any different. The best solution I've found is issuing a dwell of 5s after the trigger to give it time to run the unload command.
-
Run macro as part of homing move
There may well be a simpler way however I'm trying to setup my mishmash tool changer to unload the tool before doing a Z-home. I have a trigger on the 1LC board that when triggered stores the tool with each tool head having their own trigger. The idea being that if there is a tool on the head it is parked in it's holder prior to probing. The issue I'm having is that I currently have macros for each trigger and the triggers are enable when they're needed and disabled when they're not.
The issue I have is that the trigger macros are not being run in sequence when the Home-Z button is pressed and run at the end of the probe move which means the tool remains on the head which causes a suboptimal head crash. I have tried both using pauses as well as making a separate homez macro that the homez.g refers to but it still runs in the same backward sequence. Running the macro seperately runs perfectly even before a first home.
my homez.g
m98 P"0:/macros/HomeZ"
my HomeZ macro
Setup unload before probe M581 P11 T11 R0 M582 T11 M581 P11 T11 R-1 G4 S0 G91 ; relative positioning G1 H2 Z5 F420 ; lift Z relative to current position G90 ; absolute positioning G1 X190 Y50 F6000 ; go to first probe point G30 X150 Y150 ; home Z by probing the bed G1 Z0
I suspect that this could be done with a conditional gcode however I can't seem to find how to check if a trigger is depressed or not.
-
RE: No setting motor current with macro
@dc42 sorry had a moment. Definitely 2.4
-
RE: No setting motor current with macro
@dc42 weirdly the m115 output didn't have the bootloader but i updated it to the most recent last week so it should be 2.4
-
RE: No setting motor current with macro
@phaedrux said in No setting motor current with macro:
Update to 3.4 final.
I have done the update and still have the issue unfortunately.
@dc42 said in No setting motor current with macro:
@nriviera said in No setting motor current with macro:
@dc42 I do get random CAN-bus unhandled inputs (2000, 3000, 2100 and sometimes others) so maybe that's it. I'll give it a go.
That's typically triggered by removing power to the tool board but keeping 5V power to the main board. Is that what you are doing?
I'm not too fussed about the warnings and errors it's having to run a separate macro every-time I print is the annoying part. Should I use a very long delay?
-
RE: No setting motor current with macro
@dc42 yes. The 6HC 5v is always on as it triggers the 24v power which power the toolboards. I have a fairly large delay (I changed it to 10s but even 20s doesn't make any difference) to ensure the boards have enough time to boot but still get current issues intermittently.
-
RE: No setting motor current with macro
@dc42 its been a while and the error messages never went away but I stopped having extrusion issues so I didn't pursue it. They seem to have come back intermittently this last week however. I've updated the bootloader to 2.4, running 3.4rc2 firmware. The config files are unchanged from above. Any idea?
-
RE: No setting motor current with macro
@dc42 I do get random CAN-bus unhandled inputs (2000, 3000, 2100 and sometimes others) so maybe that's it. I'll give it a go.
-
RE: No setting motor current with macro
@o_lampe Thanks, I didn't think of different slicer or tool profiles. I thought the config-overide but alas nothing in there to cause it.
-
No setting motor current with macro
I'm currently working on a BLV with a jubilee tool changer (with the tool changer a work in progress). Currently I have two tool heads that I use a Triangle Matrix Extruder and a Mellow Sunrise both through a 1LC toolboard. To make it easier to change tools I've created a 'ToolBoardN.g' file for each setup. When the printer is turned on it loads an 'Power On' macro which then starts a "Start Tools" macro which then references which just has M98"ToolBoard1.g" and "Toolboard2.g" that I just comment in and out as needed.
Weirdly since changing to the this system the motor current doesn't seem to set and the stepper just stalls. However If I run the "Start Tools" macro again it works normally. Ditto if I run an M906 with the E current. The macro is clearly running because my fans/z-probe etc run correctly. I've also tried various delays between powering on and running the macro without any improvement.
Does anyone have any ideas why?
; Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.1.3 on Sun Jun 28 2020 06:07:32 GMT+0000 (Coordinated Universal Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Cube" ; set printer name M669 K1 ; select CoreXY mode ; ATX power ;M80 ; Drives M569 P0.4 S1 ; physical drive 0.4 goes forwards M569 P0.3 S0 ; physical drive 0.3 goes forwards M569 P0.0 S0 ; physical drive 0.0 goes forwards M569 P0.1 S0 ; physical drive 0.1 goes forwards M569 P0.2 S0 ; physical drive 0.2 goes forwards M569 P0.5 S1 ; physical drive 0.5 goes forwards ;Extruder Drives are setup in toolboard*.g files M584 X0.4 Y0.3 Z0.0:0.1:0.2 E20.0 U0.5 ; set drive mapping M350 X16 Y16 Z16 U16 I1 ; configure microstepping with interpolation M92 X160.00 Y160.00 Z1600.00 U30.5 ; set steps per mm M566 X3000.00 Y3000.00 Z20.00 U500.00 ; set maximum instantaneous speed changes (mm/min) M203 X20000.00 Y20000.00 Z900.00 U3000.00 ; set maximum speeds (mm/min) M201 X3000.00 Y3000.00 Z20.00 U250.00 ; set accelerations (mm/s^2) M906 X1700 Y1700 Z1100 U600 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ;Setup 3 motor z M671 X-50:-50:350 Y246:54:150 S10 ; Axis Limits M208 X0 Y0 Z0 U0 S1 ; set axis minima M208 X310 Y300 Z300 U360 S0 ; set axis maxima ; Endstops M574 X2 S1 P"io3.in" ; configure active-high endstop for low end on X via pin !io1.in M574 Y2 S1 P"io2.in" ; configure active-high endstop for low end on Y via pin !io2.in M574 Z1 S2 ; configure Z-probe endstop for low end on Z M574 U1 S1 P"io4.in" ; configure U end stop ; Z-Probe ;Setup no moeved to toolboard*.g files M557 X50:250 Y50:250 S50 ; define mesh grid ;Chamber Temp M308 S2 P"temp1" Y"thermistor" T100000 B4100 A"Chamber Temp" ;Setup chamber temperature sensor ; Heaters - Bed M308 S0 P"temp0" Y"thermistor" T100000 B4267 A"Bed Temp" ; configure sensor 0 as thermistor on pin temp0 M950 H0 C"out8" T0 ; create bed heater output on out0 and map it to sensor 0 M307 H0 R0.940 C532.800:532.800 D6.30 S1.00 V23.7 B0 ; disable bang-bang mode for the bed heater and set model parameters M140 H0 ; map heated bed to heater 0 M143 H0 S150 ; set temperature limit for heater 0 to 150C M570 H0 P5 T15 S10 ;Triggers shutdown if heater fault for more than 10s ; Fans - frame and MCU temp M308 S10 P"mcu-temp" Y"mcu-temp" A"MCU" ;creates a sensor on pin 10 M950 F0 C"out7" Q500 ; create fan 0 on pin out7 and set its frequency M106 P0 S200 H10 X255 T25:40 C"MCU fan" ; set fan 0 value. Thermostatic control is turned off ; Miscellaneous M575 P1 S1 B57600 ; Enable support for PanelDue M575 P2 S1 B57600 ; Enable support for Neopixels ; Pressure Advance values M572 D0 S0.02 ; Endstop based buttons M950 J0 C"io5.in" ;creates trigger input for io5 M950 J1 C"io6.in" ;creates trigger input for io6 M950 J2 C"io7.in" ;creates trigger input for io7 M581 P0 T2 S1 ;Triggers trigger2.g (turns off power) M581 P1 T0 S1 ;Triggers emergency stop M581 P2 T1 S1 ;Triggers pause
The "1-Power-On" macro
M80 G4 S6 ;Wait 4 seconds for CAN to connect M98 P"0/macros/3-Start Tools" G4 S2 ;Wait a second for toolboards to setup M501 ; Load config-override.g values
"3-Start Tools" Macro
;M98 P"ToolBoard1.g" M98 P"ToolBoard2.g"
"ToolBoard2.g" system config file (the one currently in use)
;Setup for Mellow Sunrise ;Setup Extruder Drive M569 P20.0 S1 ; physical drive 20.0 goes forwards M584 X0.4 Y0.3 Z0.0:0.1:0.2 E20.0 U0.5 ; set drive mapping M350 E64 I1 ; configure microstepping with interpolation M92 E2850 ; set steps per mm M566 E300 ; set maximum instantaneous speed changes (mm/min) M203 E3600 ; set maximum speeds (mm/min) M201 E600 ; set accelerations (mm/s^2) M906 E700 I30 ; set motor currents (mA) and motor idle factor in per cent ;Setup Toolboard Z-probe M558 P9 C"^20.io0.in" H5 F240 T6000 R.5 ; set Z probe type to switch and the dive height + speeds M950 S0 C"20.io0.out" ; sets up servo output G31 P500 X40 Y15 Z3.4 ; set Z probe trigger value, offset and trigger height ; Toolboard 1 M308 S1 P"20.temp0" Y"thermistor" T100000 B4100 ; configure sensor 0 as thermistor on pin temp0 on board 20 M950 H1 C"20.out0" T1 ; Sets heater 1 and maps it to temp probe 1 M307 H1 A340.0 C140.0 D5.5 S2.00 V0.0 B0 ; Default Tool Heater Parameters. M143 H1 S300 ; Maximum H0 (Extruder) heater temperature M570 H1 P5 T15 S10 ;Triggers shutdown if heater fault for more than 10s M950 F1 C"20.out2" Q500 ; create fan 0 on pin out7 and set its frequency M106 P1 S0 H-1 C"Parts Cooler 1" ; set fan 0 value. Thermostatic control is turned off M950 F2 C"20.out1" Q500 ; create fan 0 on pin out7 and set its frequency M106 P2 H1 T40:50 L25 H255 C"Hotend 1 Fan" ; set fan 0 value. Thermostatic control is turned off M563 P0 D0 H1 S"1LC No 1" F1 ; Define tool 0 G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets G10 P0 R0 S0 ;Config Toolboard Buttons M950 J3 C"20.button0" ;creates tooboard button 0 M950 J4 C"20.button1" ;creates tooboard button 1 M581 P3 T3 S1 ;Triggers lock M581 P4 T4 S1 ;Triggers unlock
-
RE: Cannot Connect to Duet3 Over WiFi
@danyzillla does typing the IP address in your browser work?
-
Can-FD bus and ATX power
Maybe I'm terrible at googling but I can't seem to find a way to trigger an reconnect with a tool board. My setup uses ATX power control for Vin however when this is turned off the the toolboard loses power. When power is turned back on the toolboard doesn't reconnect and I need to reset the controller to do so. Is there a way to trigger the toolboard to reconnect?
-
RE: Triple Z motors not correcting
You're correct in that the error is in your config file with the order in the M671. Annoyingly you can't make each Z axis move independent of the other to test that they are correct in the config. I just trial and error'd my way around until I got it correct.
-
RE: Precision Piezo Underbed
@Adamfilip the analogue doesn't use the pots. It bypasses then and just sends the signal. You need to drop your trigger value to 5-15 above your baseline value rather than the 600 currently.
-
RE: Precision Piezo Underbed
Also if you press done on the bed slowly does it trigger? Or does it trigger when you release? If it triggers when you release your piezo-->board wires are backwards and need to be flipped. Lost much hair to backwards piezo-- wires.
-
RE: Precision Piezo Underbed
You can use either analogue or digital you just use different probe codes. It need to go into the z-probe if you want to use analogue. Digital behaves like normal endstop.
Does your duet change the z probe value when you tap the bed?
-
RE: Precision Piezo Underbed
What kind of printer do you have? Generally your trigger threshold should be 5-15 above you're baseline value. When you tap the bed does it trigger consistently? Sometimes the piezo being plugged in backwards gives some weird behaviour (it looks like it triggers well when tapped but wond trigger with a head strike).