Couple questions about QTPYVCP

More
12 Feb 2019 22:24 - 12 Feb 2019 23:09 #126298 by Leon82
so ive been messing around having some fun with the qt designer following the tutrorial and have a question

how does the g5x offset work? i am able to write it with the button but the absolute value in the dro widget doesn't change when i type g54 in the manual entry

it does update when i g92 an offset in or return home from a jog.

also im using my"good" computer with debian stretch. can i use my interface on my weasy controlled machine?

thanks
Last edit: 12 Feb 2019 23:09 by Leon82.
More
13 Feb 2019 00:18 - 13 Feb 2019 00:20 #126313 by Leon82
I think i figured it out

the after looking at another vcp the string was different than the tutorial. so i used status labels and the rules for relative and absolute position. it works, but not like i suspected.

it seems the rel and abs are reversed. when i g90g0g54 to x0y0 the relative screen is at zero even though the rule says position:axis?rel.

I also added a clear signal for each set axis button, as if you didnt use 0 it would stack the values up and not clear the box with each set click
Last edit: 13 Feb 2019 00:20 by Leon82.
More
13 Feb 2019 19:52 #126377 by BigJohnT
The status and position are being overhauled with a new Data Channels so for now use the status label and rules.

JT
The following user(s) said Thank You: Leon82
More
13 Feb 2019 21:40 - 13 Feb 2019 22:03 #126391 by Leon82
Thanks,
Is there a list somewhere with all the channels and available status's and expressions.
I
It looks like I can type into the rule maker and it will yell at me if it doesn't exist.
Last edit: 13 Feb 2019 22:03 by Leon82.
More
13 Feb 2019 22:15 #126401 by BigJohnT
Yes the Documents has a pretty good list in Data Plugins > Status.

qtpyvcp.kcjengr.com/plugins/status.html

If a status has some text then you can use this syntax
status:exec_state?text

If the return value is a bool then use str(ch[0]) to get true/false.
If the return value is a tuple then you can slice it to get the axis you want. Axis order is XYZABCUVW so to get the Z axis from a tuple you put str(ch[0][2]) in the expression. Remember that counting starts with 0 so for the 9 axes it's 0-8.

JT
The following user(s) said Thank You: Leon82
More
13 Feb 2019 22:44 #126408 by Leon82
Awesome thanks
More
14 Feb 2019 13:47 #126453 by Leon82
Is there anyway to chip the modal gcodes?

I tried to make it two lines and did in the editor but in the Sim it is a single line and very long
More
14 Feb 2019 15:19 #126464 by BigJohnT
Simply check word wrap and set the maximum width for the status label.

JT
The following user(s) said Thank You: Leon82
More
14 Feb 2019 23:09 #126500 by Leon82
im theming it close to the fanuc manual guide i
Attachments:
The following user(s) said Thank You: KCJ
More
15 Feb 2019 03:22 #126520 by Leon82
Where can I find example s of bool expressions? The docs on the page show mostly strings.

This doesn't really serve a practical function but I want to use status: joint[0]. in position.

I want it to flash false and turn on when true
Time to create page: 0.118 seconds
Powered by Kunena Forum