View difference between Paste ID: 72chcCa7 and U7K8XgsU
SHOW: | | - or go back to the newest paste.
1-
'Stipiti
1+
'STP Orona
2
3-
Function DEFINE_QCSP(ByVal COD_SPC As String, ByVal NND As Integer, ByVal H As Double)
3+
Sub S_1006897D(ByVal NND As Integer)
4-
DEFINE_QCSP = 0
4+
ACT_MOD = "1006897"
5
CLAMP = 0
6-
If COD_SPC = "0" Then Exit Function
6+
7
8-
HSP = INPUT_NUM(NND, "H_SPC", H_SPC, ACT_MOD)
8+
L = INPUT_NUM(NND, "L", L, ACT_MOD)
9-
M2 = INPUT_NUM(NND, "M2_SPC", M2_SPC, ACT_MOD)
9+
H = INPUT_NUM(NND, "H", H, ACT_MOD)
10-
M3 = INPUT_NUM(NND, "M3_SPC", M3_SPC, ACT_MOD)
10+
SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
11-
M4 = INPUT_NUM(NND, "M4_SPC", M4_SPC, ACT_MOD)
11+
M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
12-
TYS = INPUT_STR(NND, "TY_SPC", TY_SPC, ACT_MOD)
12+
M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
13-
If HSP = 0 Or HSP = -1 Then Exit Function
13+
M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
14
M4 = INPUT_NUM(NND, "M4", M4, ACT_MOD)
15-
Select Case COD_SPC
15+
M5 = INPUT_NUM(NND, "M5", M5, ACT_MOD)
16-
Case "1420", "1430", "1432", "1450", "9140"
16+
M6 = INPUT_NUM(NND, "M6", M6, ACT_MOD)
17
M7 = INPUT_NUM(NND, "M7", M7, ACT_MOD)
18-
If InStr(1, TYS, "A") > 0 Then
18+
M8 = INPUT_NUM(NND, "M8", M8, ACT_MOD)
19-
DEFINE_QCSP = HSP
19+
M9 = INPUT_NUM(NND, "M9", M9, ACT_MOD)
20
M10 = INPUT_NUM(NND, "M10", M10, ACT_MOD)
21-
If InStr(1, TYS, "B") > 0 Then
21+
M11 = INPUT_NUM(NND, "M11", M11, ACT_MOD)
22-
DEFINE_QCSP = HSP + M2
22+
M12 = INPUT_NUM(NND, "M12", M12, ACT_MOD)
23
24-
If InStr(1, TYS, "C") > 0 Then
24+
25-
DEFINE_QCSP = HSP + (M2 * 2)
25+
DF = INPUT_NUM(NND, "DF", DF, ACT_MOD)
26
sf = INPUT_NUM(NND, "SF", sf, ACT_MOD)
27
SB = INPUT_NUM(NND, "SB", SB, ACT_MOD)
28-
Case "9150"
28+
LH = INPUT_NUM(NND, "LH", LH, ACT_MOD)
29-
If InStr(1, TYS, "A") > 0 Then
29+
CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
30-
DEFINE_QCSP = HSP
30+
VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
31
BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
32-
If InStr(1, TYS, "B") > 0 Then
32+
ODP = INFO_DAT(NND, 0, 5)
33-
DEFINE_QCSP = HSP + M4
33+
34
OFSS = 0 '0.5
35-
If InStr(1, TYS, "C") > 0 Then
35+
36-
DEFINE_QCSP = HSP + M3
36+
37
If Val(LH) = 0 Then
38
SP = M1 + 50
39-
Case "1800", "1810", "1820", "9180"
39+
LH = H - SP
40-
If InStr(1, TYS, "A") > 0 Then
40+
41-
DEFINE_QCSP = HSP + 17
41+
42
43-
If InStr(1, TYS, "B") > 0 Then
43+
If VV = "1" Or VV = "3" Or VV = "5" Or VV = "7" Then    'PINZE
44-
DEFINE_QCSP = HSP + 17 + 54
44+
If CD_SP = 0 Then
45
If SP = 90 And LH = 2000 Then
46-
If InStr(1, TYS, "C") > 0 Then
46+
'CLAMP = 1
47-
DEFINE_QCSP = HSP + 17 + 54 * 2
47+
48
End If
49-
If InStr(1, TYS, "D") > 0 Then
49+
50-
DEFINE_QCSP = HSP + 17 + 54 * 3
50+
51
52
VV = Replace(VV, "H", "")
53-
Case "2000", "2002", "9200"
53+
54-
If InStr(1, TYS, "A") > 0 Then
54+
If VV > 8 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
55-
DEFINE_QCSP = HSP + 42
55+
56
57-
If InStr(1, TYS, "B") > 0 Then
57+
SCS = 6
58-
DEFINE_QCSP = HSP + 755 + 75.25
58+
59
60
sf = 1 * sf '+ 1 * SB
61
If sf = 0 Then
62-
DEFINE_QCSP = HSP + (M2 / 2)
62+
sf = 1 * SB
63
MsgBox "ERRORE DATI SB-SF IN " & ACT_MOD
64
End If
65-
DEFINE_QCSP = H - DEFINE_QCSP
65+
66
67
68-
End Function
68+
Select Case VV
69
Case 2, 4, 6, 8
70-
Function SPCp_CODIFY(ByVal NND As Integer, ByVal COD_SPC As String, ByVal FL_AP As Double, ByVal H As Double, ByVal L As Double, ByVal MRR As Byte, ByVal SB As Double) As String
70+
71-
' PROGRESSIVO PEZZO, CODICE SPACCO, FILO APERTURA, LUNGHEZZA, ALTEZZA, SPECCHIATURA, SB\SF
71+
72
'*******************************************SPACCO
73-
If COD_SPC = "50518" Or COD_SPC = "50543" Then COD_SPC = "2382"
73+
If CD_SP <> "" And CD_SP <> "0" Then
74-
If COD_SPC = "50519" Then COD_SPC = "2900"
74+
R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 2, sf, 0) 'MODIFICATO DA 25 A 15mm
75-
If COD_SPC = "50520" Then COD_SPC = "3000"
75+
76-
If COD_SPC = "50521" Then COD_SPC = "3100"
76+
If DF >= 40 Then M5 = DF - 25 Else M5 = 0
77
78-
If COD_SPC = "50522" Then COD_SPC = "3200"
78+
79-
If COD_SPC = "50523" Then COD_SPC = "3300"
79+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
80-
If COD_SPC = "50524" Then COD_SPC = "3400"
80+
R02 = T_CIRC(H - M11, L - 5.2, 5.5) & T_CIRC(H - M11 - 375.5, L - 5.2, 5.5)
81
R02 = R02 & T_CIRC(H - M12, L - 5.2, 5.5) & T_CIRC(H - M12 - 275.5, L - 5.2, 5.5)
82-
M1 = INPUT_NUM(NND, "M1_SPC", M1_SPC, ACT_MOD)
82+
R02 = R02 & T_SLOT(H - M11, 24.1, 8, 5, 90) & T_SLOT(H - M11, 24.1 + M5, 8, 5, 90)
83-
If COD_SPC = "9932" Or COD_SPC = "9933" Or COD_SPC = "9934" Then GoTo SALTA_SPC_CCD 'WITTUR ZOO
83+
R02 = R02 & T_SLOT(H - M11 - 375.5, 24.1, 8, 5, 90) & T_SLOT(H - M11 - 375.5, 24.1 + M5, 8, 5, 90)
84-
If M1 = 0 Or M1 = -1 Then Exit Function
84+
R02 = R02 & T_SLOT(H - M12, 24.1, 8, 5, 90) & T_SLOT(H - M12, 24.1 + M5, 8, 5, 90)
85
R02 = R02 & T_SLOT(H - M12 - 275.5, 24.1, 8, 5, 90) & T_SLOT(H - M12 - 275.5, 24.1 + M5, 8, 5, 90)
86-
SALTA_SPC_CCD:
86+
87-
HSP = INPUT_NUM(NND, "H_SPC", H_SPC, ACT_MOD)
87+
88-
M2 = INPUT_NUM(NND, "M2_SPC", M2_SPC, ACT_MOD)
88+
R02 = T_CIRC(QCSP + 187.75, L - 5.2, 5.5)
89-
M3 = INPUT_NUM(NND, "M3_SPC", M3_SPC, ACT_MOD)
89+
R02 = R02 & T_CIRC(QCSP - 187.75, L - 5.2, 5.5)
90-
M4 = INPUT_NUM(NND, "M4_SPC", M4_SPC, ACT_MOD)
90+
R02 = R02 & T_SLOT(QCSP + 187.75, 24.1, 8, 5, 90)
91-
M5 = INPUT_NUM(NND, "M5_SPC", M5_SPC, ACT_MOD)
91+
R02 = R02 & T_SLOT(QCSP + 187.75, 24.1 + M5, 8, 5, 90)
92-
M6 = INPUT_NUM(NND, "M6_SPC", M6_SPC, ACT_MOD)
92+
R02 = R02 & T_SLOT(QCSP - 187.75, 24.1, 8, 5, 90)
93-
M7 = INPUT_NUM(NND, "M7_SPC", M7_SPC, ACT_MOD)
93+
R02 = R02 & T_SLOT(QCSP - 187.75, 24.1 + M5, 8, 5, 90)
94-
M8 = INPUT_NUM(NND, "M8_SPC", M8_SPC, ACT_MOD)
94+
95-
M9 = INPUT_NUM(NND, "M9_SPC", M9_SPC, ACT_MOD)
95+
96-
M10 = INPUT_NUM(NND, "M10_SPC", M10_SPC, ACT_MOD)
96+
97-
M11 = INPUT_NUM(NND, "M11_SPC", M11_SPC, ACT_MOD)
97+
98-
M12 = INPUT_NUM(NND, "M12_SPC", M12_SPC, ACT_MOD)
98+
MsgBox "M3=0"
99-
M13 = INPUT_NUM(NND, "M13_SPC", M13_SPC, ACT_MOD)
99+
Select Case LH
100-
M14 = INPUT_NUM(NND, "M14_SPC", M14_SPC, ACT_MOD)
100+
101-
M15 = INPUT_NUM(NND, "M15_SPC", M15_SPC, ACT_MOD)
101+
Case 1900
102-
M16 = INPUT_NUM(NND, "M16_SPC", M16_SPC, ACT_MOD)
102+
If H - QCSP < 1030 Then M3 = H - QCSP - 530
103-
M17 = INPUT_NUM(NND, "M17_SPC", M17_SPC, ACT_MOD)
103+
If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
104-
M18 = INPUT_NUM(NND, "M18_SPC", M18_SPC, ACT_MOD)
104+
If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
105
106
Case 1950
107
If H - QCSP < 1055 Then M3 = H - QCSP - 530
108-
RS1 = ""
108+
If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
109-
RS2 = ""
109+
If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
110-
RS3 = ""
110+
111-
RS4 = ""
111+
Case 2000
112-
RS5 = ""
112+
If H - QCSP < 1080 Then M3 = H - QCSP - 530
113-
RS6 = ""
113+
If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
114-
RS7 = ""
114+
If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
115-
SPCp_CODIFY = ""
115+
116
Case 2050
117
If H - QCSP < 1105 Then M3 = H - QCSP - 530
118-
FA = FL_AP
118+
If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
119-
HSP = HSP '+ 2.5 ' I RIVESTIMENTI VANNO SOTTO LA SOGLIA DI 2.5 mm --> FINELINE FILO PAVIMENTO
119+
If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
120
121-
If Len(COD_SPC) < 4 Then COD_SPC = "0" & COD_SPC
121+
Case 2100
122
If H - QCSP < 1130 Then M3 = H - QCSP - 530
123-
Select Case COD_SPC
123+
If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
124-
Case "9020"
124+
If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
125-
'Y = MR_Y(FA + M5, L, MRR)
125+
126-
'RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
126+
127-
'RS2 = T_RECT2(H - HSP - M4 - M3 / 2, Y, M3, M1)
127+
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
128-
'SPCp_CODIFY = RS1 & RS2
128+
129-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
129+
130-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
130+
131
Else
132-
Case "0300", "90300", "0306", "0308", "0304", "0338", "0342", "0344", "0348", "0352", "0356", "0374", "0378", "0384", "2312", "2320", "2322", "2326", "2330", "2332", "2334", "2336", "2342", "2344", "2346", "92346", "2350", "2354", "2360", "2364", "2372", "2380", "2382", "9030"
132+
R01 = ""
133
R02 = ""
134-
If SB > 300 Then M3 = 60 Else M3 = SB / 2
134+
135
'*******************************************************
136
137-
Y = MR_Y(FA + M3, L, MRR)
137+
138-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
138+
R03 = T_RECT1(-SCS, M2, L - 26.6, L + SCS)
139-
SPCp_CODIFY = RS1
139+
R03 = R03 & T_RECT1(-SCS, M2, -SCS, 16.6)
140-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
140+
R03 = R03 & T_RECT1(H - 70, H + SCS, -SCS, 16.6)
141
142-
Case "0440", "9040"
142+
R03 = R03 & T_RECT1(H - 345, H - 290, 12.5, 17.5)
143-
If M6 = 0 Then
143+
R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), 12.5, 17.5)
144-
If SB > 300 Then M6 = 60 Else M6 = SB / 2
144+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
145
R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), 12.5, 17.5)
146
Else
147-
Y = MR_Y(FA + M6, L, MRR)
147+
R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), 12.5, 17.5)
148-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
148+
149-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - M4 / 2, M5)
149+
R03 = R03 & T_RECT1(M2 + 20, M2 + 75, 12.5, 17.5)
150-
RS3 = T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - M4 / 2, M5)
150+
151-
SPCp_CODIFY = RS1 & RS2 & RS3
151+
R03 = R03 & T_SLOT(H - 25, DF - 18 + 15 - 2.4, 8, 5, 90)
152-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
152+
R03 = R03 & T_SLOT(H - 55, DF - 18 + 15 - 2.4, 8, 5, 90)
153
154-
Case "0514", "0518", "0526", "0530", "0540", "0542", "0560", "0570", "0580", "90580", "0592", "0594", "9050", "90540", "90526"
154+
R03 = R03 & T_CIRC(20, DF / 2 + 15 - 2.4, 7.2)
155-
If M5 = 0 Then
155+
R03 = R03 & T_CIRC(20 + M1, DF / 2 + 15 - 2.4, 7.2)
156-
If SB > 300 Then M5 = 60 Else M5 = SB / 2
156+
R03 = R03 & T_CIRC(20, L - (DF / 2 + 25 - 2.4), 7.2)
157
R03 = R03 & T_CIRC(20 + M1, L - (DF / 2 + 25 - 2.4), 7.2)
158
159-
If M4 = 3.2 Then M4 = 3.3 'AGGIUNTA GALLONI 09-04-2019
159+
R03 = R03 & T_SLOT(H - 25, L - 9.5, 8, 5, 90)
160-
If M4 = 2.1 Then M4 = 2 'AGGIUNTA GALLONI 14-10-2019
160+
R03 = R03 & T_SLOT(H - 55, L - 9.5, 8, 5, 90)
161-
If M4 = 4.4 Then M4 = 4.2 'AGGIUNTA GALLONI 23-07-2020
161+
162-
If M4 = 4 Then M4 = 4.2 'AGGIUNTA GALLONI 23-07-2020
162+
R03 = R03 & T_CIRC(H - 283, L - 10, 8.5)
163-
If M4 = 4.5 Then M4 = 4.2 'AGGIUNTA GALLONI 23-07-2020
163+
R03 = R03 & T_CIRC(H - (283 + 34), L - 10, 8.5)
164
R03 = R03 & T_CIRC(H - (283 + M3), L - 10, 8.5)
165-
Y = MR_Y(FA + M5, L, MRR)
165+
R03 = R03 & T_CIRC(H - (283 + 34 + M3), L - 10, 8.5)
166-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
166+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
167-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y, M4) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y, M4)
167+
R03 = R03 & T_CIRC(H - (283 + M3 + M10), L - 10, 8.5)
168-
SPCp_CODIFY = RS1 & RS2
168+
R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), L - 10, 8.5)
169-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
169+
170
R03 = R03 & T_CIRC(H - (283 + 2 * M3), L - 10, 8.5)
171-
Case "9240"
171+
R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), L - 10, 8.5)
172-
Y = MR_Y(FA + M6, L, MRR)
172+
173-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
173+
R03 = R03 & T_CIRC(M2 + 82, L - 10, 8.5)
174-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y, M5)
174+
R03 = R03 & T_CIRC(M2 + 82 - 34, L - 10, 8.5)
175-
If MRR = 1 Then
175+
176-
RS3 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - M4, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + M4, M5)
176+
177
If M6 > 0 Then R04 = T_CIRC(H - 1500, 15 + M6 - 2.4, 22) Else R04 = ""
178-
RS3 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + M4, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - M4, M5)
178+
179
'SMUSSI
180-
SPCp_CODIFY = RS1 & RS2 & RS3
180+
R05 = T_RAD(0 - OFSS, 15 + 4 - 2.4 - OFSS, 3)
181-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
181+
R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
182
R05 = R05 & T_RAD(0 - OFSS, L - (25 + 4 - 2.4) + OFSS, 2)
183-
Case "9060"
183+
R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
184-
'Y = MR_Y(FA + M4, L, MRR)
184+
R05 = R05 & T_RAD(H - 70 + OFSS, 0 - OFSS, 4)
185-
'RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
185+
R05 = R05 & T_RAD(H + OFSS, 15 + 4 - 2.4 - OFSS, 4)
186-
'RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y, M8) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y, M8)
186+
R05 = R05 & T_RAD(H + OFSS, L + OFSS, 1)
187-
'RS3 = T_RECT2(H - HSP - M6 - M5 / 2, Y, M5, M1)
187+
188-
'RS4 = T_CIRC(H - HSP - M6 - M5 / 2 - M7 / 2, Y, M8) & T_CIRC(H - HSP - M6 - M5 / 2 + M7 / 2, Y, M8)
188+
'Print #NF, T_BLQ(H - 1000 - 5.65, L, H - 1000, L - 5.65, 1, 0)
189-
'SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
189+
'Print #NF, T_BLQ(H - 1000, L - 5.65, H - 1000 + 5.65, L, 0, 1)
190-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
190+
R06 = T_SMUS(H - 1000, L + 0.2)
191-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
191+
'Print #NF, T_CIRC(H - 1000, L, 3.3)
192
193-
Case "9070"
193+
R11 = T_DATAMATRIX(ODP, H - 283 + 10, 15 + 2.5, "O")
194-
Y = MR_Y(FA + M5, L, MRR)
194+
195-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
195+
R12 = ""
196
If M7 > 0 Then
197-
If MRR = 1 Then
197+
R12 = T_HEX(H - M7, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859 - 398, 15 + 28.5 - 2.4, 11)
198-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - 3, M4) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + 3, M4)
198+
199-
RS3 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - (M1 / 2 - 6.5), 13) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + (M1 / 2 - 6.5), 13)
199+
If M8 > 0 Then
200-
RS4 = T_RECT1(H - HSP - M2 / 2 - M3 / 2 + (M3 - M2) / 2, H - HSP - M2 / 2 - M3 / 2, Y - (M1 / 2 - 6.5) - 6.5, Y - (M1 / 2 - 6.5) + 6.5)
200+
R12 = R12 & T_HEX(H - M8 - 1257, 15 + 28.5 - 2.4, 11) & T_HEX(H - M8, 15 + 28.5 - 2.4, 11)
201-
RS5 = T_RECT1(H - HSP - M2 / 2 + M3 / 2 - (M3 - M2) / 2, H - HSP - M2 / 2 + M3 / 2, Y + (M1 / 2 - 6.5) - 6.5, Y + (M1 / 2 - 6.5) + 6.5)
201+
202
If M9 > 0 Then
203-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + 3, M4) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - 3, M4)
203+
R12 = R12 & T_HEX(H - M9, 15 + 28.5 - 2.4, 11)
204-
RS3 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + (M1 / 2 - 6.5), 13) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - (M1 / 2 - 6.5), 13)
204+
205-
RS4 = T_RECT1(H - HSP - M2 / 2 - M3 / 2 + (M3 - M2) / 2, H - HSP - M2 / 2 - M3 / 2, Y + (M1 / 2 - 6.5) - 6.5, Y + (M1 / 2 - 6.5) + 6.5)
205+
206-
RS5 = T_RECT1(H - HSP - M2 / 2 + M3 / 2 - (M3 - M2) / 2, H - HSP - M2 / 2 + M3 / 2, Y - (M1 / 2 - 6.5) - 6.5, Y - (M1 / 2 - 6.5) + 6.5)
206+
207
208-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4 & RS5
208+
Case 1, 3, 5, 7
209-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
209+
210
'*******************************************SPACCO
211-
Case "9090"
211+
If CD_SP <> "" And CD_SP <> "0" Then
212-
Y = MR_Y(FA + M7, L, MRR)
212+
R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 1, sf, 0)
213-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
213+
214-
RS2 = T_CIRC(H - HSP + M4, Y - M5 / 2, M6) & T_CIRC(H - HSP + M4, Y + M5 / 2, M6)
214+
215-
RS3 = T_CIRC(H - HSP + M4 - M3, Y - M5 / 2, M6) & T_CIRC(H - HSP + M4 - M3, Y + M5 / 2, M6)
215+
If DF >= 40 Then M5 = DF - 25 Else M5 = 0
216-
SPCp_CODIFY = RS1 & RS2 & RS3
216+
217-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
217+
218
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
219-
Case "1050", "9100"
219+
R02 = T_CIRC(H - M11, 5.2, 5.5) & T_CIRC(H - M11 - 375.5, 5.2, 5.5)
220-
If M5 = 0 Then
220+
R02 = R02 & T_CIRC(H - M12, 5.2, 5.5) & T_CIRC(H - M12 - 275.5, 5.2, 5.5)
221-
If SB > 300 Then M5 = 60 Else M5 = SB / 2
221+
R02 = R02 & T_SLOT(H - M11, L - 24.1, 8, 5, 90) & T_SLOT(H - M11, L - 24.1 - M5, 8, 5, 90)
222
R02 = R02 & T_SLOT(H - M11 - 375.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M11 - 375.5, L - 24.1 - M5, 8, 5, 90)
223
R02 = R02 & T_SLOT(H - M12, L - 24.1, 8, 5, 90) & T_SLOT(H - M12, L - 24.1 - M5, 8, 5, 90)
224-
Y = MR_Y(FA + M5, L, MRR)
224+
R02 = R02 & T_SLOT(H - M12 - 275.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M12 - 275.5, L - 24.1 - M5, 8, 5, 90)
225-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
225+
226-
RS2 = T_RECT1(H - HSP - 4, H - HSP + (M3 - M2) / 2, Y - M4 / 2, Y + M4 / 2)
226+
227-
RS3 = T_RECT1(H - HSP - M2 - (M3 - M2) / 2, H - HSP - M2 + 4, Y - M4 / 2, Y + M4 / 2)
227+
R02 = T_CIRC(QCSP + 187.75, 5.2, 5.5)
228-
SPCp_CODIFY = RS1 & RS2 & RS3
228+
R02 = R02 & T_CIRC(QCSP - 187.75, 5.2, 5.5)
229-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
229+
R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1, 8, 5, 90)
230
R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1 - M5, 8, 5, 90)
231-
Case "9110"
231+
R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1, 8, 5, 90)
232-
'Y = MR_Y(FA + M9, L, MRR)
232+
R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1 - M5, 8, 5, 90)
233-
'RS1 = T_RECT2(H - HSP - M5 / 2, Y, M5, M4)
233+
234-
'RS2 = T_RECT2(H - HSP - M3 - M2 / 2, Y, M2, M1)
234+
235-
'RS3A = T_CIRC(H - HSP - M5 / 2 + M10 / 2, Y, M7) & T_CIRC(H - HSP - M5 / 2 - M10 / 2, Y, M7)
235+
236-
'RS3B = T_CIRC(H - HSP - M5 / 2 + M10 / 2, Y + M8 / 2, M7) & T_CIRC(H - HSP - M5 / 2 - M10 / 2, Y + M8 / 2, M7)
236+
237-
'RS3C = T_CIRC(H - HSP - M5 / 2 + M10 / 2, Y - M8 / 2, M7) & T_CIRC(H - HSP - M5 / 2 - M10 / 2, Y - M8 / 2, M7)
237+
238-
'RS3 = RS3A & RS3B & RS3C
238+
Select Case LH
239-
'RS4A = T_CIRC(H - HSP - M3 - M2 / 2 + M6 / 2, Y, M7) & T_CIRC(H - HSP - M3 - M2 / 2 - M6 / 2, Y, M7)
239+
240-
'RS4B = T_CIRC(H - HSP - M3 - M2 / 2 + M6 / 2, Y + M8 / 2, M7) & T_CIRC(H - HSP - M3 - M2 / 2 - M6 / 2, Y + M8 / 2, M7)
240+
Case 1900
241-
'RS4C = T_CIRC(H - HSP - M3 - M2 / 2 + M6 / 2, Y - M8 / 2, M7) & T_CIRC(H - HSP - M3 - M2 / 2 - M6 / 2, Y - M8 / 2, M7)
241+
If H - QCSP < 1030 Then M3 = H - QCSP - 530
242-
'RS4 = RS4A & RS4B & RS4C
242+
If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
243-
'SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
243+
If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
244-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
244+
245-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
245+
Case 1950
246
If H - QCSP < 1055 Then M3 = H - QCSP - 530
247-
Case "9160", "1600"
247+
If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
248-
If M5 = 0 Then
248+
If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
249-
If SB > 300 Then M5 = 60 Else M5 = SB / 2
249+
250
Case 2000
251
If H - QCSP < 1080 Then M3 = H - QCSP - 530
252-
Y = MR_Y(FA + M5, L, MRR)
252+
If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
253-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
253+
If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
254-
RS2 = T_RECT1(H - HSP - 4, H - HSP + (M3 - M2) / 2, Y - M4 / 2, Y + M4 / 2)
254+
255-
RS3 = T_RECT1(H - HSP - M2 - (M3 - M2) / 2, H - HSP - M2 + 4, Y - M4 / 2, Y + M4 / 2)
255+
Case 2050
256-
RS4 = T_CIRC(H - HSP - M2 / 2 + M6 / 2, Y, M7) & T_CIRC(H - HSP - M2 / 2 - M6 / 2, Y, M7)
256+
If H - QCSP < 1105 Then M3 = H - QCSP - 530
257-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
257+
If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
258-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
258+
If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
259
260-
Case "1900", "9190"
260+
Case 2100
261-
'If M5 = 0 Then
261+
If H - QCSP < 1130 Then M3 = H - QCSP - 530
262-
'If SB > 300 Then M5 = 60 Else M5 = SB / 2
262+
If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
263-
'End If
263+
If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
264-
'
264+
265-
'Y = MR_Y(FA + M5, L, MRR)
265+
266-
'RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
266+
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
267-
'RS2 = T_RECT1(H - HSP - 4, H - HSP + (M3 - M2) / 2, Y - M4 / 2, Y + M4 / 2)
267+
268-
'RS3 = T_RECT1(H - HSP - M2 - (M3 - M2) / 2, H - HSP - M2 + 4, Y - M4 / 2, Y + M4 / 2)
268+
269-
'RS4 = T_CIRC(H - HSP - M2 / 2 + M6 / 2, Y, M7) & T_CIRC(H - HSP - M2 / 2 - M6 / 2, Y, M7)
269+
270-
'
270+
271-
'RS5 = T_RECT2(H - HSP - M2 - M8 - M9 / 2, Y, M9, M12)
271+
R01 = ""
272-
'RS6 = T_CIRC(H - HSP - M2 - M8 - M9 / 2 + M10 / 2, Y + M11 / 2, M13) & T_CIRC(H - HSP - M2 - M8 - M9 / 2 - M10 / 2, Y + M11 / 2, M13)
272+
R02 = ""
273-
'RS7 = T_CIRC(H - HSP - M2 - M8 - M9 / 2 + M10 / 2, Y - M11 / 2, M13) & T_CIRC(H - HSP - M2 - M8 - M9 / 2 - M10 / 2, Y - M11 / 2, M13)
273+
274-
'
274+
'************************************************
275-
'SPCp_CODIFY = RS1 & RS2 & RS3 & RS4 & RS5 & RS6 & RS7
275+
276-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
276+
R03 = R03 & T_RECT1(-SCS, M2, -SCS, 26.6)
277-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
277+
R03 = R03 & T_RECT1(-SCS, M2, L - 16.6, L + SCS)
278
R03 = R03 & T_RECT1(H - 70, H + SCS, L - 16.6, L + SCS)
279-
Case "9120"
279+
280-
Y = MR_Y(FA + M8, L, MRR)
280+
R03 = R03 & T_RECT1(H - 345, H - 290, L - 17.5, L - 12.5)
281-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M3)
281+
R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), L - 17.5, L - 12.5)
282-
RS2 = T_CIRC(H - HSP - M2 / 2 - M4 / 2, Y, M7)
282+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
283-
RS3 = T_CIRC(H - HSP - M2 / 2 + M4 / 2, Y, M7)
283+
R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), L - 17.5, L - 12.5)
284-
RS4 = T_RECT2(H - HSP - M5 - M6 / 2, Y, M6, M1)
284+
285-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
285+
R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), L - 17.5, L - 12.5)
286-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
286+
287
R03 = R03 & T_RECT1(M2 + 20, M2 + 75, L - 17.5, L - 12.5)
288-
Case "9130"
288+
289-
Y = MR_Y(FA + M7, L, MRR)
289+
R03 = R03 & T_SLOT(H - 25, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
290-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
290+
R03 = R03 & T_SLOT(H - 55, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
291-
RS2 = T_CIRC(H - HSP - M2 / 2 - M4 / 2, Y, M6) & T_CIRC(H - HSP - M2 / 2 + M4 / 2, Y, M6)
291+
R03 = R03 & T_CIRC(20, L - (DF / 2 + 15 - 2.4), 7.2)
292-
RS3 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + M5 / 2, M6) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + M5 / 2, M6)
292+
R03 = R03 & T_CIRC(20 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
293-
RS4 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - M5 / 2, M6) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - M5 / 2, M6)
293+
R03 = R03 & T_CIRC(20, DF / 2 + 25 - 2.4, 7.2)
294-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
294+
R03 = R03 & T_CIRC(20 + M1, DF / 2 + 25 - 2.4, 7.2)
295-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
295+
R03 = R03 & T_SLOT(H - 25, 9.5, 8, 5, 90)
296
R03 = R03 & T_SLOT(H - 55, 9.5, 8, 5, 90)
297-
Case "1420", "1430", "1432", "1450", "9140"
297+
R03 = R03 & T_CIRC(H - 283, 10, 8.5)
298-
TYS = INPUT_STR(NND, "TY_SPC", TY_SPC, ACT_MOD)
298+
R03 = R03 & T_CIRC(H - (283 + 34), 10, 8.5)
299
R03 = R03 & T_CIRC(H - (283 + M3), 10, 8.5)
300-
If InStr(1, TYS, "AB") > 0 And InStr(1, TYS, "BC") > 0 Or InStr(1, TYS, "CD") > 0 Then
300+
R03 = R03 & T_CIRC(H - (283 + 34 + M3), 10, 8.5)
301
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
302-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
302+
R03 = R03 & T_CIRC(H - (283 + M3 + M10), 10, 8.5)
303
R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), 10, 8.5)
304
Else
305-
If M4 = 0 Then
305+
R03 = R03 & T_CIRC(H - (283 + 2 * M3), 10, 8.5)
306-
If SB > 300 Then M4 = 60 Else M4 = SB / 2
306+
R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), 10, 8.5)
307
End If
308
R03 = R03 & T_CIRC(M2 + 82, 10, 8.5)
309-
Y = MR_Y(FA + M4, L, MRR)
309+
R03 = R03 & T_CIRC(M2 + 82 - 34, 10, 8.5)
310-
If InStr(1, TYS, "A") > 0 Then
310+
311-
RS1 = T_CIRC(H - HSP, Y, M1)
311+
If M6 > 0 Then R04 = T_CIRC(H - 1500, L - (15 + M6 - 2.4), 22) Else R04 = ""
312
313-
RS1 = ""
313+
'SMUSSI
314
R05 = T_RAD(0 - OFSS, L - (15 + 4 - 2.4) + OFSS, 2)
315-
If InStr(1, TYS, "B") > 0 Then
315+
R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
316-
RS2 = T_CIRC(H - HSP - M2, Y, M1)
316+
R05 = R05 & T_RAD(0 - OFSS, 25 + 4 - 2.4 - OFSS, 3)
317
R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
318-
RS2 = ""
318+
R05 = R05 & T_RAD(H - 70 + OFSS, L + OFSS, 1)
319
R05 = R05 & T_RAD(H + OFSS, L - (15 + 4 - 2.4) + OFSS, 1)
320-
If InStr(1, TYS, "C") > 0 Then
320+
R05 = R05 & T_RAD(H + OFSS, 0 - OFSS, 4)
321-
RS3 = T_CIRC(H - HSP - 2 * M2, Y, M1)
321+
322
'Print #NF, T_BLQ(H - 1000, 5.65, H - 1000 - 5.65, 0, 0, 1)
323-
RS3 = ""
323+
'Print #NF, T_BLQ(H - 1000 + 5.65, 0, H - 1000, 5.65, 1, 0)
324
R06 = T_SMUS(H - 1000, -0.2)
325-
SPCp_CODIFY = RS1 & RS2 & RS3
325+
'Print #NF, T_CIRC(H - 1000, 0, 3.3)
326-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
326+
327
R11 = T_DATAMATRIX(ODP, H - 283 + 10, L - 15 - 2.5 - 20, "O")
328
329
R12 = ""
330-
Case "9150"
330+
If M7 > 0 Then
331-
TYS = INPUT_STR(NND, "TY_SPC", TY_SPC, ACT_MOD)
331+
R12 = T_HEX(H - M7, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859 - 398, L - (15 + 28.5 - 2.4), 11)
332
End If
333
If M8 > 0 Then
334-
If InStr(1, TYS, "AB") > 0 Or InStr(1, TYS, "BC") > 0 Or InStr(1, TYS, "AC") > 0 Then
334+
R12 = R12 & T_HEX(H - M8 - 1257, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M8, L - (15 + 28.5 - 2.4), 11)
335
End If
336-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
336+
If M9 > 0 Then
337
R12 = R12 & T_HEX(H - M9, L - (15 + 28.5 - 2.4), 11)
338
End If
339-
Y = MR_Y(FA + M7, L, MRR)
339+
340-
If InStr(1, TYS, "A") > 0 Then
340+
341-
RS1 = T_RECT2(H - HSP, Y, M5, M6)
341+
342
MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
343-
RS1 = ""
343+
344
345-
If InStr(1, TYS, "B") > 0 Then
345+
fn = R01 & R02 & R03 & R04 & R05 & R06 & R11 & R12
346-
RS2 = T_RECT2(H - HSP - M4, Y, M2, M1)
346+
347
348-
RS2 = ""
348+
P1 = 250
349
P2 = H - 400
350-
If InStr(1, TYS, "C") > 0 Then
350+
MVAL = 500
351-
RS3 = T_RECT2(H - HSP - M4 - M3, Y, M2, M1)
351+
STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
352
353-
RS3 = ""
353+
Call SAVE_SUB(NND, STRINGA)
354
355-
SPCp_CODIFY = RS1 & RS2 & RS3
355+
POSINTAB = def_posintab(NND)
356-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
356+
Call CUT_END_S(H, L, "0", POSINTAB)
357
Call FVTPT(3, NND, "")
358
Call CUT_END_S(H, L, "B", POSINTAB)
359
Call FVTPT(3, NND, "B")
360-
Case "1800", "1810", "1820", "9180"
360+
Call CUT_END_S(H, L, "C", POSINTAB)
361-
TYS = INPUT_STR(NND, "TY_SPC", TY_SPC, ACT_MOD)
361+
Call FVTPT(3, NND, "C")
362
363
364-
If InStr(1, TYS, "AB") > 0 Or InStr(1, TYS, "BC") > 0 Or InStr(1, TYS, "CD") > 0 Or InStr(1, TYS, "AC") > 0 Or InStr(1, TYS, "AD") > 0 Then
364+
End Sub
365
366-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
366+
367
368
Sub S_1006897E(ByVal NND As Integer)
369
ACT_MOD = "1006897"
370-
If M1 = 0 Then
370+
CLAMP = 0
371-
If SB > 300 Then M1 = 60 Else M1 = SB / 2
371+
372
373
L = INPUT_NUM(NND, "L", L, ACT_MOD)
374-
Y = MR_Y(FA + M1, L, MRR)
374+
H = INPUT_NUM(NND, "H", H, ACT_MOD)
375-
If InStr(1, TYS, "A") > 0 Then
375+
SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
376-
RS1A = T_RECT2(H - HSP - 17, Y, 34, 29)
376+
M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
377-
RS1B = T_CIRC(H - HSP - 2.5, Y + 17 - 2.5, 5) & T_CIRC(H - HSP - 2.5, Y - 17 + 2.5, 5)
377+
M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
378-
RS1C = T_CIRC(H - HSP - 34 + 2.5, Y + 17 - 2.5, 5) & T_CIRC(H - HSP - 34 + 2.5, Y - 17 + 2.5, 5)
378+
M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
379-
RS1D = T_RECT2(H - HSP - 17, Y + 17 - 5, 34 - 5, 10) & T_RECT2(H - HSP - 17, Y - 17 + 5, 34 - 5, 10)
379+
M4 = INPUT_NUM(NND, "M4", M4, ACT_MOD)
380-
RS1 = RS1A & RS1B & RS1C & RS1D
380+
M5 = INPUT_NUM(NND, "M5", M5, ACT_MOD)
381
M6 = INPUT_NUM(NND, "M6", M6, ACT_MOD)
382-
RS1 = ""
382+
M7 = INPUT_NUM(NND, "M7", M7, ACT_MOD)
383
M8 = INPUT_NUM(NND, "M8", M8, ACT_MOD)
384
M9 = INPUT_NUM(NND, "M9", M9, ACT_MOD)
385-
If InStr(1, TYS, "B") > 0 Then
385+
M10 = INPUT_NUM(NND, "M10", M10, ACT_MOD)
386-
RS2A = T_RECT2(H - HSP - 17 - 54, Y, 34, 29)
386+
M11 = INPUT_NUM(NND, "M11", M11, ACT_MOD)
387-
RS2B = T_CIRC(H - HSP - 2.5 - 54, Y + 17 - 2.5, 5) & T_CIRC(H - HSP - 2.5 - 54, Y - 17 + 2.5, 5)
387+
M12 = INPUT_NUM(NND, "M12", M12, ACT_MOD)
388-
RS2C = T_CIRC(H - HSP - 34 + 2.5 - 54, Y + 17 - 2.5, 5) & T_CIRC(H - HSP - 34 + 2.5 - 54, Y - 17 + 2.5, 5)
388+
M13 = INPUT_NUM(NND, "M13", M13, ACT_MOD)
389-
RS2D = T_RECT2(H - HSP - 17 - 54, Y + 17 - 5, 34 - 5, 10) & T_RECT2(H - HSP - 17 - 54, Y - 17 + 5, 34 - 5, 10)
389+
M14 = INPUT_NUM(NND, "M14", M14, ACT_MOD)
390-
RS2 = RS2A & RS2B & RS2C & RS2D
390+
391
DF = INPUT_NUM(NND, "DF", DF, ACT_MOD)
392-
RS2 = ""
392+
393
SB = INPUT_NUM(NND, "SB", SB, ACT_MOD)
394
LH = INPUT_NUM(NND, "LH", LH, ACT_MOD)
395-
If InStr(1, TYS, "C") > 0 Then
395+
CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
396-
RS3A = T_RECT2(H - HSP - 17 - 108, Y, 34, 29)
396+
VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
397-
RS3B = T_CIRC(H - HSP - 2.5 - 108, Y + 17 - 2.5, 5) & T_CIRC(H - HSP - 2.5 - 108, Y - 17 + 2.5, 5)
397+
BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
398-
RS3C = T_CIRC(H - HSP - 34 + 2.5 - 108, Y + 17 - 2.5, 5) & T_CIRC(H - HSP - 34 + 2.5 - 108, Y - 17 + 2.5, 5)
398+
ODP = INFO_DAT(NND, 0, 5)
399-
RS3D = T_RECT2(H - HSP - 17 - 108, Y + 17 - 5, 34 - 5, 10) & T_RECT2(H - HSP - 17 - 108, Y - 17 + 5, 34 - 5, 10)
399+
400-
RS3 = RS3A & RS3B & RS3C & RS3D
400+
OFSS = 0 '0.5
401
402-
RS3 = ""
402+
403
If Val(LH) = 0 Then
404
SP = M1 + 50
405-
If InStr(1, TYS, "D") > 0 Then
405+
LH = H - SP
406-
RS4A = T_RECT2(H - HSP - 17 - 162, Y, 34, 29)
406+
407-
RS4B = T_CIRC(H - HSP - 2.5 - 162, Y + 17 - 2.5, 5) & T_CIRC(H - HSP - 2.5 - 162, Y - 17 + 2.5, 5)
407+
408-
RS4C = T_CIRC(H - HSP - 34 + 2.5 - 162, Y + 17 - 2.5, 5) & T_CIRC(H - HSP - 34 + 2.5 - 162, Y - 17 + 2.5, 5)
408+
409-
RS4D = T_RECT2(H - HSP - 17 - 162, Y + 17 - 5, 34 - 5, 10) & T_RECT2(H - HSP - 17 - 162, Y - 17 + 5, 34 - 5, 10)
409+
If VV = "1" Or VV = "3" Or VV = "5" Or VV = "7" Then    'PINZE
410-
RS4 = RS4A & RS4B & RS4C & RS4D
410+
If CD_SP = 0 Then
411
If SP = 90 And LH = 2000 Then
412-
RS4 = ""
412+
'CLAMP = 1
413
End If
414
End If
415-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
415+
416-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
416+
417
418
VV = Replace(VV, "H", "")
419
420-
Case "2000", "2002", "9200"
420+
If VV > 8 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
421-
TYS = INPUT_STR(NND, "TY_SPC", TY_SPC, ACT_MOD)
421+
422
423-
If InStr(1, TYS, "AB") > 0 Then
423+
SCS = 6
424
425-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
425+
426
sf = 1 * sf '+ 1 * SB
427
If sf = 0 Then
428
sf = 1 * SB
429-
If M1 = 0 Then
429+
MsgBox "ERRORE DATI SB-SF IN " & ACT_MOD
430-
If SB > 300 Then M1 = 60 Else M1 = SB / 2
430+
431
432
433-
Y = MR_Y(FA + M1, L, MRR)
433+
434
Select Case VV
435-
If InStr(1, TYS, "A") > 0 Then
435+
Case 2, 4, 6, 8
436-
RS1A = T_RECT2(H - HSP - 84 / 2, Y, 84, 47)
436+
437-
RS1B = T_CIRC(H - HSP + 3, Y, 5) & T_RECT2(H - HSP + 3 - 2.5, Y, 5, 5)
437+
438-
RS1C = T_CIRC(H - HSP - 90 + 3, Y, 5) & T_RECT2(H - HSP + 3 - 90 + 2.5, Y, 5, 5)
438+
'*******************************************SPACCO
439-
RS1 = RS1A & RS1B & RS1C
439+
If CD_SP <> "" And CD_SP <> "0" Then
440
R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 2, sf, 0) 'MODIFICATO DA 25 A 15mm
441-
RS1 = ""
441+
442
If DF >= 40 Then M5 = DF - 25 Else M5 = 0
443
444-
If InStr(1, TYS, "B") > 0 Then
444+
445-
RS2 = T_RECT2(H - HSP - 755 - 150.5 / 2, Y, 150.5, 50)
445+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50948" Or CD_SP = "50950" Then
446
R02 = T_CIRC(H - M11, L - 5.2, 5.5) & T_CIRC(H - M11 - 375.5, L - 5.2, 5.5)
447-
RS2 = ""
447+
R02 = R02 & T_CIRC(H - M12, L - 5.2, 5.5) & T_CIRC(H - M12 - 275.5, L - 5.2, 5.5)
448
R02 = R02 & T_SLOT(H - M11, 24.1, 8, 5, 90) & T_SLOT(H - M11, 24.1 + M5, 8, 5, 90)
449
R02 = R02 & T_SLOT(H - M11 - 375.5, 24.1, 8, 5, 90) & T_SLOT(H - M11 - 375.5, 24.1 + M5, 8, 5, 90)
450-
SPCp_CODIFY = RS1 & RS2
450+
R02 = R02 & T_SLOT(H - M12, 24.1, 8, 5, 90) & T_SLOT(H - M12, 24.1 + M5, 8, 5, 90)
451-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
451+
R02 = R02 & T_SLOT(H - M12 - 275.5, 24.1, 8, 5, 90) & T_SLOT(H - M12 - 275.5, 24.1 + M5, 8, 5, 90)
452
453
Else
454
R02 = T_CIRC(QCSP + 187.75, L - 5.2, 5.5)
455
R02 = R02 & T_CIRC(QCSP - 187.75, L - 5.2, 5.5)
456-
Case "2200", "2210", "2220", "9220"
456+
R02 = R02 & T_SLOT(QCSP + 187.75, 24.1, 8, 5, 90)
457
R02 = R02 & T_SLOT(QCSP + 187.75, 24.1 + M5, 8, 5, 90)
458-
If M4 = 0 Then
458+
R02 = R02 & T_SLOT(QCSP - 187.75, 24.1, 8, 5, 90)
459-
If SB > 300 Then M4 = 60 Else M4 = SB / 2
459+
R02 = R02 & T_SLOT(QCSP - 187.75, 24.1 + M5, 8, 5, 90)
460
End If
461
462-
If M1 < 20 Or M2 < 20 Then MsgBox ("ATTENZIONE POSSIBILE SPACCO " & COD_SPC & " ERRATO SU CODICE " & ACT_MOD)
462+
463-
Y = MR_Y(FA + M4, L, MRR)
463+
464-
'If M3 = 6 Then M3 = 6.125 'CAMBIO MISURA PER DISPONIBILITA' PUNZONE
464+
MsgBox "M3=0"
465-
'If M3 = 3.6 Then M3 = 3.55 'CAMBIO MISURA PER DISPONIBILITA' PUNZONE
465+
Select Case LH
466-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1 - M3 * 2)
466+
467-
RS2 = T_CIRC(H - HSP - M3, Y + M1 / 2 - M3, M3 * 2) & T_CIRC(H - HSP - M3, Y - M1 / 2 + M3, M3 * 2)
467+
Case 1900
468-
RS3 = T_CIRC(H - HSP - M2 + M3, Y + M1 / 2 - M3, M3 * 2) & T_CIRC(H - HSP - M2 + M3, Y - M1 / 2 + M3, M3 * 2)
468+
If H - QCSP < 1030 Then M3 = H - QCSP - 530
469-
RS4 = T_RECT2(H - HSP - M2 / 2, Y + M1 / 2 - 5, M2 - M3 * 2, 10) & T_RECT2(H - HSP - M2 / 2, Y - M1 / 2 + 5, M2 - M3 * 2, 10)
469+
If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
470-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
470+
If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
471-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
471+
472
Case 1950
473
If H - QCSP < 1055 Then M3 = H - QCSP - 530
474-
Case "2800", "9280"
474+
If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
475-
'If M10 = 0 Then
475+
If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
476-
'If SB <= 300 Then M10 = 50 Else M10 = 60
476+
477-
'End If
477+
Case 2000
478-
'
478+
If H - QCSP < 1080 Then M3 = H - QCSP - 530
479-
'Y = MR_Y(FA + M10, L, MRR)
479+
If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
480-
'If M6 = 3.5 Then M6 = 3.3 'CAMBIO MISURA PER DISPONIBILITA' PUNZONE
480+
If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
481-
'RS1 = T_RECT2(H - HSP - M7 / 2, Y, M7, M1)
481+
482-
'RS2 = T_CIRC(H - HSP - M7 / 2 + M8 / 2, Y, M9) & T_CIRC(H - HSP - M7 / 2 - M8 / 2, Y, M9)
482+
Case 2050
483-
'
483+
If H - QCSP < 1105 Then M3 = H - QCSP - 530
484-
'RS3 = T_RECT2(H - HSP - M2 / 2 - 350, Y, M2, M1)
484+
If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
485-
'RS4 = T_CIRC(H - HSP - 350 + M4, Y - M5 / 2, M6) & T_CIRC(H - HSP - 350 + M4, Y + M5 / 2, M6)
485+
If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
486-
'RS5 = T_CIRC(H - HSP - 350 + M4 - M3, Y - M5 / 2, M6) & T_CIRC(H - HSP - 350 + M4 - M3, Y + M5 / 2, M6)
486+
487-
'SPCp_CODIFY = RS1 & RS2 & RS3 & RS4 & RS5
487+
Case 2100
488-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
488+
If H - QCSP < 1130 Then M3 = H - QCSP - 530
489
If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
490-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
490+
If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
491
492-
Case "0102", "0130", "0142", "0152", "0170", "0180", "0196", "9010"
492+
493-
'If M3 = 0 Then
493+
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
494-
'If SB > 300 Then M3 = 60 Else M3 = SB / 2
494+
495-
'End If
495+
496-
'
496+
497-
'Y = MR_Y(FA + M3, L, MRR)
497+
498-
'RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
498+
R01 = ""
499-
'SPCp_CODIFY = RS1
499+
R02 = ""
500-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
500+
501-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
501+
'*******************************************************
502
503-
Case "9080"
503+
504-
'Y = MR_Y(FA + M4, L, MRR)
504+
R03 = T_RECT1(-SCS, M2, L - 26.6, L + SCS)
505-
'RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
505+
R03 = R03 & T_RECT1(-SCS, M2, -SCS, 16.6)
506-
'SPCp_CODIFY = RS1
506+
R03 = R03 & T_RECT1(H - 70, H + SCS, -SCS, 16.6)
507-
'MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
507+
508
R03 = R03 & T_RECT1(H - 345, H - 290, 12.5, 17.5)
509-
MsgBox (COD_SPC & " BLOCCATO SU CODICE " & ACT_MOD)
509+
R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), 12.5, 17.5)
510
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
511-
Case "2900", "9290"
511+
R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), 12.5, 17.5)
512-
Y = MR_Y(FA + M5, L, MRR)
512+
513-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
513+
R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), 12.5, 17.5)
514-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
514+
515-
RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
515+
R03 = R03 & T_RECT1(M2 + 20, M2 + 75, 12.5, 17.5)
516-
SPCp_CODIFY = RS1 & RS2
516+
517-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
517+
R03 = R03 & T_SLOT(H - 25, DF - 18 + 15 - 2.4, 8, 5, 90)
518
R03 = R03 & T_SLOT(H - 55, DF - 18 + 15 - 2.4, 8, 5, 90)
519-
Case "3000", "9300"
519+
520-
Y = MR_Y(FA + M5, L, MRR)
520+
R03 = R03 & T_CIRC(M13, DF / 2 + 15 - 2.4, 7.2)
521-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
521+
R03 = R03 & T_CIRC(M13 + M1, DF / 2 + 15 - 2.4, 7.2)
522-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
522+
R03 = R03 & T_CIRC(M13, L - (DF / 2 + 25 - 2.4), 7.2)
523-
RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
523+
R03 = R03 & T_CIRC(M13 + M1, L - (DF / 2 + 25 - 2.4), 7.2)
524-
RS3 = T_RECT1(H - HSP + M6 + M7, H - HSP + M6, Y - M1 / 2, Y + M1 / 2)
524+
If M14 > 0 Then
525-
SPCp_CODIFY = RS1 & RS2 & RS3
525+
R03 = R03 & T_CIRC(M13 + M1 / 2, L - (DF / 2 + 25 - 2.4), 20.2)
526-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
526+
527
R03 = R03 & T_SLOT(H - 25, L - 9.5, 8, 5, 90)
528-
Case "3100", "9310"
528+
R03 = R03 & T_SLOT(H - 55, L - 9.5, 8, 5, 90)
529-
Y = MR_Y(FA + M5, L, MRR)
529+
530-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
530+
R03 = R03 & T_CIRC(H - 283, L - 10, 8.5)
531-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
531+
R03 = R03 & T_CIRC(H - (283 + 34), L - 10, 8.5)
532-
RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
532+
R03 = R03 & T_CIRC(H - (283 + M3), L - 10, 8.5)
533-
RS3 = T_RECT1(H - HSP + M6 + M7, H - HSP + M6, Y - M1 / 2, Y + M1 / 2)
533+
R03 = R03 & T_CIRC(H - (283 + 34 + M3), L - 10, 8.5)
534-
RS4 = T_RECT1(H - HSP + M6 + M7 + M8 + M9, H - HSP + M6 + M7 + M8, Y - M1 / 2, Y + M1 / 2)
534+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
535-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
535+
R03 = R03 & T_CIRC(H - (283 + M3 + M10), L - 10, 8.5)
536-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
536+
R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), L - 10, 8.5)
537
Else
538-
Case "3200", "9320"
538+
R03 = R03 & T_CIRC(H - (283 + 2 * M3), L - 10, 8.5)
539-
Y = MR_Y(FA + M5, L, MRR)
539+
R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), L - 10, 8.5)
540-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
540+
541-
RS3 = T_RECT1(H - M8, H - M8 - M6, Y - M7 / 2, Y + M7 / 2)
541+
R03 = R03 & T_CIRC(M2 + 82, L - 10, 8.5)
542-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
542+
R03 = R03 & T_CIRC(M2 + 82 - 34, L - 10, 8.5)
543-
RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
543+
544-
SPCp_CODIFY = RS1 & RS2 & RS3
544+
545-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
545+
If M6 > 0 Then R04 = T_CIRC(H - 1500, 15 + M6 - 2.4, 22) Else R04 = ""
546
547-
Case "3300"
547+
'SMUSSI
548-
Y = MR_Y(FA + M5, L, MRR)
548+
R05 = T_RAD(0 - OFSS, 15 + 4 - 2.4 - OFSS, 3)
549-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
549+
R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
550-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
550+
R05 = R05 & T_RAD(0 - OFSS, L - (25 + 4 - 2.4) + OFSS, 2)
551-
RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
551+
R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
552-
RS3 = T_RECT1(H - M10, H - M10 - M8, Y - M9 / 2, Y + M9 / 2)
552+
R05 = R05 & T_RAD(H - 70 + OFSS, 0 - OFSS, 4)
553-
RS4 = T_RECT1(H - HSP + M6 + M7, H - HSP + M6, Y - M1 / 2, Y + M1 / 2)
553+
R05 = R05 & T_RAD(H + OFSS, 15 + 4 - 2.4 - OFSS, 4)
554-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
554+
R05 = R05 & T_RAD(H + OFSS, L + OFSS, 1)
555-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
555+
556
'Print #NF, T_BLQ(H - 1000 - 5.65, L, H - 1000, L - 5.65, 1, 0)
557-
Case "9330"
557+
'Print #NF, T_BLQ(H - 1000, L - 5.65, H - 1000 + 5.65, L, 0, 1)
558-
Y = MR_Y(FA + M10, L, MRR)
558+
R06 = T_SMUS(H - 1000, L + 0.2)
559-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
559+
'Print #NF, T_CIRC(H - 1000, L, 3.3)
560-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
560+
561-
'RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
561+
R11 = T_DATAMATRIX(ODP, H - 100 - 40, 15 + 4, "O")
562-
RS3 = T_RECT1(H - HSP - M9, H - HSP - M9 - M6, Y - M5 / 2, Y + M5 / 2)
562+
563-
'RS4 = T_RECT1(H - HSP + M6 + M7, H - HSP + M6, Y - M1 / 2, Y + M1 / 2)
563+
R12 = ""
564-
RS2 = T_CIRC(H - HSP + ((M3 - M2) / 2), Y, M4) & T_CIRC(H - HSP - M2 - ((M3 - M2) / 2), Y, M4) & T_CIRC(H - HSP - M9 - M6 - ((M7 - M6) / 2), Y, M8) & T_CIRC(H - HSP - M9 + ((M7 - M6) / 2), Y, M8)
564+
If M7 > 0 Then
565-
SPCp_CODIFY = RS1 & RS3 & RS2
565+
R12 = T_HEX(H - M7, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859 - 398, 15 + 28.5 - 2.4, 11)
566-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
566+
567
If M8 > 0 Then
568
R12 = R12 & T_HEX(H - M8 - 1257, 15 + 28.5 - 2.4, 11) & T_HEX(H - M8, 15 + 28.5 - 2.4, 11)
569-
Case "3400", "9340"
569+
570-
Y = MR_Y(FA + M5, L, MRR)
570+
If M9 > 0 Then
571-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
571+
R12 = R12 & T_HEX(H - M9, 15 + 28.5 - 2.4, 11)
572-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
572+
573-
RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
573+
574-
RS3 = T_RECT1(H - HSP + M6 + M7, H - HSP + M6, Y - M1 / 2, Y + M1 / 2)
574+
575-
RS4 = T_RECT1(H - HSP + M6 + M7 + M8 + M9, H - HSP + M6 + M7 + M8, Y - M1 / 2, Y + M1 / 2)
575+
576-
RS5 = T_RECT1(H - M12, H - M12 - M10, Y - M11 / 2, Y + M11 / 2)
576+
Case 1, 3, 5, 7
577
578-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4 & RS5
578+
'*******************************************SPACCO
579-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
579+
If CD_SP <> "" And CD_SP <> "0" Then
580
R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 1, sf, 0)
581-
'START NUOVI SPACCHI OTIS 03/11/2022
581+
582-
Case "50948", "50949", "50974"
582+
583-
Y = MR_Y(FA + sf / 2, L, MRR)
583+
If DF >= 40 Then M5 = DF - 25 Else M5 = 0
584-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
584+
585-
'RS3 = T_RECT1(H - M8, H - M8 - M6, Y - M7 / 2, Y + M7 / 2)
585+
586-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
586+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
587-
'RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
587+
R02 = T_CIRC(H - M11, 5.2, 5.5) & T_CIRC(H - M11 - 375.5, 5.2, 5.5)
588-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + M4 / 2, M5)
588+
R02 = R02 & T_CIRC(H - M12, 5.2, 5.5) & T_CIRC(H - M12 - 275.5, 5.2, 5.5)
589-
SPCp_CODIFY = RS1 & RS2 '& RS3
589+
R02 = R02 & T_SLOT(H - M11, L - 24.1, 8, 5, 90) & T_SLOT(H - M11, L - 24.1 - M5, 8, 5, 90)
590-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
590+
R02 = R02 & T_SLOT(H - M11 - 375.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M11 - 375.5, L - 24.1 - M5, 8, 5, 90)
591
R02 = R02 & T_SLOT(H - M12, L - 24.1, 8, 5, 90) & T_SLOT(H - M12, L - 24.1 - M5, 8, 5, 90)
592-
Case "50952", "50953", "51001", "50956", "50957"
592+
R02 = R02 & T_SLOT(H - M12 - 275.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M12 - 275.5, L - 24.1 - M5, 8, 5, 90)
593-
Y = MR_Y(FA + sf / 2, L, MRR)
593+
594-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6, Y, M2, M1)
594+
595-
'RS3 = T_RECT1(H - M8, H - M8 - M6, Y - M7 / 2, Y + M7 / 2)
595+
R02 = T_CIRC(QCSP + 187.75, 5.2, 5.5)
596-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
596+
R02 = R02 & T_CIRC(QCSP - 187.75, 5.2, 5.5)
597-
'RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
597+
R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1, 8, 5, 90)
598-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + M4 / 2, M5)
598+
R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1 - M5, 8, 5, 90)
599-
RS3 = T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6, Y + M4 / 2, M5)
599+
R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1, 8, 5, 90)
600-
SPCp_CODIFY = RS1 & RS2 & RS3
600+
R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1 - M5, 8, 5, 90)
601-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
601+
602
603-
Case "50960", "51005", "50964", "50965"
603+
604-
Y = MR_Y(FA + sf / 2, L, MRR)
604+
605-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6 - M7, Y, M2, M1)
605+
606-
'RS3 = T_RECT1(H - M8, H - M8 - M6, Y - M7 / 2, Y + M7 / 2)
606+
Select Case LH
607-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
607+
608-
'RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
608+
Case 1900
609-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + M4 / 2, M5)
609+
If H - QCSP < 1030 Then M3 = H - QCSP - 530
610-
RS3 = T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6, Y + M4 / 2, M5)
610+
If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
611-
RS4 = T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6 - M7, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6 - M7, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6 - M7, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6 - M7, Y + M4 / 2, M5)
611+
If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
612-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
612+
613-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
613+
Case 1950
614
If H - QCSP < 1055 Then M3 = H - QCSP - 530
615-
Case "50968", "51007"
615+
If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
616-
Y = MR_Y(FA + sf / 2, L, MRR)
616+
If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
617-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6 - M7, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6 - M7 - M8, Y, M2, M1)
617+
618-
'RS3 = T_RECT1(H - M8, H - M8 - M6, Y - M7 / 2, Y + M7 / 2)
618+
Case 2000
619-
'RS2 = T_SLOT(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5, 0) & T_SLOT(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5, 0)
619+
If H - QCSP < 1080 Then M3 = H - QCSP - 530
620-
'RS2 = T_RECT2(H - HSP - M2 - M4, Y - M3 / 2, 8, 5.5) & T_RECT2(H - HSP - M2 - M4, Y + M3 / 2, 8, 5.5)
620+
If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
621-
RS2 = T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + M4 / 2, M5)
621+
If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
622-
RS3 = T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6, Y + M4 / 2, M5)
622+
623-
RS4 = T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6 - M7, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6 - M7, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6 - M7, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6 - M7, Y + M4 / 2, M5)
623+
Case 2050
624-
RS4 = RS4 & T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6 - M7 - M8, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 - M3 / 2 - M6 - M7 - M8, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6 - M7 - M8, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2 - M6 - M7 - M8, Y + M4 / 2, M5)
624+
If H - QCSP < 1105 Then M3 = H - QCSP - 530
625-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
625+
If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
626-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
626+
If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
627
628
Case 2100
629-
Case "50950", "50951", "50975" 'A
629+
If H - QCSP < 1130 Then M3 = H - QCSP - 530
630-
Y = MR_Y(FA + sf / 2, L, MRR)
630+
If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
631-
'RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6 - M7, Y, M2, M1) & T_RECT2(H - HSP - M2 / 2 - M6 - M7 - M8, Y, M2, M1)
631+
If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
632-
RS1 = T_SLOT(H - HSP - M1, Y, 18, 6.5, 90)
632+
633
Case Else
634-
RS2 = T_CIRC(H - HSP - M1, Y - M2 / 2, M7) & T_CIRC(H - HSP, Y + M2 / 2, M7) 'T_CIRC(H - HSP - M2 / 2 - M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 / 2 + M3 / 2, Y + M4 / 2, M5)
634+
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
635
End Select
636-
SPCp_CODIFY = RS1 & RS2
636+
637-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
637+
638
Else
639
R01 = ""
640-
Case "50954", "51004", "50958", "50959", "51000" 'A+B
640+
R02 = ""
641-
Y = MR_Y(FA + sf / 2, L, MRR)
641+
642
'************************************************
643-
RS1 = T_SLOT(H - HSP - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M1 - M3, Y, 18, 6.5, 90)
643+
644
R03 = R03 & T_RECT1(-SCS, M2, -SCS, 26.6)
645-
RS2 = T_CIRC(H - HSP - M1, Y - M2 / 2, M7) & T_CIRC(H - HSP, Y + M2 / 2, M7) & T_CIRC(H - HSP - M1 - M3, Y - M2 / 2, M7) & T_CIRC(H - HSP - M3, Y + M2 / 2, M7)
645+
R03 = R03 & T_RECT1(-SCS, M2, L - 16.6, L + SCS)
646
R03 = R03 & T_RECT1(H - 70, H + SCS, L - 16.6, L + SCS)
647-
SPCp_CODIFY = RS1 & RS2
647+
648-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
648+
R03 = R03 & T_RECT1(H - 345, H - 290, L - 17.5, L - 12.5)
649
R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), L - 17.5, L - 12.5)
650
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
651-
Case "50962", "51006", "50967" 'A+B+C
651+
R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), L - 17.5, L - 12.5)
652-
Y = MR_Y(FA + sf / 2, L, MRR)
652+
653
R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), L - 17.5, L - 12.5)
654-
RS1 = T_SLOT(H - HSP - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M1 - M3, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M1 - M3 - M5, Y, 18, 6.5, 90)
654+
655
R03 = R03 & T_RECT1(M2 + 20, M2 + 75, L - 17.5, L - 12.5)
656-
RS2 = T_CIRC(H - HSP - M1, Y - M2 / 2, M7) & T_CIRC(H - HSP, Y + M2 / 2, M7) & T_CIRC(H - HSP - M1 - M3, Y - M2 / 2, M7) & T_CIRC(H - HSP - M3, Y + M2 / 2, M7) & T_CIRC(H - HSP - M1 - M3 - M5, Y - M2 / 2, M7) & T_CIRC(H - HSP - M3 - M5, Y + M2 / 2, M7)
656+
657
R03 = R03 & T_SLOT(H - 25, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
658-
SPCp_CODIFY = RS1 & RS2
658+
R03 = R03 & T_SLOT(H - 55, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
659-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
659+
660
'R03 = R03 & T_CIRC(20, L - (DF / 2 + 15 - 2.4), 7.2)
661
'R03 = R03 & T_CIRC(20 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
662-
Case "50970", "51008" 'A+B+C+D
662+
'R03 = R03 & T_CIRC(20, DF / 2 + 25 - 2.4, 7.2)
663-
Y = MR_Y(FA + sf / 2, L, MRR)
663+
'R03 = R03 & T_CIRC(20 + M1, DF / 2 + 25 - 2.4, 7.2)
664
R03 = R03 & T_CIRC(M13, L - (DF / 2 + 15 - 2.4), 7.2)
665-
RS1 = T_SLOT(H - HSP - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M1 - M3, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M1 - M3 - M5, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M1 - M3 - M5 - M6, Y, 18, 6.5, 90)
665+
R03 = R03 & T_CIRC(M13 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
666
R03 = R03 & T_CIRC(M13, DF / 2 + 25 - 2.4, 7.2)
667-
RS2 = T_CIRC(H - HSP - M1, Y - M2 / 2, M7) & T_CIRC(H - HSP, Y + M2 / 2, M7) & T_CIRC(H - HSP - M1 - M3, Y - M2 / 2, M7) & T_CIRC(H - HSP - M3, Y + M2 / 2, M7) & T_CIRC(H - HSP - M1 - M3 - M5, Y - M2 / 2, M7) & T_CIRC(H - HSP - M3 - M5, Y + M2 / 2, M7) & T_CIRC(H - HSP - M1 - M3 - M5 - M6, Y - M2 / 2, M7) & T_CIRC(H - HSP - M3 - M5 - M6, Y + M2 / 2, M7)
667+
R03 = R03 & T_CIRC(M13 + M1, DF / 2 + 25 - 2.4, 7.2)
668
669-
SPCp_CODIFY = RS1 & RS2
669+
If M14 > 0 Then
670-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
670+
R03 = R03 & T_CIRC(M13 + M1 / 2, L - (DF / 2 + 25 - 2.4), 20.2)
671
672
End If
673-
Case "50972", "50973"
673+
674-
Y = MR_Y(FA + sf / 2, L, MRR)
674+
R03 = R03 & T_SLOT(H - 25, 9.5, 8, 5, 90)
675
R03 = R03 & T_SLOT(H - 55, 9.5, 8, 5, 90)
676-
RS1 = T_SLOT(H - HSP - M1 + M2, Y, 18, 6.5, 90)
676+
R03 = R03 & T_CIRC(H - 283, 10, 8.5)
677
R03 = R03 & T_CIRC(H - (283 + 34), 10, 8.5)
678-
RS2 = T_CIRC(H - HSP, Y, M4) & T_CIRC(H - HSP - M1, Y - M3 / 2, M4) & T_CIRC(H - HSP - M1, Y + M3 / 2, M4)
678+
R03 = R03 & T_CIRC(H - (283 + M3), 10, 8.5)
679
R03 = R03 & T_CIRC(H - (283 + 34 + M3), 10, 8.5)
680-
SPCp_CODIFY = RS1 & RS2
680+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
681-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
681+
R03 = R03 & T_CIRC(H - (283 + M3 + M10), 10, 8.5)
682
R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), 10, 8.5)
683
Else
684-
Case "50981", "50982"
684+
R03 = R03 & T_CIRC(H - (283 + 2 * M3), 10, 8.5)
685-
Y = MR_Y(FA + sf / 2, L, MRR)
685+
R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), 10, 8.5)
686
End If
687-
RS1 = T_RECT2(H - HSP - M2 / 2, Y, M2, M1)
687+
R03 = R03 & T_CIRC(M2 + 82, 10, 8.5)
688
R03 = R03 & T_CIRC(M2 + 82 - 34, 10, 8.5)
689-
RS2 = T_CIRC(H - HSP - ((M2 - M3) / 2), Y - M4 / 2, M5) & T_CIRC(H - HSP - ((M2 - M3) / 2), Y + M4 / 2, M5) & T_CIRC(H - HSP - M2 + ((M2 - M3) / 2), Y - M4 / 2, M5) & T_CIRC(H - HSP - M2 + ((M2 - M3) / 2), Y + M4 / 2, M5)
689+
690
If M6 > 0 Then R04 = T_CIRC(H - 1500, L - (15 + M6 - 2.4), 22) Else R04 = ""
691-
SPCp_CODIFY = RS1 & RS2
691+
692-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
692+
'SMUSSI
693
R05 = T_RAD(0 - OFSS, L - (15 + 4 - 2.4) + OFSS, 2)
694-
Case "50983"
694+
R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
695-
Y = MR_Y(FA + sf / 2, L, MRR)
695+
R05 = R05 & T_RAD(0 - OFSS, 25 + 4 - 2.4 - OFSS, 3)
696
R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
697-
RS1 = T_RECT2(H - HSP - M6 - M2 / 2, Y, M2, M1)
697+
R05 = R05 & T_RAD(H - 70 + OFSS, L + OFSS, 1)
698
R05 = R05 & T_RAD(H + OFSS, L - (15 + 4 - 2.4) + OFSS, 1)
699-
RS2 = T_SLOT(H - HSP - M3 - M8 + M9, Y, 18, 6.5, 90)
699+
R05 = R05 & T_RAD(H + OFSS, 0 - OFSS, 4)
700
701-
RS3 = T_CIRC(H - HSP, Y - M12, M11) & T_CIRC(H - HSP, Y + M5 / 2, M11) & T_CIRC(H - HSP - M3, Y - M4 / 2, M11) & T_CIRC(H - HSP - M3, Y + M4 / 2, M11) & T_CIRC(H - HSP - M3 - M7, Y, M11) & T_CIRC(H - HSP - M3 - M7 - M8, Y - M10 / 2, M11) & T_CIRC(H - HSP - M3 - M7 - M8, Y + M10 / 2, M11)
701+
'Print #NF, T_BLQ(H - 1000, 5.65, H - 1000 - 5.65, 0, 0, 1)
702
'Print #NF, T_BLQ(H - 1000 + 5.65, 0, H - 1000, 5.65, 1, 0)
703-
SPCp_CODIFY = RS1 & RS2 & RS3
703+
R06 = T_SMUS(H - 1000, -0.2)
704-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
704+
'Print #NF, T_CIRC(H - 1000, 0, 3.3)
705
706-
Case "50991", "50992"
706+
R11 = T_DATAMATRIX(ODP, H - 100 - 40, L - 15 - 4 - 17.5, "O")
707-
Y = MR_Y(FA + sf / 2, L, MRR)
707+
708
R12 = ""
709
If M7 > 0 Then
710-
RS1 = T_SLOT(H - HSP - M1, Y, 18, 6.5, 90)
710+
R12 = T_HEX(H - M7, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859 - 398, L - (15 + 28.5 - 2.4), 11)
711
End If
712-
RS2 = T_CIRC(H - HSP - M1, Y - M2 / 2, M4) & T_CIRC(H - HSP, Y + M2 / 2, M4)
712+
If M8 > 0 Then
713
R12 = R12 & T_HEX(H - M8 - 1257, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M8, L - (15 + 28.5 - 2.4), 11)
714-
RS3 = T_SLOT(H - HSP - M1 - M5 - M6 + M7, Y, 18, 6.5, 90)
714+
715
If M9 > 0 Then
716-
RS4 = T_CIRC(H - HSP - M1 - M5 - M6, Y - M8 / 2, M9) & T_CIRC(H - HSP - M1 - M5 - M6, Y + M8 / 2, M9) & T_CIRC(H - HSP - M1 - M5, Y, M9)
716+
R12 = R12 & T_HEX(H - M9, L - (15 + 28.5 - 2.4), 11)
717
End If
718-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4
718+
719-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
719+
720
Case Else
721-
Case "50984"
721+
MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
722-
Y = MR_Y(FA + sf / 2, L, MRR)
722+
723
724-
RS1 = T_RECT2(H - HSP - M15 - M8 / 2, Y, M8, M6) & T_RECT2(H - HSP - M11 - M2 / 2, Y, M2, M1)
724+
fn = R01 & R02 & R03 & R04 & R05 & R06 & R11 & R12
725
726-
RS2 = T_CIRC(H - HSP, Y - M16, M5) & T_CIRC(H - HSP, Y - M16 + M10, M5) & T_CIRC(H - HSP - M9, Y - M7 / 2, M5) & T_CIRC(H - HSP - M9, Y + M7 / 2, M5)
726+
727
P1 = 250
728-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
728+
P2 = H - 400
729
MVAL = 500
730-
SPCp_CODIFY = RS1 & RS2
730+
STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
731-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
731+
732
Call SAVE_SUB(NND, STRINGA)
733-
Case "50986", "50988"
733+
734-
Y = MR_Y(FA + sf / 2, L, MRR)
734+
POSINTAB = def_posintab(NND)
735
Call CUT_END_S(H, L, "0", POSINTAB)
736-
RS1 = T_RECT2(H - HSP - M15 - M8 / 2, Y, M8, M6) & T_RECT2(H - HSP - M11 - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M11 - M12 - M2 / 2, Y, M2, M1)
736+
Call FVTPT(3, NND, "")
737
Call CUT_END_S(H, L, "B", POSINTAB)
738-
RS2 = T_CIRC(H - HSP, Y - M16, M5) & T_CIRC(H - HSP, Y - M16 + M10, M5) & T_CIRC(H - HSP - M9, Y - M7 / 2, M5) & T_CIRC(H - HSP - M9, Y + M7 / 2, M5)
738+
Call FVTPT(3, NND, "B")
739-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
739+
Call CUT_END_S(H, L, "C", POSINTAB)
740-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M12 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
740+
Call FVTPT(3, NND, "C")
741
742-
SPCp_CODIFY = RS1 & RS2
742+
743-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
743+
End Sub
744
745-
Case "50990", "50996"
745+
Sub S_1006897H(ByVal NND As Integer)
746-
Y = MR_Y(FA + sf / 2, L, MRR)
746+
ACT_MOD = "1006897"
747
CLAMP = 0
748-
RS1 = T_RECT2(H - HSP - M15 - M8 / 2, Y, M8, M6) & T_RECT2(H - HSP - M11 - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M11 - M12 - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M11 - M12 - M13 - M2 / 2, Y, M2, M1)
748+
749
750-
RS2 = T_CIRC(H - HSP, Y - M16, M5) & T_CIRC(H - HSP, Y - M16 + M10, M5) & T_CIRC(H - HSP - M9, Y - M7 / 2, M5) & T_CIRC(H - HSP - M9, Y + M7 / 2, M5)
750+
L = INPUT_NUM(NND, "L", L, ACT_MOD)
751-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
751+
H = INPUT_NUM(NND, "H", H, ACT_MOD)
752-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M12 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
752+
SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
753-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M12 - M13 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
753+
M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
754
M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
755-
SPCp_CODIFY = RS1 & RS2
755+
M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
756-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
756+
M4 = INPUT_NUM(NND, "M4", M4, ACT_MOD)
757
M5 = INPUT_NUM(NND, "M5", M5, ACT_MOD)
758-
Case "50998"
758+
M6 = INPUT_NUM(NND, "M6", M6, ACT_MOD)
759-
Y = MR_Y(FA + sf / 2, L, MRR)
759+
M7 = INPUT_NUM(NND, "M7", M7, ACT_MOD)
760
M8 = INPUT_NUM(NND, "M8", M8, ACT_MOD)
761-
RS1 = T_RECT2(H - HSP - M15 - M8 / 2, Y, M8, M6) & T_RECT2(H - HSP - M11 - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M11 - M12 - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M11 - M12 - M13 - M2 / 2, Y, M2, M1) & T_RECT2(H - HSP - M11 - M12 - M13 - M14 - M2 / 2, Y, M2, M1)
761+
M9 = INPUT_NUM(NND, "M9", M9, ACT_MOD)
762
M10 = INPUT_NUM(NND, "M10", M10, ACT_MOD)
763-
RS2 = T_CIRC(H - HSP, Y - M16, M5) & T_CIRC(H - HSP, Y - M16 + M10, M5) & T_CIRC(H - HSP - M9, Y - M7 / 2, M5) & T_CIRC(H - HSP - M9, Y + M7 / 2, M5)
763+
M11 = INPUT_NUM(NND, "M11", M11, ACT_MOD)
764-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
764+
M12 = INPUT_NUM(NND, "M12", M12, ACT_MOD)
765-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M12 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
765+
M13 = INPUT_NUM(NND, "M13", M13, ACT_MOD)
766-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M12 - M13 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
766+
M14 = INPUT_NUM(NND, "M14", M14, ACT_MOD)
767-
RS2 = RS2 & T_CIRC(H - HSP - M11 - M12 - M13 - M14 - M2 / 2 + M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M14 - M2 / 2 + M3 / 2, Y + M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M14 - M2 / 2 - M3 / 2, Y - M4 / 2, M5) & T_CIRC(H - HSP - M11 - M12 - M13 - M14 - M2 / 2 - M3 / 2, Y + M4 / 2, M5)
767+
M15 = INPUT_NUM(NND, "M15", M15, ACT_MOD)
768
M16 = INPUT_NUM(NND, "M16", M16, ACT_MOD)
769-
SPCp_CODIFY = RS1 & RS2
769+
M17 = INPUT_NUM(NND, "M17", M17, ACT_MOD)
770-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
770+
M18 = INPUT_NUM(NND, "M18", M18, ACT_MOD)
771
772-
Case "50985"
772+
773-
Y = MR_Y(FA + sf / 2, L, MRR)
773+
DF = INPUT_NUM(NND, "DF", DF, ACT_MOD)
774
sf = INPUT_NUM(NND, "SF", sf, ACT_MOD)
775-
RS1 = T_RECT2(H - HSP - M12 - M10 / 2, Y, M10, M8)
775+
SB = INPUT_NUM(NND, "SB", SB, ACT_MOD)
776
LH = INPUT_NUM(NND, "LH", LH, ACT_MOD)
777-
RS2 = T_SLOT(H - HSP - M15 - M1, Y, 18, 6.5, 90)
777+
CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
778
VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
779-
RS3 = T_CIRC(H - HSP, Y - M13, M7) & T_CIRC(H - HSP, Y - M13 + M14, M7) & T_CIRC(H - HSP - M11, Y - M9 / 2, M7) & T_CIRC(H - HSP - M11, Y + M9 / 2, M7) & T_CIRC(H - HSP - M15 - M1, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15, Y + M2 / 2, M7)
779+
BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
780
ODP = INFO_DAT(NND, 0, 5)
781-
SPCp_CODIFY = RS1 & RS2 & RS3
781+
782-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
782+
OFSS = 0 '0.5
783
784-
Case "50987", "50989"
784+
SPCOTIS = "_50948_50949_50974_50952_50953_51001_50956_50957_50960_51005_50964_50965_50968_51007_"
785-
Y = MR_Y(FA + sf / 2, L, MRR)
785+
If Val(LH) = 0 Then
786
SP = M1 + 50
787-
RS1 = T_RECT2(H - HSP - M12 - M10 / 2, Y, M10, M8)
787+
LH = H - SP
788
End If
789-
RS2 = T_SLOT(H - HSP - M15 - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M15 - M3 - M1, Y, 18, 6.5, 90)
789+
790
791-
RS3 = T_CIRC(H - HSP, Y - M13, M7) & T_CIRC(H - HSP, Y - M13 + M14, M7) & T_CIRC(H - HSP - M11, Y - M9 / 2, M7) & T_CIRC(H - HSP - M11, Y + M9 / 2, M7) & T_CIRC(H - HSP - M15 - M1, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15, Y + M2 / 2, M7)
791+
If VV = "1" Or VV = "3" Or VV = "5" Or VV = "7" Then    'PINZE
792-
RS3 = RS3 & T_CIRC(H - HSP - M15 - M1 - M3, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15 - M3, Y + M2 / 2, M7)
792+
If CD_SP = 0 Then
793
If SP = 90 And LH = 2000 Then
794-
SPCp_CODIFY = RS1 & RS2 & RS3
794+
'CLAMP = 1
795-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
795+
796
End If
797-
Case "50995", "50997"
797+
798-
Y = MR_Y(FA + sf / 2, L, MRR)
798+
799
800-
RS1 = T_RECT2(H - HSP - M12 - M10 / 2, Y, M10, M8)
800+
VV = Replace(VV, "H", "")
801
802-
RS2 = T_SLOT(H - HSP - M15 - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M15 - M3 - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M15 - M3 - M5 - M1, Y, 18, 6.5, 90)
802+
If VV > 8 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
803
804-
RS3 = T_CIRC(H - HSP, Y - M13, M7) & T_CIRC(H - HSP, Y - M13 + M14, M7) & T_CIRC(H - HSP - M11, Y - M9 / 2, M7) & T_CIRC(H - HSP - M11, Y + M9 / 2, M7) & T_CIRC(H - HSP - M15 - M1, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15, Y + M2 / 2, M7)
804+
805-
RS3 = RS3 & T_CIRC(H - HSP - M15 - M1 - M3, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15 - M3, Y + M2 / 2, M7)
805+
SCS = 6
806-
RS3 = RS3 & T_CIRC(H - HSP - M15 - M1 - M3 - M5, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15 - M3 - M5, Y + M2 / 2, M7)
806+
807
808-
SPCp_CODIFY = RS1 & RS2 & RS3
808+
sf = 1 * sf '+ 1 * SB
809-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
809+
If sf = 0 Then
810
sf = 1 * SB
811-
Case "50999"
811+
MsgBox "ERRORE DATI SB-SF IN " & ACT_MOD
812-
Y = MR_Y(FA + sf / 2, L, MRR)
812+
813
814-
RS1 = T_RECT2(H - HSP - M12 - M10 / 2, Y, M10, M8)
814+
If VV = "1" Or VV = "2" Or VV = "5" Or VV = "6" Then
815
M16 = 20
816-
RS2 = T_SLOT(H - HSP - M15 - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M15 - M3 - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M15 - M3 - M5 - M1, Y, 18, 6.5, 90) & T_SLOT(H - HSP - M15 - M3 - M5 - M6 - M1, Y, 18, 6.5, 90)
816+
M17 = 48
817
End If
818-
RS3 = T_CIRC(H - HSP, Y - M13, M7) & T_CIRC(H - HSP, Y - M13 + M14, M7) & T_CIRC(H - HSP - M11, Y - M9 / 2, M7) & T_CIRC(H - HSP - M11, Y + M9 / 2, M7) & T_CIRC(H - HSP - M15 - M1, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15, Y + M2 / 2, M7)
818+
819-
RS3 = RS3 & T_CIRC(H - HSP - M15 - M1 - M3, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15 - M3, Y + M2 / 2, M7)
819+
820-
RS3 = RS3 & T_CIRC(H - HSP - M15 - M1 - M3 - M5, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15 - M3 - M5, Y + M2 / 2, M7)
820+
Select Case VV
821-
RS3 = RS3 & T_CIRC(H - HSP - M15 - M1 - M3 - M5 - M6, Y - M2 / 2, M7) & T_CIRC(H - HSP - M15 - M3 - M5 - M6, Y + M2 / 2, M7)
821+
Case 2, 4, 6, 8
822
823-
SPCp_CODIFY = RS1 & RS2 & RS3
823+
824-
MsgBox ("CONTROLLARE SPACCO " & COD_SPC & " SU CODICE " & ACT_MOD)
824+
'*******************************************SPACCO
825
If CD_SP <> "" And CD_SP <> "0" Then
826-
'END NUOVI SPACCHI OTIS
826+
R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 2, sf, 0) 'MODIFICATO DA 25 A 15mm
827
828
If DF >= 40 Then M5 = DF - 25 Else M5 = 0
829-
Case "9932", "9933", "9934"     'SPACCO WITTUR ZOO
829+
830
'LISTA CODICI SPACCHI OTIS
831
CD_SP_OTIS = "_50948_50949_50950_50951_50952_50953_50954_51004_50956_50957_50958_50959_50960_51005_50962_51006_50964_50965_50966_50967_50968_51007_50970_51008_50972_50973_50981_50982_50983_50991_50992_50984_50985_50986_50987_50988_50989_50990_50995_50996_50997_50998_50999_50974_50975_51000_51001_"
832-
'DS = 14
832+
833-
'Y = MR_Y(L - (FA + DS), L, MRR)
833+
If CD_SP = "50522" Or CD_SP = "50523" Or CD_SP = "50524" Or InStr(1, CD_SP_OTIS, CD_SP) > 0 Then
834
835-
If MRR = 2 Then Y = 70.2 'LEFT
835+
If M15 > 0 And M11 > 0 Then
836-
If MRR = 1 Then Y = 74.2 'RIGHT
836+
R02 = T_CIRC(H - M11, L - 5.2, 5.5) & T_CIRC(H - M11 - M15, L - 5.2, 5.5)
837
R02 = R02 & T_SLOT(H - M11, 24.1, 8, 5, 90) & T_SLOT(H - M11, 24.1 + M5, 8, 5, 90)
838-
RS1 = T_CIRC(H - 950 - 2.5, Y + 0.5, 3) & T_CIRC(H - 950, Y + 0.5 + 27.5, 3) & T_CIRC(H - 950 - 2.5, Y + 0.5 + 55, 3)
838+
R02 = R02 & T_SLOT(H - M11 - M15, 24.1, 8, 5, 90) & T_SLOT(H - M11 - M15, 24.1 + M5, 8, 5, 90)
839-
RS2 = T_CIRC(H - 950 + 2.5 - 230, Y + 0.5, 3) & T_CIRC(H - 950 - 230, Y + 0.5 + 27.5, 3) & T_CIRC(H - 950 + 2.5 - 230, Y + 0.5 + 55, 3)
839+
840
841-
RS3 = T_RECT1(H - 950 - 230 + 115 - 8, H - 950 - 230 + 115 + 8, Y + 56 - 3, Y + 3)
841+
842-
RS4 = T_RECT1(H - 950 - 230 + 115, H - 950 - 230 + 115 + 20, Y + 10.5 + 3, Y + 10.5 + 35 - 3)
842+
843-
RS5 = T_CIRC(H - 950 - 230 + 115 - 5, Y + 56 - 3, 6) & T_CIRC(H - 950 - 230 + 115 + 5, Y + 56 - 3, 6) & T_CIRC(H - 950 - 230 + 115 - 5, Y + 3, 6) & T_CIRC(H - 950 - 230 + 115 + 5, Y + 3, 6)
843+
If M12 > 0 And M18 > 0 Then
844-
RS6 = T_CIRC(H - 950 - 230 + 115 - 8 + 28 - 3, Y + 10.5 + 3, 6) & T_CIRC(H - 950 - 230 + 115 - 8 + 28 - 3, Y + 56 - 10.5 - 3, 6)
844+
R02 = R02 & T_CIRC(H - M12, L - 5.2, 5.5) & T_CIRC(H - M12 - M18, L - 5.2, 5.5)
845-
RS7 = T_RECT1(H - 950 - 230 + 115 - 5, H - 950 - 230 + 115 + 5, Y, Y + 10) & T_RECT1(H - 950 - 230 + 115 - 5, H - 950 - 230 + 115 + 5, Y + 56, Y + 56 - 10)
845+
R02 = R02 & T_SLOT(H - M12, 24.1, 8, 5, 90) & T_SLOT(H - M12, 24.1 + M5, 8, 5, 90)
846-
RS8 = T_RECT1(H - 950 - 230 + 115 + 17, H - 950 - 230 + 115 + 7, Y + 10.5, Y + 10.5 + 10) & T_RECT1(H - 950 - 230 + 115 + 17, H - 950 - 230 + 115 + 7, Y + 10.5 + 35, Y + 10.5 + 35 - 10)
846+
R02 = R02 & T_SLOT(H - M12 - M18, 24.1, 8, 5, 90) & T_SLOT(H - M12 - M18, 24.1 + M5, 8, 5, 90)
847-
RS9 = T_RAD(H - 950 - 230 + 115 + 8, Y + 10.5, 2) & T_RAD(H - 950 - 230 + 115 + 8, Y + 10.5 + 35, 3)
847+
848-
If COD_SPC = "9933" Then
848+
849-
If MRR = 1 Then Y2 = 25 + 40 + 45 - 4.8 'LEFT
849+
850-
If MRR = 2 Then Y2 = 15 + 40 + 45 - 4.8 'RIGHT
850+
851-
RS10 = T_CIRC(H - 150, Y2, 19)
851+
R02 = T_CIRC(QCSP + 187.75, L - 5.2, 5.5)
852
R02 = R02 & T_CIRC(QCSP - 187.75, L - 5.2, 5.5)
853-
RS10 = ""
853+
R02 = R02 & T_SLOT(QCSP + 187.75, 24.1, 8, 5, 90)
854
R02 = R02 & T_SLOT(QCSP + 187.75, 24.1 + M5, 8, 5, 90)
855-
If COD_SPC = "9934" Then
855+
R02 = R02 & T_SLOT(QCSP - 187.75, 24.1, 8, 5, 90)
856-
If MRR = 1 Then Y2 = 25 + 40 + 45 - 4.8 'LEFT
856+
R02 = R02 & T_SLOT(QCSP - 187.75, 24.1 + M5, 8, 5, 90)
857-
If MRR = 2 Then Y2 = 15 + 40 + 45 - 4.8 'RIGHT
857+
858-
RS10 = T_CIRC(H - 150, Y2, 19) & T_CIRC(H - 230, Y2, 19)
858+
859
If M3 = 0 Then
860-
RS10 = ""
860+
861
MsgBox "M3=0"
862
Select Case LH
863-
SPCp_CODIFY = RS1 & RS2 & RS3 & RS4 & RS5 & RS6 & RS7 & RS8 & RS9 & RS10
863+
864-
QCSP = H - (950 + 230 / 2)
864+
Case 1900
865
If H - QCSP < 1030 Then M3 = H - QCSP - 530
866-
Case "9999"
866+
If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
867-
SPCp_CODIFY = ""
867+
If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
868
869
Case 1950
870-
MsgBox ("CODICE SPACCO " & COD_SPC & " NON CODIFICATO SU " & ACT_MOD)
870+
If H - QCSP < 1055 Then M3 = H - QCSP - 530
871
If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
872
If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
873
874
Case 2000
875
If H - QCSP < 1080 Then M3 = H - QCSP - 530
876-
End Function
876+
If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
877
If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
878
879-
Function SPCi_CODIFY(ByVal NND As Integer, ByVal CD_IN As String, ByVal FA As Double, ByVal H As Double, ByVal L As Double, ByVal HTRV As Double) As String
879+
Case 2050
880
If H - QCSP < 1105 Then M3 = H - QCSP - 530
881
If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
882
If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
883-
If CD_IN = "50033" Then CD_IN = "2704"
883+
884-
If CD_IN = "50102" Then CD_IN = "2706"
884+
Case 2100
885
If H - QCSP < 1130 Then M3 = H - QCSP - 530
886
If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
887-
M1 = INPUT_NUM(NND, "M1_SPC", M1_SPC, ACT_MOD)
887+
If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
888-
If M1 = 0 Or M1 = -1 Then Exit Function
888+
889-
HSP = INPUT_NUM(NND, "H_SPC", H_SPC, ACT_MOD)
889+
890-
M2 = INPUT_NUM(NND, "M2_SPC", M2_SPC, ACT_MOD)
890+
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
891-
M3 = INPUT_NUM(NND, "M3_SPC", M3_SPC, ACT_MOD)
891+
892-
M4 = INPUT_NUM(NND, "M4_SPC", M4_SPC, ACT_MOD)
892+
893-
M5 = INPUT_NUM(NND, "M5_SPC", M5_SPC, ACT_MOD)
893+
894-
M6 = INPUT_NUM(NND, "M6_SPC", M6_SPC, ACT_MOD)
894+
895-
M7 = INPUT_NUM(NND, "M7_SPC", M7_SPC, ACT_MOD)
895+
R01 = ""
896
R02 = ""
897-
RT1 = ""
897+
898-
RT2 = ""
898+
'*******************************************************
899-
RT3 = ""
899+
900-
RT4 = ""
900+
901-
SPCi_CODIFY = ""
901+
R03 = T_RECT1(-SCS, M2, L - 26.6, L + SCS)
902
R03 = R03 & T_RECT1(-SCS, M2, -SCS, 16.6)
903
R03 = R03 & T_RECT1(H - 70, H + SCS, -SCS, 16.6)
904-
'If LSX <> LDX Then MsgBox "ATTENZIONE ALLA CENTRATURA DELLO SPACCO SU TRAVERSA"
904+
905-
XX = H / 2 '- (LSX - LDX) / 2
905+
R03 = R03 & T_RECT1(H - 345, H - 290, 12.5, 17.5)
906
R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), 12.5, 17.5)
907
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
908-
Select Case CD_IN
908+
R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), 12.5, 17.5)
909-
Case "1702", "1750", "2700", "2702", "2704", "2706", "9270"
909+
910-
RT1 = T_RECT2(XX, FA - M4 - M2 / 2, M1, M2)
910+
R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), 12.5, 17.5)
911-
If M3 > 0 Then
911+
912-
RT2 = T_RECT1(XX - M5 / 2, XX + M5 / 2, FA - M4 - 10, FA - M4 + M3)
912+
R03 = R03 & T_RECT1(M2 + M16, M2 + 75, 12.5, 17.5)
913
914-
RT2 = ""
914+
R03 = R03 & T_SLOT(H - 25, DF - 18 + 15 - 2.4, 8, 5, 90)
915
R03 = R03 & T_SLOT(H - 55, DF - 18 + 15 - 2.4, 8, 5, 90)
916-
SPCi_CODIFY = RT1 & RT2
916+
917-
MsgBox ("CONTROLLARE SPACCO INDICATORE SU TRAVERSA " & ACT_MOD)
917+
R03 = R03 & T_CIRC(M13, DF / 2 + 15 - 2.4, 7.2)
918
R03 = R03 & T_CIRC(M13 + M1, DF / 2 + 15 - 2.4, 7.2)
919-
Case "2500", "2560", "9250"
919+
R03 = R03 & T_CIRC(M13, L - (DF / 2 + 25 - 2.4), 7.2)
920-
RT1 = T_RECT2(XX, FA - M4 - M2 / 2, M1, M2)
920+
R03 = R03 & T_CIRC(M13 + M1, L - (DF / 2 + 25 - 2.4), 7.2)
921-
RT2 = T_CIRC(XX - M3 / 2, FA - M4 - M2 / 2, M5) & T_CIRC(XX + M3 / 2, FA - M4 - M2 / 2, M5)
921+
If M14 > 0 Then
922
R03 = R03 & T_CIRC(M13 + M1 / 2, L - (DF / 2 + 25 - 2.4), 20.2)
923-
RT3 = T_CIRC(XX - M3 / 2, FA - M4 + M6 - M2 / 2, M5) & T_CIRC(XX + M3 / 2, FA - M4 + M6 - M2 / 2, M5)
923+
924
R03 = R03 & T_SLOT(H - 25, L - 9.5, 8, 5, 90)
925-
RT3 = ""
925+
R03 = R03 & T_SLOT(H - 55, L - 9.5, 8, 5, 90)
926
927-
SPCi_CODIFY = RT1 & RT2 & RT3
927+
R03 = R03 & T_CIRC(H - 283, L - 10, 8.5)
928-
MsgBox ("CONTROLLARE SPACCO INDICATORE SU TRAVERSA " & ACT_MOD)
928+
R03 = R03 & T_CIRC(H - (283 + 34), L - 10, 8.5)
929
R03 = R03 & T_CIRC(H - (283 + M3), L - 10, 8.5)
930-
Case "2600", "9260"
930+
R03 = R03 & T_CIRC(H - (283 + 34 + M3), L - 10, 8.5)
931-
RT1 = T_RECT2(XX, FA - M5, M1, M2)
931+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
932-
RT2 = T_RECT1(XX - M3 / 2, XX - M3 / 2 + ((M3 - M1) / 2), FA - M5 - M4 / 2, FA - M5 + M4 / 2)
932+
R03 = R03 & T_CIRC(H - (283 + M3 + M10), L - 10, 8.5)
933-
RT3 = T_RECT1(XX + M3 / 2 - ((M3 - M1) / 2), XX + M3 / 2, FA - M5 - M4 / 2, FA - M5 + M4 / 2)
933+
R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), L - 10, 8.5)
934-
SPCi_CODIFY = RT1 & RT2 & RT3
934+
935-
MsgBox ("CONTROLLARE SPACCO INDICATORE SU TRAVERSA " & ACT_MOD)
935+
R03 = R03 & T_CIRC(H - (283 + 2 * M3), L - 10, 8.5)
936
R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), L - 10, 8.5)
937-
Case "2100", "9210"
937+
938-
RT1 = T_RECT2(XX, FA - M5, M1, M2)
938+
R03 = R03 & T_CIRC(M2 + M17 + 34, L - 10, 8.5)
939-
RT2 = T_RECT1(XX - M3 / 2, XX - M3 / 2 + ((M3 - M1) / 2), FA - M5 - M4 / 2, FA - M5 + M4 / 2)
939+
R03 = R03 & T_CIRC(M2 + M17 + 34 - 34, L - 10, 8.5)
940-
RT3 = T_RECT1(XX + M3 / 2 - ((M3 - M1) / 2), XX + M3 / 2, FA - M5 - M4 / 2, FA - M5 + M4 / 2)
940+
941-
RT4 = T_CIRC(XX - M6 / 2, FA - M5, M7) & T_CIRC(XX + M6 / 2, FA - M5, M7)
941+
942-
SPCi_CODIFY = RT1 & RT2 & RT3 & RT4
942+
If M6 > 0 Then R04 = T_CIRC(H - 1500, 15 + M6 - 2.4, 22) Else R04 = ""
943-
MsgBox ("CONTROLLARE SPACCO INDICATORE SU TRAVERSA " & ACT_MOD)
943+
944
'SMUSSI
945-
Case "9999"
945+
R05 = T_RAD(0 - OFSS, 15 + 4 - 2.4 - OFSS, 3)
946-
SPCi_CODIFY = ""
946+
R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
947
R05 = R05 & T_RAD(0 - OFSS, L - (25 + 4 - 2.4) + OFSS, 2)
948
R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
949-
MsgBox ("CODICE SPACCO INDICATORE " & CD_IN & " NON CODIFICATO SU " & ACT_MOD)
949+
R05 = R05 & T_RAD(H - 70 + OFSS, 0 - OFSS, 4)
950
R05 = R05 & T_RAD(H + OFSS, 15 + 4 - 2.4 - OFSS, 4)
951
R05 = R05 & T_RAD(H + OFSS, L + OFSS, 1)
952
953
'Print #NF, T_BLQ(H - 1000 - 5.65, L, H - 1000, L - 5.65, 1, 0)
954-
End Function
954+
'Print #NF, T_BLQ(H - 1000, L - 5.65, H - 1000 + 5.65, L, 0, 1)
955
R06 = T_SMUS(H - 1000, L + 0.2)
956
'Print #NF, T_CIRC(H - 1000, L, 3.3)
957
958
R11 = T_DATAMATRIX(ODP, H - 100 - 40, 15 + 4, "O")
959-
Function SPC_PULS(ByVal CMM As String, ByVal COD_SP As Single, ByVal FA As Double, ByVal H As Double, ByVal SVIL As Double, ByVal SDX As Byte, ByVal LM As Double, ByVal OFST As Single) As String
959+
960
R12 = ""
961-
If OFST <> 0 Then MsgBox ("ATTENZIONE OFFSET SULLO SPACCO SBAGLIATO SUL CODICE " & ACT_MOD)
961+
If M7 > 0 Then
962-
'*********************************************************
962+
R12 = T_HEX(H - M7, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859 - 398, 15 + 28.5 - 2.4, 11)
963-
SPC_PULS = SPCp_CODIFY(CMM, COD_SP, FA, H, SVIL, SDX, LM)
963+
964-
If SPC_PULS <> "" Then Exit Function
964+
If M8 > 0 Then
965-
'*********************************************************
965+
R12 = R12 & T_HEX(H - M8 - 1257, 15 + 28.5 - 2.4, 11) & T_HEX(H - M8, 15 + 28.5 - 2.4, 11)
966
End If
967
If M9 > 0 Then
968
R12 = R12 & T_HEX(H - M9, 15 + 28.5 - 2.4, 11)
969
End If
970-
SPC_PULS = Empty
970+
971-
Spclist = FILELIST(SPC_FOLD, True, "*")
971+
972
973-
SPC_FOUND = 0
973+
Case 1, 3, 5, 7
974-
TYCK = ""
974+
975-
For i = 1 To UBound(Spclist)
975+
'*******************************************SPACCO
976
If CD_SP <> "" And CD_SP <> "0" Then
977-
CDCK = Right(Spclist(i), InStr(1, StrReverse(Spclist(i)), "\", vbBinaryCompare) - 1)
977+
R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 1, sf, 0)
978-
CDCK = Left(CDCK, InStr(1, CDCK, ".", vbBinaryCompare) - 1)
978+
979
980-
If CDCK = COD_SP Then
980+
If DF >= 40 Then M5 = DF - 25 Else M5 = 0
981-
Select Case SPC_FOUND
981+
982-
Case 0
982+
'LISTA CODICI SPACCHI OTIS
983-
SPC_FOUND = 1
983+
CD_SP_OTIS = "_50948_50949_50950_50951_50952_50953_50954_51004_50956_50957_50958_50959_50960_51005_50962_51006_50964_50965_50966_50967_50968_51007_50970_51008_50972_50973_50981_50982_50983_50991_50992_50984_50985_50986_50987_50988_50989_50990_50995_50996_50997_50998_50999_50974_50975_51000_51001_"
984-
NF_SP = Spclist(i)
984+
985-
TYCK = Left(Spclist(i), Len(Spclist(i)) - InStr(1, StrReverse(Spclist(i)), "\", vbBinaryCompare))
985+
If CD_SP = "50522" Or CD_SP = "50523" Or CD_SP = "50524" Or InStr(1, CD_SP_OTIS, CD_SP) > 0 Then
986-
TYCK = Right(TYCK, InStr(1, StrReverse(TYCK), "\", vbBinaryCompare) - 1)
986+
987-
Case 1
987+
If M15 > 0 And M11 > 0 Then
988-
MsgBox "ERRORE SU MODULO SPACCHI"
988+
R02 = T_CIRC(H - M11, 5.2, 5.5) & T_CIRC(H - M11 - M15, 5.2, 5.5)
989
R02 = R02 & T_SLOT(H - M11, L - 24.1, 8, 5, 90) & T_SLOT(H - M11, L - 24.1 - M5, 8, 5, 90)
990-
MsgBox "ERRORE SU MODULO SPACCHI"
990+
R02 = R02 & T_SLOT(H - M11 - M15, L - 24.1, 8, 5, 90) & T_SLOT(H - M11 - M15, L - 24.1 - M5, 8, 5, 90)
991
End If
992
993-
Next i
993+
If M12 > 0 And M18 > 0 Then
994
R02 = R02 & T_SLOT(H - M12, L - 24.1, 8, 5, 90) & T_SLOT(H - M12, L - 24.1 - M5, 8, 5, 90)
995
R02 = R02 & T_SLOT(H - M12 - M18, L - 24.1, 8, 5, 90) & T_SLOT(H - M12 - M18, L - 24.1 - M5, 8, 5, 90)
996-
If SPC_FOUND = 0 And COD_SP <> "9999" Then MsgBox "SPACCO " & COD_SP & " NON TROVATO", vbExclamation
996+
R02 = R02 & T_CIRC(H - M12, 5.2, 5.5) & T_CIRC(H - M12 - M18, 5.2, 5.5)
997
End If
998-
Select Case TYCK
998+
999
Else
1000-
Case "T01"                 'SPACCO RETTANGOLARE SINGOLO O MULTIPLO
1000+
R02 = T_CIRC(QCSP + 187.75, 5.2, 5.5)
1001-
NFDATA = FreeFile
1001+
R02 = R02 & T_CIRC(QCSP - 187.75, 5.2, 5.5)
1002-
Open NF_SP For Input As #NFDATA
1002+
R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1, 8, 5, 90)
1003-
Line Input #NFDATA, ST_COD
1003+
R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1 - M5, 8, 5, 90)
1004-
Line Input #NFDATA, VOID_ROW
1004+
R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1, 8, 5, 90)
1005-
Line Input #NFDATA, lS
1005+
R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1 - M5, 8, 5, 90)
1006-
MLTSPC:
1006+
1007-
Line Input #NFDATA, HS
1007+
1008-
Line Input #NFDATA, QS
1008+
1009-
lS = Val(lS)
1009+
1010-
HS = Val(HS)
1010+
1011-
QS = Val(QS) + OFST
1011+
Select Case LH
1012-
If LM > 300 Then RCC = 60 Else RCC = LM / 2
1012+
1013-
Y = MR_Y(FA + RCC, SVIL, SDX)
1013+
Case 1900
1014-
RS1 = T_RECT2(H - QS - HS / 2, Y, HS, lS)
1014+
If H - QCSP < 1030 Then M3 = H - QCSP - 530
1015-
SPC_PULS = SPC_PULS & RS1
1015+
If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
1016-
lS = ""
1016+
If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
1017-
If QCSP = 0 Then QCSP = H - QS - HS / 2
1017+
1018-
If Not EOF(NFDATA) Then Line Input #NFDATA, lS
1018+
Case 1950
1019-
If lS <> "" Then
1019+
If H - QCSP < 1055 Then M3 = H - QCSP - 530
1020-
SPC_PULS = SPC_PULS
1020+
If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
1021-
GoTo MLTSPC
1021+
If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
1022
1023-
Close #NFDATA
1023+
Case 2000
1024-
GoTo END_SPC
1024+
If H - QCSP < 1080 Then M3 = H - QCSP - 530
1025
If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
1026
If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
1027-
Case "T02"
1027+
1028-
NFDATA = FreeFile
1028+
Case 2050
1029-
Open NF_SP For Input As #NFDATA
1029+
If H - QCSP < 1105 Then M3 = H - QCSP - 530
1030-
Line Input #NFDATA, ST_COD
1030+
If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
1031-
Line Input #NFDATA, VOID_ROW
1031+
If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
1032-
Line Input #NFDATA, lS
1032+
1033-
Line Input #NFDATA, HS
1033+
Case 2100
1034-
Line Input #NFDATA, QS
1034+
If H - QCSP < 1130 Then M3 = H - QCSP - 530
1035-
Line Input #NFDATA, DIAM
1035+
If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
1036-
Line Input #NFDATA, DISTF
1036+
If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
1037-
Close #NFDATA
1037+
1038-
lS = Val(lS)
1038+
1039-
HS = Val(HS)
1039+
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
1040-
QS = Val(QS) + OFST
1040+
1041-
DIAM = Val(DIAM)
1041+
1042-
DISTF = Val(DISTF)
1042+
1043-
If LM > 300 Then RCC = 60 Else RCC = LM / 2
1043+
1044-
Y = MR_Y(FA + RCC, SVIL, SDX)
1044+
R01 = ""
1045-
RS1 = T_RECT2(H - QS - HS / 2, Y, HS, lS)
1045+
R02 = ""
1046-
RS2 = T_CIRC(H - QS - HS / 2 + DISTF / 2, Y, DIAM)
1046+
1047-
RS3 = T_CIRC(H - QS - HS / 2 - DISTF / 2, Y, DIAM)
1047+
'************************************************
1048-
SPC_PULS = RS1 & RS2 & RS3
1048+
1049-
QCSP = H - QS - HS / 2
1049+
R03 = R03 & T_RECT1(-SCS, M2, -SCS, 26.6)
1050-
GoTo END_SPC
1050+
R03 = R03 & T_RECT1(-SCS, M2, L - 16.6, L + SCS)
1051
R03 = R03 & T_RECT1(H - 70, H + SCS, L - 16.6, L + SCS)
1052
1053
R03 = R03 & T_RECT1(H - 345, H - 290, L - 17.5, L - 12.5)
1054-
Case "T03"
1054+
R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), L - 17.5, L - 12.5)
1055-
NFDATA = FreeFile
1055+
If CD_SP = "50522" Or CD_SP = "50523" Or CD_SP = "50524" Then
1056-
Open NF_SP For Input As #NFDATA
1056+
R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), L - 17.5, L - 12.5)
1057-
Line Input #NFDATA, ST_COD
1057+
1058-
Line Input #NFDATA, VOID_ROW
1058+
R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), L - 17.5, L - 12.5)
1059-
Line Input #NFDATA, lS
1059+
1060-
Line Input #NFDATA, HS
1060+
R03 = R03 & T_RECT1(M2 + M16, M2 + 75, L - 17.5, L - 12.5)
1061-
Line Input #NFDATA, QS
1061+
1062-
Line Input #NFDATA, AI
1062+
R03 = R03 & T_SLOT(H - 25, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
1063-
Line Input #NFDATA, LI
1063+
R03 = R03 & T_SLOT(H - 55, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
1064-
Close #NFDATA
1064+
1065-
lS = Val(lS)
1065+
'R03 = R03 & T_CIRC(20, L - (DF / 2 + 15 - 2.4), 7.2)
1066-
HS = Val(HS)
1066+
'R03 = R03 & T_CIRC(20 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
1067-
QS = Val(QS) + OFST
1067+
'R03 = R03 & T_CIRC(20, DF / 2 + 25 - 2.4, 7.2)
1068-
AI = Val(AI)
1068+
'R03 = R03 & T_CIRC(20 + M1, DF / 2 + 25 - 2.4, 7.2)
1069-
LI = Val(LI)
1069+
R03 = R03 & T_CIRC(M13, L - (DF / 2 + 15 - 2.4), 7.2)
1070-
If LM > 300 Then RCC = 60 Else RCC = LM / 2
1070+
R03 = R03 & T_CIRC(M13 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
1071-
Y = MR_Y(FA + RCC, SVIL, SDX)
1071+
R03 = R03 & T_CIRC(M13, DF / 2 + 25 - 2.4, 7.2)
1072-
SVP = 4 'SOVRAPPOSIZIONE SPACCHI LATERALI
1072+
R03 = R03 & T_CIRC(M13 + M1, DF / 2 + 25 - 2.4, 7.2)
1073-
RS1 = T_RECT2(H - QS - HS / 2, Y, HS, lS)
1073+
1074-
RS2 = T_RECT2(H - QS + (AI - SVP) / 2, Y, AI + SVP, LI)
1074+
If M14 > 0 Then
1075-
RS3 = T_RECT2(H - QS - HS - (AI - SVP) / 2, Y, AI + SVP, LI)
1075+
R03 = R03 & T_CIRC(M13 + M1 / 2, L - (DF / 2 + 25 - 2.4), 20.2)
1076-
SPC_PULS = RS1 & RS2 & RS3
1076+
1077-
QCSP = H - QS - HS / 2
1077+
1078-
GoTo END_SPC
1078+
1079
R03 = R03 & T_SLOT(H - 25, 9.5, 8, 5, 90)
1080
R03 = R03 & T_SLOT(H - 55, 9.5, 8, 5, 90)
1081-
Case "T04"
1081+
R03 = R03 & T_CIRC(H - 283, 10, 8.5)
1082-
NFDATA = FreeFile
1082+
R03 = R03 & T_CIRC(H - (283 + 34), 10, 8.5)
1083-
Open NF_SP For Input As #NFDATA
1083+
R03 = R03 & T_CIRC(H - (283 + M3), 10, 8.5)
1084-
Line Input #NFDATA, ST_COD
1084+
R03 = R03 & T_CIRC(H - (283 + 34 + M3), 10, 8.5)
1085-
Line Input #NFDATA, VOID_ROW
1085+
If CD_SP = "50522" Or CD_SP = "50523" Or CD_SP = "50524" Then
1086-
Line Input #NFDATA, QS
1086+
R03 = R03 & T_CIRC(H - (283 + M3 + M10), 10, 8.5)
1087-
Line Input #NFDATA, DIAM
1087+
R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), 10, 8.5)
1088-
Close #NFDATA
1088+
1089-
QS = Val(QS) + OFST
1089+
R03 = R03 & T_CIRC(H - (283 + 2 * M3), 10, 8.5)
1090-
DIAM = Val(DIAM)
1090+
R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), 10, 8.5)
1091-
If LM > 300 Then RCC = 60 Else RCC = LM / 2
1091+
1092-
Y = MR_Y(FA + RCC, SVIL, SDX)
1092+
R03 = R03 & T_CIRC(M2 + M17 + 34, 10, 8.5)
1093-
RS1 = T_CIRC(H - QS, Y, DIAM)
1093+
R03 = R03 & T_CIRC(M2 + M17 + 34 - 34, 10, 8.5)
1094-
SPC_PULS = RS1
1094+
1095-
QCSP = H - QS
1095+
If M6 > 0 Then R04 = T_CIRC(H - 1500, L - (15 + M6 - 2.4), 22) Else R04 = ""
1096-
GoTo END_SPC
1096+
1097
'SMUSSI
1098
R05 = T_RAD(0 - OFSS, L - (15 + 4 - 2.4) + OFSS, 2)
1099
R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
1100-
Case "T05"
1100+
R05 = R05 & T_RAD(0 - OFSS, 25 + 4 - 2.4 - OFSS, 3)
1101-
NFDATA = FreeFile
1101+
R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
1102-
Open NF_SP For Input As #NFDATA
1102+
R05 = R05 & T_RAD(H - 70 + OFSS, L + OFSS, 1)
1103-
Line Input #NFDATA, ST_COD
1103+
R05 = R05 & T_RAD(H + OFSS, L - (15 + 4 - 2.4) + OFSS, 1)
1104-
Line Input #NFDATA, VOID_ROW
1104+
R05 = R05 & T_RAD(H + OFSS, 0 - OFSS, 4)
1105-
Line Input #NFDATA, NS   'NUMERO SPACCHI
1105+
1106-
NS = Val(NS)
1106+
'Print #NF, T_BLQ(H - 1000, 5.65, H - 1000 - 5.65, 0, 0, 1)
1107-
For KT = 1 To NS
1107+
'Print #NF, T_BLQ(H - 1000 + 5.65, 0, H - 1000, 5.65, 1, 0)
1108-
Line Input #NFDATA, lS
1108+
R06 = T_SMUS(H - 1000, -0.2)
1109-
Line Input #NFDATA, HS
1109+
'Print #NF, T_CIRC(H - 1000, 0, 3.3)
1110-
Line Input #NFDATA, RR
1110+
1111-
Line Input #NFDATA, QS
1111+
R11 = T_DATAMATRIX(ODP, H - 100 - 40, L - 15 - 4 - 17.5, "O")
1112-
lS = Val(lS)
1112+
1113-
HS = Val(HS)
1113+
R12 = ""
1114-
RR = Val(RR)
1114+
If M7 > 0 Then
1115-
QS = Val(QS) + OFST
1115+
R12 = T_HEX(H - M7, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859 - 398, L - (15 + 28.5 - 2.4), 11)
1116-
If LM > 300 Then DS = 60 - lS / 2 Else DS = LM / 2 - lS / 2
1116+
1117-
DD = RR * 2
1117+
If M8 > 0 Then
1118-
LSR = lS - DD
1118+
R12 = R12 & T_HEX(H - M8 - 1257, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M8, L - (15 + 28.5 - 2.4), 11)
1119-
HSR = HS - DD
1119+
1120-
LL = HSR
1120+
If M9 > 0 Then
1121-
HH = lS
1121+
R12 = R12 & T_HEX(H - M9, L - (15 + 28.5 - 2.4), 11)
1122-
LUT = 10
1122+
1123-
Y = MR_Y(FA + DS + lS / 2, SVIL, SDX)
1123+
1124-
RS1 = T_RECT2(H - QS - HS / 2, Y, HSR, lS)
1124+
1125-
RS2 = T_RECT2(H - QS - LUT / 2, Y, LUT, LSR)
1125+
1126-
RS3 = T_RECT2(H - QS - HS + LUT / 2, Y, LUT, LSR)
1126+
MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
1127-
RS4 = T_CIRC(H - QS - RR, Y + lS / 2 - RR, DD)
1127+
1128-
RS5 = T_CIRC(H - QS - RR, Y - lS / 2 + RR, DD)
1128+
1129-
RS6 = T_CIRC(H - QS - HS + RR, Y + lS / 2 - RR, DD)
1129+
fn = R01 & R02 & R03 & R04 & R05 & R06 & R11 & R12
1130-
RS7 = T_CIRC(H - QS - HS + RR, Y - lS / 2 + RR, DD)
1130+
1131-
SPC_PULS = SPC_PULS & RS2 & RS3 & RS1 & RS4 & RS5 & RS6 & RS7
1131+
1132-
If QCSP = 0 Then QCSP = H - QS - HS / 2
1132+
P1 = 250
1133-
Next KT
1133+
P2 = H - 400
1134-
Close #NFDATA
1134+
MVAL = 500
1135-
GoTo END_SPC
1135+
STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
1136
1137
Call SAVE_SUB(NND, STRINGA)
1138-
Case "T06"                     'SPACCHI OTIS
1138+
1139-
NFDATA = FreeFile
1139+
POSINTAB = def_posintab(NND)
1140-
Open NF_SP For Input As #NFDATA
1140+
Call CUT_END_S(H, L, "0", POSINTAB)
1141-
Line Input #NFDATA, ST_COD
1141+
Call FVTPT(3, NND, "")
1142-
Line Input #NFDATA, VOID_ROW
1142+
Call CUT_END_S(H, L, "B", POSINTAB)
1143-
Line Input #NFDATA, NS   'NUMERO SPACCHI
1143+
Call FVTPT(3, NND, "B")
1144-
Line Input #NFDATA, TPS  'TIPO SPACCHI
1144+
Call CUT_END_S(H, L, "C", POSINTAB)
1145-
NS = Val(NS)
1145+
Call FVTPT(3, NND, "C")
1146-
For KT = 1 To NS
1146+
1147-
Line Input #NFDATA, lS
1147+
1148-
Line Input #NFDATA, HS
1148+
End Sub
1149-
Line Input #NFDATA, DMF  'DIAMETRO FORI
1149+
1150-
Line Input #NFDATA, IX   'INTERASSE ORIZZONTALE FRA LA COPPIA DI FORI INF
1150+
1151-
Line Input #NFDATA, QS   'QUOTA CENTRO SPACCO RETTANGOLARE
1151+
1152-
Line Input #NFDATA, DYI  'DISTANZA VERTICALE DA CENTRO SPACCO RETTANGOLARE A COPPIA FORI INFERIORI
1152+
Sub S_1007098D(ByVal NND As Integer)
1153-
Line Input #NFDATA, DYS  'DISTANZA VERTICALE DA CENTRO SPACCO RETTANGOLARE FORO SUPERIORE
1153+
ACT_MOD = "1007098"
1154-
lS = Val(lS)
1154+
1155-
HS = Val(HS)
1155+
1156-
IX = Val(IX)
1156+
1157-
QS = Val(QS) + OFST
1157+
L = INPUT_NUM(NND, "L", L, ACT_MOD)
1158-
DYI = Val(DYI)
1158+
H = INPUT_NUM(NND, "H", H, ACT_MOD)
1159-
DYS = Val(DYS)
1159+
SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
1160-
DMF = Val(DMF)
1160+
'M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
1161-
If LM > 300 Then RCC = 60 Else RCC = LM / 2
1161+
M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
1162-
Y = MR_Y(FA + RCC, SVIL, SDX)
1162+
M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
1163-
'RS1 = T_RECT2(H - QS, Y, HS, lS)
1163+
CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
1164-
RS1 = T_SLOT(H - QS, Y, lS, HS, 90)
1164+
VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
1165-
RS2 = T_CIRC(H - QS + DYI, Y - IX / 2, DMF)
1165+
BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
1166-
RS3 = T_CIRC(H - QS + DYI, Y + IX / 2, DMF)
1166+
ODP = INFO_DAT(NND, 0, 5)
1167-
RS4 = T_CIRC(H - QS - DYS, Y, DMF)
1167+
1168-
SPC_PULS = SPC_PULS & RS1 & RS2 & RS3 & RS4
1168+
VV = Replace(VV, "P", "")
1169-
QCSP = H - QS - HS
1169+
1170-
Next KT
1170+
'If VV <> 1 And VV <> 2 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
1171-
GoTo END_SPC
1171+
If VV > 4 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
1172
1173
1174
SCS = 6
1175-
Case "T07"                       'SPACCO RETTANGOLO CON 3+3 FORI SIMM. DIAM4.5
1175+
1176-
NFDATA = FreeFile
1176+
LH = H - 22
1177-
Open NF_SP For Input As #NFDATA
1177+
1178-
Line Input #NFDATA, ST_COD
1178+
If CD_SP <> "0" Then
1179-
Line Input #NFDATA, VOID_ROW
1179+
1180-
Line Input #NFDATA, lS
1180+
If QCSP <> 0 Then QCSP = H - QCSP
1181-
Line Input #NFDATA, HS
1181+
If QCSP = 0 Then QCSP = InputBox("INSERIRE QUOTA CENTRO SPACCO DA PAVIMENTO" & Chr(13) & "**USARE LA , E NON IL .**", "COMMESSA " & INFO_DAT(NND, 0, 2))
1182-
Line Input #NFDATA, QS
1182+
1183-
Line Input #NFDATA, M4
1183+
1184-
Line Input #NFDATA, DISTF
1184+
1185-
Close #NFDATA
1185+
QCSP = Int(QCSP)
1186-
DIAM = 4.5
1186+
1187-
lS = Val(lS)
1187+
Select Case LH
1188-
HS = Val(HS)
1188+
1189-
QS = Val(QS) + OFST
1189+
Case 1900
1190-
DIAM = Val(DIAM)
1190+
If QCSP < 1030 Then M1 = QCSP - 530
1191-
DISTF = Val(DISTF)
1191+
If QCSP > 1080 Then M1 = QCSP / 2 - 40
1192-
If LM > 300 Then RCC = 60 Else RCC = LM / 2
1192+
If (QCSP >= 1030 And QCSP <= 1080) Then M1 = 500
1193-
Y = MR_Y(FA + RCC, SVIL, SDX)
1193+
If QCSP = 0 Then M1 = 500
1194-
RS1 = T_RECT2(H - QS - HS / 2, Y, HS, lS)
1194+
1195-
RS2 = T_CIRC(H - QS - HS / 2 + DISTF / 2, Y, DIAM)
1195+
Case 1950
1196-
RS3 = T_CIRC(H - QS - HS / 2 + DISTF / 2, Y + M4 / 2, DIAM)
1196+
If QCSP < 1055 Then M1 = QCSP - 530
1197-
RS4 = T_CIRC(H - QS - HS / 2 + DISTF / 2, Y - M4 / 2, DIAM)
1197+
If QCSP > 1130 Then M1 = QCSP / 2 - 40
1198-
RS5 = T_CIRC(H - QS - HS / 2 - DISTF / 2, Y, DIAM)
1198+
If (QCSP >= 1055 And QCSP <= 1130) Then M1 = 525
1199-
RS6 = T_CIRC(H - QS - HS / 2 - DISTF / 2, Y + M4 / 2, DIAM)
1199+
If QCSP = 0 Then M1 = 525
1200-
RS7 = T_CIRC(H - QS - HS / 2 - DISTF / 2, Y - M4 / 2, DIAM)
1200+
1201-
SPC_PULS = RS1 & RS2 & RS3 & RS4 & RS5 & RS6 & RS7
1201+
Case 2000
1202-
QCSP = H - QS - HS / 2
1202+
If QCSP < 1080 Then M1 = QCSP - 530
1203-
GoTo END_SPC
1203+
If QCSP > 1180 Then M1 = QCSP / 2 - 40
1204
If (QCSP >= 1080 And QCSP <= 1180) Then M1 = 550
1205
If QCSP = 0 Then M1 = 550
1206-
Case "T08"                       'SPACCO SPAGNA OTIS COPPIA FORI + ASOLA + FORO SINGOLO
1206+
1207-
NFDATA = FreeFile
1207+
Case 2050
1208-
Open NF_SP For Input As #NFDATA
1208+
If QCSP < 1105 Then M1 = QCSP - 530
1209-
Line Input #NFDATA, ST_COD
1209+
If QCSP > 1230 Then M1 = QCSP / 2 - 40
1210-
MsgBox "CONTROLLARE SPACCO " & ST_COD
1210+
If (QCSP >= 1105 And QCSP <= 1230) Then M1 = 575
1211-
If COD_SP <> "50390" Then MsgBox "ATTENZIONE POSSIBILE CHE IL PEZZO CON SPACCO " & COD_SP & " DEBBA PASSARE PCA, CONTROLLARE!"
1211+
If QCSP = 0 Then M1 = 575
1212-
Line Input #NFDATA, VOID_ROW
1212+
1213-
Line Input #NFDATA, NS   'NUMERO SPACCHI
1213+
Case 2100
1214-
NS = Val(NS)
1214+
If QCSP < 1130 Then M1 = QCSP - 530
1215-
For KT = 1 To NS
1215+
If QCSP > 1280 Then M1 = QCSP / 2 - 40
1216-
Line Input #NFDATA, Q_AS
1216+
If (QCSP >= 1130 And QCSP <= 1280) Then M1 = 600
1217-
Line Input #NFDATA, LAR_AS
1217+
If QCSP = 0 Then M1 = 600
1218-
Line Input #NFDATA, ALT_AS
1218+
1219-
Line Input #NFDATA, q_cf
1219+
1220-
Line Input #NFDATA, INT_FOR
1220+
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
1221-
Line Input #NFDATA, DIM_FORI
1221+
1222-
Line Input #NFDATA, q_f
1222+
1223-
Line Input #NFDATA, DIM_FORO
1223+
1224
If CD_SP = "W50522" Or CD_SP = "W50523" Or CD_SP = "W50524" Then MsgBox ("SPACCHI ORONA, CONTROLLARE FORATURA SU LATO BATTUTA " & ACT_MOD)
1225-
Q_AS = Val(Q_AS)
1225+
1226-
LAR_AS = Val(LAR_AS)
1226+
1227-
ALT_AS = Val(ALT_AS)
1227+
Select Case VV
1228-
q_cf = Val(q_cf)
1228+
Case 2, 4
1229-
DIM_FORI = Val(DIM_FORI)
1229+
1230-
q_f = Val(q_f)
1230+
1231-
DIM_FORO = Val(DIM_FORO)
1231+
'R01 = T_CIRC(25, L - 10 - 1.5, 12) & T_CIRC(25, L - 10 + 1.5, 12) & T_CIRC(25, L - 10, 12)
1232
'R01 = R01 & T_CIRC(25 + 30, L - 10 - 1.5, 12) & T_CIRC(25 + 30, L - 10 + 1.5, 12) & T_CIRC(25 + 30, L - 10, 12)
1233-
Y = MR_Y(FA + LM / 2, SVIL, SDX)
1233+
R01 = T_RECT1(19, 19 + 22, L - 27 + 6, L - 27 + 6 + 17) & T_RECT1(19 + 22 + 8, 19 + 22 + 8 + 22, L - 27 + 6, L - 27 + 6 + 17)
1234-
RS1 = T_CIRC(H - q_f, Y, DIM_FORO)
1234+
1235-
RS2 = T_CIRC(H - Q_AS, Y - LAR_AS / 2 + 3.5, ALT_AS)
1235+
1236-
RS3 = T_CIRC(H - Q_AS, Y + LAR_AS / 2 - 3.5, ALT_AS)
1236+
1237-
RS4 = T_RECT2(H - Q_AS, Y, ALT_AS, LAR_AS - ALT_AS)
1237+
R02 = T_SLOT(283, L - 12, 15, 5, 90)
1238-
RS5 = T_CIRC(H - q_cf, Y - INT_FOR / 2, DIM_FORI)
1238+
R02 = R02 & T_SLOT(283 + 34, L - 12, 15, 5, 90)
1239-
If KT = NS Then RS6 = T_CIRC(H - q_cf, Y + INT_FOR / 2, DIM_FORI) Else RS6 = T_CIRC(H - q_cf, Y + INT_FOR / 2, DIM_FORI)
1239+
R02 = R02 & T_SLOT(283 + M1, L - 12, 15, 5, 90)
1240-
SPC_PULS = SPC_PULS & RS1 & RS2 & RS3 & RS4 & RS5 & RS6
1240+
R02 = R02 & T_SLOT(283 + 34 + M1, L - 12, 15, 5, 90)
1241-
QCSP = H - (q_cf + (q_f - q_cf) / 2)
1241+
R02 = R02 & T_SLOT(283 + (2 * M1), L - 12, 15, 5, 90)
1242
R02 = R02 & T_SLOT(283 + 34 + (2 * M1), L - 12, 15, 5, 90)
1243-
Next KT
1243+
'Print #NF, T_SLOT(283 + (3 * M1), L - 10, 10, 5, 90)        ' se necessario attivare la lavorazione
1244-
Close #NFDATA
1244+
'Print #NF, T_SLOT(283 + 34 + (3 * M1), L - 10, 10, 5, 90)   ' se necessario attivare la lavorazione
1245-
GoTo END_SPC
1245+
R02 = R02 & T_SLOT(H - 99, L - 12, 15, 5, 90)
1246
R02 = R02 & T_SLOT(H - 99 + 34, L - 12, 15, 5, 90)
1247
1248
If M2 <> 0 Or M3 <> 0 Then
1249
R03 = T_CIRC(283 + 34 + M2, L - 12, 12)
1250
R03 = R03 & T_CIRC(283 + 34 + M2 + M3, L - 12, 12)
1251
R03 = R03 & T_CIRC(283 + M1 + 34 + M2, L - 12, 12)
1252
R03 = R03 & T_CIRC(283 + M1 + 34 + M2 + M3, L - 12, 12)
1253-
SPC_INSERT:
1253+
R03 = R03 & T_CIRC(283 + 2 * M1 + 34 + M2, L - 12, 12)
1254
R03 = R03 & T_CIRC(283 + 2 * M1 + 34 + M2 + M3, L - 12, 12)
1255-
'******************************************************
1255+
1256-
If InStr(1, COD_SP, "999") > 0 And SPC_R_OLD <> "" Then 'RIPETERE LO SPACCO PRECEDENTE
1256+
R03 = ""
1257-
SPC_OLD = MsgBox("VUOI INSERIRE LO SPACCO PRECEDENTE?", vbYesNo)
1257+
1258-
If SPC_OLD = vbYes Then
1258+
1259-
SPC_R = SPC_R_OLD
1259+
R04 = T_RECT1(H - 22, H + 3, L - 20 - 27 + 3.5, L - 20)
1260-
QCSP = QCSP_OLD
1260+
R04 = R04 & T_RECT1(H - 22, H - 3.5, L - 20 - 27, L - 20 - 27 + 10)
1261-
SPC_PULS = SPC_R
1261+
1262-
GoTo END_SPC
1262+
R05 = T_DATAMATRIX(ODP, 55 + 15 + 10, L - 25 + 3 + 1.5 + 0.5, "O")
1263
1264
1265-
'******************************************************
1265+
Case 1, 3
1266
1267-
CUR_COM = CMM
1267+
R04 = T_RECT1(-3, 22, L - 20 - 27 + 3.5, L - 20)
1268-
UserForm2.Show
1268+
R04 = R04 & T_RECT1(3.5, 22, L - 20 - 27, L - 20 - 27 + 10)
1269
1270-
If PULS_TYPE = 0 Then Exit Function
1270+
'R01 = T_CIRC(H - 25, L - 10 - 1.5, 12) & T_CIRC(H - 25, L - 10 + 1.5, 12) & T_CIRC(H - 25, L - 10, 12)
1271-
CNTR = Empty
1271+
'R01 = R01 & T_CIRC(H - 25 - 30, L - 10 - 1.5, 12) & T_CIRC(H - 25 - 30, L - 10 + 1.5, 12) & T_CIRC(H - 25 - 30, L - 10, 12)
1272-
RSN = MsgBox("SPACCO CENTRATO SU MONTANTE?", vbYesNo)
1272+
R01 = T_RECT1(H - 19, H - (19 + 22), L - 27 + 6, L - 27 + 6 + 17) & T_RECT1(H - (19 + 22 + 8), H - (19 + 22 + 8 + 22), L - 27 + 6, L - 27 + 6 + 17)
1273-
Select Case RSN
1273+
1274-
Case vbYes
1274+
1275-
CNTR = 1
1275+
R02 = T_SLOT(99 - 34, L - 12, 15, 5, 90)
1276-
Case vbNo
1276+
R02 = R02 & T_SLOT(99, L - 12, 15, 5, 90)
1277-
CNTR = 0
1277+
'Print #NF, T_SLOT(H - 283 - 34 - 3 * M1, L - 10, 10, 5, 90)   ' se necessario attivare la lavorazione
1278
'Print #NF, T_SLOT(H - 283 - 3 * M1, L - 10, 10, 5, 90)        ' se necessario attivare la lavorazione
1279
R02 = R02 & T_SLOT(H - 283 - 34 - 2 * M1, L - 12, 15, 5, 90)
1280
R02 = R02 & T_SLOT(H - 283 - 2 * M1, L - 12, 15, 5, 90)
1281
R02 = R02 & T_SLOT(H - 283 - 34 - M1, L - 12, 15, 5, 90)
1282-
'*****************************************PER REPORT SPACCHI
1282+
R02 = R02 & T_SLOT(H - 283 - M1, L - 12, 15, 5, 90)
1283-
RP = RP + 1
1283+
R02 = R02 & T_SLOT(H - 283, L - 12, 15, 5, 90)
1284-
RPT_SPC(RP, 1, 1) = INFO_DAT(CMM, 0, 2)
1284+
R02 = R02 & T_SLOT(H - 283 - 34, L - 12, 15, 5, 90)
1285-
RPT_SPC(RP, 1, 2) = "COMMESSA"
1285+
1286-
If CNTR = 1 Then RPT_SPC(RP, 2, 1) = "SI" Else RPT_SPC(RP, 2, 1) = "NO"
1286+
1287-
RPT_SPC(RP, 2, 2) = "SPACCO CENTRATO SU MONTANTE?"
1287+
1288-
RP2 = 2
1288+
1289-
'***********************************************************
1289+
1290
If M2 <> 0 Or M3 <> 0 Then
1291
R03 = T_CIRC(H - 283 - 34 - M2, L - 12, 12)
1292
R03 = R03 & T_CIRC(H - 283 - 34 - M2 - M3, L - 12, 12)
1293
R03 = R03 & T_CIRC(H - 283 - M1 - 34 - M2, L - 12, 12)
1294-
Select Case PULS_TYPE
1294+
R03 = R03 & T_CIRC(H - 283 - M1 - 34 - M2 - M3, L - 12, 12)
1295
R03 = R03 & T_CIRC(H - 283 - 2 * M1 - 34 - M2, L - 12, 12)
1296-
Case 1       'SPACCO RETTANGOLARE SINGOLO
1296+
R03 = R03 & T_CIRC(H - 283 - 2 * M1 - 34 - M2 - M3, L - 12, 12)
1297-
QS = Val(INPUT_VAL(1, "QUOTA PARTENZA SPACCO", QS, "")) + OFST
1297+
1298-
HS = INPUT_VAL(1, "ALTEZZA SPACCO", HS, "")
1298+
1299-
lS = INPUT_VAL(1, "LARGHEZZA SPACCO", lS, "")
1299+
R05 = T_DATAMATRIX(ODP, H - 55 - 15 - 10 - 45, L - 25 + 3 + 1.5 + 0.5, "O")
1300-
Select Case CNTR
1300+
1301-
Case 0
1301+
1302-
DS = INPUT_VAL(1, "DISTANZA SPACCO DA APERTURA", DS, "")
1302+
MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
1303-
Case 1
1303+
1304-
DS = (LM - lS) / 2
1304+
1305
R06 = T_RAD(0, 0, 3) & T_RAD(H, 0, 4) & T_RAD(0, L, 2) & T_RAD(H, L, 1)
1306-
MsgBox "ERRORE COORDINATA ORIZZONTALE SPACCO", vbCritical
1306+
1307-
Exit Function
1307+
1308
fn = R01 & R02 & R03 & R04 & R05 & R06
1309
1310-
Y = MR_Y(FA + DS + lS / 2, SVIL, SDX)
1310+
P1 = 250
1311-
RS1 = T_RECT2(H - QS - HS / 2, Y, HS, lS)
1311+
P2 = H - 400
1312-
SPC_R = RS1
1312+
MVAL = 500
1313-
QCSP = H - QS - HS / 2
1313+
STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
1314
1315-
Case 2      'SPACCO RETTANGOLARE SINGOLO CON COPPIA DI FORI CENTRATI
1315+
Call SAVE_SUB(NND, STRINGA)
1316-
QS = Val(INPUT_VAL(1, "QUOTA PARTENZA SPACCO", QS, "")) + OFST
1316+
1317-
HS = INPUT_VAL(1, "ALTEZZA SPACCO", HS, "")
1317+
POSINTAB = def_posintab(NND)
1318-
lS = INPUT_VAL(1, "LARGHEZZA SPACCO", lS, "")
1318+
Call CUT_END_S(H, L, "0", POSINTAB)
1319
Call FVTPT(3, NND, "")
1320-
Select Case CNTR
1320+
Call CUT_END_S(H, L, "B", POSINTAB)
1321-
Case 0
1321+
Call FVTPT(3, NND, "B")
1322-
DS = INPUT_VAL(1, "DISTANZA SPACCO DA APERTURA", DS, "")
1322+
Call CUT_END_S(H, L, "C", POSINTAB)
1323-
Case 1
1323+
Call FVTPT(3, NND, "C")
1324-
DS = (LM - lS) / 2
1324+
1325
1326-
MsgBox "ERRORE COORDINATA ORIZZONTALE SPACCO", vbCritical
1326+
End Sub
1327-
Exit Function
1327+
1328
1329
Sub S_1010304C(ByVal NND As Integer)
1330
ACT_MOD = "1010304"
1331-
KF = INPUT_VAL(1, "INTERASSE VERTICALE FORI", KF, "")
1331+
1332-
DF = INPUT_VAL(1, "DIAMETRO FORI", DF, "")
1332+
1333
1334-
Y = MR_Y(FA + DS + lS / 2, SVIL, SDX)
1334+
L = INPUT_NUM(NND, "L", L, ACT_MOD)
1335
H = INPUT_NUM(NND, "H", H, ACT_MOD)
1336-
RS1 = T_RECT2(H - QS - HS / 2, Y, HS, lS)
1336+
SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
1337-
RS2 = T_CIRC(H - QS - HS / 2 - KF / 2, Y, DF)
1337+
'M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
1338-
RS3 = T_CIRC(H - QS - HS / 2 + KF / 2, Y, DF)
1338+
M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
1339-
SPC_R = RS1 & RS2 & RS3
1339+
M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
1340-
QCSP = H - QS - HS / 2
1340+
CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
1341
VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
1342-
Case 3
1342+
BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
1343-
QS = Val(INPUT_VAL(1, "QUOTA PARTENZA SPACCO", QS, "")) + OFST
1343+
ODP = INFO_DAT(NND, 0, 5)
1344-
HS = INPUT_VAL(1, "ALTEZZA SPACCO", HS, "")
1344+
1345-
lS = INPUT_VAL(1, "LARGHEZZA SPACCO", lS, "")
1345+
VV = Replace(VV, "P", "")
1346-
LI = INPUT_VAL(1, "LARGHEZZA INCAVO", LI, "")
1346+
1347
1348-
Select Case CNTR
1348+
If VV > 4 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
1349-
Case 0
1349+
1350-
DS = INPUT_VAL(1, "DISTANZA SPACCO DA APERTURA", DS, "")
1350+
1351-
Case 1
1351+
SCS = 6
1352-
DS = (LM - lS) / 2
1352+
1353
1354-
MsgBox "ERRORE COORDINATA ORIZZONTALE SPACCO", vbCritical
1354+
LH = H - 22
1355-
Exit Function
1355+
1356
If CD_SP <> "0" Then
1357
QCSP = DEFINE_QCSP(COD_SPC, NND, H)
1358-
Y = MR_Y(FA + DS + lS / 2, SVIL, SDX)
1358+
If QCSP <> 0 Then QCSP = H - QCSP
1359-
RS1 = T_RECT2(H - QS - HS - 1, Y, 10, LI)
1359+
If QCSP = 0 Then QCSP = InputBox("INSERIRE QUOTA CENTRO SPACCO DA PAVIMENTO" & Chr(13) & "**USARE LA , E NON IL .**", "COMMESSA " & INFO_DAT(NND, 0, 2))
1360-
RS2 = T_RECT2(H - QS + 1, Y, 10, LI)
1360+
1361-
RS3 = T_RECT2(H - QS - HS / 2, Y, HS, lS)
1361+
1362-
SPC_R = RS1 & RS2 & RS3
1362+
1363-
QCSP = H - QS - HS / 2
1363+
QCSP = Int(QCSP)
1364
1365
1366-
Case 4      'SPACCO RETTANGOLO RACCORDATO
1366+
Select Case LH
1367-
QS = Val(INPUT_VAL(1, "QUOTA PARTENZA SPACCO", QS, "")) + OFST
1367+
1368-
HS = INPUT_VAL(1, "ALTEZZA SPACCO", lS, "")
1368+
Case 1900
1369-
lS = INPUT_VAL(1, "LARGHEZZA SPACCO", lS, "")
1369+
If QCSP < 1030 Then M1 = QCSP - 530
1370
If QCSP > 1080 Then M1 = QCSP / 2 - 40
1371-
Select Case CNTR
1371+
If (QCSP >= 1030 And QCSP <= 1080) Then M1 = 500
1372-
Case 0
1372+
If QCSP = 0 Then M1 = 500
1373-
DS = INPUT_VAL(1, "DISTANZA SPACCO DA APERTURA", DS, "")
1373+
1374-
Case 1
1374+
Case 1950
1375-
DS = (LM - lS) / 2
1375+
If QCSP < 1055 Then M1 = QCSP - 530
1376
If QCSP > 1130 Then M1 = QCSP / 2 - 40
1377-
MsgBox "ERRORE COORDINATA ORIZZONTALE SPACCO", vbCritical
1377+
If (QCSP >= 1055 And QCSP <= 1130) Then M1 = 525
1378-
Exit Function
1378+
If QCSP = 0 Then M1 = 525
1379
1380
Case 2000
1381-
RR = INPUT_VAL(1, "RAGGIO RACCORDI", RR, "")
1381+
If QCSP < 1080 Then M1 = QCSP - 530
1382
If QCSP > 1180 Then M1 = QCSP / 2 - 40
1383-
DD = 2 * RR
1383+
If (QCSP >= 1080 And QCSP <= 1180) Then M1 = 550
1384-
LSR = lS - DD
1384+
If QCSP = 0 Then M1 = 550
1385-
HSR = HS - DD
1385+
1386
Case 2050
1387-
Select Case HSR - LSR
1387+
If QCSP < 1105 Then M1 = QCSP - 530
1388-
Case Is > 0
1388+
If QCSP > 1230 Then M1 = QCSP / 2 - 40
1389-
LL = HS
1389+
If (QCSP >= 1105 And QCSP <= 1230) Then M1 = 575
1390-
HH = LSR
1390+
If QCSP = 0 Then M1 = 575
1391-
Case Is <= 0
1391+
1392-
LL = HSR
1392+
Case 2100
1393-
HH = lS
1393+
If QCSP < 1130 Then M1 = QCSP - 530
1394
If QCSP > 1280 Then M1 = QCSP / 2 - 40
1395
If (QCSP >= 1130 And QCSP <= 1280) Then M1 = 600
1396-
RS1 = T_RECT2(H - QS - HS / 2, MR_Y(FA + DS + lS / 2, SVIL, SDX), HH, LL)
1396+
If QCSP = 0 Then M1 = 600
1397-
LUT = 10
1397+
1398
Case Else
1399-
Y = MR_Y(FA + DS + lS / 2, SVIL, SDX)
1399+
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
1400-
Select Case HSR - LSR
1400+
1401
1402-
Case Is > 0
1402+
1403-
RS1 = T_RECT2(H - QS - HS / 2, Y, HS, LSR)
1403+
1404-
RS2 = T_RECT2(H - QS - HS / 2, Y + lS / 2 - LUT / 2, HSR, LUT)
1404+
If CD_SP = "W50522" Or CD_SP = "W50523" Or CD_SP = "W50524" Then MsgBox ("SPACCHI ORONA, CONTROLLARE FORATURA SU LATO BATTUTA " & ACT_MOD)
1405-
RS3 = T_RECT2(H - QS - HS / 2, Y - lS / 2 + LUT / 2, HSR, LUT)
1405+
1406-
Case Is <= 0
1406+
1407-
RS1 = T_RECT2(H - QS - HS / 2, Y, HSR, lS)
1407+
Select Case VV
1408-
RS2 = T_RECT2(H - QS - LUT / 2, Y, LUT, LSR)
1408+
Case 2, 4
1409-
RS3 = T_RECT2(H - QS - HS + LUT / 2, Y, LUT, LSR)
1409+
1410
''R01 = T_CIRC(25, L - 10 - 1.5, 12) & T_CIRC(25, L - 10 + 1.5, 12) & T_CIRC(25, L - 10, 12)  'T_RECT2(25, L - 10, 12, 15)
1411
''R01 = R01 & T_CIRC(25 + 30, L - 10 - 1.5, 12) & T_CIRC(25 + 30, L - 10 + 1.5, 12) & T_CIRC(25 + 30, L - 10, 12) 'T_RECT2(25 + 30, L - 10, 12, 15)
1412-
RS4 = T_CIRC(H - QS - RR, Y + lS / 2 - RR, DD)
1412+
R01 = T_RECT1(19, 19 + 22, L - 21, L - 4) & T_RECT1(19 + 22 + 8, 19 + 22 + 8 + 22, L - 21, L - 4)
1413-
RS5 = T_CIRC(H - QS - RR, Y - lS / 2 + RR, DD)
1413+
1414-
RS6 = T_CIRC(H - QS - HS + RR, Y + lS / 2 - RR, DD)
1414+
1415-
RS7 = T_CIRC(H - QS - HS + RR, Y - lS / 2 + RR, DD)
1415+
R01 = R01 & T_RECT1(H - 22, H + 0.6, L - 43.3, L - 10)
1416-
SPC_R = RS4 & RS5 & RS6 & RS7 & RS1 & RS2 & RS3
1416+
R01 = R01 & T_RECT1(H - 22, H - 3.5, L - 47.3, L - 47.3 + 10)
1417-
QCSP = H - QS - HS / 2
1417+
1418
R01 = R01 & T_SLOT(283, L - 12, 15, 5, 90)
1419-
SSPP = MsgBox("VUOI INSERIRE TONDI IN ALTO E IN BASSO?", vbYesNo)
1419+
R01 = R01 & T_SLOT(283 + 34, L - 12, 15, 5, 90)
1420-
If SSPP = 6 Then
1420+
R01 = R01 & T_SLOT(283 + M1, L - 12, 15, 5, 90)
1421-
DDM = INPUT_VAL(1, "DISTANZA FORO DA CENTRO SPACCO", DDM, "")
1421+
R01 = R01 & T_SLOT(283 + 34 + M1, L - 12, 15, 5, 90)
1422-
DDM2 = INPUT_VAL(1, "DIAMTERO FORI", DDM2, "")
1422+
R01 = R01 & T_SLOT(283 + (2 * M1), L - 12, 15, 5, 90)
1423
R01 = R01 & T_SLOT(283 + 34 + (2 * M1), L - 12, 15, 5, 90)
1424-
RS8 = T_CIRC(H - QS - HS / 2 + DDM, Y, DDM2)
1424+
'Print #NF, T_SLOT(283 + (3 * M1), L - 10, 10, 5, 90)        ' se necessario attivare la lavorazione
1425-
RS9 = T_CIRC(H - QS - HS / 2 - DDM, Y, DDM2)
1425+
'Print #NF, T_SLOT(283 + 34 + (3 * M1), L - 10, 10, 5, 90)   ' se necessario attivare la lavorazione
1426-
SPC_R = SPC_R & RS8 & RS9
1426+
R01 = R01 & T_SLOT(H - 99, L - 12, 15, 5, 90)
1427
R01 = R01 & T_SLOT(H - 99 + 34, L - 12, 15, 5, 90)
1428
1429
1430-
Case 5      'SPACCO STAR 30_5
1430+
If M2 <> 0 Or M3 <> 0 Then
1431
R02 = T_CIRC(283 + 34 + M2, L - 12, 12)
1432-
QS = 1000
1432+
R02 = R02 & T_CIRC(283 + 34 + M2 + M3, L - 12, 12)
1433-
QS = Val(INPUT_VAL(1, "QUOTA CENTRO SPACCO DA TERRA", QS, "")) + OFST
1433+
R02 = R02 & T_CIRC(283 + M1 + 34 + M2, L - 12, 12)
1434-
DD = InputBox("DIAMETRO FORO")
1434+
R02 = R02 & T_CIRC(283 + M1 + 34 + M2 + M3, L - 12, 12)
1435-
DD = Val(DD)
1435+
R02 = R02 & T_CIRC(283 + 2 * M1 + 34 + M2, L - 12, 12)
1436-
'**********************REPORT SPACCHI
1436+
R02 = R02 & T_CIRC(283 + 2 * M1 + 34 + M2 + M3, L - 12, 12)
1437-
RP2 = RP2 + 1
1437+
1438-
RPT_SPC(RP, RP2, 1) = DD
1438+
R02 = ""
1439-
RPT_SPC(RP, RP2, 2) = "DIAMETRO FORO"
1439+
1440-
'************************************
1440+
1441-
Select Case CNTR
1441+
1442-
Case 0
1442+
R05 = T_DATAMATRIX(ODP, 55 + 15 + 10, L - 25 + 3 + 2, "O")
1443-
dc = INPUT_VAL(1, "DISTANZA CENTRO SPACCO DA APERTURA", dc, "")
1443+
1444-
Case 1
1444+
1445-
dc = LM / 2
1445+
Case 1, 3
1446
1447-
MsgBox "ERRORE COORDINATA ORIZZONTALE SPACCO", vbCritical
1447+
1448-
Exit Function
1448+
R01 = T_RECT1(H - 19, H - (19 + 22), L - 21, L - 4) & T_RECT1(H - (19 + 22 + 8), H - (19 + 22 + 8 + 22), L - 21, L - 4)
1449
1450
R01 = R01 & T_RECT1(-0.6, 22, L - 43.3, L - 10)
1451-
X = H - QS
1451+
R01 = R01 & T_RECT1(3.5, 22, L - 47.3, L - 47.3 + 10)
1452-
Y = MR_Y(FA + dc, SVIL, SDX)
1452+
1453
'R01 = R01 & T_CIRC(H - 25, L - 10 - 1.5, 12) & T_CIRC(H - 25, L - 10 + 1.5, 12) & T_CIRC(H - 25, L - 10, 12)
1454-
'SPC_R = T_CIRC(X, Y, DD)
1454+
'R01 = R01 & T_CIRC(H - 25 - 30, L - 10 - 1.5, 12) & T_CIRC(H - 25 - 30, L - 10 + 1.5, 12) & T_CIRC(H - 25 - 30, L - 10, 12)
1455-
SSPP = MsgBox("VUOI LE SPIZZE SULLO SPACCO TONDO?", vbYesNo)
1455+
1456-
If SSPP = 6 Then
1456+
R01 = R01 & T_SLOT(99 - 34, L - 12, 15, 5, 90)
1457-
'MsgBox ("CONTROLLARE SPACCO STAR")
1457+
R01 = R01 & T_SLOT(99, L - 12, 15, 5, 90)
1458-
SPC1 = T_CIRC(X, Y, DD)
1458+
'Print #NF, T_SLOT(H - 283 - 34 - 3 * M1, L - 10, 10, 5, 90)   ' se necessario attivare la lavorazione
1459-
RDR = DD / 2 - 4 + 1.9 - 0.5
1459+
'Print #NF, T_SLOT(H - 283 - 3 * M1, L - 10, 10, 5, 90)        ' se necessario attivare la lavorazione
1460-
SPC2 = T_SPECIAL(X + RDR, Y, "RAG-3", 0) & T_SPECIAL(X - RDR, Y, "RAG-3", 0) & T_SPECIAL(X, Y + RDR, "RAG-3", 0) & T_SPECIAL(X, Y - RDR, "RAG-3", 0)
1460+
R01 = R01 & T_SLOT(H - 283 - 34 - 2 * M1, L - 12, 15, 5, 90)
1461-
SPC_R = SPC1 & SPC2
1461+
R01 = R01 & T_SLOT(H - 283 - 2 * M1, L - 12, 15, 5, 90)
1462
R01 = R01 & T_SLOT(H - 283 - 34 - M1, L - 12, 15, 5, 90)
1463-
SPC_R = T_CIRC(X, Y, DD)
1463+
R01 = R01 & T_SLOT(H - 283 - M1, L - 12, 15, 5, 90)
1464
R01 = R01 & T_SLOT(H - 283, L - 12, 15, 5, 90)
1465
R01 = R01 & T_SLOT(H - 283 - 34, L - 12, 15, 5, 90)
1466-
QCSP = X
1466+
1467
1468
If M2 <> 0 Or M3 <> 0 Then
1469-
Case 6      'SPACCO RETTANGOLARE SINGOLO CON 2 COPPIE DI FORI SIMMETRICI
1469+
R02 = T_CIRC(H - 283 - 34 - M2, L - 12, 12)
1470-
QS = INPUT_VAL(1, "QUOTA PARTENZA SPACCO", QS, "")
1470+
R02 = R02 & T_CIRC(H - 283 - 34 - M2 - M3, L - 12, 12)
1471-
QS = QS '+ 2.5
1471+
R02 = R02 & T_CIRC(H - 283 - M1 - 34 - M2, L - 12, 12)
1472-
HS = INPUT_VAL(1, "ALTEZZA SPACCO", HS, "")
1472+
R02 = R02 & T_CIRC(H - 283 - M1 - 34 - M2 - M3, L - 12, 12)
1473-
lS = INPUT_VAL(1, "LARGHEZZA SPACCO", lS, "")
1473+
R02 = R02 & T_CIRC(H - 283 - 2 * M1 - 34 - M2, L - 12, 12)
1474
R02 = R02 & T_CIRC(H - 283 - 2 * M1 - 34 - M2 - M3, L - 12, 12)
1475-
Select Case CNTR
1475+
1476-
Case 0
1476+
R02 = ""
1477-
DS = INPUT_VAL(1, "DISTANZA SPACCO DA APERTURA", DS, "")
1477+
1478-
Case 1
1478+
1479-
DS = (LM - lS) / 2
1479+
1480
R05 = T_DATAMATRIX(ODP, H - 55 - 15 - 45 - 10, L - 25 + 3 + 2, "O")
1481-
MsgBox "ERRORE COORDINATA ORIZZONTALE SPACCO", vbCritical
1481+
1482-
Exit Function
1482+
1483
MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
1484
End Select
1485-
KF = INPUT_VAL(1, "INTERASSE VERTICALE FORI", KF, "")
1485+
1486-
ORF = INPUT_VAL(1, "INTERASSE ORIZZONTALE FORI", ORF, "")
1486+
1487-
DF = INPUT_VAL(1, "DIAMETRO FORI", DF, "")
1487+
R06 = T_RAD(0, 0, 3) & T_RAD(0, L, 2) & T_RAD(H, 0, 4) & T_RAD(H, L, 1)
1488
1489-
Y = MR_Y(FA + DS + lS / 2, SVIL, SDX)
1489+
fn = R01 & R02 & R05 & R06
1490-
YOR1 = Y - ORF / 2
1490+
P1 = 250
1491-
YOR2 = Y + ORF / 2
1491+
P2 = H - 400
1492
MVAL = 500
1493-
RS1 = T_RECT2(H - QS - HS / 2, Y, HS, lS)
1493+
STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
1494-
RS2 = T_CIRC(H - QS - HS / 2 - KF / 2, YOR1, DF)
1494+
1495-
RS3 = T_CIRC(H - QS - HS / 2 - KF / 2, YOR2, DF)
1495+
Call SAVE_SUB(NND, STRINGA)
1496-
RS4 = T_CIRC(H - QS - HS / 2 + KF / 2, YOR1, DF)
1496+
1497-
RS5 = T_CIRC(H - QS - HS / 2 + KF / 2, YOR2, DF)
1497+
POSINTAB = def_posintab(NND)
1498-
SPC_R = RS1 & RS2 & RS3 & RS4 & RS5
1498+
Call CUT_END_S(H, L, "0", POSINTAB)
1499-
QCSP = H - QS - HS / 2
1499+
Call FVTPT(3, NND, "")
1500-
MsgBox ("CONTROLLARE SPACCO RETTANGOLARE SINGOLO CON 2 COPPIE DI FORI SIMMETRICI")
1500+
Call CUT_END_S(H, L, "B", POSINTAB)
1501
Call FVTPT(3, NND, "B")
1502
Call CUT_END_S(H, L, "C", POSINTAB)
1503
Call FVTPT(3, NND, "C")
1504-
MsgBox "ERRORE SU DATI SPACCO, NESSUNO SPACCO SARA' LAVORATO SUL PEZZO", vbCritical
1504+
1505-
SPC_R = ""
1505+
End Sub
1506
1507
Sub S_1020668B(ByVal NND As Integer)
1508-
SPC_PULS = SPC_PULS & SPC_R
1508+
ACT_MOD = "1020668"
1509
CLAMP = 0
1510-
RSN = MsgBox("INSERIRE ALTRO SPACCO?", vbYesNo Or vbDefaultButton2)
1510+
1511-
Select Case RSN
1511+
1512-
Case vbYes
1512+
L = INPUT_NUM(NND, "L", L, ACT_MOD)
1513-
SPC_PULS = SPC_PULS
1513+
H = INPUT_NUM(NND, "H", H, ACT_MOD)
1514-
GoTo SPC_INSERT
1514+
SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
1515-
Case vbNo
1515+
M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
1516
M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
1517-
END_SPC:
1517+
M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
1518-
PULS_TYPE = Empty
1518+
M4 = INPUT_NUM(NND, "M4", M4, ACT_MOD)
1519
M5 = INPUT_NUM(NND, "M5", M5, ACT_MOD)
1520
M6 = INPUT_NUM(NND, "M6", M6, ACT_MOD)
1521-
'***********************************
1521+
M7 = INPUT_NUM(NND, "M7", M7, ACT_MOD)
1522-
If InStr(1, COD_SP, "999") > 0 Then  'RIPETERE LO SPACCO PRECEDENTE
1522+
M8 = INPUT_NUM(NND, "M8", M8, ACT_MOD)
1523-
SPC_R_OLD = SPC_R
1523+
M9 = INPUT_NUM(NND, "M9", M9, ACT_MOD)
1524-
QCSP_OLD = QCSP
1524+
M10 = INPUT_NUM(NND, "M10", M10, ACT_MOD)
1525
M11 = INPUT_NUM(NND, "M11", M11, ACT_MOD)
1526-
'***********************************
1526+
M12 = INPUT_NUM(NND, "M12", M12, ACT_MOD)
1527
M13 = INPUT_NUM(NND, "M13", M13, ACT_MOD)
1528
M14 = INPUT_NUM(NND, "M14", M14, ACT_MOD)
1529-
If QCSP <> 0 Then
1529+
M15 = INPUT_NUM(NND, "M15", M15, ACT_MOD)
1530-
MsgBox QCSP
1530+
1531
DF = INPUT_NUM(NND, "DF", DF, ACT_MOD)
1532-
MsgBox "ATTENZIONE QUOTA CENTRO SPACCO NON DEFINITA", vbCritical
1532+
1533
SB = INPUT_NUM(NND, "SB", SB, ACT_MOD)
1534
LH = INPUT_NUM(NND, "LH", LH, ACT_MOD)
1535-
End Function
1535+
CD_SP = INPUT_NUM(NND, "SPC", CD_SP, ACT_MOD)
1536
VV = INPUT_STR(NND, "VER", VV, ACT_MOD)
1537-
Function SPC_INDIC(ByVal CMM As String, ByVal CD_IN As Single, ByVal FA As Double, ByVal H As Double, ByVal SVIL As Double, ByVal HT As Double) As String
1537+
BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
1538
ODP = INFO_DAT(NND, 0, 5)
1539
1540-
'**************************************************************
1540+
If Val(LH) = 0 Then
1541-
SPC_INDIC = SPCi_CODIFY(CMM, CD_IN, FA, H, SVIL, HT)
1541+
SP = M1 + 50
1542-
If SPC_INDIC <> "" Then Exit Function
1542+
LH = H - SP
1543-
'**************************************************************
1543+
1544
1545
1546
1547-
SPC_INDIC = Empty
1547+
VV = Replace(VV, "H", "")
1548-
Spclist = FILELIST(SPC_FOLD, True, "*")
1548+
VV = Val(VV)
1549
If VV > 8 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
1550-
IND_FOUND = 0
1550+
1551-
TYCK = ""
1551+
1552-
For i = 1 To UBound(Spclist)
1552+
SCS = 6
1553-
CDCK = Right(Spclist(i), InStr(1, StrReverse(Spclist(i)), "\", vbBinaryCompare) - 1)
1553+
1554-
CDCK = Left(CDCK, InStr(1, CDCK, ".", vbBinaryCompare) - 1)
1554+
1555
sf = 1 * sf '+ 1 * SB
1556-
If CDCK = CD_IN Then
1556+
If sf = 0 Then
1557
sf = 1 * SB
1558-
Select Case IND_FOUND
1558+
MsgBox "ERRORE DATI SB-SF IN " & ACT_MOD
1559-
Case 0
1559+
1560-
IND_FOUND = 1
1560+
1561-
NF_IN = Spclist(i)
1561+
1562-
TYCK = Left(Spclist(i), Len(Spclist(i)) - InStr(1, StrReverse(Spclist(i)), "\", vbBinaryCompare))
1562+
Select Case VV
1563-
TYCK = Right(TYCK, InStr(1, StrReverse(TYCK), "\", vbBinaryCompare) - 1)
1563+
Case 2, 4, 6, 8
1564
1565-
Case 1
1565+
1566-
MsgBox "ERRORE SU MODULO INDICATORE"
1566+
'**************************************SPACCO
1567
If CD_SP <> "" And CD_SP <> "0" Then
1568-
MsgBox "ERRORE SU MODULO INDICATORE"
1568+
R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 2, sf, 0)
1569
1570
If DF >= 40 Then M5 = DF - 25 Else M5 = 0
1571-
Next i
1571+
1572
1573
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
1574-
If IND_FOUND = 0 And CD_IN <> "9999" Then MsgBox "SPACCO " & CD_IN & " NON TROVATO", vbExclamation
1574+
R02 = T_CIRC(H - M14, L - 5.2, 5.5) & T_CIRC(H - M14 - 375.5, L - 5.2, 5.5)
1575
R02 = R02 & T_CIRC(H - M15, L - 5.2, 5.5) & T_CIRC(H - M15 - 275.5, L - 5.2, 5.5)
1576-
Select Case TYCK
1576+
R02 = R02 & T_SLOT(H - M14, 24.1, 8, 5, 90) & T_SLOT(H - M14, 24.1 + M5, 8, 5, 90)
1577
R02 = R02 & T_SLOT(H - M14 - 375.5, 24.1, 8, 5, 90) & T_SLOT(H - M14 - 375.5, 24.1 + M5, 8, 5, 90)
1578-
Case "I02"
1578+
R02 = R02 & T_SLOT(H - M15, 24.1, 8, 5, 90) & T_SLOT(H - M15, 24.1 + M5, 8, 5, 90)
1579-
NFDATA = FreeFile
1579+
R02 = R02 & T_SLOT(H - M15 - 275.5, 24.1, 8, 5, 90) & T_SLOT(H - M15 - 275.5, 24.1 + M5, 8, 5, 90)
1580-
Open NF_IN For Input As #NFDATA
1580+
1581-
Line Input #NFDATA, ST_COD
1581+
1582-
Line Input #NFDATA, VOID_ROW
1582+
R02 = T_CIRC(QCSP + 187.75, L - 5.2, 5.5)
1583-
Line Input #NFDATA, lS
1583+
R02 = R02 & T_CIRC(QCSP - 187.75, L - 5.2, 5.5)
1584-
Line Input #NFDATA, HS
1584+
R02 = R02 & T_SLOT(QCSP + 187.75, 24.1, 8, 5, 90)
1585-
Line Input #NFDATA, QS
1585+
R02 = R02 & T_SLOT(QCSP + 187.75, 24.1 + M5, 8, 5, 90)
1586-
Line Input #NFDATA, DIAM
1586+
R02 = R02 & T_SLOT(QCSP - 187.75, 24.1, 8, 5, 90)
1587-
Line Input #NFDATA, DISTF
1587+
R02 = R02 & T_SLOT(QCSP - 187.75, 24.1 + M5, 8, 5, 90)
1588-
Close #NFDATA
1588+
1589
1590-
If QS = "C" Then QS = HT / 2 - Val(HS) / 2
1590+
1591
1592-
lS = Val(lS)
1592+
1593-
HS = Val(HS)
1593+
1594-
QS = Val(QS)
1594+
MsgBox "M3=0"
1595-
DIAM = Val(DIAM)
1595+
Select Case LH
1596-
DISTF = Val(DISTF)
1596+
1597
Case 1900
1598-
Y = FA + QS + HS / 2
1598+
If H - QCSP < 1030 Then M3 = H - QCSP - 530
1599
If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
1600-
RS1 = T_RECT2(Y, H / 2, HS, lS)
1600+
If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
1601-
RS2 = T_CIRC(Y, H / 2 + DISTF / 2, DIAM)
1601+
1602-
RS3 = T_CIRC(Y, H / 2 - DISTF / 2, DIAM)
1602+
Case 1950
1603-
SPC_R = RS1 & RS2 & RS3
1603+
If H - QCSP < 1055 Then M3 = H - QCSP - 530
1604
If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
1605-
GoTo END_IND
1605+
If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
1606
1607
Case 2000
1608
If H - QCSP < 1080 Then M3 = H - QCSP - 530
1609
If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
1610-
Case "I03"
1610+
If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
1611-
NFDATA = FreeFile
1611+
1612-
Open NF_IN For Input As #NFDATA
1612+
Case 2050
1613-
Line Input #NFDATA, ST_COD
1613+
If H - QCSP < 1105 Then M3 = H - QCSP - 530
1614-
Line Input #NFDATA, VOID_ROW
1614+
If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
1615-
Line Input #NFDATA, lS
1615+
If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
1616-
Line Input #NFDATA, HS
1616+
1617-
Line Input #NFDATA, QS
1617+
Case 2100
1618-
Line Input #NFDATA, LS2
1618+
If H - QCSP < 1130 Then M3 = H - QCSP - 530
1619-
Line Input #NFDATA, HS2
1619+
If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
1620-
Close #NFDATA
1620+
If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
1621
1622-
If QS = "C" Then QS = HT / 2 - Val(HS) / 2
1622+
1623
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
1624-
lS = Val(lS)
1624+
1625-
HS = Val(HS)
1625+
1626-
QS = Val(QS)
1626+
1627-
DIAM = Val(DIAM)
1627+
1628-
DISTF = Val(DISTF)
1628+
R01 = ""
1629
R02 = ""
1630-
Y = FA + QS + HS / 2
1630+
1631-
Y2 = FA + QS - HS2 + (HS2 + 5.5) / 2
1631+
'***********************************************
1632-
HS3 = HS2 + 5.5
1632+
1633
R03 = T_RECT1(-SCS, M2, L - 26.6, L + SCS)
1634-
RS1 = T_RECT2(Y, H / 2, HS, lS)
1634+
R03 = R03 & T_RECT1(-SCS, M2, -SCS, 16.6)
1635-
If LS2 * HS2 > 0 Then RS2 = T_RECT2(Y, H / 2, HS3, LS2) Else RS2 = ""
1635+
R03 = R03 & T_RECT1(H - 70, H + SCS, -SCS, 16.6)
1636
1637-
SPC_R = RS1 & RS2
1637+
R03 = R03 & T_RECT1(H - 345, H - 290, 12.5, 17.5)
1638
R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), 12.5, 17.5)
1639-
GoTo END_IND
1639+
1640
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
1641
R03 = R03 & T_RECT1(H - (345 + M3 + M13), H - (290 + M3 + M13), 12.5, 17.5)
1642
Else
1643
R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), 12.5, 17.5)
1644
End If
1645-
SPC_INDIC = Empty
1645+
1646-
CUR_COM = CMM
1646+
R03 = R03 & T_RECT1(M2 + 20, M2 + 75, 12.5, 17.5)
1647-
UserForm3.Show
1647+
1648
R03 = R03 & T_SLOT(H - 25, DF - 18 + 15 - 2.4, 8, 5, 90)
1649-
If INDIC_TYPE = 0 Then Exit Function
1649+
R03 = R03 & T_SLOT(H - 55, DF - 18 + 15 - 2.4, 8, 5, 90)
1650
1651
R04 = T_CIRC(30, DF / 2 + 15 - 2.4, 7.2)
1652
If M8 > 0 Then R05 = T_CIRC(30 + M8, DF / 2 + 15 - 2.4, 7.2) Else R05 = ""
1653-
'*****************************************PER REPORT SPACHI
1653+
R06 = T_CIRC(30 + M1, DF / 2 + 15 - 2.4, 7.2)
1654-
RP = RP + 1
1654+
R06 = R06 & T_CIRC(30 + M1 - M7, DF / 2 + 15 - 2.4, 7.2)
1655-
RPT_SPC(RP, 1, 1) = INFO_DAT(CMM, 0, 2)
1655+
R06 = R06 & T_CIRC(30, L - (DF / 2 + 25 - 2.4), 7.2)
1656-
RPT_SPC(RP, 1, 2) = "COMMESSA"
1656+
If M8 > 0 Then R07 = T_CIRC(30 + M8, L - (DF / 2 + 25 - 2.4), 7.2) Else R07 = ""
1657-
RP2 = 1
1657+
R08 = T_CIRC(30 + M1, L - (DF / 2 + 25 - 2.4), 7.2)
1658-
'**********************************************************
1658+
R08 = R08 & T_CIRC(30 + M1 - M7, L - (DF / 2 + 25 - 2.4), 7.2)
1659
If M6 > 0 Then
1660
R09 = T_CIRC(M6, L - (DF - 19.2 + 25 - 2.4), 15)
1661
R09 = R09 & T_CIRC(M6 + 140, L - (DF - 19.2 + 25 - 2.4), 15)
1662-
Select Case INDIC_TYPE
1662+
1663
R09 = ""
1664
End If
1665-
Case 1       'SPACCO RETTANGOLARE SINGOLO
1665+
1666-
QS = INPUT_VAL(1, "QUOTA PARTENZA SPACCO", QS, "")
1666+
R10 = T_SLOT(H - 25, L - 9.5, 8, 5, 90)
1667-
HS = INPUT_VAL(1, "ALTEZZA SPACCO", HS, "")
1667+
R10 = R10 & T_SLOT(H - 55, L - 9.5, 8, 5, 90)
1668-
lS = INPUT_VAL(1, "LARGHEZZA SPACCO", lS, "")
1668+
R10 = R10 & T_CIRC(H - 283, L - 10, 8.5)
1669
R10 = R10 & T_CIRC(H - (283 + 34), L - 10, 8.5)
1670-
Y = FA + QS + HS / 2
1670+
R10 = R10 & T_CIRC(H - (283 + M3), L - 10, 8.5)
1671-
RS1 = T_RECT2(Y, H / 2, HS, lS)
1671+
R10 = R10 & T_CIRC(H - (283 + 34 + M3), L - 10, 8.5)
1672-
SPC_R = RS1
1672+
1673
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
1674
R10 = R10 & T_CIRC(H - (283 + M3 + M13), L - 10, 8.5)
1675-
Case 2      'SPACCO RETTANGOLARE SINGOLO CON COPPIA DI FORI CENTRATI
1675+
R10 = R10 & T_CIRC(H - (283 + 34 + M3 + M13), L - 10, 8.5)
1676-
QS = INPUT_VAL(1, "QUOTA PARTENZA SPACCO", QS, "")
1676+
1677-
HS = INPUT_VAL(1, "ALTEZZA SPACCO", HS, "")
1677+
R10 = R10 & T_CIRC(H - (283 + 2 * M3), L - 10, 8.5)
1678-
lS = INPUT_VAL(1, "LARGHEZZA SPACCO", lS, "")
1678+
R10 = R10 & T_CIRC(H - (283 + 34 + 2 * M3), L - 10, 8.5)
1679-
KF = INPUT_VAL(1, "INTERASSE ORIZZONTALE FORI", KF, "")
1679+
1680-
DF = INPUT_VAL(1, "DIAMETRO FORI", DF, "")
1680+
1681-
Y = FA + QS + HS / 2
1681+
R10 = R10 & T_CIRC(M2 + 82, L - 10, 8.5)
1682-
RS1 = T_RECT2(Y, H / 2, HS, lS)
1682+
R10 = R10 & T_CIRC(M2 + 82 - 34, L - 10, 8.5)
1683-
RS2 = T_CIRC(Y, H / 2 - KF / 2, DF)
1683+
1684-
RS3 = T_CIRC(Y, H / 2 + KF / 2, DF)
1684+
R11 = T_DATAMATRIX(ODP, H - 100 - 40, 15 + 10, "O")
1685-
SPC_R = RS1 & RS2 & RS3
1685+
1686
R12 = ""
1687
If M10 > 0 Then
1688-
Case 3      'SPACCO STAR 30_5
1688+
R12 = T_HEX(H - M10, 41.1, 11) & T_HEX(H - M10 - 859, 41.1, 11) & T_HEX(H - M10 - 859 - 398, 41.1, 11)
1689-
QS = INPUT_VAL(1, "QUOTA CENTRO SPACCO DA FILO LUCE", QS, "")
1689+
1690-
DF = INPUT_VAL(1, "DIAMETRO FORO: 9,10.5,32.5,6.5,5.5,25,20.2,3.3,4.2,5,7.2,8.5,14,10", DF, "")
1690+
If M11 > 0 Then
1691-
'Y = FA - QS
1691+
R12 = R12 & T_HEX(H - M11, 41.1, 11) & T_HEX(H - M11 - 1257, 41.1, 11)
1692-
Y = FA + QS
1692+
1693-
'DIAM = 30
1693+
If M12 > 0 Then
1694-
'LAT = 5
1694+
R12 = R12 & T_HEX(H - M12, 41.1, 11)
1695-
'R = DIAM / 2 - 2.5
1695+
1696-
'X1 = XX + R
1696+
1697-
'Y1 = Y
1697+
1698-
'X2 = XX
1698+
1699-
'Y2 = Y - R
1699+
R13 = T_RAD(0, 15 + 4 - 2.4, 3)
1700-
'X3 = XX - R
1700+
R13 = R13 & T_RAD(M2, 0, 3)
1701-
'Y3 = Y
1701+
R13 = R13 & T_RAD(0, L - (25 + 4 - 2.4), 2)
1702-
'X4 = XX
1702+
R13 = R13 & T_RAD(M2, L, 2)
1703-
'Y4 = Y + R
1703+
R13 = R13 & T_RAD(H - 70, 0, 4)
1704
R13 = R13 & T_RAD(H, 15 + 4 - 2.4, 4)
1705-
'G901 = "G90/X" & X1 & "/Y" & Y1 & "/T339/>"
1705+
R13 = R13 & T_RAD(H, L, 1)
1706-
'G902 = "G90/X" & X2 & "/Y" & Y2 & "/T339/>"
1706+
1707-
'G903 = "G90/X" & X3 & "/Y" & Y3 & "/T339/>"
1707+
1708-
'G904 = "G90/X" & X4 & "/Y" & Y4 & "/T339/>"
1708+
1709-
'SPC_R = G901 & G902 & G903 & G904 & G900
1709+
1710
Case 1, 3, 5, 7
1711-
'SPC_R = T_CIRC(H / 2, Y, DF)
1711+
1712-
SSPP = MsgBox("VUOI LE SPIZZE SULLO SPACCO TONDO?", vbYesNo)
1712+
'***************************************SPACCO
1713-
MsgBox ("CONTROLLARE SPACCO STAR")
1713+
If CD_SP <> "" And CD_SP <> "0" Then
1714-
If SSPP = 6 Then
1714+
R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 1, sf, 0)
1715-
SPC1 = T_CIRC(Y, H / 2, DF)
1715+
1716-
RDR = DF / 2 - 4 + 1.9
1716+
1717-
SPC2 = T_SPECIAL(Y + RDR, H / 2, "RAG-3", 0) & T_SPECIAL(Y - RDR, H / 2, "RAG-3", 0) & T_SPECIAL(Y, H / 2 + RDR, "RAG-3", 0) & T_SPECIAL(Y, H / 2 - RDR, "RAG-3", 0)
1717+
If DF >= 40 Then M5 = DF - 25 Else M5 = 0
1718-
SPC_R = SPC1 & SPC2
1718+
1719
1720-
SPC_R = T_CIRC(Y, H / 2, DF)
1720+
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
1721
R02 = T_CIRC(H - M14, 5.2, 5.5) & T_CIRC(H - M14 - 375.5, 5.2, 5.5)
1722
R02 = R02 & T_CIRC(H - M15, 5.2, 5.5) & T_CIRC(H - M15 - 275.5, 5.2, 5.5)
1723
R02 = R02 & T_SLOT(H - M14, L - 24.1, 8, 5, 90) & T_SLOT(H - M14, L - 24.1 - M5, 8, 5, 90)
1724-
Case 4       'SPACCO RETTANGOLARE SINGOLO CON INCAVI
1724+
R02 = R02 & T_SLOT(H - M14 - 375.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M14 - 375.5, L - 24.1 - M5, 8, 5, 90)
1725-
QS = INPUT_VAL(1, "QUOTA PARTENZA SPACCO", QS, "")
1725+
R02 = R02 & T_SLOT(H - M15, L - 24.1, 8, 5, 90) & T_SLOT(H - M15, L - 24.1 - M5, 8, 5, 90)
1726-
HS = INPUT_VAL(1, "ALTEZZA SPACCO", HS, "")
1726+
R02 = R02 & T_SLOT(H - M15 - 275.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M15 - 275.5, L - 24.1 - M5, 8, 5, 90)
1727-
lS = INPUT_VAL(1, "LARGHEZZA SPACCO", lS, "")
1727+
1728-
AI = INPUT_VAL(1, "ALTEZZA INCAVO", LI, "")
1728+
R02 = T_CIRC(QCSP + 187.75, 5.2, 5.5)
1729-
LI = INPUT_VAL(1, "LARGHEZZA INCAVO", LI, "")
1729+
R02 = R02 & T_CIRC(QCSP - 187.75, 5.2, 5.5)
1730-
Y = FA + QS + HS / 2
1730+
R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1, 8, 5, 90)
1731-
SVP = 4 'SOVRAPPOSIZIONE SPACCHI LATERALI
1731+
R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1 - M5, 8, 5, 90)
1732-
RS1 = T_RECT2(Y, H / 2, HS, lS)
1732+
R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1, 8, 5, 90)
1733-
RS2 = T_RECT2(Y, H / 2 - lS / 2 - LI / 2 + SVP / 2, AI, LI + SVP)
1733+
R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1 - M5, 8, 5, 90)
1734-
RS3 = T_RECT2(Y, H / 2 + lS / 2 + LI / 2 - SVP / 2, AI, LI + SVP)
1734+
1735-
SPC_R = RS1 & RS2 & RS3
1735+
1736
1737
If M3 = 0 Then
1738
Select Case LH
1739-
END_IND:
1739+
1740
Case 1900
1741-
PULS_TYPE = Empty
1741+
If H - QCSP < 1030 Then M3 = H - QCSP - 530
1742-
SPC_INDIC = SPC_R
1742+
If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
1743
If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
1744-
End Function
1744+
1745
Case 1950
1746
If H - QCSP < 1055 Then M3 = H - QCSP - 530
1747
If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
1748
If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
1749
1750
Case 2000
1751
If H - QCSP < 1080 Then M3 = H - QCSP - 530
1752
If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
1753
If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
1754
1755
Case 2050
1756
If H - QCSP < 1105 Then M3 = H - QCSP - 530
1757
If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
1758
If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
1759
1760
Case 2100
1761
If H - QCSP < 1130 Then M3 = H - QCSP - 530
1762
If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
1763
If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
1764
1765
Case Else
1766
MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
1767
End Select
1768
End If
1769
1770
Else
1771
R01 = ""
1772
R02 = ""
1773
End If
1774
'***********************************************
1775
1776
R03 = T_RECT1(-SCS, M2, -SCS, 26.6)
1777
R03 = R03 & T_RECT1(-SCS, M2, L - 16.6, L + SCS)
1778
R03 = R03 & T_RECT1(H - 70, H + SCS, L - 16.6, L + SCS)
1779
1780
R03 = R03 & T_RECT1(H - 345, H - 290, L - 17.5, L - 12.5)
1781
R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), L - 17.5, L - 12.5)
1782
1783
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
1784
R03 = R03 & T_RECT1(H - (345 + M3 + M13), H - (290 + M3 + M13), L - 17.5, L - 12.5)
1785
Else
1786
R03 = R03 & T_RECT1(H - (345 + M3 * 2), H - (290 + M3 * 2), L - 17.5, L - 12.5)
1787
End If
1788
1789
R03 = R03 & T_RECT1(M2 + 20, M2 + 75, L - 17.5, L - 12.5)
1790
1791
R03 = R03 & T_SLOT(H - 25, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
1792
R03 = R03 & T_SLOT(H - 55, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
1793
1794
R04 = T_CIRC(30, L - (DF / 2 + 15 - 2.4), 7.2)
1795
If M8 > 0 Then R05 = T_CIRC(30 + M8, L - (DF / 2 + 15 - 2.4), 7.2) Else R05 = ""
1796
R06 = T_CIRC(30 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
1797
R06 = R06 & T_CIRC(30 + M1 - M7, L - (DF / 2 + 15 - 2.4), 7.2)
1798
R06 = R06 & T_CIRC(30, DF / 2 + 25 - 2.4, 7.2)
1799
If M8 > 0 Then R07 = T_CIRC(30 + M8, DF / 2 + 25 - 2.4, 7.2) Else R07 = ""
1800
R08 = T_CIRC(30 + M1, DF / 2 + 25 - 2.4, 7.2)
1801
R08 = R08 & T_CIRC(30 + M1 - M7, DF / 2 + 25 - 2.4, 7.2)
1802
If M6 > 0 Then
1803
R09 = T_CIRC(M6 + 140, DF - 19.2 + 25 - 2.4, 15)
1804
R09 = R09 & T_CIRC(M6, DF - 19.2 + 25 - 2.4, 15)
1805
Else
1806
R09 = ""
1807
End If
1808
1809
R10 = T_SLOT(H - 25, 9.5, 8, 5, 90)
1810
R10 = R10 & T_SLOT(H - 55, 9.5, 8, 5, 90)
1811
R10 = R10 & T_CIRC(H - 283, 10, 8.5)
1812
R10 = R10 & T_CIRC(H - (283 + 34), 10, 8.5)
1813
R10 = R10 & T_CIRC(H - (283 + M3), 10, 8.5)
1814
R10 = R10 & T_CIRC(H - (283 + 34 + M3), 10, 8.5)
1815
If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
1816
R10 = R10 & T_CIRC(H - (283 + M13 + M3), 10, 8.5)
1817
R10 = R10 & T_CIRC(H - (283 + 34 + M13 + M3), 10, 8.5)
1818
Else
1819
R10 = R10 & T_CIRC(H - (283 + 2 * M3), 10, 8.5)
1820
R10 = R10 & T_CIRC(H - (283 + 34 + 2 * M3), 10, 8.5)
1821
End If
1822
R10 = R10 & T_CIRC(M2 + 82, 10, 8.5)
1823
R10 = R10 & T_CIRC(M2 + 82 - 34, 10, 8.5)
1824
1825
R11 = T_DATAMATRIX(ODP, H - 100 - 40, L - 15 - 10 - 20, "O")
1826
1827
R12 = ""
1828
If M10 > 0 Then
1829
R12 = T_HEX(H - M10, L - 41.1, 11) & T_HEX(H - M10 - 859, L - 41.1, 11) & T_HEX(H - M10 - 859 - 398, L - 41.1, 11)
1830
End If
1831
If M11 > 0 Then
1832
R12 = R12 & T_HEX(H - M11, L - 41.1, 11) & T_HEX(H - M11 - 1257, L - 41.1, 11)
1833
End If
1834
If M12 > 0 Then
1835
R12 = R12 & T_HEX(H - M12, L - 41.1, 11)
1836
End If
1837
1838
1839
R13 = T_RAD(0, L - (15 + 4 - 2.4), 2)
1840
R13 = R13 & T_RAD(M2, L, 2)
1841
R13 = R13 & T_RAD(0, 25 + 4 - 2.4, 3)
1842
R13 = R13 & T_RAD(M2, 0, 3)
1843
R13 = R13 & T_RAD(H - 70, L, 1)
1844
R13 = R13 & T_RAD(H, L - (15 + 4 - 2.4), 1)
1845
R13 = R13 & T_RAD(H, 0, 4)
1846
1847
1848
Case Else
1849
MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
1850
End Select
1851
1852
fn = R01 & R02 & R03 & R04 & R05 & R06 & R07 & R08 & R09 & R10 & R11 & R12 & R13
1853
1854
P1 = 250
1855
P2 = H - 400
1856
MVAL = 500
1857
STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
1858
1859
Call SAVE_SUB(NND, STRINGA)
1860
1861
POSINTAB = def_posintab(NND)
1862
Call CUT_END_S_PORT(H, L, M2, "0", POSINTAB)
1863
Call FVTPT(3, NND, "")
1864
Call CUT_END_S(H, L, "B", POSINTAB)
1865
Call FVTPT(3, NND, "B")
1866
1867
1868
End Sub
1869
1870