ZCMP (83)


ZCMP (83)

ID                          83

 

 

Application:

PLC

SIM

 

Group: MATH

 

Short description:

A function that compares an input value to a set range.

 

Inputs (1):

no.

type

impulse

mark

notes

1

R

no

a

Real type input


Outputs (3):

no.

type

impulse

mark

notes

1

B

no

<

Value marker below range
2 B no in zone Value marker within the active range when LOW <= a <= HIGH
3 B no > Value marker above the range



Settings:

no.

type

impulse

mark

notes

1

R

no

LOW

Low limit of the range
2 R no HIGH High limit of the range


Function operation:

The ZCMP function compares the input real value at the input with the range specified when creating the function block, the lower limit of which is the LOW setting parameter and the upper limit is the HIGH parameter. In case when the value on the input a is higher than the upper limit of the range, the> output is set to a high state, and when it is lower than the lower limit, the output <is set to high state. If the input value a is between or equal to the limits, the function returns high at the output in zone.

 

R registers and M markers used: none