NCT Group 2000M, 99M manual Jump within the Main Program

Models: 2000M 99M

1 206
Download 206 pages 27.56 Kb
Page 76
Image 76

13 Part Program Configuration

13.3.3 Jump within the Main Program

The use of instruction

M99

in the main program will produce an unconditional jump to the first block of the main program, and the execution of the program will be resumed there. The use of this instruction results in an endless cycle:

O0123

N1... <

...

.....

.....

M99

The use of instruction

M99 P.....

will produce an unconditional jump to the block specified at address P of the main program, and the execution of the program will be resumed there. The use of this instruction results in an endless cycle:

O0011

O0011

 

....

....

 

....

M99 P225

N128....<

....

 

....

....

 

....

N225

<

M99 P128

....

 

The possibility of endless cycles can be avoided by specifying the block containing instruction M99 in the form /1 M99. Now the jump will be omitted or not, depending on the setting of the conditional block skip switch.

76

Page 76
Image 76
NCT Group 2000M, 99M manual Jump within the Main Program