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.

Programmation CN flexible 12.97<br />

<br />

840 D<br />

NCU 571<br />

840 D<br />

NCU 572<br />

NCU 573<br />

FM-NC 810D<br />

<br />

Initialisation <strong>de</strong> tableaux <strong>de</strong> variables complets.<br />

La figure représente chaque fois l’affectation courante.<br />

N10 DEF REAL TABLEAU1[10,3] = SET(0, 0, 0, 10, 11, 12, 20, 20, 20, 30,<br />

30, 30, 40, 40, 40,)<br />

N20 TABLEAU1[0,0] = REP(100)<br />

N30 TABLEAU1[5,0] = REP(-100)<br />

N40 TABLEAU1[0,0] = SET(0, 1, 2, -10, -11, -12, -20, -20, -20, -30, , , ,<br />

-40, -40, -50, -60, -70)<br />

N50 TABLEAU1[8,1] = SET(8.1, 8.2, 9.0, 9.1, 9.2)<br />

1<br />

Indices <strong>de</strong> tableaux<br />

1,2<br />

0<br />

1<br />

2<br />

3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

9<br />

N10 : initialisation<br />

lors <strong>de</strong> la définition<br />

0 1 2<br />

0 0 0<br />

10 11 12<br />

20 20 20<br />

30 30 30<br />

40 40 40<br />

0 0 0<br />

0 0 0<br />

0 0 0<br />

0 0 0<br />

0 0 0<br />

Les éléments [5,0] <strong>à</strong> [9,3] du<br />

tableau sont initialisés avec<br />

la valeur par défaut (0.0).<br />

N20/N30 : initialisation<br />

avec <strong>de</strong>s valeurs i<strong>de</strong>ntiques<br />

0 1 2<br />

100 100 100<br />

100 100 100<br />

100 100 100<br />

100 100 100<br />

100 100 100<br />

-100 -100 -100<br />

-100 -100 -100<br />

-100 -100 -100<br />

-100 -100 -100<br />

-100 -100 -100<br />

N40/N50 : initialisation<br />

avec <strong>de</strong>s valeurs différentes<br />

0 1 2<br />

0 1 2<br />

-10 -11 -12<br />

-20 -20 -20<br />

-30 0 0<br />

0 -40 -40<br />

-50 -60 -70<br />

-100 -100 -100<br />

-100 -100 -100<br />

-100 8.1 8.2<br />

9.0 9.1 9.2<br />

Les éléments [3,1] <strong>à</strong> [4,0] du<br />

tableau sont initialisés avec<br />

la valeur par défaut (0.0) ;<br />

les éléments [6,0] <strong>à</strong> [8,0]<br />

ne sont pas modifiés.<br />

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

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

2

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

Saved successfully!

Ooh no, something went wrong!