MLEN

Calculates the length of a message string.
lrsf_ml1
Arguments
IN
IN
MESSAGE
Any message string
MLEN
NbC
DINT
Number of characters in the IN string
Example
(* FBD Program using "MLEN" Function *)
lrsf_ml2
(* 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
Have questions or feedback about this documentation? Please submit your feedback here.
Normal