Calibration
Each drive is calibrated at the factory and ships with its own end-of-line test record. This page lists what the calibration contains, how the drive protects it, and how to read it and keep a copy.
Contents
| Item | Used for |
|---|---|
| Encoder offset and linearity | Aligning the encoder with the motor's electrical angle, and correcting encoder error over a turn |
| Motor electrical parameters | Current control |
| Current-sensor offsets and gains | Correcting current measurements |
| Torque-constant map | Converting current to torque |
| Cogging map | Compensating cogging torque |
| Temperature-sensor calibration | Correcting temperature readings |
| Friction and observer parameters | Friction compensation and the firmware observer |
| Serial number | Tying the calibration to the drive |
| Test-record fingerprint | Tying the calibration to the drive's end-of-line test record |
Storage
- The calibration has its own area of non-volatile memory. Firmware updates do not write to it.
- The drive keeps two copies, each protected by a CRC.
- The factory calibration is write-protected.
Not defined yet: what the drive does and reports when a copy fails its CRC check, and whether any item can be recalibrated outside the factory.
Effect on maintenance
- A firmware update leaves the calibration unchanged. You do not recalibrate after an update.
- The calibration stays with the drive. A replacement drive brings its own calibration and test record.
Read the calibration and keep a copy
The calibration is readable over UDS. The DIDs and the session they need are TBD.
Read the serial number and the calibration DIDs with the script from UDS diagnostics, and save the output:
python3 uds_read.py <request-id> <response-id> <serial-number DID TBD> <calibration DID TBD> ... > calibration_<serial>.txtCheck that the serial number matches the drive's end-of-line test record.
Check that the test-record fingerprint matches the record. The fingerprint format is TBD.
Store the file with the test record.
Whether a saved copy can be written back to a drive is TBD. The factory calibration itself cannot be overwritten.
End-of-line test record
Each drive ships with its own end-of-line test record. Its contents and file format are TBD. The fingerprint in the calibration lets you check that a record and a drive belong together.