-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpassungen.h
144 lines (132 loc) · 11.9 KB
/
passungen.h
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#ifndef PASSUNGEN_H_INCLUDED
#define PASSUNGEN_H_INCLUDED
struct wellenwerte
{
double nennmass;
char grundabmass[10];
char toleranzgrad[10];
int inttolergrad;
double toleranz;
int spalte;
double beginn;
int rechenrichtung;
double ende;
};
// Werte für Bohrungsberechnungen
struct bohrungswerte
{
double deltawert;
double bohrnennmass;
char bohrgrundabmass[10];
char bohrtoleranzgrad[10];
int bohrinttolergrad;
double bohrtoleranz;
int bohrspalte;
double bohrbeginn;
int bohrrechenrichtung;
double bohrende;
};
//#ifndef PASSUNGEN_H_INCLUDED
char ITBereich[22][5] ={
"99", "99", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14","15","16","17", "18","0","01"};
//0 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
char GrundabmassBohrung[32][15] = {
"A","B","C","CD","D","E","EF","F","FG","G","H","JS","J6","J7", "J8","K<=8","K>8","M","N<=8","N>8","P","R","S","T","U","V","X","Y","Z","ZA","ZB","ZC"};
char GrundabmassWelle[31][15] = {
"a","b","c","cd","d","e","ef","f","fg","g","h","js","j5-6","j7","j8", "k4-7","k<3>8","m","n","p","r","s","t","u","v","x","y","z","za","zb","zc"};
//0 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
//#endif
//Grundtoleranzen
double ITBreite[22][22]= {
0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 0, 0.1,\
1, 3, 0.8, 1.2, 2, 3, 4, 6, 10, 14, 25, 40, 60, 100, 140, 250, 400, 600, 1000, 1400, 0.3, 0.5,\
3, 6, 1, 1.5, 2.5, 4, 5, 8, 12, 18, 30, 48, 75, 120, 180, 300, 480, 750, 1200, 1800, 0.4, 0.6,\
6, 10, 1, 1.5, 2.5, 4, 6, 9, 15, 22, 36, 58, 90, 150, 220, 360, 580, 900, 1500, 2200, 0.4, 0.6,\
10, 18, 1.2, 2, 3, 5, 8, 11, 18, 27, 43, 70, 110, 180, 270, 430, 700, 1100, 1800, 2700, 0.5, 0.8,\
18, 30, 1.5, 2.5, 4, 6, 9, 13, 21, 33, 52, 84, 130, 210, 330, 520, 840, 1300, 2100, 3300, 0.6, 1,\
30, 50, 1.5, 2.5, 4, 7, 11, 16, 25, 39, 62, 100, 160, 250, 390, 620, 1000, 1600, 2500, 3900, 0.6, 1,\
50, 80, 2, 3, 5, 8, 13, 19, 30, 46, 74, 120, 190, 300, 460, 740, 1200, 1900, 3000, 4600, 0.8, 1.2,\
80, 120, 2.5, 4, 6, 10, 15, 22, 35, 54, 87, 140, 220, 350, 540, 870, 1400, 2200, 3500, 5400, 1, 1.5,\
120, 180, 3.5, 5, 10, 12, 18, 25, 40, 63, 100, 100, 250, 400, 630, 1000, 1600, 2500, 4000, 6300, 1.2, 2,\
180, 250, 4.5, 7, 12, 14, 20, 29, 46, 72, 115, 185, 290, 460, 720, 1150, 1850, 2900, 4600, 7200, 2, 3,\
250, 315, 6, 8, 12, 16, 23, 32, 52, 81, 130, 210, 320, 520, 810, 1300, 2100, 3200, 5200, 8100, 2.5, 4,\
315, 400, 7, 9, 13, 18, 25, 36, 57, 89, 140, 230, 360, 570, 890, 1400, 2300, 3600, 5700, 8900, 3, 5,\
400, 500, 8, 10, 15, 20, 27, 40, 63, 97, 155, 250, 400, 630, 970, 1550, 2500, 4000, 6300, 9700, 4, 6,\
500, 630, 9, 11, 16, 22, 32, 44, 70, 110, 175, 280, 440, 700, 1100, 1750, 2800, 4400, 7000, 11000, 0, 0,\
630, 800, 10, 13, 18, 25, 36, 50, 80, 125, 200, 320, 500, 800, 1250, 2000, 3200, 5000, 8000, 12500, 0, 0,\
800, 1000, 11, 15, 21, 28, 40, 56, 90, 140, 230, 360, 560, 900, 1400, 2300, 3600, 5600, 9000, 14000, 0, 0,\
1000, 1250, 13, 18, 24, 33, 47, 66, 105, 165, 260, 420, 660, 1050, 1650, 2600, 4200, 6600, 10500, 16500, 0, 0,\
1250, 1600, 15, 21, 29, 39, 55, 78, 125, 195, 310, 500, 780, 1250, 1950, 3100, 5000, 7800, 12500, 19500, 0, 0,\
1600, 2000, 18, 25, 35, 46, 65, 92, 150, 230, 370, 600, 920, 1500, 2300, 3700, 6000, 9200, 15000, 23000, 0, 0,\
2000, 2500, 22, 30, 41, 55, 78, 110, 175, 280, 440, 700, 1100, 1750, 2800, 4400, 7000, 11000, 17500, 28000, 0, 0,\
2500, 3150, 26, 36, 50, 68, 96, 135, 210, 330, 540, 860, 1350, 2100, 3300, 5400, 8600, 13500, 21000, 33000, 0, 0};
// Werte zur Berechnung der Toleranzen von Wellen
/*
Merke:
Die Grundabmaße a und b sind nicht für Nennmaße einschließlich 1mm anzuwenden
Bei den Toleranzklassen js7 bis js11 kann der IT-Zahlenwert, n, falls er aus einer
ungeraden Zahl besteht, auf die unmittelbar darunterliegende Zahl gerundet werden,
also in ganzen Mikrometer.
*/
// 0 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
// ug og a b c cd d e ef f fg g h js j5-6 j7 j8 k4-7 k<3>8 m n p r s t u v x y z za zb zc
static short welle[41][33] ={
0, 3, -270, -140, -60, -32, -20, -14, -10, -6, -4, -2, 0, 7777, -2, -4, -6, 0, 0, 2, 4, 6, 10, 14,9999, 18,9999, 20,9999, 26, 32, 40, 60,
3, 6, -270, -140, -70, -46, -30, -20, -14, -10, -6, -4, 0, 7777, -2, -4,9999, 1, 0, 4, 8, 12, 15, 19,9999, 23,9999, 28,9999, 35, 42, 50, 80,
6, 10, -280, -150 , -80, -56, -40, -25, -18, -13, -8, -5, 0, 7777, -2, -5,9999, 1, 0, 6, 10, 15, 19, 23,9999, 28,9999, 34,9999, 42, 52, 67, 97,
10, 14, -290, -150, -95,9999, -50, -32,9999, -16,9999, -6, 0, 7777, -3, -6,9999, 1, 0, 7, 12, 18, 23, 28,9999, 33,9999, 40,9999, 50, 64, 90, 130,
14, 18, -290, -150, -95,9999, -50, -32,9999, -16,9999, -6, 0, 7777, -3, -6,9999, 1, 0, 7, 12, 18, 23, 28,9999, 33, 39, 45,9999, 60, 77, 108, 150,
18, 24, -300, -160, -110,9999, -65, -40,9999, -20,9999, -7, 0, 7777, -4, -8,9999, 2, 0, 8, 15, 22, 28, 35,9999, 41, 47, 54, 63, 73, 98, 136, 188,
24, 30, -300, -160, -110,9999, -65, -40,9999, -20,9999, -7, 0, 7777, -4, -8,9999, 2, 0, 8, 15, 22, 28, 35, 41, 48, 55, 64, 75, 88, 118, 160, 218,
30, 40, -310, -170, -120,9999, -80, -50,9999, -25,9999, -9, 0, 7777, -5, -10,9999, 2, 0, 9, 17, 26, 34, 43, 48, 60, 68, 80, 94, 112, 148, 200, 274,
40, 50, -320, -180, -130,9999, -80, -50,9999, -25,9999, -9, 0, 7777, -5, -10,9999, 2, 0, 9, 17, 26, 34, 43, 54, 70, 81, 97, 114, 136, 180, 242, 325,
50, 65, -340, -190, -140,9999, -100, -60,9999, -30,9999, -10, 0, 7777, -7, -12,9999, 2, 0, 11, 20, 32, 41, 53, 66, 87, 102, 122, 144, 172, 226, 300, 405,
65, 80, -360, -200, -150,9999, -100, -60,9999, -30,9999, -10, 0, 7777, -7, -12,9999, 2, 0, 11, 20, 32, 43, 59, 75, 102, 120, 146, 174, 210, 274, 360, 480,
80, 100, -380, -220, -170,9999, -120, -72,9999, -36,9999, -12, 0, 7777, -9, -15,9999, 3, 0, 13, 23, 37, 51, 71, 91, 124, 146, 178, 214, 258, 335, 445, 585,
100, 120, -410, -240, -180,9999, -120, -72,9999, -36,9999, -12, 0, 7777, -9, -15,9999, 3, 0, 13, 23, 37, 54, 79, 104, 144, 172, 210, 254, 310, 400, 525, 690,
120, 140, -460, -260, -200,9999, -145, -85,9999, -43,9999, -14, 0, 7777, -11, -18,9999, 3, 0, 15, 27, 43, 63, 92, 122, 170, 202, 248, 300, 365, 470, 620, 800,
140, 160, -520, -280, -210,9999, -145, -85,9999, -43,9999, -14, 0, 7777, -11, -18,9999, 3, 0, 15, 27, 43, 65, 100, 134, 190, 228, 280, 340, 415, 535, 700, 900,
160, 180, -580, -310, -230,9999, -145, -85,9999, -43,9999, -14, 0, 7777, -11, -18,9999, 3, 0, 15, 27, 43, 68, 108, 146, 210, 252, 310, 380, 465, 600, 780,1000,
180, 200, -660, -340, -240,9999, -170,-100,9999, -50,9999, -15, 0, 7777, -13, -21,9999, 4, 0, 17, 31, 50, 77, 122, 166, 236, 284, 350, 425, 520, 670, 880,1150,
200, 225, -740, -380, -260,9999, -170,-100,9999, -50,9999, -15, 0, 7777, -13, -21,9999, 4, 0, 17, 31, 50, 80, 130, 180, 258, 310, 385, 470, 575, 740, 960,1250,
225, 250, -820, -420, -280,9999, -170,-100,9999, -50,9999, -15, 0, 7777, -13, -21,9999, 4, 0, 17, 31, 50, 84, 140, 196, 284, 340, 425, 520, 640, 820,1050,1350,
250, 280, -920, -480, -300,9999, -190,-110,9999, -56,9999, -17, 0, 7777, -16, -26,9999, 4, 0, 20, 34, 56, 94, 158, 218, 315, 385, 475, 580, 710, 920,1200,1550,
280, 315, -1050, -540, -330,9999, -190,-110,9999, -56,9999, -17, 0, 7777, -16, -26,9999, 4, 0, 20, 34, 56, 98, 170, 240, 350, 425, 525, 650, 790,1000,1300,1700,
315, 355, -1200, -600, -360,9999, -210,-125,9999, -62,9999, -18, 0, 7777, -18, -28,9999, 4, 0, 21, 37, 62,108, 190, 268, 390, 475, 590, 730, 900,1150,1500,1900,
355, 400, -1350, -680, -400,9999, -210,-125,9999, -62,9999, -18, 0, 7777, -18, -28,9999, 4, 0, 21, 37, 62,114, 208, 294, 435, 530, 660, 820,1000,1300,1650,2100,
400, 450, -1500, -760, -440,9999, -230,-135,9999, -68,9999, -20, 0, 7777, -20, -32,9999, 5, 0, 23, 40, 68,126, 232, 330, 490, 595, 740, 920,1100,1450,1850,2400,
450, 500, -1650, -840, -480,9999, -230,-135,9999, -68,9999, -20, 0, 7777, -20, -32,9999, 5, 0, 23, 40, 68,132, 252, 360, 540, 660, 820,1000,1250,1600,2100,2600,
500, 560, 9999,9999 , 9999,9999, -260,-145,9999, -76,9999, -76, 0, 7777,9999,9999,9999, 0, 0, 26, 44, 78,150, 280, 400, 600,9999,9999,9999,9999,9999,9999,9999,
560, 630, 9999,9999 , 9999,9999, -260,-145,9999, -76,9999, -76, 0, 7777,9999,9999,9999, 0, 0, 26, 44, 78,155, 310, 450, 660,9999,9999,9999,9999,9999,9999,9999,
630, 710, 9999,9999 , 9999,9999, -290,-160,9999, -80,9999, -24, 0, 7777,9999,9999,9999, 0, 0, 30, 50, 88,175, 340, 500, 740,9999,9999,9999,9999,9999,9999,9999,
710, 800, 9999,9999 , 9999,9999, -290,-160,9999, -80,9999, -24, 0, 7777,9999,9999,9999, 0, 0, 30, 50, 88,185, 380, 560, 840,9999,9999,9999,9999,9999,9999,9999,
800, 900, 9999,9999 , 9999,9999, -320,-170,9999, -86,9999, -26, 0, 7777,9999,9999,9999, 0, 0, 34, 56,100,210, 430, 620, 940,9999,9999,9999,9999,9999,9999,9999,
900,1000, 9999,9999 , 9999,9999, -320,-170,9999, -86,9999, -26, 0, 7777,9999,9999,9999, 0, 0, 34, 56,100,220, 470, 680,1050,9999,9999,9999,9999,9999,9999,9999,
1000,1120, 9999,9999 , 9999,9999, -350,-195,9999, -98,9999, -28, 0, 7777,9999,9999,9999, 0, 0, 40, 66,120,250, 520, 780,1150,9999,9999,9999,9999,9999,9999,9999,
1120,1250, 9999,9999 , 9999,9999, -350,-195,9999, -98,9999, -28, 0, 7777,9999,9999,9999, 0, 0, 40, 66,120,260, 580, 840,1300,9999,9999,9999,9999,9999,9999,9999,
1250,1400, 9999,9999 , 9999,9999, -390,-220,9999,-110,9999, -30, 0, 7777,9999,9999,9999, 0, 0, 48, 78,140,300, 640, 960,1450,9999,9999,9999,9999,9999,9999,9999,
1400,1600, 9999,9999 , 9999,9999, -390,-220,9999,-110,9999, -30, 0, 7777,9999,9999,9999, 0, 0, 48, 78,140,330, 720,1050,1600,9999,9999,9999,9999,9999,9999,9999,
1600,1800, 9999,9999 , 9999,9999, -430,-240,9999,-120,9999, -32, 0, 7777,9999,9999,9999, 0, 0, 58, 92,170,370, 820,1200,1850,9999,9999,9999,9999,9999,9999,9999,
1800,2000, 9999,9999 , 9999,9999, -430,-240,9999,-120,9999, -32, 0, 7777,9999,9999,9999, 0, 0, 58, 92,170,400, 920,1350,2000,9999,9999,9999,9999,9999,9999,9999,
2000,2240, 9999,9999 , 9999,9999, -480,-260,9999,-130,9999, -34, 0, 7777,9999,9999,9999, 0, 0, 68,110,195,440,1000,1500,2300,9999,9999,9999,9999,9999,9999,9999,
2240,2500, 9999,9999 , 9999,9999, -480,-260,9999,-130,9999, -34, 0, 7777,9999,9999,9999, 0, 0, 68,110,195,460,1100,1650,2500,9999,9999,9999,9999,9999,9999,9999,
2500,2800, 9999,9999 , 9999,9999, -520,-290,9999,-145,9999, -38, 0, 7777,9999,9999,9999, 0, 0, 76,135,240,550,1250,1900,2900,9999,9999,9999,9999,9999,9999,9999,
2800,3150, 9999,9999 , 9999,9999, -520,-290,9999,-145,9999, -89, 0, 7777,9999,9999,9999, 0, 0, 76,135,240,580,1400,2100,3200,9999,9999,9999,9999,9999,9999,9999};
//Delta-Werte zur Berechnung der Toleranzen von Wellen
double delta[14][8]=
{
0, 0, 3, 4, 5, 6, 7, 8,
0, 3, 0, 0, 0, 0, 0, 0,
3, 6, 1, 1.5, 1, 3, 4, 6,
6, 10, 1, 1.5, 2, 3, 6, 7,
10, 18, 1, 2, 3, 3, 7, 9,
18, 30, 1.5, 2, 3, 4, 8, 12,
30, 50, 1.5, 3, 4, 5, 9, 14,
50, 80, 2, 3, 5, 6, 11, 16,
80, 120, 2, 4, 5, 7, 13, 19,
120, 180, 3, 4, 6, 7, 15, 23,
180, 250, 3, 4, 6, 9, 17, 26,
250, 315, 4, 4, 7, 9, 20, 29,
315, 400, 4, 5, 7, 11, 21, 32,
400, 500, 5, 5, 7, 13, 23, 34};
#endif // PASSUNGEN_H_INCLUDED