R.3.33
Date Code 20111215 Reference Manual SEL-421 Relay
SELOGIC Control Equation Programming
SELOGIC Control Equation Operators
ASIN and ACOS
Use the ASIN or ACOS operators to calculate the angle resulting from the
trigonometric function equivalent to a given number (the argument), where the
function is sine or cosine. ASIN and ACOS operate in degrees. An argument
less than –1 or larger than 1 results in a math error and assertion of the
corresponding math bit described in Arithmetic on page R.3.30. Example 3.18
shows examples of ASIN and ACOS.
EXAMPLE 3.18 Using the ASIN and ACOS Operators
The free-form math SEL
OGIC control equations below are examples of
ASIN and ACOS.
# ASIN examples
AMV001 := ASIN (AMV010) # Arc sine of AMV010
AMV002 := ASIN (AMV010 + AMV011) # Arc sine of the sum
AMV003 := ASIN (AMV012) # Produces an error if |AMV012| > 1
# ACOS examples
AMV004 := ACOS (AMV010) # Arc cosine of AMV010
AMV005 := ACOS (AMV010 + AMV011) # Arc cosine of the sum
AMV006 := ACOS (AMV012) # Produces an error if |AMV012| > 1
ABS
Use the ABS operation to calculate absolute value of the argument. Use
parentheses to group a math expression as the argument of an ABS operation.
If the argument of the ABS operation is negative, the result is the value
multiplied by –1. If the argument of the ABS operation is positive, the result is
the same quantity as the argument. Example 3.19 contains examples of the
ABS operator in use.
EXAMPLE 3.19 Using the ABS Operator
The free-form math SEL
OGIC control equations below show examples
of the ABS operator usage.
# ABS examples
AMV001 := ABS (-6) # Stores 6 in AMV001
AMV002 := ABS (6) # Stores 6 in AMV002
AMV003 := ABS (AMV009) # Absolute value of AM009
AMV004 := ABS (AMV005 + AMV034) # Absolute value of the sum
CEIL
Use the CEIL operator to round the argument to the nearest integer towards
infinity. Use parentheses to group a math expression as the argument of a
CEIL operation. Example 3.20 contains examples of the CEIL operator.
EXAMPLE 3.20 Using the CEIL Operator
The free-form math SEL
OGIC control equations below show examples
of the CEIL operator usage.
# CEIL examples
AMV001 := CEIL (5.99) # Stores 6 in AMV001
AMV002 := CEIL (–4.01) # Stores –4 in AMV002