beautypg.com

11 inserting an nc block (module 9150) – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 637

background image


7-176

TNC 407/TNC 415/TNC 425

4 PLC Modules

01.98

4.11 Inserting an NC block (Module 9150)

With Module 9150 is it possible to define an NC block during an active M/S/T/G/Q output from the
NC to the PLC, or also when no program has been started. The defined NC block is executed after
the acknowledgement of the M/S/T/G/Q strobe (immediately, if no PGM is started), before the
control continues with the execution the NC program.

Constraints:
- If there are several commands during a strobe output, only the last one is executed.
- If there are several commands when the spindle is stationary, it is not defined which command is

recognized.

- Erroneous parameters (e.g. incorrect tool number, non-existent file) result in a abortion of the NC

program with the corresponding error message. If the error occurs while the spindle is stationary,
there is no error message.

Possible errors:
- The call was made during a running NC program without active M/S/T/G/Q strobe.
- The call was made with an unknown command code.

Call:

PS

B/W/D/K


0: TOOL-CALL

PS

B/W/D/K


Number of the first Double of the parameter block, or number of the
string

CM 9150
PL

B/W/D


0: NC block was inserted
1: Running NC PGM and no strobe
2: Unknown error message

Parameter:

TOOL-CALL

B active elements bit-coded
Bit 0 =1: Transfer tool number

otherwise modal

Bit 1 =1: Transfer tool axis

otherwise modal

Bit 2 =1: Transfer spindle speed

otherwise modal

Bit 3 =1: Transfer length oversize

otherwise 0

Bit 4 =1: Transfer radius oversize

otherwise 0

B Tool axis

(0..4 = X..V)

W Tool number
D Spindle speed

(Format 0.001 1/min)

D Length oversize

(Format 0.0001 mm)

DRadius oversize

(Format 0.0001 mm)

Error status after call:

M3171 =0:

NC block was inserted

=1:

See above error conditions