NCT Group 99M, 2000M manual Part Program Configuration

Models: 2000M 99M

1 206
Download 206 pages 27.56 Kb
Page 73
Image 73

13 Part Program Configuration

13 Part Program Configuration

The structure of the part program has been described already in the introduction presenting the codes and formats of the programs in the memory. This Section will discuss the procedures of organizing the part programs.

13.1 Sequence Number (Address N)

The blocks of the program can be specified with serial or sequence numbers. The numbering can be accomplished at address N. The blocks can be numbered with max. 5 digits at address N. The use of address N is not mandatory. Some blocks can be numbered, others not. The block numbers need not follow each other in a consecutive order.

13.2 Conditional Block Skip

A conditional block skip can be programmed at the slash address /. The value of the slash address may be 1 to 9. Digit 1 to 9 represents serial number of switches .

Switch CONDITIONAL BLOCK No. 1 can be found on the operator’s panel of control.

The other switches may be provided optionally, their signals can be entered through the interface of the control system.

If a conditional block skip /n is programmed at the beginning of a block,

that block will be omitted from the execution when the nth switch is on,

that block will be executed when the nth switch is off.

13.3 Main Program and Sub-program

Two different programs are differentiated - main program and subprogram. Repetitive activities may be involved in machining a component part, that can be described with a particular program detail. In order to avoid writing the repetitive program detail over and over again in the program, they can be organized into a subprogram to be called from the part program. The structures of the main program and the subprogram have been described in the Introduction.

The difference between them is that, whereas the machining is completed after execution of the main program the control is awaiting another START, while after execution of the subprogram it will return to the calling program, resuming the machining process at that point.

In terms of programming technique, the difference between the two programs lies in the way of terminating the program. The end of the main program is specified with codes M02 or M30 (not mandatory ones), whereas the sub-program must be terminated with code M99.

13.3.1 Calling the Sub-program

The series of instructions

M98 P....

will generate a subprogram call. As a result, the execution of the program will be resumed at the subprogram, the number of which is defined at address P. The limit of address P are 1 to 9999. After the execution of the sub-program machining will be continued in the main program with the block following the subprogram call.

73

Page 73
Image 73
NCT Group 99M, 2000M manual Part Program Configuration