ifw-fcf  4.1.0-pre2
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
fcf::devmgr::motor::HW_ERR_TIMEOUT_SETPOS
@ HW_ERR_TIMEOUT_SETPOS
Definition: motorHwErrors.hpp:26
fcf::devmgr::motor::HW_ERR_TIMEOUT_MOVE
@ HW_ERR_TIMEOUT_MOVE
Definition: motorHwErrors.hpp:24
fcf::devmgr::motor::HW_ERR_SWITCH_EXIT
@ HW_ERR_SWITCH_EXIT
Definition: motorHwErrors.hpp:43
fcf::devmgr::motor::HW_ERR_HW_NOT_OP
@ HW_ERR_HW_NOT_OP
Definition: motorHwErrors.hpp:20
fcf::devmgr::motor::HW_ERR_STOP
@ HW_ERR_STOP
Definition: motorHwErrors.hpp:32
fcf::devmgr::motor::HW_ERR_INIT_ABORTED
@ HW_ERR_INIT_ABORTED
Definition: motorHwErrors.hpp:22
fcf::devmgr::motor
Definition: motor.hpp:20
fcf::devmgr::motor::HW_ERR_TC_STOP_ACTIVE
@ HW_ERR_TC_STOP_ACTIVE
Definition: motorHwErrors.hpp:57
fcf::devmgr::motor::HW_ERR_TC_DISABLED_MOVE
@ HW_ERR_TC_DISABLED_MOVE
Definition: motorHwErrors.hpp:54
fcf::devmgr::motor::HW_ERR_SOE_SERCOS
@ HW_ERR_SOE_SERCOS
Definition: motorHwErrors.hpp:49
fcf::devmgr::motor::HW_ERR_SOE_ADS
@ HW_ERR_SOE_ADS
Definition: motorHwErrors.hpp:48
fcf::devmgr::motor::HW_ERR_HW_LIMITS_BOTH
@ HW_ERR_HW_LIMITS_BOTH
Definition: motorHwErrors.hpp:45
fcf::devmgr::motor::HW_ERR_TC_BISECTION
@ HW_ERR_TC_BISECTION
Definition: motorHwErrors.hpp:55
fcf::devmgr::motor::HW_ERR_BRAKE_ACTIVE
@ HW_ERR_BRAKE_ACTIVE
Definition: motorHwErrors.hpp:36
fcf::devmgr::motor::HW_ERR_TC_TARGET_LSW
@ HW_ERR_TC_TARGET_LSW
Definition: motorHwErrors.hpp:59
fcf::devmgr::motor::HW_ERR_TIMEOUT_USER_POSTMOVE
@ HW_ERR_TIMEOUT_USER_POSTMOVE
Definition: motorHwErrors.hpp:30
fcf::devmgr::motor::HW_ERR_TC_VEL_NEG
@ HW_ERR_TC_VEL_NEG
Definition: motorHwErrors.hpp:58
fcf::devmgr::motor::HW_ERR_ABORT
@ HW_ERR_ABORT
Definition: motorHwErrors.hpp:33
fcf::devmgr::motor::HW_ERR_TIMEOUT_USER_POSTINIT
@ HW_ERR_TIMEOUT_USER_POSTINIT
Definition: motorHwErrors.hpp:28
fcf::devmgr::motor::HW_ERR_HW_LOCKED
@ HW_ERR_HW_LOCKED
Definition: motorHwErrors.hpp:47
fcf::devmgr::motor::HW_ERR_TC_VEL
@ HW_ERR_TC_VEL
Definition: motorHwErrors.hpp:52
fcf::devmgr::motor::HW_ERR_SW_LIMIT_LOWER
@ HW_ERR_SW_LIMIT_LOWER
Definition: motorHwErrors.hpp:34
fcf::devmgr::motor::HW_ERR_NOVRAM_READ
@ HW_ERR_NOVRAM_READ
Definition: motorHwErrors.hpp:41
fcf::devmgr::motor::HW_ERR_BRAKE_DISENGAGE
@ HW_ERR_BRAKE_DISENGAGE
Definition: motorHwErrors.hpp:38
fcf::devmgr::motor::HW_ERR_SWITCH_NOT_USED
@ HW_ERR_SWITCH_NOT_USED
Definition: motorHwErrors.hpp:39
fcf::devmgr::motor::HW_ERR_TIMEOUT_USER_PREINIT
@ HW_ERR_TIMEOUT_USER_PREINIT
Definition: motorHwErrors.hpp:27
fcf::devmgr::motor::HW_ERR_TIMEOUT_RESET
@ HW_ERR_TIMEOUT_RESET
Definition: motorHwErrors.hpp:25
fcf::devmgr::motor::HW_ERR_TC_NOT_READY
@ HW_ERR_TC_NOT_READY
Definition: motorHwErrors.hpp:62
fcf::devmgr::motor::HW_ERR_HW_IN_POS
@ HW_ERR_HW_IN_POS
Definition: motorHwErrors.hpp:46
fcf::devmgr::motor::HW_ERR_TC_MODULO_POS
@ HW_ERR_TC_MODULO_POS
Definition: motorHwErrors.hpp:56
fcf::devmgr::motor::HW_ERR_SETPOS
@ HW_ERR_SETPOS
Definition: motorHwErrors.hpp:31
fcf::devmgr::motor::HW_ERR_ENABLE
@ HW_ERR_ENABLE
Definition: motorHwErrors.hpp:40
fcf::devmgr::motor::HW_ERR_TC_NOT_READY_FOR_STAR
@ HW_ERR_TC_NOT_READY_FOR_STAR
Definition: motorHwErrors.hpp:53
fcf::devmgr::motor::HW_ERR_LOCAL
@ HW_ERR_LOCAL
Definition: motorHwErrors.hpp:21
fcf::devmgr::motor::HW_ERR_TC_FOLLOWING_ERROR
@ HW_ERR_TC_FOLLOWING_ERROR
Definition: motorHwErrors.hpp:61
fcf::devmgr::motor::hw_errors
const std::unordered_map< short, std::string > hw_errors
Definition: motorHwErrors.hpp:68
fcf::devmgr::motor::HW_ERR_BRAKE_ENGAGE
@ HW_ERR_BRAKE_ENGAGE
Definition: motorHwErrors.hpp:37
fcf::devmgr::motor::HW_ERR_TC_IN_POS_6_SEC
@ HW_ERR_TC_IN_POS_6_SEC
Definition: motorHwErrors.hpp:63
fcf::devmgr::motor::HW_SUCCESS
@ HW_SUCCESS
Definition: motorHwErrors.hpp:19
fcf::devmgr::motor::HW_ERR_TC_TARGET_USW
@ HW_ERR_TC_TARGET_USW
Definition: motorHwErrors.hpp:60
fcf::devmgr::motor::HW_ERR_STOP_LIMITS_BOTH
@ HW_ERR_STOP_LIMITS_BOTH
Definition: motorHwErrors.hpp:44
fcf::devmgr::motor::HW_ERR_NOVRAM_WRITE
@ HW_ERR_NOVRAM_WRITE
Definition: motorHwErrors.hpp:42
fcf::devmgr::motor::HW_ERR_TIMEOUT_USER_PREMOVE
@ HW_ERR_TIMEOUT_USER_PREMOVE
Definition: motorHwErrors.hpp:29
fcf::devmgr::motor::HW_ERR_TIMEOUT_INIT
@ HW_ERR_TIMEOUT_INIT
Definition: motorHwErrors.hpp:23
fcf::devmgr::motor::HW_ERR_SW_LIMIT_UPPER
@ HW_ERR_SW_LIMIT_UPPER
Definition: motorHwErrors.hpp:35