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

  • 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 71
Chapter 2
Operating the Control
2-52
Paramacro Variables in CALC Operations
Any paramacro variable can be accessed through the CALC function.
Include a # sign followed by t he paramacro variable number. When the
calculation is performed the value of that paramacro variable is substituted
into the equation. You can not change the value of paramacro variables
with the CALC function. Local parameters are only available for the
currently active nesting level of the control (main program, or one of four
nested macro programs). You can not perform calculations that contain
any paramacro variables if the control is currently executing a program
block. The control must be in either cycl e stop state, or E-Stop.
Example 2.4
Calling Paramacro Variables with the CALC Function
Expression Entered ResultDisplayed
#100
Displaycurrentvalue of variable#100
12/#100*3 Divide 12 bythecurrentvalue of#100
and multiplyby3
SIN[#31*3]
Multiplythevalue of#31(forthecurrent
localparameter nestinglevel)by 3 and
take the sine of that result
END OF CHAPTER
Zobrazit stránku 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 819 820

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

Žádné komentáře