TMC2130Stepper icon indicating copy to clipboard operation
TMC2130Stepper copied to clipboard

M122 - Understanding the readings.

Open MotoGP1199 opened this issue 5 years ago • 1 comments

M122 - I'm running a TMC2208 on X and a TMC2130 on E0. I can figure out some of the readings but am not sure on what all of the abbreviations mean. I have looked all over for a guide but everything I see just gives a general description of the M122 command in general. Any help would be appreciated. Also which reading will show skipped steps. Thanks

Here's what I'm reading. SENT: M122 READ: X:159.63 Y:97.28 Z:12.68 E:0.00 Count X:12774 Y:8058 Z:5045 READ: X E0 READ: Enabled false true READ: Set current 1200 400 READ: RMS current 1160 397 READ: MAX current 1636 560 READ: Run current 20/31 12/31 READ: Hold current 10/31 6/31 READ: CS actual 20/31 12/31 READ: PWM scale 55 33 READ: vsense 0=.325 1=.18 READ: stealthChop true true READ: msteps 16 16 READ: tstep 637 2896 READ: pwm READ: threshold 83 64 READ: [mm/s] 119.43 30.38 READ: OT prewarn true false READ: OT prewarn has READ: been triggered false false READ: off time 5 5 READ: blank time 24 24 READ: hysteresis READ: -end 2 2 READ: -start 3 3 READ: Stallguard thrs 0 READ: DRVSTATUS X E0 READ: stallguard READ: sg_result 0 READ: fsactive READ: stst READ: olb X READ: ola X READ: s2gb READ: s2ga READ: otpw X READ: ot READ: 157C READ: 150C READ: 143C READ: 120C X READ: s2vsa READ: s2vsb READ: Driver registers: X = 0x40:14:01:01 READ: E0 = 0x20:0C:00:00

MotoGP1199 avatar Oct 11 '18 18:10 MotoGP1199

See the TMC2130 datasheet from Trinamics. That should clear the values up.


Dmitri Farkov 647.898.5054

On Thu, 11 Oct 2018 at 14:20, MotoGP1199 [email protected] wrote:

M122 - I'm running a TMC2208 on X and a TMC2130 on E0. I can figure out some of the readings but am not sure on what all of the abbreviations mean. I have looked all over for a guide but everything I see just gives a general description of the M122 command in general. Any help would be appreciated. Also which reading will show skipped steps. Thanks

Here's what I'm reading. SENT: M122 READ: X:159.63 Y:97.28 Z:12.68 E:0.00 Count X:12774 Y:8058 Z:5045 READ: X E0 READ: Enabled false true READ: Set current 1200 400 READ: RMS current 1160 397 READ: MAX current 1636 560 READ: Run current 20/31 12/31 READ: Hold current 10/31 6/31 READ: CS actual 20/31 12/31 READ: PWM scale 55 33 READ: vsense 0=.325 1=.18 READ: stealthChop true true READ: msteps 16 16 READ: tstep 637 2896 READ: pwm READ: threshold 83 64 READ: [mm/s] 119.43 30.38 READ: OT prewarn true false READ: OT prewarn has READ: been triggered false false READ: off time 5 5 READ: blank time 24 24 READ: hysteresis READ: -end 2 2 READ: -start 3 3 READ: Stallguard thrs 0 READ: DRVSTATUS X E0 READ: stallguard READ: sg_result 0 READ: fsactive READ: stst READ: olb X READ: ola X READ: s2gb READ: s2ga READ: otpw X READ: ot READ: 157C READ: 150C READ: 143C READ: 120C X READ: s2vsa READ: s2vsb READ: Driver registers: X = 0x40:14:01:01 READ: E0 = 0x20:0C:00:00

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/teemuatlut/TMC2130Stepper/issues/55, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoBuJK9gfSrD7yA9fqPSKYdo7S9HjgQks5uj4v9gaJpZM4XYGs5 .

dmitrif avatar Oct 11 '18 18:10 dmitrif