Fileclose - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions

FileClose

The FileClose instruction closes the specified file in the SD Memory Card.
Instruction
FileClose
Close File
Variables
Name
Meaning
FileID
File ID
Bit strings
FileID
Function
The FileClose instruction closes the file specified by FileID in the SD Memory Card.
The following figure shows a programming example. Here, the file whose file ID is the value of variable
abc is closed.
LD
FileClose_instance
A
Execute
abc
FileID
Related System-defined Variables
Name
_Card1Ready
SD Memory Card
Ready Flag
2-806
Name
FB/FUN
FB
I/O
Description
Input
ID of file to close
OK
FileClose
def
Done
ghi
Busy
jkl
Error
ErrorID
mno
Meaning
Data type
BOOL
Graphic expression
FileClose_instance
FileClose
Execute
Done
FileID
Busy
Error
ErrorID
Valid range
Depends on data type.
Integers
ST
FileClose_instance(A, abc, def, ghi, jkl, mno);
This flag indicates if the SD Memory Card is physically
inserted and is mounted normally, i.e., if it can be
accessed by instructions and communications com-
mands.
TRUE: Can be used.
FALSE: Cannot be used.
NJ-series Instructions Reference Manual (W502)
ST expression
FileClose_instance(Execute,
FileID, Done, Busy, Error,
ErrorID);
Unit
Default
0
---
Times, durations,
dates, and text strings
Description

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents