- Posts: 2
- Thank you received: 0
Handing back Values from called M-Code into G-Code
10 years 7 months ago #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 to join the conversation.
10 years 7 months ago #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 to join the conversation.
10 years 7 months ago #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 to join the conversation.
10 years 7 months ago #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
PicassoCT wrote: 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 to join the conversation.
Time to create page: 1.005 seconds
