Notifications
Clear all

GPIO and parameter names  

  RSS
LarGriff
(@largriff)
Reputable Member
GPIO and parameter names

Is there a list of valid parameter names that can be referenced by gcode in communication with the GPIO board?  For instance, I want to press a couple of buttons to enable/disable “Ready Mode” and I’d like an output to turn on a light when “Ready Mode” is active.  Where would I find a reference of all available parameters?  Thanks.

MK4S/MMU3

Posted : 31/01/2025 4:36 am
_KaszpiR_
(@_kaszpir_)
Noble Member
RE: GPIO and parameter names

https://help.prusa3d.com/article/gpio-module_734695

There is a section about setting pin state via gcode

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 31/01/2025 9:20 am
LarGriff
(@largriff)
Reputable Member
Topic starter answered:
RE: GPIO and parameter names

Thanks.  I’ve read the GPIO page.  Very sparse information there.  My question is more about parameter names within PrusaSlicer that can be used with GPIO gcode.

Sorry about the double posts.  The forum search was a dead end.

MK4S/MMU3

Posted : 31/01/2025 2:15 pm
_KaszpiR_
(@_kaszpir_)
Noble Member
RE: GPIO and parameter names

You cannot do too much because gcode will be baked in and anything needs to be as triggering gpio pin (output) or executing gcode script from the pendrive if given gpio is triggered (input).

Also some printers do not support certain commands on the firmware, so the question is what do you want to do exactly.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 31/01/2025 2:20 pm
LarGriff
(@largriff)
Reputable Member
Topic starter answered:
RE: GPIO and parameter names

I want to turn on a GPIO output based on the “ready” state of the printer.

MK4S/MMU3

Posted : 31/01/2025 3:27 pm
QMcMurray
(@qmcmurray)
Active Member
RE: GPIO and parameter names

I think that we are try do do the same thing.

I'm thinking that that the M72 command can be used for what you're trying to do but I'm having issues understanding it.

https://help.prusa3d.com/article/prusa-firmware-specific-g-code-commands_112173#m-commands

It doesn't have a lot of information on how to use it though. 

 

Posted : 01/02/2025 3:52 am
1 people liked
LarGriff
(@largriff)
Reputable Member
Topic starter answered:
RE: GPIO and parameter names

Welcome to the bleeding edge!

There’s also this OTHER list of gcode commands.   https://help.prusa3d.com/article/buddy-firmware-specific-g-code-commands_633112

I THINK the buddy specific version applies here but it doesn’t even mention M72.

Posted by: @qmcmurray

I think that we are try do do the same thing.

I'm thinking that that the M72 command can be used for what you're trying to do but I'm having issues understanding it.

https://help.prusa3d.com/article/prusa-firmware-specific-g-code-commands_112173#m-commands

It doesn't have a lot of information on how to use it though. 

 

 

MK4S/MMU3

Posted : 01/02/2025 3:00 pm
QMcMurray
(@qmcmurray)
Active Member
RE: GPIO and parameter names

Thanks! 

That's a good point. I didn't consider that there would be a difference between the two lists.

Looking at the page, there's a note right at the top for what printers use what firmware. 

They're almost the same, which is frustrating, and nothing that I can see will set the printer stratus via gcode.

Posted : 02/02/2025 3:04 pm
LarGriff
(@largriff)
Reputable Member
Topic starter answered:
RE:

I got an email from customer support today saying there is no way to read the Ready status with gcode, but you can Set Ready with M1200.  No documentation or examples were supplied and I haven’t tried it, but FYI.  Good luck!

MK4S/MMU3

Posted : 02/02/2025 3:44 pm
1 people liked
QMcMurray
(@qmcmurray)
Active Member
RE: GPIO and parameter names

Thanks for the Info! 

That'll help with my project.

If I discover anything to read or Set the printer status I'll be sure to report back!

Posted : 02/02/2025 3:47 pm
2 people liked
Valjuvic_2
(@valjuvic_2)
Member
RE:

Happy to have found this thread, was looking for this.
I tried the M1200 without success on a prusa mini, any success on your side ? 

Posted : 24/02/2025 6:44 pm
Share: