POWER (77)


POWER (77)

ID                          77

 

 

Application:

PLC

SIM

 

Group: MATH

 

Short description:

A function that returns the power value of the input value with an exponent as a natural number.

 

Inputs (1):

no.

type

impulse

mark

notes

1

R

no

IN

Real type input

 

Outputs (2):

no.

type

impulse

mark

notes

1

R

no

OUT

Function output value
2 B no limit Result is out of limit for a real type variable



Settings:

no.

type

mark

notes

1

I

a

Exponent - a natural number ranging from 1 to 255.

 

Function operation:

The POWER function returns as a result the input value raised to the power of a. This exponent is set during the creation of the function block and can only be a natural number in the range 1 to 255. If the result is greater than the upper value of a real type variable (-1, 7 * 10E308 ... 1.7 * 10E308), the limit output is activated, and the OUT output is the maximum value of a real type variable.

 

R registers and M markers used: none