FEDRA emulsion software from the OPERA Collaboration
MotnErr.h
Go to the documentation of this file.
1 //=============================================================================================
2 // MotnErr.h - Motion Control Error Codes
3 //
4 // Always use symbolic names and not explicit values when referring to
5 // specific error codes in your program.
6 //
7 // These error codes are also documented in Appendix A of the
8 // Software Reference Manual and the Function Reference Online Help
9 //
10 // Copyright 2000
11 // National Instruments Corporation.
12 // All rights reserved.
13 //
14 // Last Updated: 5/12/2000
15 //
16 //=============================================================================================
17 
18 #ifndef ___MotnErr_h___
19 #define ___MotnErr_h___
20 
21 #define NIMC_noError 0 // No error.
22 #define NIMC_readyToReceiveTimeoutError -70001 // Ready to Receive Timeout. The controller is still not ready to receive
23  // commands after the specified timeout period. This error may occur if the
24  // controller is busy processing previous commands. If this error persists,
25  // even when the controller should not be busy, contact National Instruments.
26 #define NIMC_currentPacketError -70002 // Either this function is not supported by this type of controller, or the
27  // controller received an incomplete command packet and cannot execute the
28  // function.
29 #define NIMC_noReturnDataBufferError -70003 // No data in the Return Data Buffer. The kernel driver returns an error if
30  // it runs out of time waiting for the controller to return data to the
31  // Return Data Buffer. For FlexMotion controllers, this error can also be
32  // returned if the power-up state of the controller has not been cleared.
33 #define NIMC_halfReturnDataBufferError -70004 // Partial readback packet. The data returned by the controller is
34  // incomplete. The kernel driver timed out after getting partial data.
35 #define NIMC_boardFailureError -70005 // Most likely, your controller is not installed or configured properly. If
36  // this error persists when you know your controller is installed and
37  // configured properly, it indicates an internal hardware failure.
38 #define NIMC_badResourceIDOrAxisError -70006 // For ValueMotion, an invalid axis number was used. For FlexMotion, an
39  // invalid axis number or other resource ID (Vector Space, Encoder, I/O Port,
40  // and so on) was used.
41 #define NIMC_CIPBitError -70007 // A previous function is currently being executed, so the controller cannot
42  // accept this function until the previous function has completed. If this
43  // problem persists, try putting a delay between the offending commands.
44 #define NIMC_previousPacketError -70008 // The function called previous to this one is not supported by this type of
45  // controller.
46 #define NIMC_packetErrBitNotClearedError -70009 // Packet error bit not cleared by terminator (hardware error).
47 #define NIMC_badCommandError -70010 // Command ID not recognized. Invalid command sent to the controller
48  // (FlexMotion only).
49 #define NIMC_badReturnDataBufferPacketError -70011 // Corrupt readback data. The data returned by the motion controller is
50  // corrupt.
51 #define NIMC_badBoardIDError -70012 // Illegal board ID. You must use the board ID assigned to your controller in
52  // Measurement & Automation Explorer.
53 #define NIMC_packetLengthError -70013 // Command packet length is incorrect.
54 #define NIMC_closedLoopOnlyError -70014 // This command is valid only on closed-loop axes (closed-loop stepper and
55  // servo).
56 #define NIMC_returnDataBufferFlushError -70015 // Unable to flush the Return Data Buffer.
57 #define NIMC_servoOnlyError -70016 // This command is valid only on servo axes.
58 #define NIMC_stepperOnlyError -70017 // This command is valid only on stepper axes.
59 #define NIMC_closedLoopStepperOnlyError -70018 // This command is valid only on closed-loop stepper axes.
60 #define NIMC_noBoardConfigInfoError -70019 // Controller configuration information is missing or corrupt.
61 #define NIMC_countsNotConfiguredError -70020 // Steps/rev and/or counts/rev (in ValueMotion, lines/rev) not loaded for
62  // this axis.
63 #define NIMC_systemResetError -70021 // System reset did not occur in maximum time allowed.
64 #define NIMC_functionSupportError -70022 // This command is not supported by this controller or operating system.
65 #define NIMC_parameterValueError -70023 // One of the parameters passed into the function has an illegal value.
66 #define NIMC_motionOnlyError -70024 // Motion command sent to an Encoder board.
67 #define NIMC_returnDataBufferNotEmptyError -70025 // The Return Data Buffer is not empty. Commands that expect data returned
68  // from the controller cannot be sent until the Return Data Buffer is
69  // cleared.
70 #define NIMC_modalErrorsReadError -70026 // The Motion Error Hander.flx VI discovered modal error(s) in the modal
71  // error stack. These error(s) can be viewed in the Modal Error(s) Out
72  // Indicator/terminal of this VI.
73 #define NIMC_processTimeoutError -70027 // Under Windows NT, a function call made to the motion controller timed out
74  // waiting for driver access. For ethernet controllers, a function call made
75  // to the motion controller timed out waiting for return data. This can
76  // happen due to a slow or lost connection with the ethernet box product.
77 #define NIMC_insufficientSizeError -70028 // The resource is not large enough to supported the specified operation.
78 #define NIMC_reserved4Error -70029 // Reserved for obsolete product.
79 #define NIMC_reserved5Error -70030 // Reserved for obsolete product.
80 #define NIMC_reserved6Error -70031 // Reserved for obsolete product.
81 #define NIMC_reserved7Error -70032 // Reserved for obsolete product.
82 #define NIMC_badPointerError -70033 // A NULL pointer has been passed into a function inappropriately.
83 #define NIMC_wrongReturnDataError -70034 // Incorrect data has been returned by the controller. This data does not
84  // correspond to the expected data for the command sent to the controller.
85 #define NIMC_watchdogTimeoutError -70035 // A fatal error has occurred on the controller. You must reset the
86  // controller by power cycling your computer. Contact National Instruments
87  // technical support if this problem persists.
88 #define NIMC_invalidRatioError -70036 // A specified ratio is invalid.
89 #define NIMC_irrelevantAttributeError -70037 // The specified attribute is not relevant.
90 #define NIMC_internalSoftwareError -70038 // An unexpected error has occurred internal to the driver. Please contact
91  // National Instruments with the name of the function or VI that returned
92  // this error.
93 #define NIMC_1394WatchdogEnableError -70039 // The communication watchdog on the 1394 motherboard could not be started.
94 #define NIMC_availableForUse40 -70040 // Available
95 #define NIMC_boardIDInUseError -70041 // The boardID is already in use by another controller. If trying to change
96  // a controllers boardID, select a boardID not in use.
97 #define NIMC_availableForUse42 -70042 // Available
98 #define NIMC_availableForUse43 -70043 // Available
99 #define NIMC_availableForUse44 -70044 // Available
100 #define NIMC_availableForUse45 -70045 // Available
101 #define NIMC_availableForUse46 -70046 // Available
102 #define NIMC_availableForUse47 -70047 // Available
103 #define NIMC_availableForUse48 -70048 // Available
104 #define NIMC_downloadChecksumError -70049 // There was an error during check sum on a file being downloaded to the
105  // FlexMotion controller.
106 #define NIMC_reserved50Error -70050 // Reserved.
107 #define NIMC_firmwareDownloadError -70051 // Firmware download failed. Reset the controller and try downloading again.
108 #define NIMC_FPGAProgramError -70052 // Internal Error. The FPGA failed to program. Reset the controller and try
109  // again. If the problem persists, contact National Instruments technical
110  // support.
111 #define NIMC_DSPInitializationError -70053 // Internal Error. The DSP failed to initialize. Reset the controller and
112  // try again. If the problem persists, contact National Instruments technical
113  // support.
114 #define NIMC_corrupt68331FirmwareError -70054 // Corrupt onboard microprocessor firmware detected. Download new firmware.
115 #define NIMC_corruptDSPFirmwareError -70055 // Corrupt DSP firmware detected. Download new DSP firmware.
116 #define NIMC_corruptFPGAFirmwareError -70056 // Corrupt FPGA firmware detected. Download new FPGA firmware.
117 #define NIMC_interruptConfigurationError -70057 // Internal Error. Host interrupt configuration failed and interrupt support
118  // is disabled.
119 #define NIMC_IOInitializationError -70058 // Internal Error. The I/O structure on the controller failed to initialize.
120  // Reset the controller and try again. If the problem persists, contact
121  // National Instruments technical support.
122 #define NIMC_flashromCopyError -70059 // Error copying to the FLASH ROM.
123 #define NIMC_corruptObjectSectorError -70060 // The objects stored in FLASH ROM are corrupt.
124 #define NIMC_bufferInUseError -70061 // The specified buffer is in use.
125 #define NIMC_oldDataStopError -70062 // The Read Buffer or Write Buffer function was unable to complete
126  // sucessfully because old data was encountered in the course of reading from
127  // or writing to the buffer.
128 #define NIMC_bufferConfigurationError -70063 // The buffer has not been configured properly. Buffer type cannot be
129  // changed. The buffer might exist in ROM, but has not yet been configured
130  // since the last power cycle.
131 #define NIMC_illegalBufferOperation -70064 // This operation is invalid at this time. You cannot write to a ROM buffer.
132 #define NIMC_illegalContouringError -70065 // This operation cannot be executed while a contouring operation is in
133  // progress.
134 #define NIMC_availableForUse66 -70066 // None
135 #define NIMC_availableForUse67 -70067 // None
136 #define NIMC_availableForUse68 -70068 // None
137 #define NIMC_availableForUse69 -70069 // None
138 #define NIMC_availableForUse70 -70070 // None
139 #define NIMC_availableForUse71 -70071 // None
140 #define NIMC_boardInPowerUpResetStateError -70072 // The FlexMotion controller is in power up reset state. Please execute the
141  // Clear Power Up Status function or VI before sending any commands to the
142  // controller.
143 #define NIMC_boardInShutDownStateError -70073 // The controller cannot accept this function, as it has been shut down.
144 #define NIMC_shutDownFailedError -70074 // The controller failed to shut down. This could be because it failed to
145  // disable the DACs, the encoders, or the ADCs, or because it could not reset
146  // the I/O back to user defaults.
147 #define NIMC_hostFIFOBufferFullError -70075 // Communication FIFO buffer between the host computer and the controller is
148  // full.
149 #define NIMC_noHostDataError -70076 // Communications error. The controller did not receive any data in the
150  // command packet from the host computer.
151 #define NIMC_corruptHostDataError -70077 // Communications error. The controller received corrupt data in the packet
152  // from the host computer.
153 #define NIMC_invalidFunctionDataError -70078 // Invalid function data has been passed. This is usually a parameter out of
154  // range, or an illegal combination of parameter values.
155 #define NIMC_autoStartFailedError -70079 // The controller could not run the onboard program on auto start. When you
156  // enable auto start, make sure that you specify a valid program number and
157  // that the program is saved in FLASH ROM.
158 #define NIMC_returnDataBufferFullError -70080 // The Return Data Buffer on the controller is full.
159 #define NIMC_reserved81Error -70081 // Reserved - Never used for DSP messaging error.
160 #define NIMC_reserved82Error -70082 // Reserved - Never used for position wrap-around error.
161 #define NIMC_DSPXmitBufferFullError -70083 // Internal error. The transmit buffer of the DSP is full. Messages from DSP
162  // to the onboard microprocessor are being delayed or lost.
163 #define NIMC_DSPInvalidCommandError -70084 // Internal error. The DSP received an illegal command.
164 #define NIMC_DSPInvalidDeviceError -70085 // Internal error. The DSP received a command with an invalid Device ID.
165 #define NIMC_availableForUse86 -70086 // None
166 #define NIMC_availableForUse87 -70087 // None
167 #define NIMC_availableForUse88 -70088 // None
168 #define NIMC_availableForUse89 -70089 // None
169 #define NIMC_availableForUse90 -70090 // None
170 #define NIMC_availableForUse91 -70091 // None
171 #define NIMC_DSPXmitDataError -70092 // Internal error. The data returned by the DSP is incomplete or corrupt.
172 #define NIMC_DSPCommunicationsError -70093 // Internal error. A command from the onboard microprocessor to the DSP was
173  // corrupt and ignored.
174 #define NIMC_DSPMessageBufferEmptyError -70094 // Internal Error. This is an internal message to indicate that the there is
175  // no more data in the internal message buffer.
176 #define NIMC_DSPCommunicationsTimeoutError -70095 // Internal error. There was an internal timeout while sending commands to
177  // the DSP.
178 #define NIMC_passwordError -70096 // The password used for this function is incorrect.
179 #define NIMC_mustOnMustOffConflictError -70097 // There is a conflict between the mustOn and mustOff values set for this
180  // function.
181 #define NIMC_reserved98Error -70098 // Was BAD_IO_DIR_ERROR
182 #define NIMC_reserved99Error -70099 // Was OUTCOMP_ERROR - Counter/timer breakpoint is set for an invalid I/O bit.
183 #define NIMC_IOEventCounterError -70100 // Problem with the I/O Event Counter.
184 #define NIMC_reserved101Error -70101 // Was PAI_TM_ERROR - Problem with the I/O timer gate.
185 #define NIMC_wrongIODirectionError -70102 // The I/O bit configuration does not agree with its port's direction setting.
186 #define NIMC_wrongIOConfigurationError -70103 // I/O bit configuration is not possible for that pin.
187 #define NIMC_outOfEventsError -70104 // Internal error. The number of events pending have reached the maximum
188  // allowed.
189 #define NIMC_availableForUse105 -70105 // None
190 #define NIMC_outputDeviceNotAssignedError -70106 // No DAC or stepper output is assigned to this axis.
191 #define NIMC_availableForUse107 -70107 // None
192 #define NIMC_PIDUpdateRateError -70108 // PID rate specified is too fast for the number of axes and/or encoders
193  // enabled.
194 #define NIMC_feedbackDeviceNotAssignedError -70109 // No primary feedback device (encoder or ADC) is assigned to a servo or
195  // closed-loop stepper axis.
196 #define NIMC_reserved110Error -70110 // None - was duplicate - same as 106 -NIMC_outputDeviceNotAssignedError
197 #define NIMC_availableForUse111 -70111 // None
198 #define NIMC_availableForUse112 -70112 // None
199 #define NIMC_noMoreRAMError -70113 // No RAM available for object (program or buffer) storage.
200 #define NIMC_reserved114Error -70114 // Was NIMC_nestedProgramError.
201 #define NIMC_jumpToInvalidLabelError -70115 // A Jump to Label on Condition function in a program had an invalid label.
202 #define NIMC_invalidConditionCodeError -70116 // Condition selected is invalid.
203 #define NIMC_homeLimitNotEnabledError -70117 // Find Home function cannot execute because the Home and/or Limit inputs are
204  // not enabled.
205 #define NIMC_findHomeError -70118 // Find home was not successful because the motor stopped before the find
206  // home switch was found.
207 #define NIMC_limitSwitchActiveError -70119 // The desired move cannot be completed because the limit input is active in
208  // the direction of travel.
209 #define NIMC_availableForUse120 -70120 // None
210 #define NIMC_positionRangeError -70121 // Absolute target position loaded would cause the move length to be out of
211  // the +/-31 bit range allowed for a single move segment.
212 #define NIMC_encoderDisabledError -70122 // The encoder is disabled. The encoder must be enabled to read it.
213 #define NIMC_moduloBreakpointError -70123 // The breakpoint value loaded exceeds the modulo range.
214 #define NIMC_findIndexError -70124 // Find Index sequence did not find the index successfully.
215 #define NIMC_wrongModeError -70125 // The function was not executed because it was attempted at an illegal time.
216 #define NIMC_axisConfigurationError -70126 // An axis cannot be configured while enabled. Disable the axis and then
217  // configure it.
218 #define NIMC_pointsTableFullError -70127 // The points table for cubic splining is full.
219 #define NIMC_available128Error -70128 // Was used for TABLE_ALLOC_ERROR but NIMC_noMoreRAMError should be used
220  // instead.
221 #define NIMC_axisDisabledError -70129 // A disabled axis has been commanded to move. Enable the axis before
222  // executing a move on it.
223 #define NIMC_memoryRangeError -70130 // An invalid memory location is being addressed on the controller.
224 #define NIMC_inPositionUpdateError -70131 // Internal error. The axis position could not be read for in-position
225  // verification.
226 #define NIMC_targetPositionUpdateError -70132 // Internal error. The DSP was too busy to update the target position.
227 #define NIMC_pointRequestMissingError -70133 // Internal error. The internal points request buffer is missing a request.
228 #define NIMC_internalSamplesMissingError -70134 // Internal error. The internal samples buffer is missing samples.
229 #define NIMC_reserved135Error -70135 // Was NIMC_axisEnabledError
230 #define NIMC_eventTimeoutError -70136 // A wait operation timed out or a read function timed out.
231 #define NIMC_objectReferenceError -70137 // An attempt was made to reference a nonexistent program object or buffer
232  // object. Or, the object number is already in use by an object of a
233  // different type. Choose a different object number, or free/delete the
234  // object currently owning that object number.
235 #define NIMC_outOfMemoryError -70138 // Not enough FLASH ROM space to save this object (program or buffer).
236 #define NIMC_registryFullError -70139 // Object registry is full. The number of programs and buffers has reached
237  // the limit. Free some programs or buffers from RAM or ROM using the Object
238  // Memory Management function.
239 #define NIMC_noMoreProgramPlayerError -70140 // All program players (maximum 10) are in use storing/playing programs.
240 #define NIMC_programOverruleError -70141 // A Start, Blend, Find Home, or Find Index function being executed from an
241  // onboard program has been overruled by a Stop Motion function from the host
242  // computer. The program is left in the PAUSED state. Execute the
243  // Pause/Resume Program function to continue.
244 #define NIMC_followingErrorOverruleError -70142 // A Start, Blend, Find Home, or Find Index function being executed from an
245  // onboard program has been overruled due to a following error condition.
246  // The program is left in the PAUSED state. Execute the Pause/Resume Program
247  // function to continue.
248 #define NIMC_reserved143Error -70143 // None - Was used for I/O interrupt stuck on condition.
249 #define NIMC_illegalVariableError -70144 // An illegal general-purpose variable is being used.
250 #define NIMC_illegalVectorSpaceError -70145 // The vector space being used does not have enough axes assigned to it.
251 #define NIMC_noMoreSamplesError -70146 // There are no samples to read. Execute Acquire Trajectory Data before
252  // trying to read samples.
253 #define NIMC_slaveAxisKilledError -70147 // Gearing cannot be enabled because the slave axis is in a killed state.
254  // Issue a halt stop or decel stop with the Stop Motion function on the slave
255  // axis to energize it.
256 #define NIMC_ADCDisabledError -70148 // The ADC is disabled. The ADC channel must be enabled to read it.
257 #define NIMC_operationModeError -70149 // Axes that are a part of a vector space are either in velocity mode or have
258  // different operation modes.
259 #define NIMC_followingErrorOnFindHomeError -70150 // Find Home sequence did not find home successfully because the axis tripped
260  // on following error.
261 #define NIMC_invalidVelocityError -70151 // The vector velocity is not valid. The resulting angular velocity is out
262  // of range. Change the vector velocity for the arc move.
263 #define NIMC_invalidAccelerationError -70152 // The vector acceleration is not valid. The resulting angular acceleration
264  // is out of range. Change the vector acceleration for the arc move.
265 #define NIMC_samplesBufferFullError -70153 // Internal error. The internal samples buffer is full.
266 #define NIMC_illegalVectorError -70154 // The input or return vector being used is invalid.
267 #define NIMC_QSPIFailedError -70155 // Internal error. The internal QSPI serial bus failed and ADC values cannot
268  // be read.
269 #define NIMC_reserved156Error -70156 // None - Duplicate - same as Error 27
270 #define NIMC_pointsBufferFullError -70157 // Internal error. The internal point request buffer is full.
271 #define NIMC_axisInitializationError -70158 // Internal Error. The internal axis data structures failed to initialize.
272  // Reset the controller and try again. If the problem persists, contact
273  // National Instruments technical support.
274 #define NIMC_encoderInitializationError -70159 // Internal Error. The internal encoder data structures failed to
275  // initialize. Reset the controller and try again. If the problem persists,
276  // contact National Instruments technical support.
277 #define NIMC_stepChannelInitializationError -70160 // Internal Error. The internal stepper output data structures failed to
278  // initialize. Reset the controller and try again. If the problem persists,
279  // contact National Instruments technical support.
280 #define NIMC_blendFactorConflictError -70161 // Axes, which are part of a vector space, have different blend factors.
281  // Make sure that all the axes in the vector space have the same blend
282  // factor.
283 #define NIMC_torqueOffsetError -70162 // The torque offset is outside of the torque limit range.
284 #define NIMC_invalidLimitRangeError -70163 // The negative (lower) limit is greater than or equal to the positive
285  // (upper) limit.
286 #define NIMC_ADCConfigurationError -70164 // ADCs cannot be enabled or disabled while axes are enabled with analog
287  // feedback. Also, ADC ranges cannot be changed on ADC channels being used
288  // for analog feedback while axes are enabled.
289 
290 
291 #define NIMC_badDeviceOrAxisError NIMC_badResourceIDOrAxisError
292 
293 #endif // ___MotnErr_h___
294