I had some problems with my routine, as i mentioned in my last post. I got my program down to one error when it is compiling. Line 26, I'm trying to END the program, don't understand why it keeps expecting a line.
I'm new to KAREL but I need to develop some programs to monitor certain group I/Os sent from a PLC. (We're using PROFIBUS)
If anyone can point out the errors in the program and give some advice I would apreciate it. This is just a small example I'm trying to get going to learn more about KAREL as i go.
--------------------------------------
PROGRAM move_prg1
VAR
prog_name: STRING[5]
prog_indx: INTEGER
ROUTINE tp_call
BEGIN
CALL_PROG (prog_name, prog_indx)
END tp_call
BEGIN
prog_name = 'PRG1'
CONDITION[1]:
WHEN GOUT[2] = 2 DO
tp_call
ENABLE CONDITION[1]
END move_prg1
----------------------------------------