Hello Guest it is April 13, 2021, 08:36:47 AM

Author Topic: A Get It Out Of The Way button???  (Read 6866 times)

0 Members and 1 Guest are viewing this topic.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #20 on: August 11, 2014, 09:31:42 AM »
Ok, then it seems not.

Machscreen seems to have no multiline control either.


Its working anyway so that's what counts.


One last point on this button, is it possible to code it as a "toggle" feature :-

Press once to park the gantry
Press again to return to X & Y zero positions.

Just wondering :)

I'm guessing it would need to toggle an LED on/off and check the state of that LED first????


Dave
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: A Get It Out Of The Way button???
« Reply #21 on: August 11, 2014, 09:49:15 AM »
You could do it with the LED or you could also have it look at the Y position in machine coords and if it is at Y600 then do the move you want.

Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #22 on: August 11, 2014, 10:24:29 AM »
Ok

I have added another if-then-else loop which checks GetOemDRO(84) for a position >599

that makes sense to me as even if i tell it to go to 600 it seems to stop around 599.99995

BUT

what is the code to actually move the gantry X & Y to the Origin or work zero co-odinates??

I cant see a move command in the books, probably looking for the wrong thing, or is it coded as something else???

Basically the same as GotoZ but only on X & Y.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #23 on: August 11, 2014, 10:45:40 AM »
I tried a G28 X0 Y0 but that moved first to my chosen point and then moved swiftly on to machine zero point?

Is there a way to stop it at the work zero or origin point???
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Hood

*
  •  25,838 25,838
  • Carnoustie, Scotland
    • View Profile
Re: A Get It Out Of The Way button???
« Reply #24 on: August 11, 2014, 11:53:10 AM »
Code "G0X0Y0"

Will send it to the offset zero position.

Might also be worthwhile putting a

While IsMoving()
Wend

After any code that moves an axis, especially if you have further commands after it.



Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #25 on: August 11, 2014, 03:04:02 PM »
As simple as that :)

Excellent and many thanks again for the speedy help.

Dave
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: A Get It Out Of The Way button???
« Reply #26 on: August 12, 2014, 03:07:35 AM »
Code added, works exactly as i wanted - press once gets the gantry out the way, press again returns to work zero.

A very useful button indeed :)


Thanks for the help.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.