Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
RIGHT¶
Returns the rightmost characters of a string.
IEC 61131-3 |
Section 2.5.1.5.7 |
Support |
Not yet supported |
Signatures¶
# |
Input (IN) |
Input (L) |
Return Type |
Support |
|---|---|---|---|---|
1 |
|
|
|
Not yet supported |
2 |
|
|
|
Not yet supported |
Description¶
Returns the rightmost L characters of IN. If L is greater than or equal to the length of IN, the entire string is returned.
Example¶
result := RIGHT('Hello', 3); (* result = 'llo' *)
result := RIGHT('Hi', 10); (* result = 'Hi' *)