beautypg.com

Acos (arc cosine), Function – Yaskawa SMC–4000 User Manual

Page 63

background image

53

SMC–4000 User Manual

@ACOS (Arc Cosine)

[Function]

DESCRIPTION:

@ACOS returns the arc cosine, in degrees, of a number or variable which is inserted in square brackets.
Note that the @ACOS command is a function, which means that it does not follow the convention of other
commands and does not require the underscore when used as an operand.

ARGUMENTS: @ACOS [n]

where

n is a number

USAGE:

EXAMPLES:

While Moving

Yes

Minimum n value

-1

In a Program

Yes

Maximum n value

1

Not in a program

Yes

Default Value

---

Can be Interrogated

No

Default Format

---

Used as an Operand

Yes

#TEST

Program TEST

VAR1=.707

Set a variable equal to .707

MG @ACOS[VAR1]

Display the absolute value of VAR1

VAR2=@ACOS[VAR1]+100.404

Perform calculation

EN

End of program