Open FormenSul opened 2 years ago
Marlin relies on these commands only involving planner moves, and thus executing in proper sequence with other queued moves. Therefore G10
/ G11
do not call planner.synchronize
at any point.
So see if it helps to insert some M400
commands in strategic places, such as just before G10
and just before G11
.
Is your feature request related to a problem? Please describe.
I have made a printhead that uses a solenoid. I added a command to turn on the solenoid in G10, and turn off the solenoid in G11, and I want the solenoid to turn on at the beginning of the retraction and turn off after. Instead, the solenoid is turned on as soon as it hits Planner :: block_buffer, with all other parts of the retract being executed on time. If both commands G10 and G11 fall into the buffer, the solenoid turns on and off immediately, after which printing continues. I found this peculiarity by changing the buffer size, when it = 2, the solenoids work almost correctly. I also tried adding these commands to fwretract.cpp, the result does not change
Are you looking for hardware support?
printer flying bear ghost 5, with significant changes mks_robin_nano35 marlin 2.0.9.1
Describe the feature you want
Is it possible to change the priority in the Planner so that the solenoids opens and closes on time?
Additional context
these are my changes in G10 and G11
FWRETRACT settings:
part of g-code, as a sample, if BLOCK_BUFFER_SIZE = 16