Lenze PLC Designer PLC Designer (R2-x) Uživatelský manuál Strana 641

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 844
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 640
L-force | PLC Designer
PLC Designer Libraries
DMS 3.2 EN 02/2011 TD29 639
LEFT
Provided by standard.lib.
Left returns the left, initial string for a given string. Input STR is type STRING, SIZE is of
type INT, the return value of the function is type STRING.
LEFT (STR, SIZE) means: Take the first SIZE character from the right in the string STR.
Example in IL:
LD 'SUSI'
LEFT 3
ST VarSTRING1 (* Result is 'SUS' *)
Example in FBD:
Example in ST:
VarSTRING1 := LEFT ('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.
RIGHT
Provided by standard.lib.
Right returns the right, initial string for a given string.
RIGHT (STR, SIZE) means: Take the first SIZE character from the right in the string STR.
Input STR is of type STRING, SIZE is of type INT, the return value of the function is of
type STRING.
Zobrazit stránku 640
1 2 ... 636 637 638 639 640 641 642 643 644 645 646 ... 843 844

Komentáře k této Příručce

Žádné komentáře