omron — Example

V+ Remote Library Documentation Example .PROGRAM ex1.rm.log() AUTO REAL status CALL rm.pc.log("Robot 1", "Message To Log", 1, status) IF (status TYPE "Failure to append to AceServer log: ", status END .END rm.read.anums($objects[], $variables[], wait.time, values[], status) Abstract Read a list of numeric property variables associated with multiple objects on the PC. The variable referenced must all be numeric types. Input Parameters Parameter Description $objects[] The name of the remote objects to access. This must include the full path name of the object to access. e.g.

"/directory/Robot 1" $variables[] The name of the variables to access wait.time The amount of time to wait for the execution to complete Output Parameters Parameter Description values[] The values of the variables status Status of the operation: 0 = success, Example .PROGRAM ex1.rm.vars.ns() AUTO $object, $objects[1], $variables[1] AUTO REAL values[1], status ; Read multiple values from multiple properties of the same object $object = "/Numeric Variable" $variables[0] = "Current Value" $variables[1] = "IsBoolean" CALL rm.read.nums($object, $variables[], 1, values[], status) IF (status TYPE "Unable To Read Value:

", status PAUSE END TYPE $variables[0], " = ", values[0] TYPE $variables[1], " = ", values[1] ACE Reference Guide, 18317-000 Rev A Page 827