Sample Programming
The following procedure is used to move a file.
1
The DirCreate instruction is used to create a directory called 'Dir1' in the SD Memory Card.
2
The FileCopy instruction is used to copy the file named 'ABC.bin' in the existing directory 'Dir0'
to the directory 'Dir1.'
3
The DirRemove instruction is used to delete the directory 'Dir0' (the source of the copy).
1. Create directory.
2. Copy file.
'Dir0'
ABC.bin
3. Delete directory.
'Dir0'
ABC.bin
NJ-series Instructions Reference Manual (W502)
'Dir1'
'Dir1'
ABC.bin
'Dir1'
ABC.bin
2 Instruction Descriptions
2
2-843