Hello Guest it is February 25, 2021, 05:38:35 PM

Author Topic: Mach3 Conveyor belt  (Read 268 times)

0 Members and 1 Guest are viewing this topic.

Offline LG

*
  •  3 3
    • View Profile
Mach3 Conveyor belt
« on: July 20, 2020, 09:22:33 AM »
Hello Fellow Forum Users,

I'm new to Mach3 and I have a Question, I use the Mach3 Motion Card to move a conveyor belt (X-Axis) and it works perfectly fine, as long as I want it to move to a certain position. Now my Question is, how do I make it stop and execute a macro as soon as it reaches a photoelectric barrier?

Ah and how can I make the G-Code repeat itself? Let's say we want to do more than one piece and don't want to press "Cycle Start" each and every time.

Greetings
LG
« Last Edit: July 20, 2020, 09:28:07 AM by LG »

Offline TPS

*
  •  1,983 1,983
    • View Profile
Re: Mach3 Conveyor belt
« Reply #1 on: July 21, 2020, 06:54:18 AM »
for stopping the x-axis by a photocell i would use the G31 probing, because it is very precise.
you have to set up your photocel as the probe Input and a G31 X200 F200 will run you X-axis for
200 in positive direction and stop as soon probe Input Comes up.

by using the Getvar(2000) you can even go back to the exact Point of hitting the photocell, because you will
allways have a overrund due slow down ramp.

for running more Loops you can use M98
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline LG

*
  •  3 3
    • View Profile
Re: Mach3 Conveyor belt
« Reply #2 on: July 21, 2020, 07:27:56 AM »
Hallo TPS,

erstmal schon mal vielen Dank für deine Antwort, ich bin selbst auch aus Bayern, deshalb antworte ich mal auf Deutsch.
Das mit dem Probe Eingang probiere ich gleich mal, aber was das M98 angeht, das habe ich in meinem Mach3 gar nicht drin, hättest du da den Quellcode für mich?

Liebe Grüße
LG

Offline TPS

*
  •  1,983 1,983
    • View Profile
Re: Mach3 Conveyor belt
« Reply #3 on: July 21, 2020, 07:35:40 AM »
Servus,
M98 braucht kein spezielles Makro.
hier ein Code Beispiel:

Code: [Select]
F1000 (i.e. faster than possible but Mach3 will limit speed)
G20 G90 (Inch and Absolute)
M98 P1234 L50 (run subroutine 50 times)
M30 (stop)
O1234
G1 X4
G1 X0 (do a feed rate move and move back)
M99 (return)
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline LG

*
  •  3 3
    • View Profile
Re: Mach3 Conveyor belt
« Reply #4 on: July 21, 2020, 07:40:30 AM »
Danke dir,

probiere ich gleich mit aus wenn ich wieder am basteln bin!

Offline TPS

*
  •  1,983 1,983
    • View Profile
Re: Mach3 Conveyor belt
« Reply #5 on: August 04, 2020, 02:56:07 PM »
btw, was ist draus geworden?
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Mach3 Conveyor belt
« Reply #6 on: August 18, 2020, 05:48:53 PM »
This is actually good to read the content of this blog. here is very general and the huge knowledgeable platform has been known by this blog. I, in reality, appreciate this blog to have such kind of educational knowledge.I am sharing related topic which is mostly important for How to Generate. If you have time you can check  Charge cards | Everything You need to know