how to display a parameter in pyVCP

More
20 Dec 2022 07:17 #259940 by jslindsay51
how can I read a parameter set via G code.  Example reading the probe position to display on the screen.

I set it to #1000 during the tool length calibration routine, but can't seem to read it for display

Thanks
John Lindsay

Please Log in or Create an account to join the conversation.

More
20 Dec 2022 10:35 #259946 by roland
1. in G-Code:
M68 E3 Q#1000

2. in xml file: 
<number>
    <halpin>"diff-t"</halpin>
    <font>;("Helvetica",12)</font>
    <format>"+4.3f"</format>
</number>

3. in the HAL file:
net diff-t   pyvcp.diff-t   motion.analog-out-03

Please Log in or Create an account to join the conversation.

More
20 Dec 2022 14:28 #259957 by jslindsay51
I'm trying to do exactly that except

net diff-t pyvcp.diff-t comp.0.in1 motion.analog-out-03

I hope that the introduction of the compare input doesn't mess it up.
I'll try to separate them

Thanks a bunch

Please Log in or Create an account to join the conversation.

More
20 Dec 2022 22:04 #259981 by jslindsay51
now I feel really foolish I finally noticed none of my formatting changes were showing up in addition to the described problem. I discovered I was calling the wrong directory for the file back in the INI file. changing it to the correct one solved the problem.

Thanks for the suggestions.

SOLVED!

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum