Lenze PLC Designer PLC Designer (R2-x) Bedienungsanleitung Seite 642

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 844
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 641
L-force | PLC Designer
PLC Designer Libraries
640 DMS 3.2 EN 02/2011 TD29
Example in IL:
LD 'SUSI'
RIGHT 3
ST VarSTRING1 (* Result is 'USI' *)
Example in FBD:
Example in ST:
VarSTRING1 := RIGHT ('SUSI',3);
Note!
String functions are not "thread safe": When using tasks, string functions may only
be used in a single task. If the same function is used in different tasks, there is a
danger of overwriting.
MID
Provided by standard.lib.
Mid returns a partial string from within a string.
Input STR is type STRING, LEN and POS are type INT, the return value of the function is
type STRING.
MID (STR, LEN, POS) means: Retrieve LEN characters from the STR string beginning
with the character at position POS.
Example in IL:
LD 'SUSI'
MID 2,2
ST VarSTRING1 (* Result is 'US' *)
Seitenansicht 641
1 2 ... 637 638 639 640 641 642 643 644 645 646 647 ... 843 844

Kommentare zu diesen Handbüchern

Keine Kommentare