Hello Guest it is April 19, 2024, 11:35:56 AM

Author Topic: macropump problem  (Read 3511 times)

0 Members and 1 Guest are viewing this topic.

Offline spnar

*
  •  53 53
  • Little workshop on a little island
    • View Profile
macropump problem
« on: January 27, 2014, 10:09:56 AM »
Hi
Why dose Mach stop responding to keyboard commands for axis movement when i activate a macropump.
The macropump i installed is very simple.

A=getdro(3)
Z=getdro(2)
If A/360 = Int(A/360)
Then
 L=Z+0.1
Else
 L=Z
Endif
code "G1 Z"& L

Any help appreciated :)
Re: macropump problem
« Reply #1 on: January 27, 2014, 11:07:12 AM »
looking at this(and i know nothing) the code "G1 Z"& L.
g1 needs a feed rate. hope this helps
and i hope i'm right :)
Kenneth

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: macropump problem
« Reply #2 on: January 27, 2014, 11:34:40 AM »
I don't think you should be commanding movement from the macropump. If you remove the last line, can you then jog?
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: macropump problem
« Reply #3 on: January 27, 2014, 12:03:09 PM »
Executing movement from a macropump is a no no. Executing movement from a macropump whilst you're commanding movement elsewhere (your code implies A is moving) is a no no no.

Offline spnar

*
  •  53 53
  • Little workshop on a little island
    • View Profile
Re: macropump problem
« Reply #4 on: January 27, 2014, 12:04:43 PM »
Hi

Kenneth Yes in fact the macro is intended to move the Z axis down by 0.1mm per rev of the Aaxis.

ger21 Will try to remove last line and see what happens.

Can you suggest what i can do. As above i need to feed the Z axis by 0.1mm for every revolution of the A axis.
A axis is just permanently revolving under command from INPUT 1 hardwired to a switch. So program reads Aaxis DRO and at intervals of 360
feeds down the Z axis.

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: macropump problem
« Reply #5 on: January 27, 2014, 12:23:27 PM »
Try using Formulas, but you might run into other issues there.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html