Hello Guest it is November 27, 2021, 07:37:09 AM

Author Topic: Mach3 outputs and inputs for loader robot  (Read 155 times)

0 Members and 1 Guest are viewing this topic.

Mach3 outputs and inputs for loader robot
« on: September 13, 2021, 11:03:03 AM »
I have a guy asking me how a parts loading robot could be used with Mach3.
The idea is that an output is triggered when the part it done to trigger the robots routine.  When it is done unloading a loading a new part, they need an input trigger to have mach3 rerun the Gcode.

Does anybody have an idea how to make this happen?  This is outside of my wheelhouse.  So I am looking for suggestions.

Offline Graham Waterworth

*
  • *
  •  2,419 2,419
  • Yorkshire Dales, England
    • View Profile
Re: Mach3 outputs and inputs for loader robot
« Reply #1 on: September 13, 2021, 05:11:42 PM »
You can create some M codes to turn on and output and then wait for the input etc.

Without engineers the world stops
Re: Mach3 outputs and inputs for loader robot
« Reply #2 on: September 22, 2021, 12:26:20 PM »
lets pretend that I am an idiot.   What would an example of something like this look like?

Offline Graham Waterworth

*
  • *
  •  2,419 2,419
  • Yorkshire Dales, England
    • View Profile
Re: Mach3 outputs and inputs for loader robot
« Reply #3 on: September 23, 2021, 08:05:02 AM »
This could be the end of your main program:-

G00 X250. Z250.
M1025 (call robot)
M1026 (do op2)
M1027 (do op3)
Etc
M30

The macro could look like this and be stored in the macro folder for the profile in use.

M1025.m1s
Activatesignal(OUTPUT1)
' Wait for ack
While (Not IsActive(INPUT1))
  Sleep(15)
Wend
end

You then set up more macros to do the operation.

Without engineers the world stops
Re: Mach3 outputs and inputs for loader robot
« Reply #4 on: September 24, 2021, 10:36:53 AM »
Graham,

Thank you sir for your time and knowledge.

I am going to see if I can get something mocked up and trigger outputs.

Again, thank you.  This is for a client of mine and I have never had to do something like this before.