-

Semantic Error: The length of a user defined string must not be lower than zero.

A data types worksheet, a 'Variables' table or a Data List contains an invalid declaration of a user string where a string length < 0 is defined. This is not possible. Enter a string length >= 0.
Example:

VAR
   MyString : STRING[10];
END_VAR