2 g functions, 1 overview of g functions, G functions – Lenze ETC Motion Control User Manual

Page 91: Overview of g functions, Cnc programming

Advertising
background image

CNC programming

G functions

Overview of G functions

3

3.2

3.2.1

l

91

EDSTCXN EN 2.0

3.2

G functions

A DIN block with a G function always has the following structure: the letter
"G" is followed by the number of the G function. This is then followed by the
parameters, which are each formed by their address letters and the
corresponding value.

G(number) [address identification(address value)] ...

Possible address identifications are

ƒ X ,Y ,Z ,A ,B, C, U, V, W, x, y, z, a, b, c, u, v, w as designations for axes,

referred to as AXES in the following.

ƒ D, F, H, I, J, K, L, R as G function−specific flow point parameters

ƒ E, O as G function−specific integral parameters

As address values, any flow point numbers alternatively with exponent (e.g.
−23.475e

−3

) are valid for axis addresses and flow point parameters. For all the

others, integers in the range of −32767 to +32767 are allowed.

As an alternative to direct input, all the above−mentioned addresses can also
be programmed indirectly. This is displayed by the specification of "P". The
programming takes place via the P field. Instead of the numerical value, the
index on the P field is then assigned to the address letter.

G0 X=P1000

For X, the value contained in the P field in the index 1000 is then valid.

G0 X=PP1100 For X, the value, whose index is contained P field in the index 1100 is valid

(indicated twice).

A DIN block does not necessarily have to contain a G function. Some of the
functions have a modal effect and do not need to be repeated. The above
specifications are then valid for the rest of the block.

3.2.1

Overview of G functions

i

Function is a pure interpreter function (

^ 90)

s

Function is time synchronized (

^ 90)

1)

Function is deactivated at the end of the program or in the event of a program termination
and with modal branches

2)

Function is deactivated at the end of the program or in the event of a program termination

3)

Function is deactivated in the event of a program termination

4)

Function is deactivated in the event of a program termination and with modal branches

No.

Meaning

Group

Attribute

00

Point−to−point positioning, high rate

a

01

Linear interpolation

a

02

Circular interpolation, clockwise

a

03

Circular interpolation, counterclockwise

a

04

Dwell time

05

Spline interpolation via the programmed grid points

h

1)

i

06

Polynomial interpolation with coefficient programming

h

1)

i

10

Definition of an error recovery item after an error

Syntax

Example

Advertising