14.07.2013 Views

5.6 Mesure étendue MEASA, MEAWA, MEAC (à partir de SW 4

5.6 Mesure étendue MEASA, MEAWA, MEAC (à partir de SW 4

5.6 Mesure étendue MEASA, MEAWA, MEAC (à partir de SW 4

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sous-programmes, macroprogrammation 12.97<br />

<br />

840 D<br />

NCU 571<br />

840 D<br />

NCU 572<br />

NCU 573<br />

FM-NC 810D<br />

<br />

<br />

Appelez le sous-programme dans le programme<br />

principal en précisant son nom et le transfert <strong>de</strong><br />

paramètres. Vous pouvez transférer <strong>de</strong>s variables<br />

ou directement <strong>de</strong>s valeurs (sauf pour les<br />

paramètres VAR).<br />

Exemple :<br />

N10 DEF REAL LONGUEUR, LARGEUR,<br />

PROFONDEUR<br />

N20 …<br />

N30 LONGUEUR=15.3 LARGEUR=20.2<br />

PROFONDEUR=5<br />

N40<br />

CHASSIS(LONGUEUR,LARGEUR,PROFONDEUR)<br />

ou<br />

N40 CHASSIS(15.3,20.2,5)<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Exemple :<br />

Définition dans le sous-programme :<br />

Ã<br />

ÃÃÃ<br />

Ã<br />

<br />

<br />

PROC CHASSIS(REAL LONGUEUR, REAL LARGEUR, REAL PROFONDEUR)<br />

Appel dans le programme principal :<br />

N30 CHASSIS(LONGUEUR, LARGEUR,<br />

PROFONDEUR)<br />

Vous trouverez un exemple complet <strong>de</strong><br />

programmation <strong>de</strong> sous-programmes avec transfert<br />

<strong>de</strong> paramètres dans le manuel <strong>de</strong> programmation<br />

"Notions complémentaires".<br />

© Siemens AG 1997 All rights reserved.<br />

2-104 SINUMERIK 840D/810D/FM-NC Manuel <strong>de</strong> programmation Notions complémentaires (PGA) - Edition 12.97

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!