beautypg.com

Tan (tangent), Function – Yaskawa SMC–4000 User Manual

Page 222

background image

212

SMC–4000 User Manual

@TAN (Tangent)

[Function]

DESCRIPTION:

@TAN returns the tangent of a number or variable given in square brackets using units of degrees. Note that
the @TAN command is a function, which means that it does not follow the conventions of the commands,
and does not require an underscore when used as an operand.

ARGUMENTS: @TAN [n] where n is a number

USAGE:

RELATED COMMANDS:

@SIN (Sine)

@COS (Cosine)

EXAMPLES:

While Moving

Yes

Minimum n Value

-2147483647

In a Program

Yes

Maximum n Vavue

2147483674

Not in a Program

Yes

Default Value

---

Can be Interrogated

No

Default Format

---

Used as an Operand

Yes

#TEST

Program TEST

VAR1=60

Set Variable

MG@TAN[VAR1]

Display the value of the tangent of VAR1

VAR2=@TAN[VAR1]+9

Perform Calculation

EN

End of Program