omron — Input Parameters

V+ Remote Library Documentation ; Append multiple lines in 1 call specifying the start index CALL rm.pc.fapps2($file, 0, 4, $lines[], 1, status) IF (status TYPE "Failure to append line on file: ", status END ; Copy the file from the PC to the controller $to.file = "DISK>D:\log.txt" CALL rm.pc.fcopy($file, $to.file, 3, status) IF (status TYPE "Unable to copy the file to the controller: ", status END ; List all files on the PC $file.spec = "C:\*.txt" CALL rm.pc.fdir($file.spec, 3, num.items, $items[], types[], status) IF (status TYPE "Unable to delete the file from the PC:

", status END FOR i = 1 TO num.items TYPE $items[i-1] IF (types[i-1] == 0) THEN TYPE " Is a file" ELSE TYPE " Is a directory" END END ; Delete the file on the PC CALL rm.pc.fdel($file, 3, status) IF (status TYPE "Unable to delete the file from the PC: ", status END .END rm.pc.fapps($file, num.lines, $lines[], wait.time, status) Abstract Append an array of lines to a file on the PC. Input Parameters Parameter Description $file The name of the file to append to on the PC. num.lines The number of lines in the array to copy. $lines[] The lines to append to the file, starting at index 0. wait.time The amount of time to wait for the operation to complete.

ACE Reference Guide, 18317-000 Rev A Page 818