- Posts: 592
- Thank you received: 0
Couple questions about QTPYVCP
7 years 8 months ago #126298
by Leon82
Couple questions about QTPYVCP was created 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
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.
7 years 8 months ago #126313
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
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
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.
7 years 8 months ago #126377
by BigJohnT
Replied by BigJohnT on topic Couple questions about QTPYVCP
The status and position are being overhauled with a new Data Channels so for now use the status label and rules.
JT
JT
Please Log in to join the conversation.
7 years 8 months ago #126391
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
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.
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.
7 years 8 months ago #126401
by BigJohnT
Replied by BigJohnT on topic Couple questions about QTPYVCP
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
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
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.
7 years 8 months ago #126408
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
Awesome thanks
Please Log in to join the conversation.
7 years 8 months ago #126453
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
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
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.
7 years 8 months ago #126464
by BigJohnT
Replied by BigJohnT on topic Couple questions about QTPYVCP
Simply check word wrap and set the maximum width for the status label.
JT
JT
Please Log in to join the conversation.
7 years 8 months ago #126500
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
im theming it close to the fanuc manual guide i
Attachment not found
Please Log in to join the conversation.
7 years 8 months ago #126520
by Leon82
Replied by Leon82 on topic Couple questions about QTPYVCP
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
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.753 seconds
