Rockwell-automation 8520-GUM 9/Series CNC Grinder Operation and Progra Uživatelský manuál Strana 648

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 820
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 647
Paramacros
Chapter 20
20-4
Table 20.B
Mathematical Functions
Function Meaning
SIN Sine(degrees)
COS Cosine (degrees)
TAN Tangent (degrees)
ATAN ArcTangent (degrees)
ASIN Arc Sine(degrees)
ACOS ArcCosine (degrees)
SQRT Square Root
ABS Absolute Value
BIN ConversionfromBCD to Decimal
BCD Conversion fromDecimal toBCD
ROUND RoundingOff (nearestwhole number)
FIX Truncation Down
FUP Truncation Up
LN Logarithms(base e)
EXP Exponent
When programming these functions, the value on which that function is to
be performed must be included in brackets. For example, SIN [10]. The
exception to t his is the arc tangent function. The format for ATAN requires
the division of two values. For example, ATAN [10]/[2] is used to
calculate the arc tangent of 5.
The functions in Table 20.B are executed from left to right in a program
block. These functions are executed before the control executes any
mathematical operators such as addition or subtraction. This order of
execution can be changed only by enclosing operations in brackets [].
Operations enclosed in brackets are executed first.
Example 20.3 illustrates the format for the mathematical functions found in
Table 20.B.
Example 20.3
Format for functions
SIN[2]
This evaluatesthesineof 2 degrees.
SQRT[14+2]
This evaluatesthesquareroot of16.
SIN[SQRT[14+2]]
This evaluatesthesineof thesquareroot of16.
LN[#2+4]
This evaluatesthelogarithmofthevalue ofparameter #2 plus 4.
Example 20.4 illustrates the results obtained when using the functions in
Table 20.B.
Zobrazit stránku 647
1 2 ... 643 644 645 646 647 648 649 650 651 652 653 ... 819 820

Komentáře k této Příručce

Žádné komentáře