SDC C-Project CF Review 프로그램
LYW
2021-08-25 03152a241b9463c582b56896f5f5f73717497ab4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/***************************************************************************
  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
};