bonjour,je ne connais pas de livre mais je peux t'aider,dis moi que veux tu savoir,quel est ta question?
je vais te donner une exemple,je me sers du parametrage pour creer un cycle,modifier un cycle heid,determiner des conditions,ecrire des fichiers texte
on peut associer les parametres a beaucoup d'actions.
celui ci me sert a faire mes filetages interne,n'hésite pas a l'ecrire a essayer,tu pourras controler les parametres dans le mode test.jespere que ca pourra t'aider
0 BEGIN PGM FILETAGE-ESSAI2 MM
1 BLK FORM 0.1 Z X-20 Y-20 Z-50
2 BLK FORM 0.2 X+20 Y+20 Z+0
3 * - VERSION OK LE01/01/2013A TESTER ENCORE
4 TOOL CALL 248 Z S2000 F2000 DL+0 DR-0.05
5 CYCL DEF 7.0 POINT ZERO
6 CYCL DEF 7.1 X+0
7 CYCL DEF 7.2 Y+0
8 CYCL DEF 7.3 Z+0
9 L R0
10 * - ----------******-----------
11 * - ----------******-----------
12 * - ----------******-----------
13 * - ----------******-----------
14 FN 0: Q30 = +33 ; VALEUR DIAMETRE:CHECK M33
15 FN 0: Q31 = +2 ; PAS
16 FN 0: Q35 = +5 ; NOMBRE PASSE RADIALE
17 FN 0: Q0 = -22.3 ; PROF
18 * - ----------******-----------
19 * - ----------******-----------
20 FN 4: Q37 = +Q31 DIV +2
21 FN 0: Q19 = +Q31 ;
22 Q34 = ((Q31 / 2) / Q35)
23 FN 0: Q41 = +Q31 ;
24 FN 0: Q40 = -Q0 ;
25 FN 0: Q49 = +Q31 ;
26 CALL LBL 6
27 FN 0: Q1 = +Q21
28 FN 0: Q36 = +0 ;
29 FN 0: Q1 = -Q1
30 FN 0: Q0 = -Q0
31 Q33 = ((((Q30 - Q31) / 2) - Q108)+Q34)
32 * - ----------******-----------
33 * - ----------******-----------
34 * - ----------******-----------
35 * - ----------******-----------
36 L Z+100 R0 F MAX M3
37 L X+0 Y+0 R0 F MAX
38 L Z-Q1 R0 F MAX
39 L Y-Q33 R0 F AUTO
40 CC X+0 Y+0
41 LBL 1
42 Q1 = Q1 + Q19
43 L Y-Q33 X+0 R0 F AUTO
44 CP IPA+360 Z-Q1 DR-
45 FN 12: IF +Q1 LT +Q0 GOTO LBL 1
46 L X+0 Y+0 R0 F MAX
47 Q33 = Q33 + Q34
48 Q36 = Q36 + Q34
49 FN 0: Q1 = -Q21
50 L Z-Q1 R0 F MAX
51 FN 12: IF +Q36 LT +Q37 GOTO LBL 1
52 L X+0 Y+0 R0 F AUTO
53 L Z+50 R0 F MAX
54 LBL 0
55 STOP M2
56 LBL 6
57 Q41 = Q41 + Q49
58 Q20 = Q41 + Q49
59 FN 12: IF +Q20 LT +Q40 GOTO LBL 6
60 Q21 = Q20 - Q40
61 LBL 0
62 END PGM FILETAGE-ESSAI2 MM