Handing back Values from called M-Code into G-Code
04 Mar 2016 15:30 #71036
by PicassoCT
Handing back Values from called M-Code into G-Code was created by PicassoCT
Hi LinuxCnc Comunity,
i have a question- can i give back arguments from called M-Code into G-Code? If yes how?
Regards Picasso
i have a question- can i give back arguments from called M-Code into G-Code? If yes how?
Regards Picasso
Please Log in or Create an account to join the conversation.
04 Mar 2016 23:50 #71066
by andypugh
Replied by andypugh on topic Handing back Values from called M-Code into G-Code
What language is the M-code written in?
I think there might be a neat way, but two hacky ways.
halcmd setp motion.analog-in-00 1234.55667 followed my an M68 in the G-code
Alternatively halcmd setp a HAL pin and use the #<_hal_pin.name> format to read it.
linuxcnc.org/docs/2.7/html/remap/remap.h...i_file_configuration
I think there might be a neat way, but two hacky ways.
halcmd setp motion.analog-in-00 1234.55667 followed my an M68 in the G-code
Alternatively halcmd setp a HAL pin and use the #<_hal_pin.name> format to read it.
linuxcnc.org/docs/2.7/html/remap/remap.h...i_file_configuration
Please Log in or Create an account to join the conversation.
05 Mar 2016 13:38 #71083
by PicassoCT
Replied by PicassoCT on topic Handing back Values from called M-Code into G-Code
Bash is the language called as M-Code
So im getting a analgo port and set it, and use this to communicate ? Okay, thanks.
There is no way, to push arguments to the gcodes stack?
So im getting a analgo port and set it, and use this to communicate ? Okay, thanks.
There is no way, to push arguments to the gcodes stack?
Please Log in or Create an account to join the conversation.
05 Mar 2016 15:18 #71086
by andypugh
Not that I know of, but I don't know everything.
Replied by andypugh on topic Handing back Values from called M-Code into G-Code
There is no way, to push arguments to the gcodes stack?
Not that I know of, but I don't know everything.
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds