RIGHT is a string function that returns a specified number of characters from the right side of an input string. RIGHT(STR, SIZE) returns the first SIZE characters from the right in STR. Its return type is STRING(255), and it is used in structured text programs.
| Language | structured text |
|---|---|
| Code | RIGHT |
| Group | String Functions |
| Syntax | RIGHT (STR, SIZE) |
| Dialect | CODESYS |
| Name | Data type | Description |
|---|---|---|
| STR | STRING(255) | String to be analyzed |
| SIZE | INT | Number of characters |