Hello Guest it is April 25, 2024, 07:59:00 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - hamettal

Pages: 1
1
General Mach Discussion / homing slave axis problem (...and more)
« on: November 06, 2015, 12:15:26 PM »
Hi everybody!
i'm having a homing problem with my Slave Axis(A)...
( i have one home switch for each axis) when i hit the all-ref button X & A axis moves toward  home position, A axis hits first the home switch and starts moving away even if the X axis never touched the home switch... and the X axis never moves to the switch....

i need both axis to find the switches and i tried almost everything in the forum but i still can't make it work.
all My switches are in series to the same pin (i tried wiring the A axis in paralel but nothing happened)

i don't know what i am doing wrong...  :'( :'( :'( :'( :'( :'( :'(

i also want to know if it is possible to run a macro that send the reset signal everytime i open mach3
i want to load my programs and push the reset button with the same macro in the initialization string, this is what i got but didn't work (still have to click on the reset button to autolad)
 
Const ResetButton = 1021
 DOButton (ResetButton)
 Loadfile("C:\mach3\Gcode\drilling4scr.txt")
End




thanks !



2
i am having so many problems since i can't find too much information about the IF conditions topic (and i'm just too dumb to understand what i have read before) .

I need to find a way to set a condition that IF i pause my code it can return to a determined line (GOTO) when i start it again

Let's say i am trying to screwing 3 allen bolts with a pneumatic screwer. This screwer sends a fault to a PLC when it doesn't found a bolt, i set the PLC to send a signal to MACH3 to pause the program when the screwer didn't screw the bolt (to let me or the user verify if there is a bolt missing) . But When i push the start button, the program will run  from the next line and i need to repeat the previous line to screw the bolt i just set up
 
thank you and sorry for my bad english haha

Pages: 1