FILE_CLOSE Function Block
The FILE_CLOSE function block is used to close an open file. A FileID is needed to identify which file to close.
Element Name | Element Type | Description |
---|---|---|
REQ | Input | Edge detected request to execute the function block. |
FileID | Input | File identification number of the file to close. |
DONE | Output | Function block operation status. |
BUSY | Output | Function block is busy closing the file. |
STAT | Output | Outputs an error number if a problem occurs. |

STAT Number |
Error Status |
---|---|
0 | Normal |
1 | Failed to access SD memory card |
2 | There are no open files with input FileID |
LM312-2