1#ifndef ___motncnst_h___
2#define ___motncnst_h___
22typedef unsigned char u8;
23typedef unsigned short u16;
24typedef unsigned long u32;
27 typedef unsigned char u8;
28 typedef unsigned short u16;
29 typedef unsigned long u32;
50#define PC_FLEXMOTION_6C 16
52#define PCI_SERVO_2A 17
53#define PCI_SERVO_4A 11
54#define PCI_STEP_2OX 18
55#define PCI_STEP_4OX 12
56#define PCI_STEP_2CX 19
57#define PCI_STEP_4CX 13
58#define PCI_FLEXMOTION_6C 24
87#define PC_ENCODER_4A 6
88#define PCI_ENCODER_4A 14
90#define PC_SERVO_1P PC_SERVO_2A
99#define NIMC_OPEN_LOOP_STEPPER 1
100#define NIMC_CLOSED_LOOP_STEPPER 2
103#define NIMC_FLEX_6C 0
104#define NIMC_FLEX_7344 1
105#define NIMC_FLEX_7334 2
110#define SERVO_STEPPER 2
113#define NIMC_FLEX_MOTION 0
114#define NIMC_VALUE_MOTION 1
117#define NIMC_ISA_BUS 0
118#define NIMC_PCI_BUS 1
119#define NIMC_PXI_BUS 2
120#define NIMC_UNKNOWN_BUS 3
121#define NIMC_1394_BUS 4
122#define NIMC_ENET_BUS 5
123#define NIMC_SERIAL_BUS 6
137#define NIMC_UNKNOWN_OS 0xFFFF
141#define NIMC_WIN2000 4
142#define NIMC_PHARLAP 5
146#define MAX_TRIGGER_NUMBER 4
147#define MAX_NUM_AXIS_VALUEMOTION 4
148#define MAX_NUM_AXIS_FLEXMOTION 6
149#define NIMC_MAXBOARDS 32
151#define NIMC_BOARD_FAMILY 1100
152#define NIMC_BOARD_TYPE 1120
153#define NIMC_BUS_TYPE 1130
154#define NIMC_CLOSED_LOOP_CAPABLE 1150
155#define NIMC_NOT_APPLICABLE 1500
156#define NIMC_NUM_AXES 1510
157#define NIMC_VALUEMOTION_BOARD_CLASS 2020
158#define NIMC_BOARDTYPE_TO_VALUEMOTION_BOARD_CLASS 2150
159#define NIMC_BOOT_VERSION 3010
160#define NIMC_FIRMWARE_VERSION 3020
161#define NIMC_DSP_VERSION 3030
162#define NIMC_FPGA_VERSION 3040
163#define NIMC_FPGA1_VERSION 3040
164#define NIMC_FPGA2_VERSION 3050
165#define NIMC_FLEXMOTION_BOARD_CLASS 2030
166#define NIMC_CONTROLLER_SERIAL_NUMBER 2040
170#define NIMC_VALUEMOTION_PROFILE_COMPLETE 0x400
171#define NIMC_VALUEMOTION_MOTOR_OFF 4
172#define NIMC_VALUEMOTION_MOTOR_RUNNING 0x80
173#define NIMC_VALUEMOTION_LIMIT_SWITCH 1
174#define NIMC_VALUEMOTION_HOME_SWITCH 2
175#define NIMC_VALUEMOTION_FOLLOWING_ERROR 0x20
176#define NIMC_VALUEMOTION_DIRECTION 0x1000
177#define NIMC_VALUEMOTION_INDEX 0x8
180#define NIMC_VALUEMOTION_HARDWARE_FAIL 0x40
181#define NIMC_VALUEMOTION_FUNCTION_ERROR 0x10
182#define NIMC_VALUEMOTION_PREVIOUS_FUNCTION_ERROR 0x80
197#define NIMC_ACCELERATION 1
198#define NIMC_ACCEL NIMC_ACCELERATION
199#define NIMC_DECELERATION 2
200#define NIMC_DECEL NIMC_DECELERATION
202#define NIMC_RUN_STOP_STATUS 0
203#define NIMC_MOTOR_OFF_STATUS 1
204#define NIMC_VELOCITY_THRESHOLD_STATUS 2
205#define NIMC_MOVE_COMPLETE_STATUS 3
207#define NIMC_DECEL_STOP 0
208#define NIMC_HALT_STOP 1
209#define NIMC_KILL_STOP 2
211#define NIMC_LIMIT_INPUTS 0
212#define NIMC_SOFTWARE_LIMITS 1
214#define NIMC_OBJECT_SAVE 0
215#define NIMC_OBJECT_DELETE 1
216#define NIMC_OBJECT_FREE 2
218#define NIMC_SEND_COMMAND 0
219#define NIMC_SEND_AND_READ 1
220#define NIMC_READ_RDB 2
223#define NIMC_WAIT_OR 1
225#define NIMC_OPEN_LOOP 0
226#define NIMC_CLOSED_LOOP 1
228#define NIMC_MATCH_ALL 0
229#define NIMC_MATCH_ANY 1
231#define NIMC_PROGRAM_DONE 0
232#define NIMC_PROGRAM_PLAYING 1
233#define NIMC_PROGRAM_PAUSED 2
234#define NIMC_PROGRAM_STORING 3
238#define NIMC_CONDITION_LESS_THAN 0
239#define NIMC_CONDITION_EQUAL 1
240#define NIMC_CONDITION_LESS_THAN_OR_EQUAL 2
241#define NIMC_CONDITION_GREATER_THAN 3
242#define NIMC_CONDITION_NOT_EQUAL 4
243#define NIMC_CONDITION_GREATER_THAN_OR_EQUAL 5
244#define NIMC_CONDITION_TRUE 6
245#define NIMC_CONDITION_HOME_FOUND 7
246#define NIMC_CONDITION_INDEX_FOUND 8
247#define NIMC_CONDITION_HIGH_SPEED_CAPTURE 9
248#define NIMC_CONDITION_POSITION_BREAKPOINT 10
249#define NIMC_CONDITION_ANTICIPATION_TIME_BREAKPOINT 11
250#define NIMC_CONDITION_VELOCITY_THRESHOLD 12
251#define NIMC_CONDITION_MOVE_COMPLETE 13
252#define NIMC_CONDITION_PROFILE_COMPLETE 14
253#define NIMC_CONDITION_BLEND_COMPLETE 15
254#define NIMC_CONDITION_MOTOR_OFF 16
255#define NIMC_CONDITION_HOME_INPUT_ACTIVE 17
256#define NIMC_CONDITION_LIMIT_INPUT_ACTIVE 18
257#define NIMC_CONDITION_SOFTWARE_LIMIT_ACTIVE 19
258#define NIMC_CONDITION_PROGRAM_COMPLETE 20
259#define NIMC_CONDITION_IO_PORT_MATCH 21
262#define NIMC_ABSOLUTE_POSITION 0
263#define NIMC_RELATIVE_POSITION 1
264#define NIMC_VELOCITY 2
265#define NIMC_RELATIVE_TO_CAPTURE 3
266#define NIMC_MODULUS_POSITION 4
267#define NIMC_ABSOLUTE_CONTOURING 5
268#define NIMC_RELATIVE_CONTOURING 6
271#define NIMC_POSITION_BREAKPOINT 0
272#define NIMC_ANTICIPATION_TIME_BREAKPOINT 1
275#define NIMC_BREAKPOINT_OFF 0
276#define NIMC_ABSOLUTE_BREAKPOINT 1
277#define NIMC_RELATIVE_BREAKPOINT 2
278#define NIMC_MODULO_BREAKPOINT 3
280#define NIMC_NO_CHANGE 0
281#define NIMC_RESET_BREAKPOINT 1
282#define NIMC_SET_BREAKPOINT 2
283#define NIMC_TOGGLE_BREAKPOINT 3
285#define NIMC_OPERATION_SINGLE 0
286#define NIMC_OPERATION_BUFFERED 1
289#define NIMC_REGENERATION_NO_CHANGE 0
290#define NIMC_REGENERATION_LAST_WRITE 1
293#define NIMC_HS_NON_INVERTING_LEVEL 0
294#define NIMC_HS_INVERTING_LEVEL 1
295#define NIMC_HS_LOW_TO_HIGH_EDGE 2
296#define NIMC_HS_HIGH_TO_LOW_EDGE 3
297#define NIMC_HS_NON_INVERTING_DI 4
298#define NIMC_HS_INVERTING_DI 5
301#define NIMC_ERROR_ONLY 0
302#define NIMC_FUNCTION_NAME_ONLY 1
303#define NIMC_RESOURCE_NAME_ONLY 2
304#define NIMC_COMBINED_DESCRIPTION 3
307#define NIMC_ADC_UNIPOLAR_5 0
308#define NIMC_ADC_BIPOLAR_5 1
309#define NIMC_ADC_UNIPOLAR_10 2
310#define NIMC_ADC_BIPOLAR_10 3
320#define NIMC_PXI_STAR_TRIGGER 7
321#define NIMC_HS_CAPTURE1 8
322#define NIMC_HS_CAPTURE2 9
323#define NIMC_HS_CAPTURE3 10
324#define NIMC_HS_CAPTURE4 11
327#define NIMC_TRIGGER_INPUT 8
328#define NIMC_BREAKPOINT1 9
329#define NIMC_BREAKPOINT2 10
330#define NIMC_BREAKPOINT3 11
331#define NIMC_BREAKPOINT4 12
332#define NIMC_RTSI_SOFTWARE_PORT 13
333#define NIMC_DONT_DRIVE 14
334#define NIMC_BREAKPOINT5 15
335#define NIMC_BREAKPOINT6 16
336#define NIMC_PHASE_A1 17
337#define NIMC_PHASE_A2 18
338#define NIMC_PHASE_A3 19
339#define NIMC_PHASE_A4 20
340#define NIMC_PHASE_A5 21
341#define NIMC_PHASE_A6 22
342#define NIMC_PHASE_B1 23
343#define NIMC_PHASE_B2 24
344#define NIMC_PHASE_B3 25
345#define NIMC_PHASE_B4 26
346#define NIMC_PHASE_B5 27
347#define NIMC_PHASE_B6 28
348#define NIMC_INDEX1 29
349#define NIMC_INDEX2 30
350#define NIMC_INDEX3 31
351#define NIMC_INDEX4 32
352#define NIMC_INDEX5 33
353#define NIMC_INDEX6 34
356#define NIMC_AXIS_CTRL 0x00
357#define NIMC_VECTOR_SPACE_CTRL 0x10
358#define NIMC_ENCODER_CTRL 0x20
359#define NIMC_DAC_CTRL 0x30
360#define NIMC_STEP_OUTPUT_CTRL 0x40
361#define NIMC_ADC_CTRL 0x50
362#define NIMC_IO_PORT_CTRL 0x00
363#define NIMC_PWM_CTRL 0x00
364#define NIMC_PROGRAM_CTRL 0x00
366#define NIMC_AXIS1 0x01
367#define NIMC_AXIS2 0x02
368#define NIMC_AXIS3 0x03
369#define NIMC_AXIS4 0x04
370#define NIMC_AXIS5 0x05
371#define NIMC_AXIS6 0x06
373#define NIMC_VECTOR_SPACE1 0x11
374#define NIMC_VECTOR_SPACE2 0x12
375#define NIMC_VECTOR_SPACE3 0x13
377#define NIMC_ENCODER1 0x21
378#define NIMC_ENCODER2 0x22
379#define NIMC_ENCODER3 0x23
380#define NIMC_ENCODER4 0x24
381#define NIMC_ENCODER5 0x25
382#define NIMC_ENCODER6 0x26
384#define NIMC_DAC1 0x031
385#define NIMC_DAC2 0x032
386#define NIMC_DAC3 0x033
387#define NIMC_DAC4 0x034
388#define NIMC_DAC5 0x035
389#define NIMC_DAC6 0x036
391#define NIMC_STEP_OUTPUT1 0x41
392#define NIMC_STEP_OUTPUT2 0x42
393#define NIMC_STEP_OUTPUT3 0x43
394#define NIMC_STEP_OUTPUT4 0x44
395#define NIMC_STEP_OUTPUT5 0x45
396#define NIMC_STEP_OUTPUT6 0x46
398#define NIMC_ADC1 0x51
399#define NIMC_ADC2 0x52
400#define NIMC_ADC3 0x53
401#define NIMC_ADC4 0x54
402#define NIMC_ADC5 0x55
403#define NIMC_ADC6 0x56
404#define NIMC_ADC7 0x57
405#define NIMC_ADC8 0x58
407#define NIMC_IO_PORT1 0x01
408#define NIMC_IO_PORT2 0x02
409#define NIMC_IO_PORT3 0x03
411#define NIMC_PWM1 0x01
412#define NIMC_PWM2 0x02
415#define NIMC_PID_RATE_62_5 0
416#define NIMC_PID_RATE_125 1
417#define NIMC_PID_RATE_188 2
418#define NIMC_PID_RATE_250 3
419#define NIMC_PID_RATE_313 4
420#define NIMC_PID_RATE_375 5
421#define NIMC_PID_RATE_438 6
422#define NIMC_PID_RATE_500 7
424#define NIMC_FORWARD_DIRECTION 0
425#define NIMC_REVERSE_DIRECTION 1
431#define NIMC_READY_TO_RECEIVE 0x01
432#define NIMC_DATA_IN_RDB 0x02
433#define NIMC_PACKET_ERROR 0x10
434#define NIMC_POWER_UP_RESET 0x20
435#define NIMC_MODAL_ERROR_MSG 0x40
436#define NIMC_HARDWARE_FAIL 0x80
440#define NIMC_RUN_STOP_BIT 0x0001
441#define NIMC_PROFILE_COMPLETE_BIT 0x0002
442#define NIMC_AXIS_OFF_BIT 0x0004
443#define NIMC_FOLLOWING_ERROR_BIT 0x0008
444#define NIMC_LIMIT_SWITCH_BIT 0x0010
445#define NIMC_HOME_SWITCH_BIT 0x0020
446#define NIMC_SW_LIMIT_BIT 0x0040
447#define NIMC_VELOCITY_THRESHOLD_BIT 0x0100
448#define NIMC_POS_BREAKPOINT_BIT 0x0200
449#define NIMC_HOME_FOUND_BIT 0x0400
450#define NIMC_INDEX_FOUND_BIT 0x0800
451#define NIMC_HIGH_SPEED_CAPTURE_BIT 0x1000
452#define NIMC_DIRECTION_BIT 0x2000
453#define NIMC_BLEND_STATUS_BIT 0x4000
454#define NIMC_MOVE_COMPLETE_BIT 0x8000
457#define NIMC_ABSOLUTE_GEARING 0
458#define NIMC_RELATIVE_GEARING 1
464#define NIMC_MAX_FILENAME_LEN 256
466#define NIMC_ENABLE_1394_WATCHDOG 1
468#define NIMC_DISABLE_1394_WATCHDOG 0
472#define NIMC_GENERAL_PURPOSE_INPUT 0
473#define NIMC_GENERAL_PURPOSE_OUTPUT 1
474#define NIMC_POSITION_DATA 2
475#define NIMC_BREAKPOINT_DATA 3
476#define NIMC_HS_CAPTURE_READBACK 4
479#define NIMC_MIN_CONTOURING_INTERVAL 10
480#define NIMC_MAX_CONTOURING_INTERVAL 90.5
481#define NIMC_MAX_SPLINE_POINTS 181
485#define NIMC_BUFFER_NOT_EXIST 0
486#define NIMC_BUFFER_READY 1
487#define NIMC_BUFFER_ACTIVE 2
488#define NIMC_BUFFER_DONE 3
489#define NIMC_BUFFER_OLDDATASTOP 4
492#define NIMC_BUS_TIMEOUT 256
493#define NIMC_BP_WINDOW 512
494#define NIMC_PROGRAM_AUTOSTART 768
495#define NIMC_PULL_IN_WINDOW 1024
497#define NIMC_PULL_IN_TRIES 1025
499#define NIMC_STICTION_MODE 1030
500#define NIMC_STICTION_MAX_DEADBAND 1031
501#define NIMC_STICTION_MIN_DEADBAND 1032
502#define NIMC_STICTION_ITERM_OFFSET_FWD 1033
503#define NIMC_STICTION_ITERM_OFFSET_REV 1034
506#define NIMC_OBJECT_TYPE_PROGRAM 1
507#define NIMC_OBJECT_TYPE_BUFFER 2
510#define NIMC_MAX_PULL_IN_WINDOW 32767
511#define NIMC_MAX_PULL_IN_TRIES 32767
515#define NIMC_STICTION_OFF 0
516#define NIMC_STICTION_ZERO_DAC 1
517#define NIMC_STICTION_KILL 2
long i32
Definition: MotnCnst.h:35
unsigned long u32
Definition: MotnCnst.h:24
float f32
Definition: MotnCnst.h:37
long tBoolean
Definition: MotnCnst.h:38
double f64
Definition: MotnCnst.h:36
unsigned short u16
Definition: MotnCnst.h:23
char i8
Definition: MotnCnst.h:33
unsigned char u8
Definition: MotnCnst.h:22
short i16
Definition: MotnCnst.h:34