omron — Example

V+ Remote Library Documentation Output Parameters Parameter Description status Status of the operation: 0 = success, Example rm.write.trns($object, $variable, wait.time, value, status) Abstract Set the value of a transformation property associated with an object on the PC. The property variable referenced must be of a Transform3D 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" $variable The name of the variable to access 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.t() AUTO $object, $variable AUTO REAL status AUTO LOC t.value ; Write a value of 10 to the transform variable in the workspace $object = "/Box" $variable = "OffsetFromParent" SET t.value = TRANS(10,10,10,0,0,180) CALL rm.write.trns($object, $variable, 1, t.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.trns($object, $variable, 1, t.value, status) IF (status TYPE "Unable To Read the Value: ", status PAUSE ACE Reference Guide, 18317-000 Rev A Page 838