Call the KAREL program with RUN in the TP program, and the RUN will say "prog-040" incorrectly.
Why is this happening?
RUN A_program
CALL B_program
a_KAREL in A_program Program
b_KAREL in B_program Program
This is what I want to achieve。
Call the KAREL program with RUN in the TP program, and the RUN will say "prog-040" incorrectly.
Why is this happening?
RUN A_program
CALL B_program
a_KAREL in A_program Program
b_KAREL in B_program Program
This is what I want to achieve。
Not real clear what you are asking here. For what it's worth, a CALL statement leaves the current program, runs the called program, then returns to where it left off in the initial program. A RUN statement executes a second program in parallel to the program that gave the RUN command, otherwise known as multitasking.
I think.
When using RUN multitasking, if KAREL is called, it will report error prog-040。
The error means that both programs are trying to perform motion tasks.
That is not allowed when it is the same motion group.
So Run is only allowed to perform calculations or for motion control of another group.
This is not the case.
If you don't call KAREL, you won't get an error.
This error is reported once KAREL is called.
I have the official Error List of FANUC right here in my hands, it says exactly what I mentioned. KAREL can also contain motion tasks.
My KAREL is just a signal judgment and there is no motion tasks。
Show me screenshots of the code please, because the explanation is not clear for me or the others. And show screenshots of A_program and B_program..
Not a KAREL guy at all, but does the group mask for one or both need to be changed to *,*,*,*?
My KAREL is just a signal judgment and there is no motion tasks。
If your Karel code does not contain the %NOLOCKGROUP in its compiler directive area, it will, by default, lock the first motion group. You can also verify this by looking at the details of your Karel program.
That's right, %NOLOCKGROUP.
Thank you for your reply