diff options
| author | Tero Kontkanen <tero.k@granitedevices.fi> | 2014-12-11 16:16:28 +0200 |
|---|---|---|
| committer | Tero Kontkanen <tero.k@granitedevices.fi> | 2014-12-11 16:16:28 +0200 |
| commit | 64b2e70da82c4910fafda4ec63ce9e34eef3cb65 (patch) | |
| tree | f9f0dd2aecd01fe73d1224ad23142f37b72d3129 | |
| parent | c06bbfd7ec3324751b5af7229e4bd85df72dfb23 (diff) | |
| download | SimpleMotionV2-64b2e70da82c4910fafda4ec63ce9e34eef3cb65.tar.gz SimpleMotionV2-64b2e70da82c4910fafda4ec63ce9e34eef3cb65.zip | |
add SMP_CURRENT_LIMIT_REASON parameter
| -rw-r--r-- | simplemotion_defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/simplemotion_defs.h b/simplemotion_defs.h index 267724d..6ae11fe 100644 --- a/simplemotion_defs.h +++ b/simplemotion_defs.h @@ -504,6 +504,12 @@ #define SMP_OVERRIDE_REGENRES_DUTY 8004
#define SMP_DEVICE_TEMPERATURE 8007//reported in 0.01 celsius steps
#define SMP_CURRENT_LIMITED_TO_MA 8008//actual current limit (based on user settings, device temperature, voltage etc)
+#define SMP_CURRENT_LIMIT_REASON 8009 //last reason why current was clampled
+ #define CURR_LIMIT_REASON_NONE 0
+ #define CURR_LIMIT_REASON_VOLTAGE_SATURATION 1
+ #define CURR_LIMIT_REASON_SETTINGS 2
+ #define CURR_LIMIT_REASON_I2T 3
+ #define CURR_LIMIT_REASON_DRIVE_TEMPERATURE 4
/*IO side CPU sends encoder counter at index every time index is encountered. homing uses this info */
#define SMP_INDEX_PULSE_LOCATION 8005
|
