2-857
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
SD Memory Card Instructions
2
DirCreate
DirCreate
The DirCreate instruction creates a directory with the specified name in the SD Memory Card.
The DirCreate instruction creates a directory with the name specified by directory to create Dir in the
SD Memory Card.
The following figure shows a programming example. Here, a directory named ‘Dir0’ is created.
Instruction Name FB/FUN Graphic expression ST expression
DirCreate Create Directory FB DirCreate_instance(Execute,
DirName, Done, Busy, Error,
ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
DirName Directory to
create
Input Name of directory to create Depends on data type.
--- ''
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
Function
DirCreate
Execute Done
DirName Busy
Error
ErrorID
DirCreate_instance
DirCreate_instance(A, ’Dir0’, abc,
def, ghi, jkl);
LD
ST
‘Dir0’
A
DirCreate
Execute Done
DirName Busy
Error
ErrorID
DirCreate_instance
def
ghi
jkl
abc