omron — Example

V+ Remote Library Documentation Output Parameters Parameter Description status Status of the operation: 0 = success, Example .PROGRAM ex1.rm.appevt() AUTO REAL status CALL rm.app.event(101, 1, status) IF (status TYPE "Unable To Send Event Code:

", status PAUSE END .END rm.chk.server(is.alive) Abstract Check to see if the ACE server is running Input Parameters None Output Parameters Parameter Description is.alive Is the server alive Example .PROGRAM ex1.rm.ex() AUTO REAL is.alive AUTO REAL args[0], status AUTO $object, $method ; Check to see if communications with the PC is active CALL rm.chk.server(is.alive) IF (is.alive == FALSE) THEN TYPE "Not Communicating" PAUSE END ; Execute a script on the server and wait for 3 seconds for it to complete $object = "/C# Program" $method = "Execute" CALL rm.execute($object, $method, 0, $args[], 3, status) IF (status TYPE "Problem executing script:

", status ACE Reference Guide, 18317-000 Rev A Page 815