CBM diagram string parameter length
Using Control Builder Professional for AC800M, I made my own Function Block Types with some string parameters for configuration by user/programmer (somehow as workaround for not having proper array data types).
Now I found its possible to enter strings directly in Diagram (or with variables and initial value in FBD) with length longer than the configured string length and connect them to the Parameter without any warning or error during edit or download. Internally in the Function Block however i receive only the string cut to the length specified in brackets (or 40 if not specified).
Am i missing something, is there a way to limit the length of string the programmer can enter at the parameter or a way to detect internally in a Function Block (on in parameter) that a string was cut?
Now I found its possible to enter strings directly in Diagram (or with variables and initial value in FBD) with length longer than the configured string length and connect them to the Parameter without any warning or error during edit or download. Internally in the Function Block however i receive only the string cut to the length specified in brackets (or 40 if not specified).
Am i missing something, is there a way to limit the length of string the programmer can enter at the parameter or a way to detect internally in a Function Block (on in parameter) that a string was cut?
Answers
You're not missing anything. String lengths are fixed and usually default to 140 characters. There is no verification of length. If the variable is too short, the string gets truncated.
Add new comment