Hi Simon
Is this a custom firmware build where you merged TMC2208 support
in? The last PR was
not merged, right?
And does it in deed have closed loop?
_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/19d6e957-9eaf-47f7-814b-52a92747cd39n%40googlegroups.com.
Hi Simon
Assuming you are Simon24j:
Are you sure that issue is really, really solved?
https://github.com/openpnp/openpnp/issues/1120#issuecomment-774674476
Can you post the config.txt again?
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/89202f71-58bb-47dd-86c4-dc99e69b3f7bn%40googlegroups.com.
Found it!
Smoothieware seems to use a numeric parser that reacts to C radix prefixes. 0x or 0X are Hexadecimal prefixes.
https://en.wikipedia.org/wiki/Hexadecimal
So A0X151.39 is interpreted as A 151.39 hex which is
exactly the A 337.2263 decimal we get back from M114!
So I suggest you move your X axis to the top using the black
arrow buttons. This way it will never come after a zero.
Then regenerate the MOVE_TO_COMMAND using Issues & Solutions.
Or you can switch off G-code compression on the Driver.
https://github.com/openpnp/openpnp/wiki/GcodeAsyncDriver#gcodedriver-new-settings
Ultimately I will need to fix the Smoothieware firmware. This is
clearly illegal behavior in the context of NIST RS274NGC
Interpreter - Version 3, section 3.3.2.1.
https://www.nist.gov/publications/nist-rs274ngc-interpreter-version-3
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/5a218d3f-ecae-d9d8-c6a6-a0d05addec9d%40makr.zone.
Yep, Smoothieware uses strtof()
A valid floating point number for strtof using the
"C"
locale is formed by an optional sign character (+
or-
), followed by one of:
- A sequence of digits, optionally containing a decimal-point character (
.
), optionally followed by an exponent part (ane
orE
character followed by an optional sign and a sequence of digits).- A
0x
or0X
prefix, then a sequence of hexadecimal digits (as in isxdigit) optionally containing a period which separates the whole and fractional number parts. Optionally followed by a power of 2 exponent (ap
orP
character followed by an optional sign and a sequence of hexadecimal digits).- ...
https://www.cplusplus.com/reference/cstdlib/strtof/
This is obviously not OK for G-code.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/d04d0050-9675-aa16-a720-bcbef05dfd00%40makr.zone.
Hi everybody
I made a new firmware version (5-axis and 6-axis) for
Smoothieware that fixes the problem described in this thread.
I don't think it is super urgent for you to update, as the bug
won't happen if you have the X axis as the first axis in the
machine setup and if you have no E axis (you shouldn't anyway).
More details in the section "G-code Command Decimals":
https://makr.zone/smoothieware-new-firmware-for-pnp/500/
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/81e0d212-0353-6bc8-7b97-30feb28e45b0%40makr.zone.