Hi,
I tried writing the karel code but it didn't compile and kept giving errors.
Can someone help me how to write the proper karel code for this.
Hi,
I tried writing the karel code but it didn't compile and kept giving errors.
Can someone help me how to write the proper karel code for this.
You should provide your faulty code, so someone can correct it. That's easier than writing whole code from scratch.
This line with [in] is some kind of Syntax describing. Always use the part from Example. May be the slash has to be a backslash.
As far as I understand the doc, there must exist a file on MC: with name 'list' that contains the names of TP programs that will be loaded.
Think it's not a good idea to name the own procedure the same name of the external routine.
Edit: forgotten ':' after MC. And changed / by \
As hermann already suggested, use :\ instead of / in your code. This is often a problem in FANUC manuals that the backslash is not correctly translated.
The referance for the code is available in manual (B-83274EN/02) "System Design Tool Operator's Manual" Chapter 5.
I'm attaching the screenshot so you guys can have a look at it and see if I'm missing any thing or doing something wrong.
Read the message from the KTRANS window. Your code is missing a BEGIN statement after the line PROGRAM EXT_LOAD1.
Read the message from the KTRANS window. Your code is missing a BEGIN statement after the line PROGRAM EXT_LOAD1.
I've tried that but then it gives another error. And the manual hasn't specified to use BEGIN in that code.
PROGRAM EXT_LOAD1
BEGIN
EXT_LOAD('MC:\LIST')
END EXT_LOAD1
Still the same error.
EXT_LOAD isn't a karel built in. I would use LOAD. Also, you will need the file extension if you want to load something ('MC:\list.tp' for example).
EXT_LOAD isn't a karel built in. I would use LOAD. Also, you will need the file extension if you want to load something ('MC:\list.tp' for example).
I'm attaching the example code fanuc have given in manual.
The file list is supposed to be made in a .DT file.
You're missing the "CALL"
Also, here's a related thread you might find helpful (or confusing): RE: Karel Program
That is a call from a teach pendant program to a compiled Karel program. While you can call other Karel programs from Karel, I don't think that is the intention here.
RTFM. You can call those System Design Tool functions only from TP programs, not from Karel programs. May be it is possible, and I haven't found it, but all examples in manual are with TP programs:
Addendum:
You can see the source code of exactly the function of EXT_LOAD in the 'KAREL Function OPERATOR'S MANUAL' in the chapter "4.4.2 Save,Delete, Load the Program Based on the List."
From there on you can build your own karel procedure according to your needs.
hi Darkknight1944,
This should work with Karel try:
LOAD('UD1:example.TP',1,status)
change "UD1" to your path "MD" or "UT1"...
Display Morehi Darkknight1944,
This should work with Karel try:
LOAD('UD1:example.TP',1,status)
change "UD1" to your path "MD" or "UT1"...
Hii R47, I tried your method it worked very straight forward for me.👍🏻
I'm writing the whole code below so it is simpler if anybody look for it in future.
You need to be a member in order to leave a comment