Replace - Allen-Bradley Micro800 General Instructions Manual

Programmable controllers
Hide thumbs Also See for Micro800:
Table of Contents

Advertisement

REPLACE

Parameter
EN
IN
Str
NbC
Pos
REPLACE
ENO
REPLACE replaces parts of a string with new sets of characters.
Arguments
Parameter Type
Data Type
Input
BOOL
Input
STRING
Input
STRING
Input
DINT
Input
DINT
Output
STRING
Output
BOOL
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
String manipulation instructions
Description
Function enable.
When EN = TRUE, replace parts of strings with new characters.
When EN = FALSE, no operation.
Any string.
String to be inserted (to replace NbC chars).
Number of characters to be deleted.
Position of the first modified character
(first valid position is 1).
Modified string. The NbC characters are deleted at position Pos, then
the substring Str is inserted at this position. Can be:
• empty string if Pos <= 0
• strings concatenation (IN+Str) if Pos is greater than the length of
the IN string
• initial string IN if NbC <= 0
Enable out.
Chapter 22
613

Advertisement

Table of Contents
loading

Table of Contents