3 comment blocks – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 288

Advertising
background image

Introduction to Programming

Chapter 10

10-10

Example 10.5 shows two blocks with sequence numbers 10000 and 10010.

Example 10.5

Blocks With Sequence Numbers

N10000 X5.

Z4.

;

N10010 X2.

Z2.

;

Typically when assigning sequence numbers to blocks, the N word comes
first in the block except when designating block delete (see page 10-11).
You do not have to program the N word first in the block; the control still
finds it for jumps. However, it is not found for renumber operations.

If more than one N word is in a block, the control only uses the first N
word encountered for that block’s number.

You can assign different blocks the same sequence number. If this number
is called by a “GOTO” or some other command, the first block found by
the control with the sequence number that is closest to the calling block is
used. The control searches for the sequence number in the forward
direction (from the calling block) first. Then it searches in the reverse
direction (from the calling block). How the control reacts if the sequence
number is not found is determined by the specific operation being used.

The control has a programming feature that renumbers existing sequence
numbers or assigns all block sequence numbers. For details, see chapter 5.

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 Comment

N00010G91X5.(CHANGE TO INC.

MOVE X 5);

10.2.3
Comment Blocks

Advertising