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

More
04 Mar 2016 15:30 #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 or Create an account to join the conversation.

More
04 Mar 2016 23:50 #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 or Create an account to join the conversation.

More
05 Mar 2016 13:38 #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 or Create an account to join the conversation.

More
05 Mar 2016 15:18 #71086 by andypugh

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