ASCII String Instructions

Use the ASCII string instructions to modify and create strings of ASCII characters.
Available Instructions
Ladder Diagram and Structured Text
Function Block
Not available
If you want to:
Use this instruction:
Add termination characters or delimiters to a string
CONCAT
Delete characters from a string (e.g., remove header or control characters from a string)
DELETE
Determine the starting character of a sub-string
FIND
Insert characters into a string
INSERT
Extract characters from a string
MID
You can also use the following instructions to compare or convert ASCII characters:
If you want to:
Use this instruction:
Compare a string to another string
CMP
See if the characters are equal to specific characters
EQ
See if the characters are not equal to specific characters
NE
See if the characters are equal to or greater than specific characters
GE
See if the characters are greater than specific characters
GT
See if the characters are equal to or less than specific characters
LE
See if the characters are less than specific characters
LT
Rearrange the bytes of an INT, DINT, or REAL tag
SWPB
Find a string in an array of strings
FSC
Convert characters to a SINT, INT, DINT, or REAL value
STOD
Convert characters to a REAL value
STOR
Convert a SINT, INT, DINT, or REAL value to a string of ASCII characters
DTOS
Convert a REAL value to a string of ASCII characters
RTOS
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.