RobotStudio event

Execute an string

Options

Hello,

I need an RAPID instruction for execute an string.

For example: EXECUTE "Stop;";

The EXECUTE instruction must interpret the text like an RAPID instruction.

Thanks to all,

Damia

 

Comments

  • RussD
    Options

    It sounds like you want to use RAPID late binding. You can search the RAPID help for more information, but the general syntax is:

    %"routine_x"%;

    where the information between the % % can be a string variable or a string literal.

    Russell Drown
  • addi
    Options

    I guess he (or she?) wants to execute an aribitrary RAPID statement including all parameters and semicolon, like a kind of command line interpreter.

    For example: EXECUTE "MoveL rTmp, spd, z0, tool0 WObj:=woTable;"

    AFAIK no such instruction exists and the needed functionality is far beyond what late binding can do.

    I'am sure you can easily build you own EXECUTE proc like PROC EXECUTE(STRING sCmd)... calling some basic commands, but parsing/analyzing of parameters would be an awful lot of work.

    regards, addi