Character String Instructions
(Original Document)
Introduction
Conversion replaces the PL7 instructions by their Control Expert equivalent.
Instruction list
The following table describes any correspondence and differences between PL7 and Control Expert instructions.
PL7
Control Expert
Status
STRING_TO_INT
STRING_TO_INT
Converted
STRING_TO_DINT
STRING_TO_DINT
Converted
INT_TO_STRING
INT_TO_STRING
Converted
DINT_TO_STRING
DINT_TO_STRING
Modified (3)
STRING_TO_REAL
STRING_TO_REAL
Converted
REAL_TO_STRING
REAL_TO_STRING
Converted
Operators
>, <, ≤, ≥, =, ≠
>, <, ≤, ≥, =, ≠
Converted
EF
FIND
FIND_INT
Modified (1)
EQUAL_STR
EQUAL_STR
Converted
LEN
LEN_INT
Modified (1)
MID
MID_INT
Modified (2)
INSERT
INSERT_INT
Modified (2)
DELETE
DELETE_INT
Modified (2)
CONCAT
CONCAT_STR
Modified (1)
REPLACE
REPLACE_INT
Modified (2)
LEFT
LEFT_INT
Modified (2)
RIGHT
RIGHT_INT
Modified (2)
ROUND
STR_ROUND
Modified (1)
Legend:
(1)
The function name is modified but the operation remains the same.
(2)
In order to comply with the IEC standard, the function name is modified and the operation stays the same except in extreme cases. Refer to the documentation on these EF for further details.
(3)
The function name is not modified and the operation stays the same except in extreme cases. Refer to the documentation on this EF for further details.
Converting a variable into a character string is displayed differently when using PL7 software or Control Expert:
  • With Control Expert, the character string is 11 characters long.
  • With PL7, the character string is 12 characters long.