2 Instruction Descriptions
2-860
NJ-series Instructions Reference Manual (W502)
DirRemove
The DirRemove instruction deletes the specified directory from the SD Memory Card.
The DirRemove instruction deletes the directory with the name specified by directory to delete Dir from
the SD Memory Card.
If there are files or subdirectories in the specified directory, the following processing is performed
according to the value of all designation All.
Instruction Name FB/FUN Graphic expression ST expression
DirRemove Delete Directory FB DirRemove_instance(Execute,
DirName, All, Done, Busy, Error,
ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
DirName Directory to
delete
Input
Directory to delete
Depends on data type.
---
''
All All designa-
tion
Specifies whether to delete
files and subdirectories
inside specified directory
TRUE: Delete files and sub-
directories.
FALSE: Do not delete.
FALSE
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
DirName OK
All OK
Function
Value of All Treatment
TRUE All files and subdirectories are deleted along with the specified directory.
FALSE The specified directory is not deleted and an error occurs.
DirRemove
Execute Done
DirName Busy
All Error
ErrorID
DirRemove_instance