omron — CALLP program instruction

CALLP program instruction The CALLP instruction calls the program pointed to by the real variable var . This variable should have been obtained by using the SYMBOL.PTR function. If the value of var is zero, no program is called, and no error is reported. If var does not contain a valid pointer, program execution stops with error -406 (*Undefined program or variable name*). Example Instructions such as the following are executed in the initialization section of the application program: my.pgm.ptr[1] = SYMBOL.PTR("my.program.1") my.pgm.ptr[2] = SYMBOL.PTR("my.program.2") Then, in the repetitive section of the application program, the following is executed:

CALLP my.pgm.ptr[index](parm1, parm2) Related Keywords CALL program instruction CALLS program instruction $SYMBOL string function SYMBOL.PTR real-valued function eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 113