MLEN
Calculates the length of a message string.

Arguments | |||
---|---|---|---|
IN | IN | MESSAGE | Any message string |
MLEN | NbC | DINT | Number of characters in the IN string |
Example
(* FBD Program using "MLEN" Function *)

(* ST Equivalence: *)
nbchar := MLEN (complete_string); If (nbchar < 3) Then Return; End_if; prefix := LEFT (complete_string, 3); (* This program extracts the three characters on the left of the string and places the result in the prefix string variable. Nothing is done if the string length is less than three characters. *)
Provide Feedback