Page 1 of 1

INVALID_ZERO_NEG_CONSTRAINT error while running 5 axis G code

Posted: Sat Dec 18, 2021 9:29 am
by AmitKumar171
Hi Tom,

I am using Kflop+Konnect for my 5 Axis cnc machine.

I am facing strange problem (INVALID_ZERO_NEG_CONSTRAINT) while running attached g code.

I have attached the trajectory planner settings and G code in which i am facing the error. Even i tried increasing decimal in g code as well but still facing same error.

Please help me in finding the error and how to fix the same.

Waiting for kind reply.

Re: INVALID_ZERO_NEG_CONSTRAINT error while running 5 axis G code

Posted: Sat Dec 18, 2021 10:22 pm
by TomKerekes
Hi Amit,

That error shouldn’t come from GCode. It indicates a Move command from a C Program with a Max Velocity of 0. The C Program causing error might be invoked by an MCode within the GCode.

What line of GCode causes the error?

What C Programs are being invoked?

Re: INVALID_ZERO_NEG_CONSTRAINT error while running 5 axis G code

Posted: Mon Dec 20, 2021 7:20 am
by AmitKumar171
Hi tom,

Thanks for the earlier reply.

Only INIT file is running in thread - 1 , which has soft limit program attached with it (Soft limit is defined in axis definition files and checkdistancetostop also running in infinite for loop).

So does that soft limit making that error?

Waiting for kind reply.

Re: INVALID_ZERO_NEG_CONSTRAINT error while running 5 axis G code

Posted: Mon Dec 20, 2021 6:56 pm
by TomKerekes
Hi Amit,

Please post your INIT C Program.

What line of GCode causes the error?