Scroll to navigation

COMP(9) HAL Component COMP(9)

NAME

comp - Two input comparator with hysteresis

SYNOPSIS

loadrt comp [count=N|names=name1[,name2...]]

FUNCTIONS

Update the comparator

PINS

Inverting input to the comparator
Non-inverting input to the comparator
Normal output. True when in1 > in0 (see parameter hyst for details)
Match output. True when difference between in1 and in0 is less than hyst/2

PARAMETERS

Hysteresis of the comparator (default 0.0)

With zero hysteresis, the output is true when in1 > in0. With nonzero hysteresis, the output switches on and off at two different values, separated by distance hyst around the point where in1 = in0. Keep in mind that floating point calculations are never absolute and it is wise to always set hyst if you intend to use equal

AUTHOR

Jeff Epler

LICENSE

GPL

2022-11-08 LinuxCNC Documentation