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.

12.97 Programmation CN flexible<br />

<br />

840 D<br />

NCU 571<br />

840 D<br />

NCU 572<br />

NCU 573<br />

FM-NC 810D<br />

<br />

<br />

IF–ELSE–ENDIF Choix entre 2 alternatives<br />

LOOP–ENDLOOP Boucle sans fin<br />

FOR–ENDFOR Boucle <strong>de</strong> comptage<br />

WHILE–ENDWHILE Boucle avec condition en début <strong>de</strong> boucle<br />

REPEAT–UNTIL Boucle avec condition en fin <strong>de</strong> boucle<br />

<br />

En version standard, la comman<strong>de</strong> traite les blocs<br />

CN dans l’ordre <strong>de</strong> leur programmation.<br />

Ces instructions permettent <strong>de</strong> définir <strong>de</strong>s<br />

alternatives et <strong>de</strong>s boucles <strong>de</strong> programme<br />

complémentaires <strong>de</strong>s sauts <strong>de</strong> programme décrits<br />

dans le présent chapitre.<br />

Les instructions permettent une programmation<br />

structurée et une bonne lisibilité du programme.<br />

<br />

<br />

Une instruction IF–ELSE–ENDIF sert <strong>à</strong> la sélection<br />

entre 2 variantes :<br />

(expression)<br />

Blocs CN<br />

<br />

Blocs CN<br />

<br />

Si l’expression a la valeur TRUE, autrement dit si la<br />

condition est remplie, la section <strong>de</strong> programme<br />

suivante sera exécutée. Si la condition n’est pas<br />

remplie, c'est la branche ELSE qui sera exécutée.<br />

La branche ELSE peut être omise.<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 1-59

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

Saved successfully!

Ooh no, something went wrong!