Handing back Values from called M-Code into G-Code

More
10 years 7 months ago #71036 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

Please Log in to join the conversation.

More
10 years 7 months ago #71066 by andypugh
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

Please Log in to join the conversation.

More
10 years 7 months ago #71083 by PicassoCT
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?

Please Log in to join the conversation.

More
10 years 7 months ago #71086 by andypugh

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
Powered by Kunena Forum