6.4 ---( JMPN ) Jump-If-Not
8 Floating Point Math Instructions
8.4 Extended Instructions
8.4.1 SQR Establish the Square
Symbol
SQR EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point OUT REAL I, Q, M, L, D Output value: square of
floating-point number
Description
SQR establishes the square of a floating-point number.
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.2 SQRT Establish the Square Root
Symbol
SQRT EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point
OUT REAL I, Q, M, L, D Output value: square root of
floating-point number
Description
SQRT establishes the square root of a floating-point number. This instruction issues a positive result when the address is greater than "0". Sole exception: the square root of -0 is -0.
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.3 EXP Establish the Exponential Value
Symbol
EXP EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point
OUT REAL I, Q, M, L, D Output value: exponential value
of the floating-point number
Description
EXP establishes the exponential value of a floating-point number on the basis e (=2,71828...).
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.4 LN Establish the Natural Logarithm
Symbol
LN EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point OUT REAL I, Q, M, L, D Output value: natural logarithm of
the floating-point number
Description
LN establishes the natural logarithm of a floating-point number.
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.5 SIN Establish the Sine Value
Symbol
SIN EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point OUT REAL I, Q, M, L, D Output value: sine of the
floating-point number
Description
SIN establishes the sine value of a floating-point number. The floating-point number represents an angle in a radian measure here.
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.6 COS Establish the Cosine Value
Symbol
COS EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point
OUT REAL I, Q, M, L, D Output value: cosine of the
floating-point number
Description
COS establishes the cosine value of a floating-point number. The floating-point number represents an angle in a radian measure here.
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.7 TAN Establish the Tangent Value
Symbol
TAN EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point
OUT REAL I, Q, M, L, D Output value: tangent of the
floating-point number
Description
TAN establishes the tangent value of a floating-point number. The floating-point number represents an angle in a radian measure here.
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.8 ASIN Establish the Arc Sine Value
Symbol
ASIN EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point
OUT REAL I, Q, M, L, D Output value: arc sine of the
floating-point number
Description
ASIN establishes the arc sine value of a floating-point number with a definition range -1 <= input value <= 1. The result represents an angle in a radian measure within the range
-π/2 ≤ output value ≤ +π/2 where π = 3.1415....
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.9 ACOS Establish the Arc Cosine Value
Symbol
ACOS EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point OUT REAL I, Q, M, L, D Output value: arc cosine of the
floating-point number
Description
ACOS establishes the arc cosine value of a floating-point number with a definition range -1 <= input value <= 1. The result represents an angle in a radian measure within the range
0 ≤ output value ≤ +π where π = 3.1415....
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
8.4.10 ATAN Establish the Arc Tangent Value
Symbol
ATAN EN
OUT IN
ENO
Parameter Data Type Memory Area Description
EN BOOL I, Q, M, L, D Enable input
ENO BOOL I, Q, M, L, D Enable output
IN REAL I, Q, M, L, D
or constant
Input value: floating-point OUT REAL I, Q, M, L, D Output value: arc tangent of the
floating-point number
Description
ATAN establishes the arc tangent value of a floating-point number. The result represents an angle in a radian measure within the range
-π/2 ≤ output value ≤ +π/2 where π = 3.1415....
See also Evaluating the Bits of the Status Word.
Status word
BR CC 1 CC 0 OV OS OR STA RLO /FC
writes: x x x x x 0 x x 1
长沙工控帮教育科技有限公司整理
长沙工控帮教育科技有限公司整理