Function Description
The GET_FILE_INFO function enables information on
the file to be obtained.
The OPEN_FILE function must
be enabled before the GET_FILE_INFO block because
the value of FileDescriptor comes from the
output parameter of the OPEN_FILE or CREATE_FILE block.
The additional parameters EN and ENO can be configured.
FBD Representation
The representation in FBD of the GET_FILE_INFO function is as follows:

Ladder Representation
The representation in Ladder of the GET_FILE_INFO function is as follows:

IL representation
Representation:
CAL GET_FILE_INFO_Instance (REQ:=GetFileInfoStart, FILEDESC:=GetFileInfoDescriptor, DONE=>GetFileInfoDone, ERROR=>GetFileInfoError, STATUS=>GetFileInfoStatus, ATTRIBUTES=>GetFileInfoAttributes, LENGTH=>GetFileInfoLength, ACCESSTIME=>GetFileInfoAccessTime, MODTIME=>GetFileInfoModifiedTime, CHANGESTATTIME=>GetFileInfoChangeStatusTime)
ST representation
Representation:
GET_FILE_INFO_Instance (REQ:=GetFileInfoStart, FILEDESC:=GetFileInfoDescriptor, DONE=>GetFileInfoDone, ERROR=>GetFileInfoError, STATUS=>GetFileInfoStatus, ATTRIBUTES=>GetFileInfoAttributes, LENGTH=>GetFileInfoLength, ACCESSTIME=>GetFileInfoAccessTime, MODTIME=>GetFileInfoModifiedTime, CHANGESTATETIME=>GetFileInfoChangeStatusTime);
Parameter Description
The following table describes the input parameter:
Parameter |
Type |
Comment |
|---|---|---|
|
|
This parameter specifies the file
descriptor returned by the |
The following table describes the output parameters:
Parameter |
Type |
Comment |
|---|---|---|
|
|
This bit field specifies the file attributes:
|
|
|
This parameter specifies the size of the file in bytes. |
|
|
This parameter specifies the date and time when the file was last accessed. NOTE: This
parameter is not updated for M580 PLCs.
|
|
|
This parameter specifies the date and time when the file was last modified. |
|
|
This parameter specifies the date and time when the last file status change took place. |
Description of common parameters.

