Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 284

Advertising
background image

Introduction to Programming

Chapter 10

10-10

Information between the control out code “(” and the control in code “)”
within a part program is regarded as a comment and not handled as
significant information. The comment can be described in up to 128
characters (including the control out/in codes) consisting of alphanumeric
characters and special symbols.

Example 10.6

Program Block With A Comment

N00010G91X5.(CHANGE TO INC.

MOVE X 5);

When programming a slash “/” followed by a numeric value (1-9)
anywhere in a block, the control will skip (not execute) programmed
commands in that block. The block delete feature is turned on either with
the {FRONT PANEL} softkey, or with an optionally installed switch on
the MTB panel. If the {FRONT PANEL} softkey is used, only block
delete /1 is available. If the system installer has installed switches on the
MTB panel to activate block delete, up to 9 different switches may be
used, each corresponding to a different block delete character (/1 - /9).

The system installer determines in AMP if the entire block is deleted or if
only the characters to the right of the block delete / are deleted. If the
entire block is to be deleted, it is done regardless of the position of the /
character in the block.

Example 10.7

Using Block Delete in a Part Program

Program Block

Comment

N1000 X__ Z__;

first block

N1010

Z__;

second block

/1N1020 X__;

control skips this block if switch 1 is on

/1/2N1030 X__;

control skips this block if switch 1 or switch 2 are on

/N1032 X__;

control skips this block if switch 1 is on

N1040 X__;

/2N1050 X__;

control skips this block if switch 2 is on

The control always reads several blocks into its buffer memory so that it
can prepare for moves and commands before it executes them. The switch
(or softkey) controlling a block delete must be set before the control reads
a block from buffer memory; otherwise, a skip will not occur.

10.2.3
Comment Blocks

10.2.4
Block Delete and Multi Level
Delete

Advertising