omron — Input Parameters

V+ Remote Library Documentation wait.time The amount of time to wait for the execution to complete value The value of the variable Output Parameters Parameter Description status Status of the operation: 0 = success, Example .PROGRAM ex1.rm.vars.n() AUTO $object, $variable AUTO REAL value, status ; Write a value of 10 to the numeric variable in the workspace $object = "/Numeric Variable" $variable = "CurrentValue" value = 10 CALL rm.write.num($object, $variable, 1, value, status) IF (status TYPE "Unable To Write Value: ", status PAUSE END ; Read the variable and ensure it is the same value CALL rm.read.num($object, $variable, 1, value, status) IF (status TYPE "Unable To Read the Value:

", status PAUSE END TYPE "The update did not succeed" PAUSE END .END IF (value 10) THEN rm.write.nums($object, $variables[], wait.time, values[], status) Abstract Set the values of an array of numeric properties associated with an object on the PC. The property variables referenced must all be of a numeric type. Input Parameters Parameter Description $object The name of the remote object to access. This must include the full path name of the object to access. e.g. "/directory/Robot 1" $variables[] The names of the variables to access ACE Reference Guide, 18317-000 Rev A Page 835