Arduino Due TinyG G2 + LitePlacer

From the original Synthetos forum (2011–2025)

Started by dandumit on in TinyG Support. 5 replies, last activity Oct 8, 2015.

#

DEar All,
I would like to use G2 release to retrofit a pick and place machine along with SW from www.liteplacer.com.

I have installed the G2 release on a Arduino Due board. Unfortunately when I connect the board with LitePlacer SW gives me a lot of errors.

Please tell me , there are big differences on JSON communication between TinyG V8 and G2 ?

For example JuKu (Creator of LitePlacer) told me to try to issue the command : j:0 to change the json handling behavoiur.

What should I do to improve compatibility with standard version ?

BR
DAniel

Staff #

The intent is that G2 is identical to tinyG as implemented for V8.
In some cases, G2 is a superset where there are new capabilities in G2 not supported by V8 platforms.

I am not aware of a "j" command.

Perhaps you are trying to send
{"ej":0} or {"ej": 1} ?

You'll have to check with JuKu

#

Doh. Note to self: learn to type. cmcgrath5035 gives the right json commands. I was trying to give the non-json format, $ej=0.

Staff #

I never make a typing mistake ..... :)

By the way, your are setting the default json mode

[ej] enable json mode 0 [0=text,1=JSON]

#

Hello All,
THank you all for you replies ! ( I wonder why I didn't received the replies !)

unfortunately even with this command I don't get a proper feedback :
from LitePlacer I get :

> {“ej”:0} 
{"r":{"?ej?":null},"f":[1,100,9]}
No _textBox or _maskedText For Field ?ej?
> {"gc":"G1 F2000 X0"}
{"r":{},"f":[1,0,20]}
> !%
{"sr":{"line":0,"posx":0.000,"posy":0.000,"posz":0.000,"posa":0.000,"feed":2000.00,"vel":0.00,"unit":1,"coor":1,"dist":0,"frmo":1,"momo":1,"stat":3}}
> {"gc":"G1 F2000 X0"}
{"r":{},"f":[1,0,20]}
> !%
{"sr":{"line":0,"posx":0.000,"posy":0.000,"posz":0.000,"posa":0.000,"feed":2000.00,"vel":0.00,"unit":1,"coor":1,"dist":0,"frmo":1,"momo":1,"stat":3}}
> {“ej”:1}
{"r":{"?ej?":null},"f":[1,100,8]}
No _textBox or _maskedText For Field ?ej?
{"sr":{"feed":2000.00,"momo":1,"stat":3}}

I think that I have to build my own TinyG HW board and I will stick to Atxmega cpu but probably this path has his pitfalls as well.

I saw on this forum a thread started by a guy that made a TinyG board without drivers. This seems to be close to what I need now (hoping that would be easier than using G2).

BR,
DAniel

Staff #

The forum tool "subscribe-to" mechanism is not working, you are not informed of answers to your questions by the tool, you have to keep checking back.

This topic is from the original forum (October 2015). Your reply starts a new discussion linked to it.

Reply

Different problem? Ask a new question

Back to TinyG Support or latest activity.