read ini values in NGCGUI routine?
- cts1085
- Offline
- Senior Member
Less
More
- Posts: 54
- Thank you received: 3
09 Apr 2017 18:54 #91091
by cts1085
read ini values in NGCGUI routine? was created by cts1085
Is there a way for code written to run inside of NGCGUI to read from the main ini file? for example: [X_Axis]HOME_OFFSET and pass that to a variable?
Just curious....
Thanks!
Just curious....
Thanks!
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
12 Apr 2017 10:42 #91235
by andypugh
Replied by andypugh on topic read ini values in NGCGUI routine?
You can read INI variables from G-code, so I think this should be possible (as a hand-written part).
linuxcnc.org/docs/2.7/html/remap/remap.h...i_file_configuration
linuxcnc.org/docs/2.7/html/remap/remap.h...i_file_configuration
The following user(s) said Thank You: cts1085
Please Log in or Create an account to join the conversation.
- cts1085
- Offline
- Senior Member
Less
More
- Posts: 54
- Thank you received: 3
12 Apr 2017 12:22 #91240
by cts1085
Replied by cts1085 on topic read ini values in NGCGUI routine?
Perfect - this is exactly what I was looking for!
Please Log in or Create an account to join the conversation.
Time to create page: 0.105 seconds