Couple questions about QTPYVCP

More
7 years 8 months ago #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

Please Log in to join the conversation.

More
7 years 8 months ago #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

Please Log in to join the conversation.

More
7 years 8 months ago #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

Please Log in to join the conversation.

More
7 years 8 months ago #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.

Please Log in to join the conversation.

More
7 years 8 months ago #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
Code:
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

Please Log in to join the conversation.

More
7 years 8 months ago #126408 by Leon82
Awesome thanks

Please Log in to join the conversation.

More
7 years 8 months ago #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

Please Log in to join the conversation.

More
7 years 8 months ago #126464 by BigJohnT
Simply check word wrap and set the maximum width for the status label.

JT

Please Log in to join the conversation.

More
7 years 8 months ago #126500 by Leon82
im theming it close to the fanuc manual guide i

Attachment not found

Please Log in to join the conversation.

More
7 years 8 months ago #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

Please Log in to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum