Arithmetic instructions
(Original Document)
Introduction
Conversion replaces the PL7 instructions by their Control Expert equivalent.
Integer words
The following table describes any correspondence and differences between PL7 and Control Expert instructions.
PL7
(WORD)
Control Expert
(INT)
Status
Operator
+
+
Converted
-
-
Converted
*
*
Converted
/
/
Converted
REM
MOD
Modified (1)
SQRT
SQRT_INT
Modified (2)
ABS
ABS_INT
Modified (2)
Operator
INC
INC_INT
Modified (2)
DEC
DEC_INT
Modified (2)
:=
:=
Converted
Legend:
(1)
The operator name is modified but the operation remains the same.
(2)
Replaced by an EF whose name depends on the type of data processed.
Long integer words
The following table describes any correspondence and differences between PL7 and Control Expert instructions.
PL7
(DWORD)
Control Expert
(DINT)
Status
Operator
+
+
Converted
-
-
Converted
*
*
Converted
/
/
Converted
REM
MOD
Modified (1)
EF
SQRT
SQRT_DINT
Modified (2)
ABS
ABS_DINT
Modified (2)
Operator
INC
INC_DINT
Modified (2)
DEC
DEC_DINT
Modified (2)
:=
:=
Converted
Legend:
(1)
The operator name is modified but the operation remains the same.
(2)
Replaced by an EF whose name depends on the type of data processed.
Real words
The following table describes any correspondence and differences between PL7 and Control Expert instructions.
PL7
(Floating point)
Control Expert
(REAL)
Status
Operator
+
+
Converted
-
-
Converted
*
*
Converted
/
/
Converted
EF
SQRT
SQRT_REAL
Modified (1)
ABS
ABS_REAL
Modified (1)
ACOS
ACOS_REAL
Modified (1)
ASIN
ASIN_REAL
Modified (1)
ATAN
ATAN_REAL
Modified (1)
COS
COS_REAL
Modified (1)
EXP
EXP_REAL
Modified (1)
EXPT
EXPT_REAL
Modified (1)
LN
LN_REAL
Modified (1)
LOG
LOG_REAL
Modified (1)
SIN
SIN_REAL
Modified (1)
TAN
TAN_REAL
Modified (1)
Operator
:=
:=
Converted
Legend:
(1)
The function name is modified but the operation remains the same.