RobotStudio event

Error: ivalid program [WebWare SDK]

Hi.

We are setting up a communication software to save S4 robot program.

The software works properly with the virtual controller.

With the physical robot I have a TCPIP connection and I can see the robot state, etc.

The robot program is loaded and checked, the robot is in auto mode and the program itself is not running.

When I try to save the program from the physical robot I have always the error -2103 (invaild program), but we cannot know why.

Call is

o = Helper1.S4ProgramSave(0, "D:
obotprog.prg", 3, l)

Thanks

 

Davide

Comments

  • In the help file, the introduction to S4ProgramSave states "This method saves a RAPID program from a Program Controller to a file system local to the S4". In other words, this method only works with the robot controller file system.

    You must save the file to the flash disk or to a mounted drive first, then use S4FileCopy to move it to your PC.

    This method works on your VC because the VC uses PC paths rather than robot-style paths for saving files.

    RussD38652,6472222222
    Russell Drown