Hi,
I'm not sure this is the right place for this but just a quick question...
Can you split excessively long lines of code into two or more lines to make it more readable?
Posts made by handyandy
-
Splitting up long code lines?
-
5v Part cooling fan
I have a particular 5v part cooling fan I want to use with my Duet 2 printer.
What is the best way to get 5v to the fan? -
RE: What wiring to use?
@dc42 Hi,
That's an easy one... I already have the Duet 2 Wi-Fi board!
I can't afford to just replace it with a Duet 3 as much as the more compact board etc interests me. -
What wiring to use?
I am just about to rebuild my own design 3D printer powered by a Duet 2 Wi-Fi board (so 24v) with hopefully neat and ordered wiring.
I will need to buy new wiring from the Hemera extruder assembly to the Duet board and limit switches etc.
Can anyone suggest what spec of wiring I will need? Ideally I would like multiple colours for each of the various items, and if possible where to get it.
I have seen multi-colour alarm cable on Amazon but I am not sure this would be suitable as most of it seems to have single strand tinned cores? -
RE: Mysterious Z150!
@handyandy This still does not explain why when starting a print the nozzle goes up to Z150 (shown on the console) There is not one mention of Z150 anywhere in the macros, system files that I cant find!
Still puzzled... must be in the firmware coding? -
Mysterious Z150!
Hi I am trying to find a Z150 command that gets executed every time I start print.
I have looked in the Cura startup code, start.g and pretyty well everywhere else!
What is the start sequence of files called when starting a print? Or could this be in the firmware? -
RE: Z Motors loosing sync?
@jay_s_uk Thanks again. I will look into this.
I still don't really understand why the two motors in the in the Z motor sockets don't just move in sync.
Surely the board is designed to manage this? -
RE: Z Motors loosing sync?
@jay_s_uk Thanks for that.
Could you explain it in more detail, or point me to some documentation covering it? -
Z Motors loosing sync?
Hi,
I'm hoping someone more knowledgeable than me can help?
I am using a Prusa like 3dPrinter with a Duet2 WiFi board and generally it works great.
The two Z motors connect to the Duet via the Z motor 1 & 2 sockets (in series I think?). Occasionally the two motors seem to loose sync and the X gantry moves differently at each side. Occasionally the next move seems to correct this but sometimes I have to level the X axis gantry.
Should there be some code/settings in config.sys to correct this? at the moment the only code in config.sys for the Z axis is... M569 P2 S0 F5
Help please
Regards, Andy -
RE: M32 command acting strangely
@chrishamm , Thanks that (of course) cured things. I'm not sure why I used M32 in this case! I have used M98 several times before!
-
M32 command acting strangely
Hi,
I have recently finished the build on my new cartesian printer, similar to a Prusa i3.
I am now working through the commissioning / calibration of it. All has been going well until I start to tune 1st layer calibration.
I have a .gcode program that will print a meander so I can adjust the Z height using BabySteps to get a good adhesion on the bed.
I have been calling this program from a general macro in the DWC via with...M32 "0:/macros/03_Maintenance/01_First Layer Calibration/gcodes/Test.gcode"
However for some reason the M32 makes my printer do some sort of calibration that probes the bed on the left hand side, then on the right, and finally in the centre. It does this 3 times, then continues.
As it does this calibration it throws up a red error box...X Error: This kinematics does not support auto-calibration.
Followed by a blue confirmation box...
Gantry deviation of 0,000mm obtained.When the printing has finished you can review events in the console and it shows the program being called correctly. Then 3 error boxes as above, then the blue Gantry message, and finally that the program has successfully completed.
I have tried not using M32 but M23/M24 instead with the same results.
I have also tried just typing the M32 instruction in the Send box, again with the same results so it is definitely something odd with M32 and M23/M24! -
M84 or not?
Hi, Is it good practice (or not) to end macros that involve axis movements with an M84 command?
If you do then the next macro/program that runs will have to nun M28 to home all axis'.
If you don't then you can often hear the motors producing some 'noise'.
As I am testing my new printer with a whole raft of macros for testing the motors, mash bed, z-trigger etc. etc. I seem to be constantly running the home all routines over and over again.
Is this ok or not? -
RE: Degree Symbols
Hi, I took on board your comments about my old text editors and looked at Notepad++... I didn't like it. The GUI seems very 'home made in my shed'.
I did however find the 'Atom' editor being recommended so have also tried this. I like it a lot.
It has a really nice and modern looking GUI. It allowed me to load my whole SD card into it as a project. I could then set up my Find/Replace criteria and quickly apply them throughout the project. Brilliant.
I can now also display degree symbols correctly!
Cheers all. -
RE: Degree Symbols
Hi, I am using Multi-Edit (or Notepad) both produce the same results. I am running Windows 11 and am using Edge as the browser.
Hope this helps. -
RE: Degree Symbols
Hi again, If I type directly into the 'send' box the following...
echo " Temp is °C"
It works fine and displays correctly. Seems to be as soon as I put it in a macro.
Confused! -
RE: Degree Symbols
Hi, I tried that and on my printer this is what I get...
12/04/2022, 10:14:53 M98 P"0:/macros/Test"
Heater 0 is 19.6�C hot
Error: Bad command: Heater 0 is -273.1�C hot
Test: 100�C -
RE: Degree Symbols
Hi, Sorry to be a pain but I am still unable to display degree symbols in DWC!
I have edited the filament files to correctly show degree symbols in both my favourite Multi-Edit and Notepad text editors.
I have tried using both alt-248 and alt-0176 but when I transfer and look at the files in DWC the degree symbol displays as an orange triangle with a question mark in its place.
I presume this means an error as the files won't run either? -
RE: Degree Symbols
Hi, Thanks for that. I had been using the keyboard special character Alt-248 which does indeed show a degree symbol in my text editor of choice.
I will now do a test on one of the macros using Alt-0176 and see if this sorts it?
Hope so.