ISaGRAF. Version 3.4


MLEN


:

IN MSG

NbC INT IN

:

.

(*FBD MLEN*)

(* ST : *)

nbchar := MLEN (complete_string);

If (nbchar < 3) Then Return; End_if;

prefix := LEFT (complete_string, 3);

(* 3 prefix 3 *)

(* IL : *)

LD complete_string

MLEN

ST nbchar

LT 3

RETC

LD complete_string

LEFT 3

ST prefix