Navigation

  • index
  • next |
  • previous |
  • Automation Builder Documentation V0.0.0.1 »
  • IEC 61131-3 editor »
  • Programming for PM56xx and Programmable Drive »
  • Libraries »
  • Standard.library, Standard64.library »
  • String Functions »

Previous topic

LEFT

Next topic

MID

Quick search

RIGHT¶

Provided by Standard Library.

Function of type STRING. Returns the right, initial string for a given string.

Inputs:

STR : STRING; string to be analyzed

SIZE : INT; number of characters to be counted from the right in string STR, starting with “1”

Return value: STRING; initial right string

RIGHT (STR, SIZE) means: Return the first SIZE character from the right in the string STR.

Example in IL: ( Result is ‘USI’ )\ \ \ \

../_images/0c11796e1e8f8142c0a8640e01947982

Example in FBD:\ \ \ \

../_images/3853b7f51e8f8096c0a8640e01947982

Example in ST:\ \ \ \

VarSTRING1 := RIGHT ('SUSI',3);

Navigation

  • index
  • next |
  • previous |
  • Automation Builder Documentation V0.0.0.1 »
  • IEC 61131-3 editor »
  • Programming for PM56xx and Programmable Drive »
  • Libraries »
  • Standard.library, Standard64.library »
  • String Functions »
© Copyright 2017, ABB Automation Products GmbH. Created using Sphinx 1.6.2.