Working further one we came to another problem while writing a combined program for various userframes(further: UF). When loading the program on TP it stops working around specific point where the UF is different. What might be the problem and how could we fix that? (I have added the example of the program)
4: UTOOL_NUM[GP1]=2 ;
5: UFRAME_NUM[GP1]=3 ;
:J P[11413] 10% FINE ;
:L P[1413] 20mm/sec FINE ;
:L P[11413] 20mm/sec FINE ;
:CALL K3T;
: UFRAME_NUM[GP1]=2 ;
:J P[21112] 10% FINE ;
:L P[2112] 2000mm/sec FINE ;
:L P[21112] 2000mm/sec FINE ;
:CALL L1T;
:CALL Uf1kalt;
: UFRAME_NUM[GP1]=3
:J P[31101] 100% FINE ;
:L P[3101] 2000mm/sec FINE ;
:L P[3101] 2000mm/sec FINE ;
Another question. In the section where coordinates are written(in the notepad) in a program there's configs ('CONFIG...') and few letters and numbers besides it. We've found that they change when we change 'flip', 'unflip', 'up' etc under 'current position' tab in TP. The question would be what exactly do they mean/do and how do they work?
And the third question would be about "registry" in a program. We want to write an if condition where it would only read few lines and skip all of the other ones. Then come back to this macro and skip the first one and read only the second one. To do so we've an idea using LBL to number the few lines and JUMP to jump to the end of a program to the registry thing. The idea is this: we call a macro, it reads few lines where the LBL is 0, then jumps to the end (LBL 999) and the register the number R[1]=R[1]+1 so it becomes 1. After that, we do some other macros, call this one again, an IF condition at the start reads the registry number and sends us to specific LBL. How does the Registry part work? And does this logic work on roboguide language.
All the help is appreciated! Thank you!
Kind regards,
Tadas