Reading input from ABB flexpendant

On ABB robots, one have access to a syntax in RAPID programming language called TPRead. TPRead allows the programmer to read live values from the user (operator) while your code is being run.

TPReadNum reg1,”Text”;

Code Example:
PROC readJNumFromPendant()
TPErase;
TPReadNum reg1,”Enter Input Number?”;
readValue := reg1;
TPWrite “Read Value is: ” + ValToStr(testRead);
ENDPROC

RAPID_refer4.0