Yaskawa J50M Instructions User Manual

Page 119

Advertising
background image

Notes :

1. DO m should be specified before END m.

2. m of DO m and END m should have the same

value. However, only 1, 2, or 3 can be specified in m.

DO 1

The value of m, 1,

or 3

is called the identification
number, which is used by

,

DO

a n d

call

-

other.

3.

END 2 -

J

The same identification number

can be used

repeatedly except where repeat ranges overlap.

4. GOTO n enables to get out of DO loop but it does
not enable to get into DO loop as shown below :

GOTO 100 ;

END 1 ;

N1OO ;

GOTO

100 ;

;

n

END 1 ;

5.

Triple DO-loop nesting is permitted for each

micro program.

D 0 2 ;
D 0 3 ;

. . ABC ;

END 3 ;

END 2 ;
END 1 ;

Enabled

DO

2;

D 0 3 ;

I

.

END 3 ;
END 2 ;
END 1 ;

I

Enabled

6.

The

shown below cause an error:

(i)

D O 1 ;

1

The return destination

?

D O 1 ;

of END 1 is unknown.

END 1

(ii)

(iii)

(iv)

(v)

One END 1 is missing.

END 1 ;

END 1

D O 1 ;

1

D 0 2 ;

END 1 ;

Overlap of DO
ranges is not

D 0 2 ;

permitted.
Rewrite

END 2 ;

shown right.

I

END 2 ; - J

D O 1 ;

D 0 2 ;

D 0 3 ;

0

1

;

Q u a d r u p l e n e s t i n g .

Max. nexting permit-

ted is triple.

END 1 ;

END 3 ;

END 2 ;

END 1 ;

D O 1 ;

DO loop can not
be entered from

END

;

outside.

. . GOTO 7000 ;

Advertising