G 0 1 – Rockwell Automation 8520 9/Series CNC Lathe User Manual

Page 284

Advertising
background image

Introduction to Programming

Chapter 10

10-16

Words in a part program consist of addresses and numeric values.

Component:

Description:

Address

A character to designate the assigned word function.

Numeric value

A numeral to express the event called out by the word.

Figure 10.4

Word Configuration

Word

Word

G 0 1

X

1 .3 1

Address

Numeric

value

For each word used in a part program, there is a format that designates the

number of digits allowable as a numeric value for that word. The format

for an M-code or word, for example, is normally M2 which indicates that

an M address can be followed by only two digits.

For words that allow the use of a decimal point in a numeric value, the

decimal point format is used. In this case, the numeral to the left of the

decimal point indicates the number of digits acceptable as integers, and the

numeral to the right of the decimal point indicates the number of fractional

digits acceptable.

The format “X3.4” for an X-word, indicates that three digits to the left and

four digits to the right of the decimal are acceptable as numeric values.

With this format selected, the maximum programmable value for an

X-word would be 999.9999.

The system installer can choose from these programming format types in
AMP:

Leading Zero Suppression ---- enable or disable

Trailing Zero Suppression ---- enable or disable

10.4

Word Formats and

Functions

10.4.1

Leading Zero and Trailing

Zero Suppression

Advertising