Printing out numbered parameter value
- andrey-bts
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
01 Apr 2018 13:25 #108211
by andrey-bts
Printing out numbered parameter value was created by andrey-bts
Hello!
Is there a simple method to print out numbered parameter (#xxxx from linuxcnc.var) value on pyvcp?
There's a widget <number>, looks like suits for this purpose, but i was unable to link it's <halpin> to NP in any way.
Is there a simple method to print out numbered parameter (#xxxx from linuxcnc.var) value on pyvcp?
There's a widget <number>, looks like suits for this purpose, but i was unable to link it's <halpin> to NP in any way.
Please Log in or Create an account to join the conversation.
03 Apr 2018 12:10 #108296
by andypugh
Replied by andypugh on topic Printing out numbered parameter value
I don't think that there is a simple way, no.
You can output the value of a parameter from G-code to a motion.analog-out HAL pin, and show that in the PyVCP.
Which parameter do you want to display?
You can output the value of a parameter from G-code to a motion.analog-out HAL pin, and show that in the PyVCP.
Which parameter do you want to display?
Please Log in or Create an account to join the conversation.
- andrey-bts
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
03 Apr 2018 12:17 #108298
by andrey-bts
Replied by andrey-bts on topic Printing out numbered parameter value
I have different values of delta Z for G38.3, it is stored in #3030 - for different fixtures on the table. I.e. #3030==0 means Z==0 on the table, #3030==10 means Z==0 10mm above the table. It's convenient to use numbered param, because lcnc automatically reads and writes it to var-file. But when you run lcnc-axis, you don't see current value of delta for tool sensor G38? and that may lead to some nasty consequencies. I just wanted to print it out on pyvcp
When i just start lcnc - there's no g-code executed yet, but previous val of #3030 is already read from var-file. Writing to motion.analog seems not possible in this way
When i just start lcnc - there's no g-code executed yet, but previous val of #3030 is already read from var-file. Writing to motion.analog seems not possible in this way
Please Log in or Create an account to join the conversation.
03 Apr 2018 12:22 - 03 Apr 2018 12:23 #108299
by andypugh
Replied by andypugh on topic Printing out numbered parameter value
The INI file has a "RS274NGC_STARTUP_CODE" section. You might be able to put ain that section.
linuxcnc.org/docs/2.7/html/config/ini-co...ml#_rs274ngc_section
M68 E0 Q#3030
linuxcnc.org/docs/2.7/html/config/ini-co...ml#_rs274ngc_section
Last edit: 03 Apr 2018 12:23 by andypugh.
The following user(s) said Thank You: andrey-bts
Please Log in or Create an account to join the conversation.
- andrey-bts
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
03 Apr 2018 14:00 #108307
by andrey-bts
Replied by andrey-bts on topic Printing out numbered parameter value
Thank you, STARTUP_CODE helped a bit - now I can see a preset value of fixture height
Please Log in or Create an account to join the conversation.
- Mike_Eitel
- Offline
- Platinum Member
Less
More
- Posts: 1150
- Thank you received: 184
03 Apr 2018 15:51 #108319
by Mike_Eitel
Replied by Mike_Eitel on topic Printing out numbered parameter value
It is easy to make a your own 'comp' hal component and show these pins on Screen.
Please Log in or Create an account to join the conversation.
03 Apr 2018 16:39 #108323
by andypugh
Replied by andypugh on topic Printing out numbered parameter value
Not so easy to read a G-code parameter into a comp though.
You can get the probe-trip position through the Python interface:
linuxcnc.org/docs/2.7/html/config/python-interface.html
So a user-space Python comp could read that (if it helped) and make it available on a HAL pin. Or it might be possible to create a whole new PyVCP widget that displayed that value.
You can get the probe-trip position through the Python interface:
linuxcnc.org/docs/2.7/html/config/python-interface.html
So a user-space Python comp could read that (if it helped) and make it available on a HAL pin. Or it might be possible to create a whole new PyVCP widget that displayed that value.
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds