Hello Guest it is March 28, 2024, 12:12:58 PM

Author Topic: MDI-ing work offset  (Read 3566 times)

0 Members and 1 Guest are viewing this topic.

Offline mvoros

*
  •  141 141
    • View Profile
MDI-ing work offset
« on: August 21, 2013, 02:56:27 PM »
Hi You All,
Well, so far so good on the spindle staring when Mach is closed. It doesn't do that any more. Keeping my fingers crossed. The issue now is with MDI-ing G54 G90 G00 G21 X0 Y0, the machine doesn't move.  I can MDI spindle start and stop, didn't try anything else, only moving to set zero by MDI. Can someone tell me what parameter I missed.
Mike

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: MDI-ing work offset
« Reply #1 on: August 21, 2013, 04:19:50 PM »
If the machine is already at X0Y0 then it will not move. You also to set zero, are you meaning to move to zero or are you trying to set that position as zero?
Personally I would not have it all on one line either, I would at least have the G0X0Y0 on a seperate line, ie MDI the G90 etc first then the G0.
Hood

Offline mvoros

*
  •  141 141
    • View Profile
Re: MDI-ing work offset
« Reply #2 on: August 21, 2013, 05:11:18 PM »
Hood,
Thanks for picking up on it. What I mean is, after establishing (setting) the X,Y,Z zero, than moving away from that position, I should be able to by MDI go back to that set position, as Mach remembers the work zero offset. The code that I used, I have been using it in the same format for many years, not just on Mach controlled machines, but industrial ones also. The problem is, that there is no movement after I hit enter. This never happened to me before.
Mike

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: MDI-ing work offset
« Reply #3 on: August 21, 2013, 05:35:36 PM »
You should be seeing motion, not sure why you are not.
Do you get any error message when you MDI?
Hood

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: MDI-ing work offset
« Reply #4 on: August 21, 2013, 05:36:08 PM »
As a referrence it works fine here

IF I am in another Fixture offset say G55 and I want to move back to G54 and be at X0Y0 then
G54 G0 X0 Y0 G90 G20    Reset the Fixture offset to G54 then Moves to the X0Y0 position

IF I am in the same Fixture OFFSET say G54 then want to move to X0Y0 then you can do the same call BUT all you  need to do is
 G0 X0 Y0 AND G54 G90 G20 G0 X0 Y0 will work but is a lot of longhand (;-)

NOW that is with the LPT driver running, A motion card MAY be different depending on the plugin.

Just a thought, (;-) TP

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: MDI-ing work offset
« Reply #5 on: August 21, 2013, 05:42:22 PM »
Quote
NOW that is with the LPT driver running, A motion card MAY be different depending on the plugin.

Should be exactly the same with the motion controller TP or at least any I have tried as they are just getting motion commands from Machs planner.
It also works fine for me here testing with SS so  I have no idea why Mike is not getting anything unless there is an error being displayed for some reason.
Hood