signal to global variable
- pruskovics
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
17 May 2010 14:05 #2881
by pruskovics
signal to global variable was created by pruskovics
Hello Everybody,
I am new to this forum, but I am using EMC since several years.
The knowledge about it getting more and more....
Now I try to make my life easier, but can not solve the problem:
I was create a pyvcp panel with a spinbox, working correcly, also i can se the signal is changing, when I spin it.
The question is, it is possible to use the setted valule inside the g-code?
Forexample for repeat?
Like
repeat [#1]
Thanks your suggestions..
Regards:
Peter
I am new to this forum, but I am using EMC since several years.
The knowledge about it getting more and more....
Now I try to make my life easier, but can not solve the problem:
I was create a pyvcp panel with a spinbox, working correcly, also i can se the signal is changing, when I spin it.
The question is, it is possible to use the setted valule inside the g-code?
Forexample for repeat?
Like
repeat [#1]
Thanks your suggestions..
Regards:
Peter
Please Log in or Create an account to join the conversation.
17 May 2010 15:57 #2883
by andypugh
Replied by andypugh on topic Re:signal to global variable
pruskovics wrote:
Yes, I use a set of combo-boxes to set finish diameter, cut, feed and speed on my lathe. I generally use the same G-code to do all the lathe work in semi-auto mode.
You need to wire the spinboxes to motion.analog-in-00 and so on:
www.linuxcnc.org/docview/devel/html//man/man9/axis.9.html
(You can add extra analog input channels if you need to with a "num_aio" parameter in the loadrt motmod line
www.linuxcnc.org/docview/devel/html//man/man9/axis.9.html
You can then read the values in to the G-code using M66
www.linuxcnc.org/docview/html//gcode_mai...ec:M66-Input-Control
That passes the value into #5399 from where you can copy it into a variable of your choice.
The question is, it is possible to use the setted valule inside the g-code?
Yes, I use a set of combo-boxes to set finish diameter, cut, feed and speed on my lathe. I generally use the same G-code to do all the lathe work in semi-auto mode.
You need to wire the spinboxes to motion.analog-in-00 and so on:
www.linuxcnc.org/docview/devel/html//man/man9/axis.9.html
(You can add extra analog input channels if you need to with a "num_aio" parameter in the loadrt motmod line
www.linuxcnc.org/docview/devel/html//man/man9/axis.9.html
You can then read the values in to the G-code using M66
www.linuxcnc.org/docview/html//gcode_mai...ec:M66-Input-Control
That passes the value into #5399 from where you can copy it into a variable of your choice.
Please Log in or Create an account to join the conversation.
- pruskovics
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
18 May 2010 06:39 #2892
by pruskovics
Replied by pruskovics on topic Re:signal to global variable
Hello,
Thank you, for your help !!
This method is working properly !!!!!
The ports are checked during running time and the #5399 value are set to 0 when you load the ngc (predraw).
Thanks once more !!
Regards:
Peter
Thank you, for your help !!
This method is working properly !!!!!
The ports are checked during running time and the #5399 value are set to 0 when you load the ngc (predraw).
Thanks once more !!
Regards:
Peter
Please Log in or Create an account to join the conversation.
Time to create page: 0.187 seconds