HAL_Components - rmu75/linuxcnc-wiki GitHub Wiki
Anyone that can add to this page it would help...
The and2 is an AND gate. Two inputs must be on for the output to be on. upload:and2.jpg
To use and2 you have to create one or more as needed with
loadrt and2 count=1If you want to link it to a thread like the servo thread use this
addf and2.0 servo-threadTo use it link two pins to the inputs like this
net mypin01 parport.0.pin-01-in and2.0.in0
net mypin02 parport.0.pin-02-in and2.0.in1
The output will be on when both pins are on.
net my-thing and2.0.out
Match8 is an interesting one. If the pattern match between a and b are the same then out is on.
if match8.N.a0 and match8.N.b0 are on then out will be on.
A Selector Switch for two float values
upload:mux2.jpg
A Selector Switch for four float values The sel0 and sel1 form a binary pattern to select the input wanted at the output. upload:mux4.jpg
Not simply inverts the input. If the input is on the output is off, if the input is off the output is on. upload:not.jpg
or2 is an or gate. If either in is on out is on. If both are on the output is on. upload:or2.jpg
xor2 is slighly differet from an or gate in that if both inputs are on the output is off. If either input is on the output is on. upload:xor.jpg
-not means that you're using the inverted value, so that a low voltage on the physical pin produces a TRUE value inside HAL (instead of "positive logic" where a high voltage on the physical pin produces a TRUE value)