ты перепутал с INPUT_SCALELexxa писал(а):OUTPUT_SCALE - масштаб так сказать. Отношение одного оборта енкодера к единице перемещения стола. Грубо говоря на сколько переедет стол за один оборот энкодера
OUTPUT_SCALE = 1.000
OUTPUT_OFFSET = 0.000
(in HAL) These two values are the scale and offset factors for the axis output to the motor amplifiers. The second value (offset) is subtracted from the computed output (in volts), and divided by the first value (scale factor), before being written to the D/A converters. The units on the scale value are in true volts per DAC output volts. The units on the offset value are in volts. These can be used to linearize a DAC. Specifically, when writing outputs, the EMC first converts the desired output in quasi-SI units to raw actuator values, e.g., volts for an amplifier DAC. This scaling looks like: raw=\frac{output-offset}{scale}
The value for scale can be obtained analytically by doing a unit analysis, i.e., units are [output SI units]/[actuator units]. For example, on a machine with a velocity mode amplifier such that 1 volt results in 250 mm/sec
Note that the units of the offset are in machine units, e.g., mm/sec, and they are pre-subtracted from the sensor readings. The value for this offset is obtained by finding the value of your output which yields 0.0 for the actuator output. If the DAC is linearized, this offset is normally 0.0.
The scale and offset can be used to linearize the DAC as well, resulting in values that reflect the combined effects of amplifier gain, DAC non-linearity, DAC units, etc. To do this, follow this procedure: . Build a calibration table for the output, driving the DAC with a desired voltage and measuring the result. See table [cap:Output-Voltage-Measurements] for an example of voltage measurements. . Do a least-squares linear fit to get coefficients a, b such that meas=a*raw+b . Note that we want raw output such that our measured result is identical to the commanded output. This means . cmd=a*raw+b . raw=(cmd-b)/a . As a result, the a and b coefficients from the linear fit can be used as the scale and offset for the controller directly.

