Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Machine axes always zero #7

Open
iceboundflame opened this issue Jun 16, 2016 · 5 comments
Open

[Bug] Machine axes always zero #7

iceboundflame opened this issue Jun 16, 2016 · 5 comments

Comments

@iceboundflame
Copy link

On chilipeppr.com/jarret - When I tried to use the Machine DRO button, the displayed values were always zero even as I jogged around.

@xpix
Copy link
Contributor

xpix commented Oct 11, 2016

It's the same here, if i move my machine in some direction i don't get the machine position. Here my Debug output:

updateAxis. axis: x val: 0.102
VM457:1059 updateAxis. axis: x val: 0.118
VM457:1059 updateAxis. axis: x val: 0.2
VM457:1059 updateAxis. axis: y val: -0.198
VM457:1059 updateAxis. axis: y val: -0.182
VM457:1059 updateAxis. axis: y val: -0.1

I belive that the SPJS not send the machine positions mx,my,mz,ma:

sendjson {"P":"/dev/ttyUSB0","Data":[{"D":"G91 G0 X-0.1\nG90\n","Id":"jog6"}]}
{"Cmd":"Queued","QCnt":2,"P":"/dev/ttyUSB0","Data":[{"D":"G91 G0 X-0.1\n","Id":"jog6","Pause":0},{"D":"G90\n","Id":"jog6-part-2-2","Pause":0}]}
{"Cmd":"Write","QCnt":1,"Id":"jog6","P":"/dev/ttyUSB0"}
{"Cmd":"Write","QCnt":0,"Id":"jog6-part-2-2","P":"/dev/ttyUSB0"}
{"Cmd":"Complete","Id":"jog6","P":"/dev/ttyUSB0"}
{"P":"/dev/ttyUSB0","D":"{\"Lbs\":4}\n"}
{"P":"/dev/ttyUSB0","D":"{\"r\":{},\"f\":[1,0,13,72]}\n"}
{"P":"/dev/ttyUSB0","D":"{\"sr\":{\"**posx**\":0.198,\"vel\":24.03,\"dist\":1,\"stat\":5}}\n"}
{"P":"/dev/ttyUSB0","D":"{\"qr\":31}\n"}
{"Cmd":"Complete","Id":"jog6-part-2-2","P":"/dev/ttyUSB0"}
{"P":"/dev/ttyUSB0","D":"{\"Lbs\":0}\n"}
{"P":"/dev/ttyUSB0","D":"{\"r\":{},\"f\":[1,0,4,4397]}\n"}
{"P":"/dev/ttyUSB0","D":"{\"sr\":{\"**posx**\":0.182,\"vel\":151.64}}\n"}
(No more items on json buffer.)
{"P":"/dev/ttyUSB0","D":"{\"sr\":{\"**posx**\":0.100,\"vel\":0.00,\"dist\":0,\"stat\":3}}\n"}
{"P":"/dev/ttyUSB0","D":"{\"qr\":32}\n"}

@chilipeppr
Copy link
Owner

Have you requested them in your TinyG config?

On Oct 11, 2016 7:54 AM, "Frank Herrmann" [email protected] wrote:

It's the same here, if i move my machine in some direction i don't get the
machine position. Here my Debug output:

updateAxis. axis: x val: 0.102
VM457:1059 updateAxis. axis: x val: 0.118
VM457:1059 updateAxis. axis: x val: 0.2
VM457:1059 updateAxis. axis: y val: -0.198
VM457:1059 updateAxis. axis: y val: -0.182
VM457:1059 updateAxis. axis: y val: -0.1

I belive that the SPJS not send the machine positions mx,my,mz,ma:

sendjson {"P":"/dev/ttyUSB0","Data":[{"D":"G91 G0 X-0.1\nG90\n","Id":"jog6"}]}
{"Cmd":"Queued","QCnt":2,"P":"/dev/ttyUSB0","Data":[{"D":"G91 G0 X-0.1\n","Id":"jog6","Pause":0},{"D":"G90\n","Id":"jog6-part-2-2","Pause":0}]}
{"Cmd":"Write","QCnt":1,"Id":"jog6","P":"/dev/ttyUSB0"}
{"Cmd":"Write","QCnt":0,"Id":"jog6-part-2-2","P":"/dev/ttyUSB0"}
{"Cmd":"Complete","Id":"jog6","P":"/dev/ttyUSB0"}
{"P":"/dev/ttyUSB0","D":"{"Lbs":4}\n"}
{"P":"/dev/ttyUSB0","D":"{"r":{},"f":[1,0,13,72]}\n"}
{"P":"/dev/ttyUSB0","D":"{"sr":{"posx":0.198,"vel":24.03,"dist":1,"stat":5}}\n"}
{"P":"/dev/ttyUSB0","D":"{"qr":31}\n"}
{"Cmd":"Complete","Id":"jog6-part-2-2","P":"/dev/ttyUSB0"}
{"P":"/dev/ttyUSB0","D":"{"Lbs":0}\n"}
{"P":"/dev/ttyUSB0","D":"{"r":{},"f":[1,0,4,4397]}\n"}
{"P":"/dev/ttyUSB0","D":"{"sr":{"posx":0.182,"vel":151.64}}\n"}
(No more items on json buffer.)
{"P":"/dev/ttyUSB0","D":"{"sr":{"posx":0.100,"vel":0.00,"dist":0,"stat":3}}\n"}
{"P":"/dev/ttyUSB0","D":"{"qr":32}\n"}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHidbSei5XEuCz9m7guTD-pzUIAFDhGbks5qy6MrgaJpZM4I3HlL
.

@xpix
Copy link
Contributor

xpix commented Oct 11, 2016

ok, found it:

{"sr":{"line":true,"posx":true, "posy":true,"posz":true, "vel":true,
"unit":true, "stat":true, "mpox":true, "mpoy":true, , "mpoz":true, }}

I hope this settings is persistent :)
But know it works like a charm :)

--
Frank Herrmann | Software Entwicklung
+49 172 600 40 61 | [email protected]
Neudorfer Weg.10 | 68753 Waghäusel

2016-10-11 17:18 GMT+02:00 Frank Herrmann [email protected]:

Hi John, please can you explain how i can do this?

--
Frank Herrmann | Software Entwicklung
+49 172 600 40 61 | [email protected]
Neudorfer Weg.10 | 68753 Waghäusel

2016-10-11 17:02 GMT+02:00 John Lauer [email protected]:

Have you requested them in your TinyG config?

On Oct 11, 2016 7:54 AM, "Frank Herrmann" [email protected]
wrote:

It's the same here, if i move my machine in some direction i don't get
the
machine position. Here my Debug output:

updateAxis. axis: x val: 0.102
VM457:1059 updateAxis. axis: x val: 0.118
VM457:1059 updateAxis. axis: x val: 0.2
VM457:1059 updateAxis. axis: y val: -0.198
VM457:1059 updateAxis. axis: y val: -0.182
VM457:1059 updateAxis. axis: y val: -0.1

I belive that the SPJS not send the machine positions mx,my,mz,ma:

sendjson {"P":"/dev/ttyUSB0","Data":[{"D":"G91 G0
X-0.1\nG90\n","Id":"jog6"}]}
{"Cmd":"Queued","QCnt":2,"P":"/dev/ttyUSB0","Data":[{"D":"G91 G0
X-0.1\n","Id":"jog6","Pause":0},{"D":"G90\n","Id":"jog6-part
-2-2","Pause":0}]}
{"Cmd":"Write","QCnt":1,"Id":"jog6","P":"/dev/ttyUSB0"}
{"Cmd":"Write","QCnt":0,"Id":"jog6-part-2-2","P":"/dev/ttyUSB0"}
{"Cmd":"Complete","Id":"jog6","P":"/dev/ttyUSB0"}
{"P":"/dev/ttyUSB0","D":"{"Lbs":4}\n"}
{"P":"/dev/ttyUSB0","D":"{"r":{},"f":[1,0,13,72]}\n"}
{"P":"/dev/ttyUSB0","D":"{"sr":{"posx":0.198,"vel"
:24.03,"dist":1,"stat":5}}\n"}
{"P":"/dev/ttyUSB0","D":"{"qr":31}\n"}
{"Cmd":"Complete","Id":"jog6-part-2-2","P":"/dev/ttyUSB0"}
{"P":"/dev/ttyUSB0","D":"{"Lbs":0}\n"}
{"P":"/dev/ttyUSB0","D":"{"r":{},"f":[1,0,4,4397]}\n"}
{"P":"/dev/ttyUSB0","D":"{"sr":{"posx":0.182,"vel"
:151.64}}\n"}
(No more items on json buffer.)
{"P":"/dev/ttyUSB0","D":"{"sr":{"posx":0.100,"vel"
:0.00,"dist":0,"stat":3}}\n"}
{"P":"/dev/ttyUSB0","D":"{"qr":32}\n"}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7
issuecomment-252941493>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AHidbSei5XEuCz9m7guTD-pzUIAFDhGbks5qy6MrgaJpZM4I3HlL>
.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADlr6EjgRa-w1zswx3T8pBbAhD4ukx2rks5qy6UTgaJpZM4I3HlL
.

@xpix
Copy link
Contributor

xpix commented Oct 13, 2016

Ok, now it's clear ... i used the url?v9=true scheme. The problem, chilipeppr don't send the important status report function. And this means, no coord updates and so on. Sadly, it's not persistent or?

@chilipeppr
Copy link
Owner

Frank, if you are using v9=true that sends no init commands. So all
on-connect config needs to be done in the cog wheel icon down in the serial
port console for the specific port.

On Thu, Oct 13, 2016 at 5:22 AM, Frank Herrmann [email protected]
wrote:

Ok, now it's clear ... i used the url?v9=true scheme. The problem,
chilipeppr don't send the important status report function. And this means,
no coord updates and so on. Sadly, it's not persistent or?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHidbVOA6I-x5O_TQBtWf_klIHd_DvJoks5qziJrgaJpZM4I3HlL
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants