Hello all,
I have newbie question: How to call subprograms?
I have to put a program to run on a KUKA LWR IV+.
In my program I have the following:
DEF program_name()
DECL INT myTool
DECL INT myBase
;set base and tool
myTool = 7
myBase = 1
BAS (#TOOL, myTool)
BAS (#BASE, myBase)
SubProgram("TOOL", myTool)
...
END
Where SubProgram is a subprogram that starts like this: DEF SubProgram(myFRAMETYPE:IN ,myTOOL_BASE_Nr:IN )
When I put it on the robot i have the following error: INVALID INPUT CHARACTER on the line:
SubProgram("TOOL", myTool)
Any help how to solve it?
And also...can anyone explain me what is the BAS function?
Thank you