20 Custom Macro

Example:

SBSTM =0

%O1000

...

N10 #100=50

N20 #101=100

N30 G1 X#100 Y#101

N40 #100=60 (definition after N30)

N50 #101=120 (definition after N30)

N60 G1 X#100 Y#101

Definition commands in blocks N40 and N50 are executed after the movement of block N30.

Fig. 20.15-1

LConclusions:

program execution is slower,

if execution of block N30 is interrupted and afterwards the machining is restarted the machining can be simply continued since variables of block N30 are not overwritten by block N40, N50.

SBSTM =1

%O1000

...

N10 #100=50

N20 #101=100

N30 G1 X#100 Y#101

N40 #100=60 (definition during N30)

N50 #101=120 (definition during N30)

N60 G1 X#100 Y#101

Definition commands in blocks N40 and N50 are executed during movement in block N30.

Fig. 20.15-2

LConclusions:

program execution is faster,

if execution of block N30 is interrupted and afterwards the machining is restarted the machining can not be continued, only if block search is started for block N30 since variables of block N30 are already overwritten by the blocks N40, N50.

20.16 Displaying Macros and Sub-programs in Automatic Mode

The blocks of macros and subprograms willbe displayed bythe control in automatic mode. If parameter MD8 is set to 0, the blocks of subprograms and macros numbered 8000 to 8999 will not be listed when they are executed. With parameter MD8 set to 1, their blocks will also be listed.

If parameter MD9 is set to 0, the blocks of subprograms and macros numbered 9000 to 9999 will not be listed when they are executed. With parameter MD9 set to 1, their blocks will also be listed.

20.17 Using the STOP Button While a Macro Instruction is Being Executed

Pressing the STOP button, i.e., suspension of the program execution will be effective always on completion of the macro instruction being executed.

197

Page 197
Image 197
NCT Group 99M, 2000M manual Sbstm =0, Displaying Macros and Sub-programs in Automatic Mode