Yaskawa YASNAC PC NC Programming Manual User Manual

Page 293

Advertising
background image

4 - 156

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

(4) Function

(5) Combination of Operations

It is possible to combine the operations and functions explained in items (1) to (4) above.

In this case, the priority of operation is in the order of functions, multiplication type operation
and addition type operation.

(Example) #i =#j + #k * SIN [#l]

€

ó

ì

(6) Changing the Order of Operations by [ ]

By enclosing a part of an expression by brackets ([ ]), that part is given priority for calcula-
tion. The brackets can be nested in up to five levels including the brackets used in functions.

(Example) #i =SIN

[ [#j+#k] *

#l + #m]*

#n]

ú €

ó

ì

ö

#i = SIN [#j]

Sine (in units of degrees)

#i = COS [#j]

Cosine (in units of degrees)

#i = TAN [#j]

Tangent (in units of degrees)

#i = ATAN [#j] or
#i = ATAN [#j/#k]

Arctangent

#i = SQRT [#j]

Square root

#i = ABS [#j]

Absolute value

#i = BIN [#j]

Conversion from BCD to binary

#i = BCD [#j]

Conversion from binary to BCD

#i = ROUND [#j]

Conversion into integer by rounding off

#i = FIX [#jl

Cutting off decimal fractions

#i = FUP [#j]

Rounding off decimal fractions I

#i = ASIN [#j]

Arcsine

#i = ACOS [#j]

Arccosine

#i = LN [#j]

Natural logarithm

#i = EXP [#j]

Exponent with e (= 2.718 • • •) as a base

Advertising