Hi everyone,
I come back here with yet some more problem with the homing using TinyG.
I have encounter multiple instances like this when attempting to home the machine: it first can home the Z switch properly, but after that it didn’t perform the homing for X and Y – ie it doesn’t go back to the home switches, but instead it goes straight to visual homing.
Attached below are my log file containing one of those instances as well as my machine.xml and my settings for the TinyG. I included the version 440.20 and 440.21 for further examination.Could you look into it?
Thank you in advance.
Phuong
Hi Phuong,
I know it is the TinyG convention to send all these
$variable=xy
settings in the CONNECT_COMMAND:
But I actually advise against that.
When the settings are the same as before, it does nothing bad (but it is then also useless).
When the settings change, TinyG is writing to the EEPROM, and it is known that serial communication is then not reliable for a few milliseconds, I believe I read somewhere that during EEPROM write, the MCU cannot serve interrupts. The original Liteplacer software even adds a 50ms wait after each such command write (as I've just recently discovered).
What's even worse: if you add the same settings twice by mistake
and with different settings, you get two EEPROM writes
each time! Not a good thing.
So I would make sure the settings are OK in the EEPROM and back them up using external means. Then remove them from the CONNECT_COMMAND.
The EEPROM writing disruption could explain that the homing command is (perhaps only sometimes) corrupted._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/302c3476-272c-4c4d-90e7-19c4fcb1d8c9n%40googlegroups.com.
I guess he has Home after enabled? set on the Machine.

And perhaps some Machine State Actuation control:

https://github.com/openpnp/openpnp/wiki/Setup-and-Calibration%3A-Actuators#actuator-machine-states
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/fe7839ff-ea15-4cb9-8c9e-70979bb96d6dn%40googlegroups.com.
> I tried out as per your suggestions
Looking back I'm unsure what suggestions you mean. Please elaborate.
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/eb522260-3df0-4d9c-b61b-217ddcde00cen%40googlegroups.com.
Hi Phuong
Earlier I pointed at this:
On Wednesday, April 27, 2022 at 9:51:46 AM UTC-7 ma...@makr.zone wrote:
I guess he has Home after enabled? set on the Machine.
And perhaps some Machine State Actuation control:
https://github.com/openpnp/openpnp/wiki/Setup-and-Calibration%3A-Actuators#actuator-machine-states
Can you please disable Home after enabled?
And please move any Machine State Enabled actuation to Homed,
or (for the moment) disable it entirely (set to defaults as in
screen shot above).
You will then need to press the homing button separately.
(there might be some kind of race condition in these automatisms)
_Mark
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/d442a8c0-2a17-4edc-a8fb-5b9518073dfbn%40googlegroups.com.