Bcd-coded output of spindle speed, 2 coded output of spindle speed – HEIDENHAIN TNC 335 Technical Manual User Manual

Page 188

Advertising
background image


8/95

TNC 360

4 Spindle

4-91

4.2 Coded output of spindle speed

For coded (binary) output of the spindle speed an S code is entered by the NC in Word W258. At the
same time strobe marker M2044 is set by the NC. The signals are static. The NC delays the
continuation of program run until marker M2481 gives the acknowledgment that the new spindle
speed has been activated. On acknowledgment the change marker M2044 is reset. The S code is
not altered before the next S output.

A spindle speed is entered in the TOOL CALL block with a maximum of four figures in rpm, if
necessary, rounded off by the NC to the nearest standard value. Spindle speeds of 0 to 9 000 are
possible. The spindle speed which has been entered is put out by the control as S Code according to
DIN 66025, as shown in the list of S Codes. With MP3020 the minimum and maximum spindle
speeds and the desired spindle-speed steps can be defined.

The Input value is a 5-figure number, derived as follows:

Minimum spindle speed 00 to 99

(see S-code table)

Maximum spindle speed 00 to 99

(see S-code table)

Spindle-speed step

1 to 9

Example:

The minimum spindle speed is to be 1 rpm (S code 20), the maximum spindle speed is to be
1000 rpm (S code 80). Only every second spindle speed should be programmable. This gives an
input value of 20802 for MP3020. An input value of 991 would mean no limit.

The S code is stored in the PLC in Word W258. The minimum spindle speed from MP3020 is stored
in Word W1008.

Set

Reset

M2044

S-code change signal

NC

NC

M2481

S-code acknowledgment

PLC

PLC

W258

S-code

NC

NC

W1008

S-code for minimum spindle rpm

NC

NC

MP3020

Definition of the spindle speed range
Input value: 0 to 99 999

Advertising