Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Merging the code of subprogram in the main program

#1
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/secCNT1 ;
23:L P[4]10mm/secFINE;
24:CALL srm1 ;
25:L P[5]10mm/secCNT1 ;
26:L P[6]1000mm/secCNT1 ;
27:L P[7]10mm/secFINE;
28:CALL srm1 ;
29:L P[8]10mm/secCNT1 ;
30:L P[9]1000mm/secCNT1 ;
31:L P[10]10mm/secFINE;
32:CALL srm1 ;


它是possible to avoid the program call and merge the code of the srm1 to the main program code?

(Inline subprograms is checked)


Messages In This Thread
Merging the code of subprogram in the main program - byMareli- 12-14-2021, 01:06 PM



Users browsing this thread:
1 Guest(s)