omron — Abstract

V+ Remote Library Documentation TYPE "Failure to append line on file: ", status END END ; Append multiple lines in 1 call to the same file $lines[0] = "Line 1" $lines[1] = "Line 2" $lines[2] = "Line 3" $lines[3] = "Line 4" CALL rm.pc.fapps($file, 4, $lines[], 1, status) IF (status TYPE "Failure to append line on file: ", status END ; 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.fcopy($from.file, $to.file, wait.time, status) Abstract Copy a file between the controller and the PC. When specifying the file, one of the files must start with the prefix of 'DISK>'.

This is used to determine the direction of the file copy. If neither of the files starts with 'DISK', then it is considered a file copy from 1 PC file to another entirely on the PC. ACE Reference Guide, 18317-000 Rev A Page 821