Dear guys,
I'm coming to you again with another doubt.
I'm using KROSET to simulate a RS013N and KIDE to code programs in AS language.
When I try to use the instrution EXECUTE to call a program from my Main, it gives me the error P0111: Cannot use this command/instruction in current mode. This happens when I try to send the AS file to the robot (simulation).
My code looks something like this:
Code
.PROGRAM Main () ; Main Program
WHILE TRUE DO
; Call the communication program
EXECUTE Communication
; Do something in a loop
WHILE client_connected DO
; Execute commands
PRINT "Executing..."
END
; Do something else
TWAIT 1.0
END
.END
Display More
Basically, I am trying to run the program Communication and then enter the WHILE after it.
I assume it is something that has to do with the mode that has been set in KROSET. I have turned TEACH/REPEAT to REPEAT and also turned on the MOTOR...
Is there something I am missing?
Thank you so much again in advance.