FB_CsvRead Troubleshooting

Troubleshooting

The table describes some general issues and their solutions:

Issue

Cause

Solution

Execution ends with a detected error and result indicates FilePathInvalid.

  • The specified directory is not available.

  • The given file path has invalid syntax.

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

  • Verify that the syntax used is supported by your particular controller.

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

Execution ends with a detected error and result indicates TableInvalid.

  • The pointer to the read buffer is not assigned.

  • Verify the correct assignment of the parameter pbyTable in the structure i_stTableReadValues.

Execution ends with a detected error and result indicates TableReadValuesInvalid.

  • The dimensions of the specified buffer (table) are not consistent.

  • Verify the correct assignment of the parameter in the structure i_stTableReadValues.

Execution ends with a detected error and result indicates ReadParameterInvalid.

  • The parameters specified for the read mode are inconsistent.

  • No character has been specified for the delimiter.

  • Verify that the value selected for etReadMode is supported by ET_CsvReadMode.

  • If etReadMode = OneRow, the value for uiNumOfRow must not be 0.

  • If etReadMode = OneColumn, the value for uiNumOfColumn must not be 0.

  • If etReadMode = OneValue, the values for uiNumOfRow and uiNumOfColumn must not be 0.

  • The value for sDelimiter must not be empty.

Execution ends with a detected error and result indicates Timeout.

  • The specified value for the timeout is insufficient.

  • Increase the timeout parameter according to the number of cycles needed to read the file. Also allow for the cycle time of the task.

  • Increase the processing block size per read operation to reduce the number of function block calls which are needed to read the file.