Table instructions
(Original Document)
Introduction
Conversion replaces the PL7 instructions by their Control Expert equivalent.
Integer and long integer word tables: instructions
The following table describes any correspondence and differences between PL7 and Control Expert instructions.
PL7
(WORD or DWORD)
Control Expert
(INT or DINT)
Status
Operator between two tables
:=
:=
Converted
Operator between a table and an integer word or a long integer word
:=
MOVE_INT_ARINT
MOVE_DINT_ARDINT
Modified (1)
Operator between two tables
+
EF:
ADD_ARINT
ADD_ARDINT
Modified (2)
-
EF:
SUB_ARINT
SUB_ARDINT
Modified (2)
*
EF:
MUL_ARINT
MUL_ARDINT
Modified (2)
/
EF:
DIV_ARINT
DIV_ARDINT
Modified (2)
Operator between two tables
REM
EF: 
MOD_ARINT
MOD_ARDINT
Modified (2)
Operator between a table and an integer word or a long integer word
+
EF:
ADD_ARINT_INT
ADD_ARDINT_DINT
Modified (2)
Operator between a table and an integer word or a long integer word
-
EF:
SUB_INT_ARINT
SUB_ARINT_INT
SUB_DINT_ARDINT
SUB_ARDINT_DINT
Modified (1)
Operator between a table and an integer word or a long integer word
*
EF:
MUL_ARINT_INT
MUL_ARDINT_DINT
Modified (2)
Operator between a table and an integer word or a long integer word
/
EF:
DIV_INT_ARINT
DIV_ARINT_INT
DIV_DINT_ARDINT
DIV_ARDINT_DINT
Modified (1)
Operator between a table and an integer word or a long integer word
REM
EF:
MOD_INT_ARINT
MOD_ARINT_INT
MOD_DINT_ARDINT
MOD_ARDINT_DINT
Modified (1)
EF
SUM
SUM_ARINT
or
SUM_ARDINT
Modified (3)
EF
EQUAL
EQUAL_ARINT
or
EQUAL_ARDINT
Modified (5)
EF
FIND_EQD
FIND_EQ_ARDINT
Modified (4)
FIND_EQDP
FIND_EQP_ARDINT
Modified (5)
FIND_EQW
FIND_EQ_ARINT
Modified (4)
FIND_EQWP
FIND_EQP_ARINT
Modified (5)
FIND_GTD
FIND_GT_ARDINT
Modified (4)
FIND_GTW
FIND_GT_ARINT
Modified (4)
FIND_LTD
FIND_LT_ARDINT
Modified (4)
FIND_LTW
FIND_LT_ARINT
Modified (4)
LENGTH_ARD
LENGTH_ARDINT
Modified (4)
LENGTH_ARW
LENGTH_ARINT
Modified (4)
MAX_ARD
MAX_ARDINT
Modified (4)
MAX_ARW
MAX_ARINT
Modified (4)
MIN_ARD
MIN_ARDINT
Modified (4)
MIN_ARW
MIN_ARINT
Modified (4)
OCCUR_ARD
OCCUR_ARDINT
Modified (4)
OCCUR_ARW
OCCUR_ARINT
Modified (4)
ROL_ARD
ROL_ARDINT
Modified (4)
ROL_ARW
ROL_ARINT
Modified (4)
ROR_ARD
ROR_ARDINT
Modified (4)
ROR_ARW
ROR_ARINT
Modified (4)
SORT_ARD
SORT_ARDINT
Modified (4)
SORT_ARW
SORT_ARINT
Modified (4)
Legend:
(1)
The operator is replaced by an EF, which depends on the type of operand.
(2)
(3)
Replaced by an EF whose name depends on the type of operand.
(4)
The function name is modified but the operation remains the same.
(5)
The function name is modified, but the operation remains the same except in the case of negative ranks.
Integer and long integer word tables: logic instructions
The following table describes any correspondence and differences between PL7 and Control Expert instructions.
PL7
(WORD or DWORD)
Control Expert
(INT or DINT)
Status
Operator
NOT
EF:
NOT_ARINT
NOT_ARDINT
Modified (1)
Operator between two tables
AND
EF:
AND_ARINT
AND_ARDINT
Modified (1)
OR
EF:
OR_ARINT
OR_ARDINT
Modified (1)
XOR
EF:
XOR_ARINT
XOR_ARDINT
Modified (1)
Operator between a table and an integer word or a long integer word
AND
EF:
AND_ARINT_INT
AND_ARDINT_DINT
Modified (1)
Operator between a table and an integer word or a long integer word
OR
EF:
OR_ARINT_INT
OR_ARDINT_DINT
Modified (1)
Operator between a table and an integer word or a long integer word
XOR
EF:
XOR_ARINT_INT
XOR_ARDINT_DINT
Modified (1)
Legend:
(1)
Bit tables: logic instructions
The following table describes any correspondence and differences between PL7 and Control Expert instructions.
PL7
Control Expert
Status
EF
AND_ARX
AND_AREBOOL
Modified (1)
NOT_ARX
NOT_AREBOOL
Modified (1)
OR_ARX
OR_AREBOOL
Modified (1)
XOR_ARX
XOR_AREBOOL
Modified (1)
Legend:
(1)
The function name is modified but the operation remains the same.
Floating point tables: instructions
The following table describes any correspondence and differences between PL7 and Control Expert instructions.
PL7
Control Expert
Status
Operator between two tables
:=
:=
Converted
Operator between a table and a real word
:=
MOVE_REAL_ARREAL
Modified (1)
EF
EQUAL_ARR
EQUAL_ARREAL
Modified (3)
FIND_EQR
FIND_EQ_ARREAL
Modified (2)
FIND_EQRP
FIND_EQP_ARREAL
Modified (3)
FIND_GTR
FIND_GT_ARREAL
Modified (2)
FIND_LTR
FIND_LT_ARREAL
Modified (2)
LENGTH_ARR
LENGTH_ARREAL
Modified (2)
MAX_ARR
MAX_ARREAL
Modified (2)
MIN_ARR
MIN_ARREAL
Modified (2)
OCCUR_ARR
OCCUR_ARREAL
Modified (2)
ROL_ARR
ROL_ARREAL
Modified (2)
ROR_ARR
ROR_ARREAL
Modified (2)
SORT_ARR
SORT_ARREAL
Modified (2)
SUM_ARR
SUM_ARREAL
Modified (2)
Legend:
(1)
The operator is replaced by an EF.
(2)
The function name is modified but the operation remains the same.
(3)
The function name is modified, but the operation remains the same except in the case of negative ranks.