12-14-2021, 01:06 PM
Hi,
I made point follow project for scanning tool. In the program events I am calling python program to get different orientations of the tool on each point.
On simulation everything runs fine. I have all the orientation and movements I need. The problem comes when generate the tp program. Instead of rough code I get "call srm1" (srm1 is the name of the python program). I don't need to call sub program. I need to output the real cntent of the srm1 in the main program.
21:J P[2] 20% CNT1 ;
22:L P[3] 1000mm/sec CNT1 ;
23:L P[4] 10mm/sec FINE ;
24: CALL srm1 ;
25:L P[5] 10mm/sec CNT1 ;
26:L P[6] 1000mm/sec CNT1 ;
27:L P[7] 10mm/sec FINE ;
28: CALL srm1 ;
29:L P[8] 10mm/sec CNT1 ;
30:L P[9] 1000mm/sec CNT1 ;
31:L P[10] 10mm/sec FINE ;
32: CALL srm1 ;
Is it possible to avoid the program call and merge the code of the srm1 to the main program code?
(Inline subprograms is checked)
I made point follow project for scanning tool. In the program events I am calling python program to get different orientations of the tool on each point.
On simulation everything runs fine. I have all the orientation and movements I need. The problem comes when generate the tp program. Instead of rough code I get "call srm1" (srm1 is the name of the python program). I don't need to call sub program. I need to output the real cntent of the srm1 in the main program.
21:J P[2] 20% CNT1 ;
22:L P[3] 1000mm/sec CNT1 ;
23:L P[4] 10mm/sec FINE ;
24: CALL srm1 ;
25:L P[5] 10mm/sec CNT1 ;
26:L P[6] 1000mm/sec CNT1 ;
27:L P[7] 10mm/sec FINE ;
28: CALL srm1 ;
29:L P[8] 10mm/sec CNT1 ;
30:L P[9] 1000mm/sec CNT1 ;
31:L P[10] 10mm/sec FINE ;
32: CALL srm1 ;
Is it possible to avoid the program call and merge the code of the srm1 to the main program code?
(Inline subprograms is checked)