FB_WriteFile Troubleshooting

Troubleshooting

This table describes some general issues and their solutions:

Issue

Cause

Solution

Execution ends with a detected error and result indicates FilePathInvalid.

oThe specified directory is not available.

oThe given file path has an invalid syntax.

oThe specified file does not exist on the specified file path.

oThe file extension* of specified file path is not supported.

oVerify that the directory exists. In case the file path targets extended memory (such as an SD memory card), verify that it is available.

oVerify that the syntax used is supported by your particular controller.

For example, your controller may support '\' as a separator while another controller supports '/' instead.

oFor the parameter i_etModeFileOpen, select the value AppendPlus.

oVerify that you do not use a file with an extension that is not supported.

Execution ends with a detected error and result indicates FileAlreadyExists.

oThe specified file already exists but the parameter i_etModeFileOpen does not allow overwriting the file.

oSpecify another file name.

oIf the existing file can be overwritten, select for the parameter i_etModeFileOpen the value CreatePlus..

Execution ends with a detected error and result indicates Timeout.

The specified value for the timeout is too low.

Increase the timeout parameter according to the number of cycles needed to create the file. Also consider the task interval.

* File names with file extensions .ap_, .app, .cf_, .cfg, .crc, .err, .frc, .log, .prj, .rcp,.rsi, and .urf are not supported for creating or modifying files using the FB_WriteFile function block.