PDA

View Full Version : PROBLEM WITH G41 FUNTION ON DECKEL FMAP



IlFincoITA
10-13-2011, 08:41 AM
Hi! I have got some problem understending some errors related to G41 function. Here is the code i've done in a piece of program.

N0130T2
N0135S+500
N0140G0G40X-10393Y+1928
N0145G0Z+3000D+01
N0150G1Z-12500D+01F3125
N0155G41D+51X-7221Y+19032F125
N0160G3X-7223Y+19050I-0030J+0006
N0165G2X-6107Y+27540I+7223J+3369
N0170G2X-3042Y+28970I+3065J-2570
N0175G1X+3042Y+28970
N0180G2X+6107Y+27540I+0000J-4000
N0185G2X+7223Y+19050I-6107J-5121
N0190G3X+7221Y+19032I+0027J-0013
N0195G1X+9384Y+7369
N0200G2X+17540Y+6107I+3036J-7369
N0250G2X+18970Y+3042I-2570J-3065
N0260G1X+18970Y-3042
N0265G2X+17540Y-6107I-4000J+0000
N0270G2X+9050Y-7223I-5121J+6107
N0275G3X+9023Y-7223I-0013J-0027
N0280G1X+4873Y-9380
N0285G2X-10393Y+1928I-4873J+9380
N0290G0Z+50000D+01
N0295 S0 T0
N0300 M30

As soon I started to run this program it comes out with error in N0140 wich seems to be the G0G40 because if I delete the G40 the program start to run. After few seconds another error comes out that is in N0290 wich apparently has no problem. The only way to let it run is to delete G41 in N0155.

The program finally runs but without any tool compensation. I'm not able to see where is the problem... could anyone help me? Thankx a lot...

txcncman
10-13-2011, 08:55 AM
If you wish to cancel cutter comp at the beginning, it probably needs to be on a line by itself (meaning not with a X, Y, or Z movement).

I am not sure I understood the other problem.

IlFincoITA
10-13-2011, 09:48 AM
The other problem is in N0155G41D+51X-7221Y+19032F125 where G41 requires G60 and M61 to activate the cutter comp. Is it correct? i'll try tomorrow

txcncman
10-13-2011, 10:34 AM
G60 is normally for unidirectional positioning. I do not know if this is needed for your machine control or not. M61 is a machine function code that would be specific for your machine also.

As noted in another forum thread, the line that the control stops on is not usually the line with the error. Most machines have a "look ahead" feature that read 3 to 10 lines ahead of the line that is actually running. You really have to look at the error code and associated error message to determine the cause. Having the manuals for the machine at hand is almost a necessity.

uli12us
05-12-2012, 06:52 PM
txcncman is right, you should read 2-5 lines after the line in which the machine stops.
G40 at the beginning of the prog makes nothing, because thats the standard function.
For activation and deactivation of toolcorrection you can only use a linear ipo.