G 0 1, 4 word formats and functions – Rockwell Automation 8520-GUM 9/Series CNC Grinder Operation and Programming Manual Documentation Set User Manual

Page 295

Advertising
background image

Introduction to Programming

Chapter 10

10-17

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

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 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 number to the left of the
decimal point indicates the number of digits acceptable as integers, and the
number to the right of the decimal point indicates the number of fractional
digits acceptable.

The format “X3.4” for an X word, indicates that 3 digits to the left and 4
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.

Your system installer can choose from the following programming format
types in AMP:

Leading Zero Suppression ---- enable or disable

Trailing Zero Suppression ---- enable or disable

Table 10.A shows the effects of leading zero suppression (LZS) and
trailing zero suppression (TZS). It presumes that your system installer has
set a format of X5.2 (integer 5 digits, decimal 2 digits) in AMP. Different
formats would result in different decimal point placement compared to
those shown in Table 10.A, but the end result would be comparable.

10.4
Word Formats and
Functions

Advertising