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.

08.97 Programmes <strong>de</strong> chariotage personnalisés<br />

<br />

840 D<br />

NCU 571<br />

840 D<br />

NCU 572<br />

NCU 573<br />

FM-NC 810D<br />

<br />

On veut savoir si trois points sont situés sur un arc<br />

<strong>de</strong> cercle.<br />

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

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

60<br />

50<br />

40<br />

30<br />

20<br />

10<br />

Y<br />

ERG [1]<br />

10<br />

(20,50)<br />

20 30<br />

ERG [0]<br />

N10 DEF REAL<br />

PT[3,2]=(20,50,50,40,65,20)<br />

Définition <strong>de</strong>s points<br />

N20 DEF REAL RES[3] Résultat<br />

N30 DEF BOOL ETAT Variable d’état<br />

N40 ETAT = CALCDAT(PT,3,RES) Appel <strong>de</strong>s données calculées<br />

N50 IF ETAT == FALSE GOTOF ERREUR Saut sur l'erreur<br />

ERG[2]<br />

40<br />

50<br />

(50,40)<br />

60<br />

(65,20)<br />

70<br />

X

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

Saved successfully!

Ooh no, something went wrong!