Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
REPLACE¶
Replaces characters in a string.
IEC 61131-3 |
Section 2.5.1.5.7 |
Support |
Supported |
Signatures¶
# |
Input (IN1) |
Input (IN2) |
Input (L) |
Input (P) |
Return Type |
Support |
|---|---|---|---|---|---|---|
1 |
|
|
|
|
|
Supported |
2 |
|
|
|
|
|
Not yet supported |
Description¶
REPLACE(IN1, IN2, L, P) replaces L characters in IN1 with
IN2 starting at position P. Positions are 1-based.
The replacement string IN2 does not need to be the same length as the portion being replaced.