Punch Press Gcode

More
9 years 4 months ago #94094 by AElmasry
Replied by AElmasry on topic Punch Press Gcode
Is this the right place to ask my question? If not someone help please to find the appropriate section of this forum

Please Log in to join the conversation.

More
9 years 4 months ago #94097 by andypugh
Replied by andypugh on topic Punch Press Gcode
It seems as good a place as any.
But I was away from LinuxCNC machines all weekend.

Please Log in to join the conversation.

More
9 years 4 months ago #94114 by AElmasry
Replied by AElmasry on topic Punch Press Gcode
Thanks andypugh
Waiting for you to get back

Please Log in to join the conversation.

More
9 years 4 months ago #94122 by andypugh
Replied by andypugh on topic Punch Press Gcode
I think that the trick is to include "modalgroup=1" in the REMAP line. Removing it certainly prevents remapping from working, despite the system stating that it will use the default of 1.
Code:
REMAP = G11 modalgroup=1 argspec=xy ngc=G11

If you want to put the g11.ngc file in the config directory (which is where I think it belongs) then you should use:
Code:
[RS274NGC] SUBROUTINE_PATH = ./ REMAP = g11 modalgroup=1 argspec=xy ngc=g11

You don't currently seem to be using the XY parameters. When you want to, you will need something like this to deal with the fact that X and Y are both optional;
Code:
O<g11> sub (DEBUG, #<x> #<y>) O100 IF [exists[#<x>]] O101 IF [exists[#<y>]] G1 X #<x> Y #<y> O101 ELSE G1 X #<x> O101 ENDIF O100 ELSEIF [exists[#<y>]] G1 Y #<y> O100 ENDIF M64 P1 M66 P0 L3 Q100 M64 P1 O<g11> endsub

I got in a bit of a tangle trying to see if G11 / g11 made a difference, and ended up with files of both names in both places,
But I figured that you would prefer to have the answer than have me spend an hour or so going through all possibilities.

Please Log in to join the conversation.

More
9 years 4 months ago #94126 by AElmasry
Replied by AElmasry on topic Punch Press Gcode
Thanks andypugh :)
I'll try and get back to you

Please Log in to join the conversation.

More
9 years 4 months ago #94165 by AElmasry
Replied by AElmasry on topic Punch Press Gcode
It show an error:
EOF in file (current executed ngc file)
Seeking o-word: o<g11> from line:0

I added your code before my gcode program and it worked very well.
Is this the right way to remap g11, put it's code inside every ngc file?

Note: it worked only with G11 not g11 in the REMAP =G11

Please Log in to join the conversation.

More
9 years 4 months ago #94171 by andypugh
Replied by andypugh on topic Punch Press Gcode

AElmasry wrote: I added your code before my gcode program and it worked very well.
Is this the right way to remap g11, put it's code inside every ngc file?


No, you should be able to put g11.ngc in the config directory, and then g11 is a new G-code.

Please Log in to join the conversation.

More
9 years 4 months ago #94174 by AElmasry
Replied by AElmasry on topic Punch Press Gcode
Ok, I'll check whats wrong.
I have another problem that sometimes the interpreter execuete next line before reach the desired position
For example
G11 x1500 y500
M64 p0 ( for punching)
Some times i get the punch at x1499 y500
Or x1500 y 499

How can i hold g1 or g11 till get exact position or not exceeding specific error ( 0.1 mm)

Please Log in to join the conversation.

More
9 years 4 months ago #94180 by Todd Zuercher
Replied by Todd Zuercher on topic Punch Press Gcode
Don't know if this is the answer, but is the machine set for G61.1 mode or the default G64 mode (or G61)?

Please Log in to join the conversation.

More
9 years 4 months ago #94181 by Todd Zuercher
Replied by Todd Zuercher on topic Punch Press Gcode
Also if it is a servo, is the dro set to actual or commanded postion?

Please Log in to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum