SIGN (74)


SIGN (74)

ID                          74

 

 

Application:

PLC

SIM

 

Group: MATH

 

Short description:

A function that returns the sign of the actual value.

 

Inputs (1):

no.

type

impulse

mark

notes

1

R

no

a

Real type input

 

Outputs (1):

no.

type

impulse

mark

notes

1

I

no

sign

The sign of the input value


Settings: none

Function operation:

The SIGN function returns the sign of the actual input value. If a positive value is read at the input a, the function returns the value 1 at the SIGN output, if the input value is 0, the value 0 is returned, and if there is a negative value at the input a, the function returns SIGN -1.

 

R registers and M markers used: none