Using lzs and tzs with g-codes – Rockwell Automation 8520-MUM 9/Series CNC Mill Operation and Programming Manual Documentation Set User Manual

Page 292

Advertising
background image

Introduction to Programming

Chapter 10

10-18

Table 10.A shows the effects of leading zero suppression (LZS) and
trailing zero suppression (TZS). It presumes that the 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 on the following page, but the end result would be
comparable.

Table 10.A

How The Control Interprets Numeric Values

Position Interpreted by the control

Programmed X Value

TZS Disabled
LZS Disabled

TZS Disabled

LZS Enabled

TZS Enabled

LZS Disabled

X123456.

ERROR

ERROR

ERROR

X12345.6

12345.60

12345.60

12345.60

X1234.56

1234.56

1234.56

1234.56

X123.456

123.45

123.45

123.45

X12345

12345.00

123.45

12345.00

X012345

ERROR

123.45

1234.50

X123456

ERROR

1234.56

12345.60

X1234567

ERROR

12345.67

12345.67

X12345678

ERROR

ERROR

ERROR

Using LZS and TZS with G-Codes

The following table illustrates how the control interprets different G-Codes
in leading zero and trailing zero suppression modes.

Leading Zero Suppression Mode
(decimal assumed at end if not programmed)

Trailing Zero Suppression Mode
(2-digit G-code assumed unless decimal point programmed)

Program this:

Results in this:

Program this:

Results in this:

G02

2

G02

2

G2

2

G2

20

G2.

2

G2.

2

G92

92

G92

92

G920

920

G920

920 or 92 (if no AMP defined macro 920)

G92.1

92.1

G92.1

92.1

Advertising