setupmtr.h

来自「美国Delta Tau公司PMAC多轴运动控制卡的VC++示例程序」· C头文件 代码 · 共 55 行

H
55
字号
/***************************************************************************
  Title:    motor.h

  Version:  1.00

  Date:   8/29/1995

  Author(s):  Harry Rivera

  Misc. Routines for PMAC-II Setup Program

  Note(s):

----------------------------------------------------------------------------

  Change log:

    Date       Rev   Who      Description
  --------- ----- ----- --------------------------------------------

***************************************************************************/


#define DC_BRUSH          1
#define DC_BRUSHLESS        2
#define AC_INDUCTION        3
#define STEPPER         4
#define VARIABLE_RELUCTANCE 5

#define NOT_SELECTED        123


// "personality" structures for the motors

struct GLOBAL_MOTOR_SPECS {

  float PWM_frequencyA;
  float PWM_frequencyB;
  float I900; // Max phase & PWM for 1-4
  float I904; // PWM Deadtime for 1-4
  float I906; // Max phase & PWM for 5-8
  float I908; // PWM Deadtime for 5-8
};


struct MOTOR_SPECS {

  char  motor_type;
  char  is_dirty;
  float I9n6; // Output n mode select
  float I9n7; // Output n invert control
};


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?