
—
Programing with CODESYS
—
CPSN-PCB271-S1-041 Reference Manual (Software)
—
108
—
4.
Function details
CFA_FileAccess
Operating functions
This controls access to the specified area.
Input value
Name
Data type
Meaning
eArea
This specifies area types to access.
bMount
BOOL
This specifies mounting to the file system.
This is necessary if the access area is USB device.
TRUE: This indicates mounting to the file system.
FALSE: This indicates unmounting the file system.
bWriteEnable
BOOL
This specifies writing and reading permission.
TRUE: This permits writing.
FALSE: This prohibits writing.
Output value
Name
Data type
Meaning
eError
This indicates an error code.
CFA_FileOpen
Operating functions
This opens a file in the specified area.
Input value
Name
Data type
Meaning
eArea
This specifies area types to access.
sFileName
STRING(256) This specifies a file name.
bWriteEnable
BOOL
This specifies a file open mode.
"r" : This opens for reading.
"w" : This opens for writing.
"a" : This opens to add writing.
"r+" : This opens for reading and writing.
"w+" : This opens for reading and writing.
"a+" : This opens for reading and to add writing.
Output value
Name
Data type
Meaning
eError
This indicates an error code.
hFile
DWORD
This specifies a handle number of the file.
Содержание CONPROSYS nano CPSN-PCB271-S1-041
Страница 21: ...21 CONPROSYS nano WEB Setting This section describes the product system and functions...
Страница 49: ...49 CODESYS Installation This section describes the CODESYS installation procedure...
Страница 55: ...55 Basic Programming This section describes basic procedure to operate this product with CODESYS...
Страница 76: ...76 Programing with CODESYS This section describes the CODESYS programming procedure per function...
Страница 118: ...Programing with CODESYS CPSN PCB271 S1 041 Reference Manual Software 118 5 END_CASE...
Страница 122: ...Programing with CODESYS CPSN PCB271 S1 041 Reference Manual Software 122...
Страница 133: ...133 Maintenance This section describes how to perform maintenance on the product...
Страница 140: ...140 Appendix This section describes additional information of specification and the product...