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