You are not logged in.
Hello Shahin,
I have added JS code to the shield pause to raise the bed by 100mm upon pausing the print. The change works as intended, but the pause command would now not wait for the current layer to finish and with raise the bed while the current is being cured. Any ideas what would be causing this?
thanks!!
[JS]
var pos = [[CurrentPosition]];
if ((pos+100) >190) pos = 190
else pos=pos+100;
output = "G1 Z"+pos+"F800";
output += "G4 P1";
output += "[[PositionSet "+pos+"]]";
[/JS]
Offline
The most probably after layer gcode causing issue.
Offline
after layer gcode has only Z lift command.
is this something that needs to fixed on backend code?
Offline
You need to add relevant code after movement to make sure it finished.
Offline
ShieldAfterLayer Gcode is as below:
G1 Z{[[LayerPosition]] + [[ZLiftDistance]]} F200
[[WaitForDoneMessage]]
[[PositionChange [[ZLiftDistance]]]]
Not too sure what else needs to be added to ensure wait for current layer curing is finished before pause code
Offline
Shahin,
Could you please provide your thoughts?? thanks!
Offline
It depends on firmware you are using. Code seems correct check shutter gcode boxes and other available gcodes. Something cause [[WaitForDoneMessage]] pass sooner than expected.
Offline
Hello Shahin,
Checked all the gcode boxes and none seem to be missing [[WaitForDoneMessages]]. I had then verified the firmware and version (4440) in use . Performed an upgrade to the latest beta version (4987) and retried the pause functionality and nothing seems to have changed.
Also, wanted to add that I have all the other functionality - cancel, resume print, unpause working fine. In fact, I have bed lift gcode to max Z-height after Print Finish & Print Cancel and they seem to be working just fine.
Any other pointers that you may suggest?? Not sure if this was only in my case and anybody else was facing this. Thanks!
Last edited by Rahul (2021-09-17 14:11:56)
Offline
Share gcode for shutter, it is running in parallel better to not use it for such synchronization tasks.
Offline
Here is the shutter gcode, used to turn on/off the UV lamp
"ShutterOpenGcode": "M106 P0",
"ShutterCloseGcode": "M107 P0"
Offline
Move them to gcode before and after see if it does help or not
Offline
Tried it, no change. Pause continues to override current step.
Offline
Shahin,
Can you please suggest any other steps I can try to resolve this issue? Thanks!
Offline
Share a full debug file.
Offline
Hi Shahin,
I have shared the files on https://drive.google.com/file/d/19j3Ze9 … sp=sharing
thanks!
Offline
The configuration is correct, it happens as gcode send in parallel.
Let me check for the kind of configuration how it could handled with correct synchronization.
Offline
Thanks for the revert! will await your further update.
Offline
Try the latest beta.
Offline
Thanks for the revert Shahin!
Installed the latest beta 5008 and tried the same functionality, but still having the same issue. On clicking pause, it just overrides the current layer being exposed.
Offline
If you press pause it should wait pause just after exposure.
You have not observed no change at all?
Offline
there is no change in the behavior. As soon as the pause is hit, the Z-axis raises instead of waiting for the exposure & peel actions to compelte.
Offline
Hello Shahin,
Any suggestion for me?? thanks!
Offline
Hello Shahin,
I have retried my custom pause feature to have the print bed raised, upon pause with the latest beta version. However, it still doesn't seem to be working, the print bed starts to rasie before completing the current layer curing.
Any further suggestions you may have to have this feature working??
Offline
Ping me over skype sh.h.n
Lets troubleshoot together.
Offline
Shahin,
Any update on this issue? Were you to look into it??
Offline