Reffer to the last post in program CNC configuration part 1 here
We will continue to program section configuration, a program section consist of several blocks. A program section starts with a program number and end with a program end code.
Program section configuration Program section
Program number O0001;
Block 1 N1 G91 G00 X120.0 Y80.0;
Block 2 N2 G43 Z-32.0 H01;
Disable execution block / N3 G00 Z-200.0;
:
:
Block n Nn Z0.0;
Program end M30;
A block contains information that necessary for machining, such as a move command or coolant on/off command. Adding a slash ( / ) at the start of a block will disable the execution of some blocks.
A program number consisting of address O followed by a four–digit number is assigned to each program at the beginning registered in memory to identify the program.
In ISO code, the colon ( : ) can be used instead of O.
When no program number is specified at the start of a program, the sequence number (N....) at the start of the program is regarded as its program number. If a five–digit sequence number is used, the lower four digits are registered as a program number. If the lower four digits are all 0, the program number registered immediately before added to 1 is registered as a program number. Note, however, that N0 cannot be used
for a program number.
If there is no program number or sequence number at the start of a program, a program number must be specified using the MDI panel when the program is stored in memory
We will continue to program section configuration, a program section consist of several blocks. A program section starts with a program number and end with a program end code.
Program section configuration Program section
Program number O0001;
Block 1 N1 G91 G00 X120.0 Y80.0;
Block 2 N2 G43 Z-32.0 H01;
Disable execution block / N3 G00 Z-200.0;
:
:
Block n Nn Z0.0;
Program end M30;
A block contains information that necessary for machining, such as a move command or coolant on/off command. Adding a slash ( / ) at the start of a block will disable the execution of some blocks.
A program number consisting of address O followed by a four–digit number is assigned to each program at the beginning registered in memory to identify the program.
In ISO code, the colon ( : ) can be used instead of O.
When no program number is specified at the start of a program, the sequence number (N....) at the start of the program is regarded as its program number. If a five–digit sequence number is used, the lower four digits are registered as a program number. If the lower four digits are all 0, the program number registered immediately before added to 1 is registered as a program number. Note, however, that N0 cannot be used
for a program number.
If there is no program number or sequence number at the start of a program, a program number must be specified using the MDI panel when the program is stored in memory
No comments:
Post a Comment