ok, we have the following things in the laser Parameters aeria:
laser raw value-> witch is the value comming from the analog Input (DRO 1000 regardin to the UC300 Manual)
multiplicator -> is the multiplicator to get mm from the raw value
actvalue -> is laser raw value * multiplicator
setpoint (the left one) -> is a known height whre you can "calibrate" the laser to your bed by putting the
laser to this known height an press the "set" button
act value with Offset -> is the result of all
setpoint (the right one) -> is just 1000.0 - setpoint (the left one)
the main calculation is (see code for macropump):
actmm = laser raw value * multiplicator
act value with Offset = 1000.0 - actmm - Offset
i had to use this 1000.0 minus something, because the raw value will be bigger on a deep Point of your
bed then on a high Point.
so i had to reverse the measurement.
hope i could explain the idea in my bad englisch.
btw, after the laser is giving an voltage to the analog Input, the value in Parameter -> laser raw value should Change.
Thomas