ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
motorHwErrors.hpp
Go to the documentation of this file.
1 
10 #ifndef FCF_DEVMGR_DEVICE_MOTOR_HW_ERRORS_HPP
11 #define FCF_DEVMGR_DEVICE_MOTOR_HW_ERRORS_HPP
12 
13 // System headers
14 #include <unordered_map>
15 
16 namespace fcf::devmgr::motor {
17 
18  enum {
50 
51 
52  HW_ERR_TC_VEL = 16929,
64  };
65 
66 
67 
68  const std::unordered_map<short, std::string> hw_errors = {
69  {HW_ERR_HW_NOT_OP, "TwinCAT not OP or CouplerState not mapped."},
70  {HW_ERR_LOCAL, "control not allowed. Motor in Local mode."},
71  {HW_ERR_INIT_ABORTED, "INIT command aborted."},
72  {HW_ERR_TIMEOUT_INIT, "INIT timed out."},
73  {HW_ERR_TIMEOUT_MOVE, "move timed out."},
74  {HW_ERR_TIMEOUT_RESET, "reset timed out."},
75  {HW_ERR_TIMEOUT_SETPOS, "set Position timed out."},
76  {HW_ERR_TIMEOUT_USER_PREINIT, "user PRE-INIT timed out."},
77  {HW_ERR_TIMEOUT_USER_POSTINIT, "user POST-INIT timed out."},
78  {HW_ERR_TIMEOUT_USER_PREMOVE, "user PRE-MOVE timed out."},
79  {HW_ERR_TIMEOUT_USER_POSTMOVE, "user POST-MOVE timed out."},
80  {HW_ERR_SETPOS, "set Position failed."},
81  {HW_ERR_STOP, "STOP failed."},
82  {HW_ERR_ABORT, "motion aborted."},
83  {HW_ERR_SW_LIMIT_LOWER, "lower SW Limit Exceeded."},
84  {HW_ERR_SW_LIMIT_UPPER, "upper SW Limit Exceeded."},
85  {HW_ERR_BRAKE_ACTIVE, "cannot move. Brake active."},
86  {HW_ERR_BRAKE_ENGAGE, "failed to engage brake."},
87  {HW_ERR_BRAKE_DISENGAGE, "failed to disengage brake."},
88  {HW_ERR_SWITCH_NOT_USED, "switch was not detected in previous INIT action."},
89  {HW_ERR_ENABLE, "failed to enable Axis."},
90  {HW_ERR_NOVRAM_READ, "failed to read from NOVRAM"},
91  {HW_ERR_NOVRAM_WRITE, "failed to write from NOVRAM"},
92  {HW_ERR_SWITCH_EXIT, "timeout on switch exit. Check nTimeoutSwitch."},
93  {HW_ERR_STOP_LIMITS_BOTH, "both LSTOP and USTOP limits active."},
94  {HW_ERR_HW_LIMITS_BOTH, "both limit switches LHW and UHW active."},
95  {HW_ERR_HW_IN_POS, "in-Pos switch not active and the end of movement."},
96  {HW_ERR_HW_LOCKED, "motor Locked! Cannot move."},
97  {HW_ERR_SOE_ADS, "SoE ADS Error."},
98  {HW_ERR_SOE_SERCOS, "SoE Sercos Error."},
99 
100 
101  {HW_ERR_TC_VEL, "requested set velocity is not allowed."},
102  {HW_ERR_TC_NOT_READY_FOR_STAR, "drive not ready during axis start. Maybe SW limits."},
103  {HW_ERR_TC_DISABLED_MOVE, "motor disabled while moving. Reset required!"},
104  {HW_ERR_TC_BISECTION, "motion command could not be realized (BISECTION)"},
105  {HW_ERR_TC_MODULO_POS, "target position >= full turn (modulo-period)"},
106  {HW_ERR_TC_STOP_ACTIVE, "stop command still active. Axis locked. Reset required!"},
107  {HW_ERR_TC_VEL_NEG, "set velocity not allowed (<=0)"},
108  {HW_ERR_TC_TARGET_LSW, "target position beyond Lower Software Limit."},
109  {HW_ERR_TC_TARGET_USW, "target position beyond Upper Software Limit."},
110  {HW_ERR_TC_FOLLOWING_ERROR, "following error. Reset required!"},
111  {HW_ERR_TC_NOT_READY, "drive not ready for operation."},
112  {HW_ERR_TC_IN_POS_6_SEC, "in-position 6 sec timeout. Reset required!"}
113  };
114 
115 }
116 
117 #endif // FCF_DEVMGR_DEVICE_MOTOR_HW_ERRORS_HPP
Definition: motorHwErrors.hpp:42
Definition: motorHwErrors.hpp:27
Definition: motorHwErrors.hpp:38
Definition: motorHwErrors.hpp:20
Definition: motorHwErrors.hpp:19
Definition: motorHwErrors.hpp:26
Definition: motorHwErrors.hpp:45
Definition: motorHwErrors.hpp:24
Definition: motorHwErrors.hpp:53
Definition: motorHwErrors.hpp:54
Definition: motorHwErrors.hpp:62
Definition: motorHwErrors.hpp:39
Definition: motorHwErrors.hpp:57
Definition: motorHwErrors.hpp:47
Definition: motorHwErrors.hpp:21
Definition: motorHwErrors.hpp:58
Definition: motorHwErrors.hpp:40
Definition: motorHwErrors.hpp:25
Definition: motorHwErrors.hpp:63
Definition: motorHwErrors.hpp:34
Definition: motorHwErrors.hpp:48
Definition: motorHwErrors.hpp:59
Definition: motorHwErrors.hpp:30
Definition: motorHwErrors.hpp:35
Definition: motorHwErrors.hpp:22
Definition: motorHwErrors.hpp:52
Definition: motorHwErrors.hpp:43
Definition: motorHwErrors.hpp:44
Definition: motorHwErrors.hpp:41
Definition: motorHwErrors.hpp:55
Definition: motorHwErrors.hpp:60
Definition: motorHwErrors.hpp:23
Definition: motorHwErrors.hpp:32
Definition: motorHwErrors.hpp:56
const std::unordered_map< short, std::string > hw_errors
Definition: motorHwErrors.hpp:68
Definition: motorHwErrors.hpp:33
Definition: motorHwErrors.hpp:49
Definition: motorHwErrors.hpp:37
Definition: motorHwErrors.hpp:29
Definition: motorHwErrors.hpp:46
Definition: motorHwErrors.hpp:31
Definition: motorHwErrors.hpp:61
Definition: motorHwErrors.hpp:28
Definition: motorHwErrors.hpp:36