FB_XmlWrite 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.

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.

Execution ends with a detected error and result indicates FileAlreadyExists.

oThe specified file already exists and the input i_xOverwriteFile is FALSE.

oSpecify another file name.

oIf the existing file can be overwritten, set the input i_xOverwriteFile to TRUE.

Execution ends with a detected error and result indicates XmlStructureInconsistent.

oAt least one value for the parameter uiParentIndex in the buffer that contains the XML elements prevents the creation of a valid XML file.

oThe uiParentIndex of the first element is <> -1.

oVerify that the values defined for the parameter uiParentIndex are consistent.

NOTE: Refer to the output q_sResultMsg for further information on the invalid parameter.

Execution ends with a detected error and result indicates Timeout.

oThe specified value for the timeout is too low.

oIncrease the timeout parameter according to the number of cycles needed to create the file. Consider also the task interval.

oIncrease the processing block size per write operation to reduce the number of function block calls which are needed to create the file.