I'm trying to write a KAREL program that will create a TP program and populate it with a bunch of motion commands. The problem I'm having is it seems like there's a way to make a TP program (CREATE_TPE), but no way to add new lines or instructions to it. So what's the point of that command? I can modify existing motion commands with the SET_POS_TPE, but not create new points. So I tried to just create an LS file and use position registers to make it easy, but I keep running into problems with the /ATTR section of the program causing ASBN-002 syntax errors when loading.
Anybody done something like this? I know there's got to be a command set for it, because FANUC has KAREL programs that basically do this.