- Posts: 566
- Thank you received: 0
How to get HAL variable to G-code
7 years 6 months ago #130283
by aleksamc
How to get HAL variable to G-code was created by aleksamc
Hi, all.
I make pyvcp panel, where I can write some variables, correspondly to topic SPINBOX DATA to G-Code VariableSPINBOX DATA to G-Code Variable
Now, when I try to get value of the pin (debug, #_hal[<pyvcp.Hlen>]) , I get ####.
But If I write directly to (debug, #_hal[<pyvcp.spinbox.0.pin_param>]). Everything OK.
Why it so?
My aim is to set values from pyvcp xml panel and to run it in g-code.It's hard to debug g-code, if I will use values "spinbox.0.pin_param", etc.
I make pyvcp panel, where I can write some variables, correspondly to topic SPINBOX DATA to G-Code VariableSPINBOX DATA to G-Code Variable
Now, when I try to get value of the pin (debug, #_hal[<pyvcp.Hlen>]) , I get ####.
But If I write directly to (debug, #_hal[<pyvcp.spinbox.0.pin_param>]). Everything OK.
Why it so?
Attachment not found
My aim is to set values from pyvcp xml panel and to run it in g-code.It's hard to debug g-code, if I will use values "spinbox.0.pin_param", etc.
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
- islander261
- Offline
- Platinum Member
-
Less
More
- Posts: 757
- Thank you received: 0
7 years 6 months ago #130289
by islander261
Replied by islander261 on topic How to get HAL variable to G-code
Have you read this?
linuxcnc.org/docs/devel/html/remap/remap...ap:referto-hal-items
I know it is in an obscure location, also look at the preceding sections for related info and cautions. I use this in my Gcode files all the time to get operational parameters from my GUI.
John
linuxcnc.org/docs/devel/html/remap/remap...ap:referto-hal-items
I know it is in an obscure location, also look at the preceding sections for related info and cautions. I use this in my Gcode files all the time to get operational parameters from my GUI.
John
Please Log in to join the conversation.
7 years 6 months ago #130291
by aleksamc
Replied by aleksamc on topic How to get HAL variable to G-code
Thanks a lot, it's working.
Proble was in upper case letters. HAL command works only with lower case letters.
Proble was in upper case letters. HAL command works only with lower case letters.
Please Log in to join the conversation.
7 years 6 months ago #130492
by pl7i92
Replied by pl7i92 on topic How to get HAL variable to G-code
as you may come from WIN
Please do all Files Naming in lowercase
no space use underscore
linux may thank you by giving a better system
ALL outside the software in Base OperationSystem shoudt be no extra letters used also (-+*#)
WHY dont you use a NGCgui option for your parameters to set
see Eyamples ngcgui from the mashine menue
entry and one button press generates g-code
Please do all Files Naming in lowercase
no space use underscore
linux may thank you by giving a better system
ALL outside the software in Base OperationSystem shoudt be no extra letters used also (-+*#)
WHY dont you use a NGCgui option for your parameters to set
see Eyamples ngcgui from the mashine menue
entry and one button press generates g-code
Please Log in to join the conversation.
Time to create page: 0.090 seconds
