Nope, the original G-code is correct, yours will not work, look
at the syntax for substitution
variables.
Your machine.xml shows proper (but quite low) acceleration limits on the axes, so I don't see why the acceleration is not set right.
However, please listen to Issues & Solutions. It tells you
that the axis velocity is limited by the (very low) driver
feed-rate limit.
Which however does not explain the homing problem.
Please send a log of your machine homing at Trace level.
_Mark
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/8acac4d0-4b9a-421f-89f0-93a31221233cn%40googlegroups.com.
> Pressing the button does nothing. Eventually a timeout
happens.
No sense in offline speculation, as soon as you're at the machine again, please send a log of your machine homing at Trace level.
> Feedrate is that ...?
No, just do as Issue & Solutions tells you, press Accept to remove the feed--rate limit from the driver:
It will automatically set this to 0:
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/9b2e84b8-d25f-4c78-964b-6c780b3cae1an%40googlegroups.com.
Hi jbasia,
thanks for helping find the root causes.
Apparently, the acceleration is not set, the command sent is just an empty comment line:
2023-01-30 13:33:49.882 GcodeDriver DEBUG: [serial://COM3] >> ; Initialize acceleration, -1
On one hand, that should be allowed to happen and still
work.
On the other hand, I&S should already have prompted you to
choose the ModeratedConstantAcceleration method, and then
I don't see why the acceleration is not sent. Please send the machine.xml (best send it with each
post after significant config changes).
What is surprising is that Marlin does not seem to
"ok"-acknowledge empty (comment-only) lines. Unfortunately, the NIST
RS274NGC standard does not standardize how and when a
controller should respond. The "ok" response that seems to be the
consensus among open source controllers is purely a convention.
Still, I think Marlin is mistaken not to respond to these lines,
because waiting for the "ok" is a common way of performing serial
flow control (a.k.a. "confirmation flow control").
Side remark: There are ways for OpenPnP to universally
suppress empty lines (driver options G-code compression + comments
removal), and/or to use alternatives to confirmation flow
control, but these options are only offered in the Advanced
milestone and I'd like to keep it that way. So please do not try these now 😠, I'd like
to find a way that is universally useful without straying into
"advanced" stuff.
Instead, please try the following. Manually change the proposed HOME_COMMAND command from this:
{Acceleration:M204 S%.2f} ; Initialize acceleration G28 ; Home all axes
To this, i.e., move the closing curly bracket to the end:
{Acceleration:M204 S%.2f ; Initialize acceleration}
G28 ; Home all axes
This should suppress the line entirely. If this proves successful, I will then fix it in Issues & Solutions, so even quirky Marlin is happy. 😎
Ideally we could bring Marlin to a similar good level as Smoothie
and Duet in terms of OpenPnP and Issues & Solutions setup
support. Thanks for keeping the ball
rolling.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/325c4744-d6a2-4711-bb21-285dd7dd3a6cn%40googlegroups.com.
Ideally we could bring Marlin to a similar good level as Smoothie and Duet in terms of OpenPnP and Issues & Solutions setup support. Thanks for keeping the ball rolling.
> At this point I wouldn't really mind to ditch Marlin.
Please hang in there.
It would really be valuable if we could make this work, as the
Lumen seems to attract many users, and Marlin is a good open
source firmware, anyways.
And the most relevant stuff, namely handling rotational axes A B
C correctly, already seems to work in that Marlin version (they do
not use them as "extruders"), so I do not think that a newer
firmware version seems to matter much for us.
Maybe they're reading this ... ideally, the Lumen guys would send
me a free board for extended OpenPnP integration. Like the Duet
guys also kindly did. 😁
It could even be a partially damaged/unfinished board, I only want to talk to the firmware, and merely operate it on my "OpenPnP controller test bed" with one stepper attached, like I do with the others:
_Mark
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/2e6d8574-5ca1-4d2f-93ae-10420badd8dbn%40googlegroups.com.
As you see in the log, that's a Marlin config problem, not
an OpenPnP problem:
2023-01-31 12:13:32.443
GcodeDriver$ReaderThread TRACE: [serial://ttyACM0] <<
echo:Homing Failed
2023-01-31 12:13:32.445 GcodeDriver$ReaderThread TRACE:
[serial://ttyACM0] << Error:Printer
halted. kill() called!
> What's new is that OpenPnP hangs and needs a kill, usually after homing.
Well, I don't think it hangs per se, but OpenPnP has an extra
long timeout for homing (60s), because this can take very long on
certain machines.
In the GcodeDriver, you can set an COMMAND_ERROR_REGEX
that recognizes the "halted", then OpenPnP
would immediately react to the error.
Issues & Solutions does not currently suggest the firmware
specific COMMAND_ERROR_REGEX
patterns (yet).
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/ecc34e2d-e362-4a15-9ab1-358fa6e2322dn%40googlegroups.com.
As you see in the log, that's a Marlin config problem, not an OpenPnP problem:
> One question: Can I move the Linux XML to Windows? Or better start again?
You can move it. Obviously the USB devices and Serial ports need
to be reassigned.
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/21103158-e1a3-4bd7-b592-0af3abb82d62n%40googlegroups.com.
On the other hand, I&S should already have prompted you to choose the ModeratedConstantAcceleration method, and then I don't see why the acceleration is not sent. Please send the machine.xml (best send it with each post after significant config changes).
It depends on the Milestone you're in. I was specifically referring to jbasia's config.
Anyways the workaround is now clear (quoting myself):
... please try the following. Manually change the proposed HOME_COMMAND command from this:
{Acceleration:M204 S%.2f} ; Initialize acceleration G28 ; Home all axesTo this, i.e., move the closing curly bracket to the end:
{Acceleration:M204 S%.2f ; Initialize acceleration} G28 ; Home all axesThis should suppress the line entirely. If this proves successful, I will then fix it in Issues & Solutions, so even quirky Marlin is happy. 😎
_Mark
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/154ddf70-f12e-4a93-ab4e-727284f23262n%40googlegroups.com.
Hi,
If you download the new test version of OpenPnP, this
should now be correctly suggested by Issues & Solutions, i.e.
the Marlin quirk is worked around.
HOMING_COMMAND
and MOVE_TO_COMMAND
where the
acceleration command line is not sent as long as ToolpathFeedrate
is set. Background:
https://github.com/openpnp/openpnp/pull/1517
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/b3d68e11-45b3-b60d-61e2-c78697954a61%40makr.zone.
Hi,
If you download the new test version of OpenPnP, this should now be correctly suggested by Issues & Solutions, i.e. the Marlin quirk is worked around.
> I found another mild annoyance that I noticed as a frequent from-zero-starter: the axis are not getting, or losing the driver setting during setup. After fixing it they stay.
Just to be sure: you are using Issues & Solutions to replace the driver, right?
I just did that myself and no driver assignments were lost,
before and after restarting OpenPnP.
I also double.checked the source code, the axes and actuators are
all rewired to the new driver:
Replacing the driver is the only thing that comes to mind when
losing the driver link. But maybe I'm missing something?
Can you be more specific when and where
this happens?
_Mark
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/43525fdd-848d-4a52-ba7e-6bc690bf28b7n%40googlegroups.com.
Can you be more specific when and where this happens?
> Same can happen to the driver letters. It asked me to agree to name X, X.(and Y Z) And later I have to do that again manually. To me this is not important, takes a Second to enter it. To me this is not important...
But to me it is important. I want this to be rock solid 🙁
This is really strange. I did this a hundred times myself, I
accompanied many users, and (to my knowledge) this stuff works.
Are you aware of the unfortunate OpenPnP "forgot to press Apply"
pitfall?
Are you aware that Issues & Solutions does UNDO a change when you Reopen or Dismiss a solution?
Are you sure you never did anything along the lines of that
"counterproductive" video you linked earlier? Like manually
deleting the driver, or axes and creating new ones manually?
Do you ever manually edit the machine.xml?
_Mark
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/820fc1bd-ee58-4e76-a84f-7acb7b8d1060n%40googlegroups.com.
> Same can happen to the driver letters. It asked me to agree to name X, X.(and Y Z) And later I have to do that again manually. To me this is not important, takes a Second to enter it. To me this is not important...
But to me it is important. I want this to be rock solid 🙁