Vous êtes sur la page 1sur 96

-.

PLC-Description

HEIDENHAIN TNC 150 B/TNC 150 0


Contouring Control

DR. JOHANNES

HEIDENHAIN
Graduations 31-O

Precision Mechanics, Optics and Electronics Precision P.O.Box 1260. D-8225 Traunreut Telephone (08669) Telex: 56831 Telegramme: DIADUR Traunreut

Issue

11184

Pocket

for PLC-PROGRAMMING

KEYBOARD-FOIL

Contents Section Introduction Connection and technical data Connection and technical data Connection and technical data Connection of TNC 150 Q Grounding diagram Technical data for PLC Layout of inputs and outputs PLC-boards PL 100 B/PL 110 PLC-boards PL 100 B/PL 110 EPROM for the PLC-Programme A) B) B 1) B 2) B2.1) B 2.2) B 2.3) B 2.4) B 2.4.1) B 2.4.2) B 3) Cl c 1) c 1.1) c 1.2) c 1.3) c 1.4) c 1.5) C 1.6) c 1.7) C 1.8) c 1.9) c 1.9.1) C 1.9.2) c 1.9.3) c 1.9.4) c 1.9.5) C 1.9.6) c 1.10) c 2) C2.1) c c c C C C C C C C C C C 2.2) 2.2.1) 2.2.2) 2.2.3) 2.2.4) 2.2.4.1) 2.2.4.2) 2.2.5) 2.2.6) 2.2.7) 2.2.8) 2.2.8.1) 2.2.8.2) . Page 5 6 6 7 7 8 9 12 12 13 14 15 15 15 15 16 16 16 17 17 17 18 18 19 20 21 22 22 23 24 24 24 24 25 25 26 26 28 30 31 32 32 32 32 33 33

TNC 150 B TNC 150 Q

of PLC-boards B as first PLC-board B as second PLC-board

Programming of the HEIDENHAIN PLC Description of the PLC-Commands No Operation: NOP Assignment: = AND-Command: U AND-Command with inverted operand: UN OR-Command: 0 OR-Command with inverted operand: ON Exklusive OR-Command: X0 Exklusiv OR-command with inverted operand: XON Programming of logic sequences I Logic sequences with U-commands Logical sequences with UN-commands Logical sequences with O-commands Logic sequence with ON-commands Logic sequence with XO/XON commands Programming of an arbitrary logic sequence Setting and resetting of a marker Address allocation for PLC-markers User markers: Address letter M Markers for the signal exchanges between PLC and NC: Address letter M Markers for the axis release: X, Y, Z, IV Markers for axes in position: X, Y, Z, IV Markers for traverse-dependent lubrication impulses: X, Y, Z, IVMarkers for M-S-T-Code-Outputs Markers for coded M-S-T-Code Outputs Markers for decoded M-Code output Markers for analogue output of the spindle speed Marker for tapping cycle Markers for the currently activated axis button: X, Y, Z, IVMarkers for selected operating mode Markers for operating mode-code Markers for the decoded operating mode-code Markers for the first PLC-program cycle after power on and after interruption of PLC-programme Markers affected by machine parameter 158

C 2.2.9) c 2.2.10)

Section Markers for inhibiting buttons Markers for control status and error messages ___ Markers for inhibiting the Servo Loop Markers for transfer of actual position values as nominal values (Teach-in) Markers for external buttons and switches Marker-d for the PLC-Positioning Code for the external selection of TNC-buttons PLC-Inputs and PLC-Outputs: Address letters E, A Summary ___Bipolar PLC-outputs for PL 110 B Output Emergency Stop Counters -Timers __Macro-progralmmes Selecting and exiting from the PLC-modes PLC Programme editor: PCE button 0 Keyboard layout for PLC-programming Button functions Programming PLC-commands Call-up of a specific PLC-command Sequential checking of PLC commands Deleting PLC-commands Entering PLC-commands into an existing programme Deleting a PLC-Programme Transfer of a programme from the main memory into read/write-store Input/Output of PLC-programmes on magnetic tape Operating mabde PLC-Programme trace function: Operating mode Table E/A/&T/M: c 2.2.11) c 2.2.12) C 2.2.13) C C C C C C C C c c 2.2.14) 2.2.15) 2.2.16) 2.2.17) 2.3) 2.3.1) 2.3.2) 2.3.3) 3) 4)

Page 34 36 39 39 40 42 44 46 46 48 48 49 50 51 51 52 53 54 55 55 56 56 56 56 57 57

Off-line PLC pr&rammmg PLC-command format PLC-Operation codes for PLC-Commands PLC-Address for PLC-Commands EPROM Add;ress list Standard TNC 150 B 4 TNC 150 Q PLC-program description Address list ,_ II Reference listing for markers, inputs / outputs and timers Standard PLC-program for the TNC 150 B / TNC 1513 0 Terminal layout for input / output signals for TNC 150 B /TNC 150 Q list -_ paralmeters TNC 150 between PLC and NC _

C 7.2) c 7.3) c 7.4) D) D 1) D 2) D 3) D 4) El F) G)

61 61 61 62 62 64 68 82 83 88 92

Programming List of machine List of markers

for signal exchange

This PLC-description

is valid for the controls:

TNC 150versions with ilnterface for an external machine PLC Transducer inputs: sinusoidal signals Transducer inputs: square wave signals TNC 150 B TNC 150 BR TNC 150 F (without TNC-versions with Transducer inputs: TNC 150 Q TNC 150 W (without 3D-movement) PLC-power sinusoidal TNC 150 FR

board(s) signals Transducer inputs: TNC 150 QR TNC 150 WR

square wave signals

3D-movement)

A) Introduction Logiccircuits operate in binary i.e. two unique, The two possible logic states will be represented Example: Switch Switch closed open = 1 = 0

dedicated switching by the figures 1

states. and 0

in this description.

Lamp on Lamp off

= 1 = 0 state is

This relationship can be represented with the aid of a function table (truth table). The switch represented as an input variable (operand) El and the lighted lamp as a logic result Al. Truth Table:

Digital switching algebra are:

signals can be combined AND OR NOT of digital switching

(logic circuits).

The basic logic elements

in the switching

The logic results .through .through .through

signals can be realised in the following

ways:

relays integrated circuits software programmes

Since the implementation of logic sequences using software programmes allows greater flexibility in the event of alterations, the programmable interface (PLC = Programmable Logic Controller) has gained ground in the application to machine tool control. The PLC is integrated in the HEIDENHAIN control TNC 1510, giving the following advantages:

.The signals between NC and PLC are markers, making more input and output signals possible and the control more flexible .The hardware interface is simplified .As the PLC programme can be entered at the control, an ex.ternal programming station is unnecessary .When programming ,the PLC functions, an immediate check is possible .Machine faults can be displayed on the screen

Please note: We are constantly from the versions

working on the further development described within this manual.

of out TNC-Controls

and a certain

control

may deviate

B) Connection and techlnical data The HEIDENHAIN TNC 150 control TNC 150 B with TNC 150 Q with Technical interface external for external PLC-power

is available machine board

in two

basic versions: (similar to TNC 145 C)

adaptation

data for controls supply

TNC 150 B/TNC

150 Q 100/l 20/l 40/200/220/240 9 or 12 vDU-screen V + 10 % / unit) 15%, 48 . . . 62 Hz

Mains voltage Power Ambient

Selectable

consumption temperature

ca. 60 W (with

Operation 0 .. . + 45C (+ 32 . . . + 113F) Storage - 30 . . . + 70C (-- 22 . . . + 158F) Control: 11.5 kg 9-VDU-screen unit: 6.8 kg, 12-VDU-screen unit: 10 kg, PC-power board: 1.2 kg (l-NC

Weight

150 Q)

Please note: All inputs and outputs of the controls protective low voltage.

TNC

150 B/TNC

150 Q rnay only be connected

to circuits

having

B 1) Connection and technical data TNC 150 B TNC 150 B is adapted to the machine externally. The interface of the TNC 150 B function required, be subjected to slight alterations With TNC 150 B only the inputs EO - E23 and outputs A0 - A22 are used an extended externally via an internal PLC-program (see section by the machine tool nanufacturer. D 3). This program may, if

via connectors

Jl - J6 (see secl-ion D)

Technical data for control inputs Potential-free opto-couplers (switched into groups) max. 30 V; filtered Operating voltage Optocouplers switched through 2 15v f 8V Optocouplers open Loading per input L 1OmA Technical data of control outputs Potential-free relay contacts (switched into groups) max. 30 V =/min. 15 V =/ Operating voltage Operating current per contact max. 50 mA Resistive load; Permissible load inductive load only with quenching diode parallel to inductivity. To prevent welding of contacts during a short circuit, a current limiting resistor of 47 ohms is switched series with each contact. Detailed information interfacing manual. coincerning the connection and adaptation of the TNC 150 B is available

into

in the special

B 2)

Connection

and technical

data of TNC 150 Q

B 2.1) Connection of TNC 150 Q With TNC 150 Q a clear and simple arrangement of the control-adaptation system is possible. Due to loss of power the inputs and outputs of the PLC have been accomodated on one (or two) are separated from the TNC-unit.

boards which

Board 2: PL 100 B Id.-No. PL 110 B Id:No. Air 4

223 223 exit 4

836 216

05 05

Board 1: PL 100 B Id.-No. PL 110 B Id:No. Air

223 223 exit

836 216

05 05 Multipoint for analogue (Description: connectors signals see interface Jl, J2 and manual J3 TNC 150)

+zv

4+&V I
L

1'

f
I

I
\ I-, 1 Transducers

-TTl
0

11

1111 IHandwheel

/
VDU-unit

Magnetic cassette

tape unit

t ov

t
Air

t
entry

!!

7 max.

20m

Connecting Id.-No. 222

I
cable 662 2 .. 1 m: 01 on request Connecting cable __ 1 Id.-Nr. 223 616 (12 x 2 x 0.14) Standard Id.-No. Special (max.

(12 x 2 x 0.14) Standard length Id:No. 222 662 Special (max. lengths 5 m)

length 5 m: 223 616 01 lengths on request 20 m)

0 1

Installation

sizes

? :: E

0 2

Screen

contact

, 0

iease note:
The total length of cable between TNC 150 Q and Board 2 must not exceed 20 m. The cable length between Board 1 and Board 2 must not e!xceed 5 m.
7

B 2.2)

Grounding

diagram

/. .

--------.-.-. .-.-.-.-..-. 2i N + 1 ,I3


L -.-.
q# .$sg Isa.c;i. u k I Ct2. & i L-.-.-. _-_--_--_-I L---------. b . . (Z --I

-.-.

I I I

I I I

r_.-.-.-.-.-.

19

I
-

I I I I I I I I I I I I -4 I I

I ci

B 2.3) Technical data for PLC The HEIDENHAIN-PLC offers the following hardware: The figures in brackets apply to the second input/output Abbreviation 1000 User Markers - not power M fail protected M

board Remarks Marker = 1 bit memory User Marker is a marker PLC-programming

freely available

for

1000

User Markers - power fail proteced Designated Markers

1024

Designated Marker is a marker allocated for data transfer between the TNC and PLC For counting For timing function function in PLC programme in PLC programme

16 Counters 32 Timers PL 100 B 64 (+64) Inputs

Z T

9 Inputs are designated for TNC input signals (only with Board 1) 1 Input per PCB is internally wired 1 Output per PCB is internally wired from the to the

32 (+32) Outputs 1 (+l) Output Emergency Stop

Internal Emergency Stop wired NC section of the control directly output For the monitoring of the bipolar

1 (+I ) Output PL 110 B 64 (+64) Inputs

Current

supervision

outputs

9 Inputs are designated for TNC input signals (only with Board 1) 1 Input per PCB is internally wired 1 Output For control per PCB is internally of D.C. motors from the to the wired

26 (+26) Outputs Output Pairs Stop A A

3 (+3) Bipolar 1 (+l) Output

Emergency

Internal Emergency Stop wired NC section of the control directly output For the monitoring of the bipolar

1 (+I) Output Current supervision outputs

The PLC programme will - irrespective of the programme length - cycle through will be interrogated once every 20 ms, an outputs can change once every 20 ms.

every 20 ms, thus the inputs

Nominal

values and tolerances

External voltage supply for PLC Nominal voltage: 24 V, -Voltage range: 20.4 V to 28.8 V Furthermore, superimposed AC-voltages DC voltage average are permitted. Circuitry example: having a relative oscillation width of 10 % with respect to the

+ 24V

Defi iition: U =: DC voltage average value: 20.4 . . 28.8 V AU =: Oscillation width: L 10 % relative to u

to PL 100 B/110 B
D

ov

Binary Nominal Voltage Voltage Current

input signals (EO to E62 and E64 to E 126) voltage: 24 V, -range for signal 1: 16.5 V to 30 V range for signal 0: - 3 V to + 4 V range for signal 1: 6.2 mA to 12.6 mA

Please note: lnterferance signals L 1 ms at the PLC-outputs are filtered via E# Schmitt-Trigger signals which are of longer duration must be filtered out by the software.

input circuit.

lnterferance

Binary output signals (PI- 100B: A0 to A30, A32 to A62; PL 110 B: A0 to A24, A32 to A56 and Emergency stop) Nominal voltage: 24 V, -Max. voltage difference to supply voltage: ~3 V Max. output current: 1.2 A Permissible loading: Resistive load: inductive load only with quenching diode parallel to inductivity. Max. circuit frequency: !50 Hz Please note: Adjacent PLC-Outputs

(e.g. A7 with

A8) can be switched

parallel via resistors

(e.g. 2 x 0,47 St ).

Bipolar outputs (PL 110 B : A25 to A30 and A57 to A62) Nominal voltage: 15 V (Measured between to bipolar outputs whereby one out is sumitched to signal 1 and the other to signal 0) Nominal current: 300 mA Voltage range with nominal current: 14.0 V to 15.5 V) Max. output current 1.2 A for 1 minute Range for current limitation: 1.35 A to 1.6 A Permissible loading: Resistive load: inductive load only with quenching dioce parallel to inductivity. Max. circuit frequency: 50 Hz Please note: Bipolar PLC-outputs

may not be switched

parallel signals:

Use of bipolar outputs as binary output Voltage for signal 1: ~14.2 V Voltage for signal 0: L 3.0 V Nominal current: 300 mA Max. output current 1.2 A for 1 minute

Output for current monitoring Monitoring of output currents of all bipolar outputs. The ou.tpu t J3/11 output currents of all. bipolar outputs 70.8 A to 0.9 A. Nominal voltage: 24 V, Max. output current: !55 mA to 65 mA Max. voltage difference to supply voltage: ~1.5 V

supplys

signal 1

if the sum of the

11

2.4)

Layout

of inputts and outputs

of PLC-boards

All inputs and outputs

may only be connected

to circuits with protective

low voltage.

2.4.1)

PLC-board

PIL 100 B / PL 110 B as first PLC-board

f 24V

All Al2 Al3 Al4 Al5 E Al8 2:: A21 unassigned Gw 11

*= output bipolar only with PL 110

E59 A24 A27*=:1 n-1 E: do not do not do not assign assign assign

.--

utput

Emergency

stop

JO

toTNC

1500

(P2)

Xtput:

current monitoring
for bipolar outputs

B 2.4.2)
r-

PLC-board

PL 100 B / PL 110 B as second PLC-bloard

unassigned

--j-m

IL1

PI

II

* = output bipolar only with PL 110 B

El23 EE do not do not do not A62* assign assign assign

Cjutput

Emergencystor

from first PLC-board vacant

f3utput:

current monitoring for bipolar outputs

ov

L 13

B 3) EPROM for the PLC-Programme The PLC-programme, together with the internal PLC-software and the PLC-dialogue in an EPROM type HN 2764 (see section C 7.4 for address allocation).

text,

is permanently

stored

The EPROM is located in the TNC-unit on the second plug-in PCB from the front - counting from the first panel. It carries the identification .._ . . 9 (the points represent arbitrary numbers and letters). Please note: The PLC-software The plug-in location

number

is displayed

in the MOD-mode below.

(please refer to the TNC

150-Operating

manual).

can be taken from the sketch

EPROM

for the PLC-programme \

lease note: Customer-specific PLC-programs can be entered into the control before delivery ex-works. If HEIDENHAIN lot informed of the customer-specific PLC-program, the control is supplied with the standard PLC-program. Wore detailed information is available from your nearest HEIDENHAIN sales office.
14

is

C)

Programming

of the HEIDENHAIN

PLC

C 1) Description of the PLC Commands It is convenient to represent the integrated PLC in the HEIDENHAIN control TNC 150 as relays or various circuits. These comprise commands that the binary operations (logic gates) execute.

logic

A PLC programme can consist of up to 2048 commands. Each individual logic command combines two input values, of which the first is the result of the previous logic gate and the second is self-addressed with the logic command. Gates with inputs are possible using a series string of multiple commands. The following Command No Operation Assignment commands are programmable: Abbreviation NOI = , U UN 0 ON x0 XOIV logic gate logic gate logic logic S SN R RN

AND AND with negative operand (NAND) OR OR with negative operand (NOR) EXCLUSIVE OR EXCLUSIVE OR with negative operand (EXCLUSIVE NOR) Set memory or output if is logic 1 Set memory or output if is logic 0 , Reset memory or output gate is 1 Reset memory or output gate is 0 result of previous result of previous if result of previous if result of previous

C 1.1) No Operation: NOP No Operation design,ates an empty Every memory NOP-command. Command No operation C 1.2) Assignment: = The preceding logic circuit Command Assignment locatiion

memory

location

in the command

memory. by another command, functions as a

in the command

memory

which

is not occupied

Abbreviation NOP

is assigned

to a marker

or output:

a logic sequence

is interrupted. PLC-Programme U El U E2 = M30

Abbreviation =

15

C 1.3) AND-Command: U With the aid of the U-command,

two

input variables

can be gated according

to the logical AND-function

The first input variable is either: the logic result of an imrnediately preceding gating operation or logic 1 in the event of an immediately preceding operation The second input variable is self-addressed with

(II, UN, 0, ON, X0, XON) bluing R, RN, S, SN or =.

the U-command. Symbol PLC-Programme U E27

C 1.4) AND-Command with inverted operand: UN With the aid of the UN-command, two input variables

can be gElted according

to the logical AND-function.

The first input variable is either: the logic result of an immediately preceding gating operation or logic 1 in the event of an immediately preceding operation The second Command !p4;th input variabk is self-addressed with

(II, UN, 0, ON, X0, XON) being R, RN, S, SN or =. and inverted. PLC-Programme ;;;Iq 1 UN E12

the UN-command Symbol 1 Precedirlg

Abbreviation 1 UN

C 1.5) OR-Command: 0 With the aid of the 0-command,

two

input variables

can be gated according

to the logical OR-function.

The first input variable is either: the logic result of an immediately preceding gating operation or logic 0 in the event of an immediately preceding operation The second Command OR input variable is self-addressed * with the 0-commanc. Symbol

(II, UN, 0, ON, X0,

XON)

being R, RN, S, SN or =.

Abbreviation

PLC-Programme 0 E8

16

C 1.6) OR-Command with inverted operand: ON With the aid of the ON-command, two input variables

can be gated accordingly

to the logical OR-function.

The first input variable is either the logic result of an immediately preceding gating operation or logic 0 in the event of an immediately preceding operatior The second Command OR with inverted operand input variable is self-addressed with

(U, UN, 0, ON, X0, XON) being R, RN, S, SN or =. and inverted. PLC-Programme ON El9

the ON-command Symbol

Abbreviation , ON

C 1.7) Exclusive OR-Command: With the aid of the X0-command, function.

X0 two input variables

can be gated according

to the logical Exclusive

OR-

The first input variable is either the logic result of an immediately preceding gating operation or logic 0 in the event of an immediately preceding operation The second Command Exclusive-OR input variable is self-addressed with

(U, UN, 0, ON, X0, XON) being R, RN, S, SN or =.

the X0-command. Symbol rcecing r;,lt 17 PLC-Programme /x0 El 1

Abbreviation 1 X0

Note: An Exclusive OR function generates a logic 1 at the output, when inputs are logic 1 or logic 0, the output generates a logic 0.

only one input

is set to logic 1.

If both

C 1.8) Exclusiv OR-command with inverted operand: With the aid of the XON-command, two input variables function.

XOllN can be gated according

to the logical Exclusive

NOR-

The first input variable is either the logic result of an immediately preceding gating operation (U, UN, 0, ON, X0, XON) or logic 0, in the event of an immediately preceding operaticn being R, RN, S, SN or =. The second input variable is self-addressed with the XON-command Symbol
I t I

and inverted. PLC-Programme XON El4

Commandbbreviation Exclusive command inverted operand OR with XON

Prececling result El4

17

C 1.9) Programming of logic sequences The logic-commands of -the PLC can be arranged Logic sequences are interrupted these commands.

in chains to form a logic seqluence. I?, RN, S, SN or =; a new logic sequence begins after

by the PLC-commands:

C 1.9.1) Logic sequences with U-commands A logic sequence with U--commands effects a series switching This corresponds to an AND-gate. PLC-Programme Gating-logic

of contacts.

These contacts

are normally

open.

Abbreviated Symbol El E2 Al Al

Truth El 0 0 1 1

table E2 -0 1 0 1

Contact

U El U E2 = Al

f \ El E2 A1

Examples: a)

b)
+ 24V

The lamp Ll is connected to the output 43. The closing of the contacts Sl should result In the illumination of the lamp. The contacts are connected to input E27 of the PLC. PLC-Programme: U E27 = A413 efflects the following

The relay Kl should energise, in the event of the contalzts Sl, S2 and S3 closing simultaneously. PLC-Frogramme: U U U = E28 E29 E30 A44

This PLC-programme switching:

The PLC-programme effects a series switching of the contalzts Sl , S2 and S3:

+24V ) +24V

t
Sl \I

I
51 C Ll

18

C 1.9.2) Logical sequences with UN-commands A logical sequence with UN-commands effects a series switcfiing of contacts. closed. This corresponds to an AND gate with inverted operands.

These contacts

are normally

PLC-Programme

Gatitmg-logjc

Abbreviated symbol El

Truth El 0

table E2 Al 0 1 0 1 1
0

Contact example + t E2
Al El

UN El UN E2 = Al

1 -& El ---iv & E2 41 -Al

& E2 ~1I- 1 All

0 0 ti

It can be deduced frorn the truth the mathematical rules governing

table that this logic element Boolean algebra:

is behaving

as a NOR-function.

This also follows

-ii

E=El

E2

Examples:

a)

b)

K17

+ The lamp L31 should S14 is opened. PLC-Programme: illuminate when the contact The relay K17 should only energise when contacts S7, S9 and S16 are open. PLC-Programme: UN UN UN = El3 E28 E63 A58 all three

UN El9 = A53

This PLC-programme

effects

the following

switching:

This PLC-programme

effects

the following

+
switching:
24V

C 1.9.3) Logic sequences with O-commands A logic sequence with O-commands effects a parallel switching This corresponds to an OR-gate. PLC-Programme Gating llogic

of contacts.

The contacts

are normally

open.

Abbreviated

Examples: a)
+24V

b)
+24V

t L t

Lamp Ll is connected to output 43. The closing of contact Sl illuminats the lamp. The contact is connectecl to input E27 of the PLC PLC-Programme: 0 E2;7 = A43

The relay K8 should energise when the contacts S9 or Sl!j or S21 of any combination therefore are simuhaneously closed. PLC-Programme: 0 0 0 = El1 El8 E 29 A32 a parallel switching of

This PLC-programme switching:

effects

the following

This FLC-programme effects contacts S9, S15 and S21:

C 1.9.4) Logic sequence with ON-commands A logic sequence with ON-commands effects a parallel switching closed. This corresponds to an OR-Gate with inverted operarid. PLC-Programme Gating-logic Abbreviated symbol

of contacts.

These contacts

are normally

Truth El

table E2 1 Al

Contact example t
El

ON El ON E2 Yz Al

OEl 13 -----+ t-Al Al

f
E2

ibb?-i

It can be deduced frorn the truth table that this logic element follows the rules governing the Boolean Algebra: -____ E2 = El E2 Fl +

is behaving

21sa NAND-function.

This also

Examples: a)

b)
+2&V

t
rt

1
Lamp 31 should illuminate S14 being open. PLC-Programme: ON El9 = A53 in the event of contact The relay K14 should energise when or both, are open. PLC-Programme: ON E34 ON E48 = Al7 contact S4 or Sl 1,

This PLC-programme switching:

effects

the following

Th s PLC-programme switching:

effects

the following

+2&V

C 1.9.5) Logic sequenlce with XO/XON commands A logic sequence with X0 or XON-commands can, for example, Example: A 3 bit binary PLC-Programme

be used for a parity-check.

number 1

is to be checked

for parity logic

with

the aid of a logic sequence

consisting

of X0-commands

Gating

Truth table Eil -0 0 0 0 1 1 1 1 E2 0 0 1 1 0 0 1 1 E3 0 1 0 1 0 1 0 1 Al 0

X0 X0 X0 =

El E2 E3 Al

The logic sequence The parity-check PLC-Programme XON XON XON = El E2 E3 Al

produces

a logic 1

for odd parity

and a lclgic 0 consisting

for even parity. of XON-commands. Truth EIl -0 0 0 0 1 1 1 1 table E2 0 0 1 1 0 0 1 1 E3 0 1 0 1 0 1 0 1 Al 1 0 0

can also be carried

out using a logic sequence Gating logic

I 0 -1

El -1
=I E2p1

q1
E3-, -AI
L

The logic sequence C 1.9.6) Arbitrary Example:

produces

a logic 0

for odd parity

and a logic 1

for even parity

Programming1 of an arbitrary logic sequence logic sequences may be assembled from various U 0 ON x0 zz E27 El3 E23 El8 A27 effects the following switching:

logic commands

This programme

E27

El3 E23 El8


77

AA27

C 1 .lO) Setting and resetting of a ma.rker With the aid of the command S or SN, a marker With the aid of the command Function Set marker if previous is 1 or output gating result SN R or RN, a marker

can be set, cependent can be rese.:, dependent Symbol

upon the preceding

logic result. logic result.

uipon the preceding PLC-Programme U El U Ml0 S Ml5 U El U Ml1 SN Ml6 U R Ml0 Ml6

1Ybbreviation

Set marker or output if previous gating result is 0 Reset marker or output if previous gating result is 1 Reset marker or output if previous gating result is 0 Examples: a) Setting

RN

U Ml1 RNM15
L

a marker U U u S E25 M33 M61 M300

PLC-Programme:

If input 25 and markers 33 and 61 are logic I, then marker 300 will be set to 1. In contrast to the = - functions, marker 300 remains set even if the logic resul? in the next PLC-programme cycle produces 0. Normally, the marker is reset by the command R or R~\I. b) Resetting

logic

of a memory

location u El8 U E39 R M300

PLC-Programme:

23

C 2) C 2.1) Address

Address allocation User markers:

for PLC-markers Address letter M Description


User markers User markers after a power up. which are available for use iand are reset after powering up

M 0 - M 999 M 1000 - M 1999

which are available for use and remain unchanged in memory interruption. These markers remain unaffected after powering

C 2.2) Address

Markers for the signal exchanges between PLC and NC: Address letter M Description
Markers Markers for signals from the NC to the PLC (NC-cPLC). for signals from the PLC to the NC (PLC-NC).

M 2000 - M 2447 M 2448 - M 3023

C 2.2.1) Marker No.


2000 2001 2002 2003 The markers

Markers for the axis release: X, Y, 2, IV Function


Axis Axis Axis Axis release release release release X Y Z IV

Signal dhection
NC -PL.C

for the axis release are set by the NC-part

as follovls:

Cancel error Dialogue display:

Switch on control: message POWER INTERRUPTED Switch on control vohage

PASS OVER

X/Y/Z/IV-REFERENCE
+

MARK

Start the reference mark iraverse of the first axis (e.g. Z-axis): the axis release marker for this axis will be automatically set by the NC-part of the control.

Start the reference mark traverse of the second axis (e.g. Y-axis): the axis release marker for this axis will be automatically set by the NC-part of the control

I ek.
The axis release markers axes in closed positioning remain set to 1 after traversing loop through the control. over the reference marks, thus keeping the machine

Exception:
The axis release markers are reset should clamp an axis, see section C 2.2.13). a position loop be inhibited by the IPLC-part (e.g. in order to

24

22.2) No.

Markers I

for axes in position: Function

X, Y, 2, IV Signal direction \IC*PLC

Marker 2008 2009 2010 2011

X-Axis in Position Y-Axis in Position Z-Axis in Position IV-Axis in Position

When the axes X, Y, Z or IV have acheived the positioning tolerance (defined as a window in parameters 58 and 192) after a move, the corresponding markers are set to I by the NC-part of the control (this also applies to the condition after power switch-on). When the axes X, Y, Z or IV are moving and are not within ihe positioning-window: are reset to zero by the NC-part of the control (this also applies during the reference Note: The marker X axis in position is not set for contours Setting only takes place: .for discontinuous contours (e.g. internal corners) .with an interruption of the programme run the corresponding markers mark approach procedure).

which

can be machined

at a constant

contouring

speed.

2.2.3) No.

Markers I-

for traverse-dependent Function

lubrication

impulses:

X, Y, Z, IV

Marker 2012 2013 2014 2015

Signal direction necessary exceeded necessary exceeded necessary exceeded necessary exceeded X, Y, Z, IV NC -PLC

Lubrication impulse when traverse limit Lubrication impulse when traverse limit Lubrication impulse when traverse limit Lubrication impulse when traverse limit

The traverse section, after which a lubrication-impulse-marker machine parameter (Machine parameters 159 to 162). When the traverse limit for an axis is exceed, the corresponding by the NC-part of the control. The summation markers. Marker 2548 No. of the traverse sections covered

should

be set, is specified

for each axis as a is then set to I

lubrication-impulse-marker

can be reset to zero by the PLC-programme

using the following

Function The summation of the dependent lubrication in the X-axis The summation of the dependent lubrication in the Y-axis The summation of the dependent lubrication in the Z-axis The summation of the dependent lubrication in the IV-axis traverse to be reset traverse to be reset traverse to he reset traverse to be reset

1Signal direction LC -NC

2549

2550

2551

25

C C

2.2.4) 2.2.4.1) No.

Markers Markers

for M-S-T-Code-Outputs for coded M-S-T-Code Outputs Signal diirection (Isb) NC PLC

Marker 2032 2033 2034 2035 2036 2037 2038 2039 2044 2045 2046 2047

Function 1. 2. 3. 4. 5. 6. 7. 8. Bit Bit Bit Bit Bit Bit Bit Bit T-Code T-Code TCode T-Code T-Code T-Code T-Code T-Code

(msb) for S-Code for M-Code for T-Code for second T-Code parameter 157) (Isb)

Strobe signal Strobe signal Strobe signal Strobe signal (see machine 1. 2. 3. 4. 5. 6. 7. 8. 1. 2. 3. 4. 5. 6. 7. 8. Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit S-Code S-Code S-Code S-Code S-Code S-Code S-Code S-Code

2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2481 2482 2483 2484

(msb)

MCode (Isb) MCode MCode M-Code M--Code M-Code M--Code M-Code (msb) S-Code complete M-Code complete T-Code complete 2nd T-Code complete PLC --w NC

Feedback Feedback Feedbaclk Feedback

The markers for the M-S-T outputs and the markers for the stroise signals are set by the NC part of the control when an auxiliary function (M) coded spindle R.P.M. (S) or too number (T) is programmed. Note: The output

of the S and T-functions

can be suppressed

by machine

parameters

61 and 62. in the following

The programmed and unsuppressed S and T-functions sequence by the NC part of the control: .first the tool number T .finally the spindle RPM S

are, in the event of a tool call, outputted

In the event that an automatic tool-changer with tool magazine is installed, it can be necessary, that after the changing of the current tool, a second tool number is outputted in addition for the next tool. The second T-code can be activated by machine parameter 157 and will be outputted after the feedback first T-code completed (i.e. first tool changed), next tool change. 26 A search can then be made in the tool magazine for the following tool prior to the

The setting and resetting

of the corresponding

markers

proceeds

as follows:

An M, S or T-function is programmed and outputted: The NC part of the control sets the marker for the correspondiing code and afterwards (0 ms or 20 ms delay) for the strobe signal. II

After the PLC programme has recoginised the strobe signal as logic 1, the M-S-T-code must be decoded in the PLC-part of the control and outputted. The NC-part of the control waits for the feedback signal M-S-T-code complete.

After the function has been executed , the Imarker corresponding to the Feedback Aultiliary Function Complete must be set in the PLC-part of ihe control. The NC-part of the control resets the marker for the strobe signal (The markers for the M-S-T-code remain set until the next output of a M-S-T-code).

Note:
The timing for the code output must be implemented output, via the PLC. D 3.

For an example

of the M-S-T-code

please refer to section

27

2.2.4.2) No.

Markers

for decoded

M-Code output Signal direction MOO MO1 MO2 MO3 MO4 MO5 MO6 MO7 MO8 MO9 Ml0 Ml 1 Ml2 Ml3 Ml4 Ml 5 Ml6 Ml7 MT8 Ml9 M20 M21 M22 M23 M24 M25 M26 M27 M28 M29 M30 M31 M32 M33 M34 M35 M36 M37 M38 M39 M40 M41 M42 M43 M44 M45 M46 M47 M48 M49 M50 M51 M52 NCPLC

Marker

Function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliary function Auxiliaxfunction Auxiliary function Auxiliary function Auxiliary function Auxiliary functiqn Auxiliary function Auxiliary function Auxiliary function

1900
1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 915 916 917 918 919

1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952

28

GLYEJLktion
1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary function function function function function function function function function function function function M53 M54 M55 M56 M57 M58 M59 M60 M61 M62 M63 M64

Signal direction
NCPLC

1967 1968 1969

Auxiliary Auxiliary Auxiliary

function function function

M67 M68 M69

1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2496

Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Auxiliary Release M-Code

function function function function function function function function function function function function function function function function function function function function function function function function function function function function marker for output

M72 M73 M74 M75 M76 M77 M78 M79 M80 M81 M82 M83 M84 M85 M86 M87 M88 M89 M90 M91 M92 M93 M94 M95 M96 M97 M98 M99 decoded

If the marker 2496 is set, the programmed M-functions are clutputted in decoded form via markers 1900 to 1999. The release marker 2496 is necessary since the markers I.900 to 1999 are located within the range of user markers. If markers 1900 - 1999 are required for other functions, marker 2496 must be reset.

2.2.5) No.

Markers

for alnalogue output

of the spindle

speed Signal direction NC-+PLC

Marker 2004

Function 0 The drive 1 The drive means: analogue voltage for the spindle is located in the ramp means: analogue voltage for the spindle is 0 V

2005

2043

Strobe signal gear range code (G-Code) for S-Analogue output 1. Bit gear range code for S Analogue (Isb) 2. Bit gear range code for S Analogue 3. Bit gear range code for S Analogue (msb) Feedback gear range code for S analogue complete Status display and sign of the analogue output M 03 Status display and sign of the analogue output M 04 Status display M 05 Inversion of analogue voltage. The polarity which has been determined by MP172 is reversed. Spindle CW for gearchange Spindle CW for gearchange PLC --NC

21 04 21 05 21 06

2480 2485 2486 2487 2489

2490 2491

The spindle speed gear ranges are specified via machine parame.ters (MP78 - 85) when the spindle speed is selected (S-analogue is activated via machine parameter 62).

an analogue

output

for

30

When a spindle

speed requiring

a new gear range, is programmed,

the markers

will be set as follows:

A new gear range is necessary: the analogue voltage for the previous spindle speed is reduced -10 0, the control sets the markers for the gear range code and then (0 or 20 ms delay) the marker for the strobe signal.

c After the PLC-programme has recognised the strobe signal as logic I, the gear range code must be decoded in the PLC-part of the control and output. The NC-part of the control waits for the feedback gear code complete.

+ An analogue voltage can be output for changing gear. For this purpose the markers 2490 and 2491 must be correspondingly set in the PLC-part: the markers initiate the rotation of the spindle in a clockwise (marker 2491) or in an anticlockwise (marker 2490) direction, the analogue voltage level is set in machine parameter 70. The markers 2490 and 2491 will be referred to by the NC-part of tt-e control only during the output of the G-strobe signal.

i the gearchange is complete, marker 2480 for the feedback signal must be set by the PLC-programme. The direction of rotation of the spindle is determ ned in the PLC-programme by markers 2485 to 2487. The status clisplay M 03, M 04, and M 05 is generated in the VDU-screen, simultaneously with these markers. After

After the gearchange is complete, parameters 86, 87,88, 89). For an example of the programming

the control

outputs

the relevant

analogue

voltage

(determined

by machine

of the analogue

spindle speed, please refer to section

D 3.

2.2.6) No.

Marker

for tapping Function Tapping

cycle Signal direction

Marker 2048

cycle is called-up

NC-PI-C

If the tapping

cycle is called, 1

is set for marker

2048.

2.2.7) No.

Markers

for the currently Function Currently button X Currently button Y Currently button X Currently button IV activated activated activated activated

activated

axis button:

X, r, Z, IV

Marker 2096 2097 2098 2099

Signal direction TNC-axis TNC-axis TNC-axis TNC-axis NC -mPLC

These markers identify the currently activiated on the VDU-screen in reverse image (e.g.

TNC-axis ).

button:

The corresponding

symbol An external for external

will be displayed handwheel control operation of the

These markers can, for example, be employed for an external handwheel display. panel can be implemeted by using these markers in conjunction with the markers TNC-buttons (see section C 2.2.17).

C C

2.2.8) 2.2.8.1) No.

Markers Markers

for selected

operating

mode

for operating

mode-code Signal direction

Marker 2176 2177 2178 2179

Function 1. Bit code 2. Bit 3. Bit 4. Bit code for the (Isb) for the for the for the (msb) operating operating operating operating modemode-code mode-code mode-

NC -+PLC

The operating follows: 0000 0001 0010 0011 0100 0101 0110 = = = = = = =

mode code is determined

by the selected

operating

mode. The operating

modes are coded as

Programme entry and editing Manual operation Electronic handwheel Single block positioning with Program run, single block Automatic programme run Programme test

MDI

C 2.2.8.2) Marker 2050 2051 2052 2053 2054 2055 2056 2057 Markers 32 No.

Markers

for the decoded

operating

mode-code Signal direction NC -PLC

Function Programme entry and editing Manual operation Electronic handwheel Single block positioning with Programme run, single block Automatic programme run Programme test Approach to reference point

MDI

2050 to 2057 depend on the operating

mode which

ha:; been selected

2.2.9) No.

Markers

for the first Function

PLC-program

cycle after power

on and after interruption

of PLC-programme

Marker

Signal direction cycle after a

1. PLC-programme

Marker Marker

2180 is set at logic 1 only during the first PLC-prclgramme-cycle after a power on. This also applies to 2185 during the first PLC-program-cycle after an interruption of the PLC-programme.

2.2.10) No.

Markers

affected

by machine

parameter

158 Signal direction


I

Marker 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207

Function
I I

Value 1 Value 2 Value 4 Value 8 Value 16 Value 32 Value 64 Value 128 Value 256 Value 512 Value 1024 Value 2048 Value 4096 Value 8192 Value 16384 Value 32768

NC -cPLC

Markers utilised various ranges, for the

2192 to 2207 can be set or reset via machine parameter 158. The contents of these markers are to activate various PLCprogramme routines. It is therefore possible to employ one PLC-programme for machines. In the event, for example, that machines of a particular series are fitted with different gear a common PLC-programme can be employed for these machines. The different PLC-programme routines decoding the gear ranges are selected by appropriate entry values in machine parameter 158. are simply added and the resultant numeric value is

The value of the markers which are to be set for a machine entered in machine parameter 158. Example: The marker follows: Marker Marker Marker Entry

2193, 2199 and 2206 should

be set. The entry

value for machine

parameter

158 is established

as

No. 2193: No. 2199: No. 2206: value

Value Value Value

2 128 16 384 16 514

Note: These markers should not be set in the PLC-programme. place via machine parameter 158.

Seiting

and resetting

should,

without

exception,

take

2.2.11)

Markers

for inhibiting

buttons

2856 2857 2858

q 0
y F! / m

Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit

button button button button button button button button button button button button button button button I I I I

2859
2860 2861 2862 2863

IYY
1 I@1

Il-Tl IP IO

Inhibit I /MODI Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit

I III
2868 2869 2870 2871 2872 2880

?I

EiJ cl

q
9

Ej)

IT

u rl

,E: Inhibit

1 IR$IInhibit I ItI Inhibit


2885 2886 2887 2888 2889 2890 2891 2892

button button
I

Ii

I-

* *

Inhibit Inhibit

button button button button button button button button

u l-3
q
$k 0 2: E akd

,,F Inhibit Inhibit Inhibit

0 bIkL Inhibit Inhibit Inhibit

34

Marker 2893 2894 2895

No.

Function

Signa I direction button button button button button button button button button button button button button button button button button button button button button button button button button button button I PLC--NC

ID lu
z

EXT Inhibit &,, Inhibit Inhibit Inhibit

2896

la
2898 2899 2900 2901 2902 2903 2904 2905 2906

ENT Inhibit
TO

GO q
m & CE IV Z

Inhibit Inhibit

q q q
0 X

Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit Inhibit

Y q q q
Q

2907
2908

n0
ril

2909
2910 2911 2912 2913 2914 2915 2920 2921 In

04

q 7
Cl . 02

q
5 08 niD

Inhibit Inhibit

2922
2923

IO
g

Inhibit

The buttons on the TNC front panel can be inhibited by setting the corresponding markers. When an inhibited TNC-button is pressed, the NC-part signals this by setting the marker 2182. This marker must be reset again by the PLC-programme.

C 2.2.12) Marker 2183 2184 2190 2191 2815 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 ?957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 No.

Markers

for control

status

and error

messages Signal direction NC -cPLC

Function Program interruption (Display: Control in ope<ation flashing) Control in operation (Display: Control in operation either on or flashin< Eraseable error message is displayed Error message: External emergency stop is dkplayed Flashing error message from PLC Error message 0 from PLC to be displayed in VDU-screen Error message 1 Error message 2 Error message 3 Error message 4 Error message 5 Error message 6 Error message 7 Error message 8 Error message 9 Error message 10 Error message 11 Error message 12 Error message 13 Error message 14 Error message 15 Error message 16 Error message 17 Error message 18 Error message 19 Error message 20 Error message 21 Error message 22 Error message 23 Error message 24 Error message 25 Error message 26 Error message 27 Error message 28 Error message 29 Error message 30 Error message 31 Error message 32 Error message 33 Error message 34 Error message 35 Error message 36 Error message 37 Error message 38 Error message 39 Error message 40 Error message 41 Error message 42 Error message 43 Error message 44 Error messaae 45 Error message 46 Error message 47

LC -cNC

36

Marker No. 2972


2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 299 1 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008

Function
Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message message 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 from

I Signal direction
PLC+NC

3009
3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023

PLC to be displayed

In VDU-screen

Display: Control in operation The initial program status is displayed

in the VDU-screen

of the! TNC 150 via the symbol

# (see illustration).

The NC-part of the control signals a program interruption to the PLC via marker 2183 (display flashes).The initial status is signalled via the marker 2184 (display on or flashing). When both markers are reset, the program run has been terminated. Error message NC -+PLC When an eraseable error message is displayed in the VDU, the N Z-part of the control sets the marker 2190. When the error message EXTERNAL EMERGENCY STOP is displayed, the NC-part of the c\ontrol sets the marker 2190 and 2191. With flashing error messages from the NC, the program run of the PLC is halted and the PLC-outputs set to 0. Error messages PLC -NC The NC-part of the control can display error messages from the PLC-part. The PLC-error messages are selected via markers 2924 to 3023. The error messages are coded from 0 - 99. When a marker for a PLC error message is set, the following error message is displayed, e.g. PC : ERROR 58 of the control

on the VDU-screen

Plain language error messages can also be displayed instead of tt-e coded error messages (e.g. Oil pressure too low). The error messages 0 - 34 may have max. 32 characters; the error messages 35 - 99 max. 16 characters. Should you require specific plain language error messages, please contact your nearest HEIDENHAIN agency. The setting of the marker 2815 results in the markers 2924 to 3023 being checked. If one of these markers is set, then the error message will be shown as a flashing display. Should none of the markers for the PLC-error messages be set, then EMERGENCY is shown STOP PC display.

as a flashing

38

2.2.13) No.

Markers

for inhibiting

the Servo Loop Signal direction

Marker 2492 2493 2494 2495 2544 2545 2546 2547

Function Enable Enable Enable Enable Open Open Open Open the the the the servo servo servo servo loop loop loop loop for for for for the the the the X-axis Y-axis Z-axis IV-axis

PLC-cNC

X-axis servo loop Y-axis servo loop Z-axis servo loop I V-axis servo loop -

Operation with open loop control (after a positioning proceclure) generally implies a longer delay irrswitching axes over. Since these delays are unnecessary for machines with permanently activated live servo control loops, the marker Enable Servo Loop (markers 2492 to 2495) hzs been made available. Only when these markers are set, does the NC-part of the control wait for the PLC-signal Open Servo loop (markers 2544 to 2547), when the marker Axis in Position (markers 2008 to 2011) from the NC-part of the control has been set. In operation without Enable place as quickly as possible. Opening of Control Loop, the switching over from one axis to another takes

Note: If the marker for Enable opening the markers 2544 to 2547. Should a control

of Control

Loop

has not been set, the control

loop cannot

be opened with

loop be opened (e.g. for cla.mping

of axes), the markers

are set as follows:

Set corresponding

enable marker

2492 to 2495

The axis is in position (marker 2008 to marker 2011) and the control loop should be opened: corresponding markers 2544 to 2547 must be set

Control

loop should be closed again markers 2F!44 t!i

reset corresponding

2.2.14) No.

Markers

for transfer

of actual

position

values as nominal

values (Teach-in)

Marker 2552 2553 2554 2555

Function Teach-in Teach-in Teach-in Teach-in for for for for position position position position loop loop loop loop X-axis Y-axis Z-axis IV-axis

Signal direction PL.C t NC

If the appropriate a nominal value. Note: Teach-in,

markers

2552 to 2555 are set to logic I,

the momentary

position

value is transformed

into

is only possible

in the manual operating

mode.

39

2.2.15) No.

Markers

for external

buttons

and switches irror A E3 C message Signal direction PLC -NC

Marker 2448 2449 2450 2451 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2472 2473 2474 2475 2476 2477 2478 2479 2488 2556 2557 2558 2559

Function NC-Start NC-Rapid Latching function Feed release Manual traverse Manual traverse Manual traverse Manual traverse Manual traverse Manual traverse Manual traverse Manual traverse

for Manual X+ XY+ YZ+ ZIV+ IV-

traverse

Complemented NC-Start Complemented NC-Rapid Override Complement latching Function for manua traverse Complemented feed release Complemented manual traverse X+ Complemented manual traverse XComplemented manual traverse Y+ Complemented manual traverse YComplemented manual traverse Z+ Complemented manual traverse ZComplemented manual traverse IV+ Complemented manual traverse IVNC-Stop Reference Reference Reference Reference (0 end end end end corresponds position position position position for for for for to Stop) the the the the X-axis Y-axis X-axis IV-axis

Important

functions

are cortrolled

via marker

and complementary

markers. and

The signals from external buttons and switches must set the corresponding markers in the PLC-programme generate the complemented markers with the inverted information in the same PLC-cycle. Should both markers not be correctly set or reset, then the flashing message ERROR IN PC-PROGRAM A/B/C ...

is displayed. The displayed Example: The NC-start U = UN = El8 M2448 El9 M2464 letter A, B, C etc, indicates at which marker the iaul lies (see list above).

button (first

is provided contact

with

two

normally

open contacts.

The markers

are then set as follows:

of the NC-start-button)

(second

contact

of the NC-start-button)

40

If only one NC-Start u = UN = El8 M2448 El8 M2464

contact

exists, button)

the programme

may be written

in the following

way:

(NC-Start

(NC-Start

button)

The following u = El8 M2448

program

is wrong button)

and should

not be implemented

(NC-Start

UN M2448 = M2464 A defect in the memory cell M 2448 cannot be recognised with this method of programming!

2.2.16) No.

Markers

for the PLC-Positioning Error message E -t F G H Signal direction PLC -NC

Marker 2452 2453 2454 2455 2468 2469 2470 247 1 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579

I 1

Function

Start PLC-positioning X axis Start PLC-positioning Y axis Start PLC-positioning Z axis Start PLC-positioning IV axis Complemented* start PLC-positioning X axis Complemented* start PLC-positioning Y axis Complemented* start PLC-positioning Z-axis Complemented* start PLC-positioning IV axis PLC-positioning X axis (Isb) PLC-positioning X axis PLC-positioning X axis PLC-positioning X axis PLC-positioning X axis (msb) PLC-positioning Y axis (Isb) PLC-positioning Y axis PLC-positioning Y axis IPLC-positioning Y axis IPLC-positioning Y axis (msb) IPLC-positioning Z axis (Isb) IPLC-positioning Z axis IPLC-positioning Z axis IPLC-posrtioning Z axis IPLC-positioning Z axis (msb) IPLC-positioning IV axis (Isb) ILC-positioning IV axis ILC-positioning IV axis ILC-positioning IV axis ILC-positioning IV axis (msb)

Thirty-one position values can be programmed via machine parameters 126 to 156. These positions can be called up via the PLC-program, e.g. for the approach to a tool-change position. The markers for the PLC-positioning are only acted upon during the output of a G-M-S-T-strobe signzil. Note: Software limit switches are not taken into account .Tool compensations are not considered. .A PLC-positioning procedure automatically ends path compensation.

*For

programming

of the complement

marker

please refer to section

C 2.2.15.

42

The PLC-positions PLC-Code 00000 00001 00010 00011 00100 00101 001 IO 00111 01000 01001 01010 01011 01100 01101 01110 01111 10000 10001 10010 10011 10 100 10101 10110 10111 11000 11001 11010 11011 11100 11101 1 1 1 10 Note: PLC-code

are coded as follows: calls-up 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148. 149 150 151 152 153 154 155 156 * mark as PLC-position. is programmed as follows: the Position in Machine Paramete,,

11111 addresses

the reference

A PLC-positioning

(e.g. for the X-axis)

Call-up
I

PLC-position during a TOOL CALL setting the markers 2560 to 2564


I

output

by
I

t Start the PLC-positioning by setting the marker 2452 and resetting the complement marker 2468

If the PLC-position is reached, the NC-part of the control then resets the marker 2452 start PLC-Positioning

Note: The feedrate for the PLC-positioning is specified in machine parameters 163 to 166. In the event of simultaneous PLC-positioning (up to 3 axes), the PLC-positions will be approached in a straight line at the lowest of the specified feedrates.

2.2.17) No.

Code for the external Function 1. Bit 2. Bit 3. Bit 4. Bit 5. Bit 6. Bit 7. Bit 8. Bit Strobe

selection

of TN&buttons Signal direction (Isb) PLC --NC

Marker 2800 2801 2802 2803 2804 2805 2806 2807 2808

TNC-button-code TNC-button-code TNC-button-code TNC-button-code TNC-button-code TNC-button-code TNC-button-code TNC-button-code for button-code on the front

(msb)

Each button operation the TNC-button-code.

panel of the TNC can be simulated

by an external

signal via the markers

for

44

The buttons

are coded as follows:

Button

Code
0011 1011 1100
1101

Button

Code
0110 0110 0000 0001

cl Y

0011
0011

Ll Cl -E$>
STO

Cl
CL PGbl

cc r-l -+

0011 1110 0011 1111 0100 0000

)%
C

w
M

0100 0001
I

Cl
GO TO

0110 0110

lo100

0010

10100 0011

u
I

I0100

0100

Cl CE: Cl IV El
m -

0110 1001 0110 1010 0110 1011 0110 1100 0110 1101 0110 1110 0110 1111 0111

fl Cl

01001000
0100 1001 0100 1010 0100 1011 0100 1100

cl @
cl a3 cl 3

Cl X

El

TOOL DEF

0101 0100 0101 0101

cl R'

0101 0110 0101 0111

Cl 0 Cl 1 El
Cl 2

0000

0111 0001

Jt) T;11

0101 1000 0101 1001 0101 1010 0101 1011' 0101 1100 0111 0100 0111 0101 0111 0110 0111 0111 0111 1100

El

El
El Cl 'iO --

cl
SET LBL

0101 1101 0101 1110 0101 1111

+ El

2.2.18) No.

Markers

for transfer Function 1. 2. 3. 4. 5. 6. 7. 8. 1. 2. 3. 4. Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit Bit for for for for for for for for for for for for

of machine

parameter

Limitation

rpm-code

into the PLC-programme

Marker 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091

Signal direction min. min. min. min. min. min. min. min. step step step step rpm (Isb) rpm rpm rpm rpm rpm rpm rpm (msb) width width width width (lsb) PLC --NC

(msb)

The minimum rpm and the step width from the machine meter 63) is transferred into the markers 2080 to 2091.

paran-eter

limitation

of rpm-code

(machine

para-

2.3)

PLC-Inputs

and PLC-Outputs:

Address

letters

E, A

Ncte: Before each PLC-cycle, all inputs are read-in and stored for further processing; the outputs are outputted after the complete program run. Refer to section B 2.3 for technical data on in- and outputs. C 2.3.1) Summary The following inputs Address EO - E62 E63 E64 - El26 El27 PL 100 B A0 - A30 A31 A32 - A62 A63 PL 110 B A0 - A24 A25 - A30 A31 A32 - A56 A57 - A26 A63 PLC-outputs on the first PLC-board, bipolar outputs on the first PLC-board internally wired on the first PLC-board PLC-outputs on the second PLC-board, bipolar outputs on the second PLC-board, internally wired on the second PLC-board PLC-Outputs for first PLC-board, internalI{ wired on the first PLC-board

and outputs Meaning

are available:

PLC-inputs on the first PLC-board, internally wired on the first PLC-board PLC-inputs on the second PLC-board, internally wired on the second PLC-board

PLC-Outputs

for second

PLC-board

internally

wired

on the second

PLC-board

46

The following Input EO El E2 E3 E4 E5 E6 E7 E8 E63 El27

inputs

and outputs Function Reference Reference Reference Reference Reference Reference Reference Reference Feedback Overload Overload

are reserved

and cannot

be freely

allocated:

End End End End Pulse Pulse Pulse Pulse

Position Position Position Position Inhibit Inhibit Inhibit Inhibit

X Y Z IV X Y Z IV Stop stage on the iirst PLC-board stage on the second PLC-board (internally (internally wired) wired)

Emergency

of a PLC-output of a PLC-output

Cancellation Cancellation

of the overload-condition of the overload-condition

on the first PLC-board (internally wired) on the second PLC-board (internally wired)

Note: Input E8 Feedback Emergency Stop! The NC-part of the TNC 150 receives this signal direct from input E8, it is not processed Nevertheless, the status of the feedback can be interrogated in the PLC-programme.

by the PLC.

C 2.3.2) Bipolar PLC-outputs for PL 110 B The PLC-input/output board PL 110 B is equipped with bipolar The following output pairs are on the first PLC-board: A25, A26 A27, A28 A29, A30 On the second PLC-board: A57, A58 A59, A60 A61, A62 The programming is acheived as follows: for the output stages A25, A26 Output Output Output Output Circuit A25 set A26 reset A25 reset A26 set example: * ---+ B w Output Output Output Output A25 + 15 V A26 0V A25 0V A26 + 15 V

output

stages for the control

of D.C. motors.

Bipolar

outputs

when using bipolar

outputs

as binary outputs

+-T----r
A ... Lov

!kk

Output overcurrent protection for the bipolar outputs The output for the overcurrent protection is set to logic 1 if the summation of the three bipolar output currents exceeds 0.8 - 0.9 A. This signal cannot be directly interrogated via the PLC. For the overcurrent protection to be evaluated, this output should be connected to a PLC-input. Note: Reaching the current limit according to requirements.

of 0.8 - 0.9 A indicates no error message! This signal must be processed

C 2.3.3) Output Emergency Stop The internal Emergency Stop signal is not processed by the PI-C. The output is set directly by the NC-part of the control in order to minimise any delay. The sequence of the emergency stop routine on powering up the control (i.e. checking the emergency stop contact with the aid of the input E8 Feedback Emergency Stop) is described in the interface description for the TNC 150. These monitoring routines must not be implemented in the PLC-programme, as the signal from the input E8 is interrogated directly by the NC-part of the control. Note: If two PLC-boards are connected to a control, it is sufficient when the emergency Feedback signal emergency stop input are wired on board.

stop output

and the

48

C 3)

Counters
through two be interrogated the entry value counter status

The PLC in the TNC 150 has 16 counters at its disposal, each of the 16 counters being controlled special markers with the identification Z. Whether or not the counter status has reached 0 can by the use of an additional marker, also represented by the identification Z. The counter is set to programmed in the corresponding machine parameter (max. 65535) and counts backwards to the 0. The counter is decremented by 1 with every cycle of the PLC-programme (20 ms).

Function
Set Counter

Marker
zo-215

identification

Remarks
Through the assignment of a logic 1 , the corresponding courter will be set to the preset value in the machine para-neter. The assignment of the logic 1 must only exist for one PLC cycle, otherwise the setting will be repeiated at each subsequent cycle. The marker 248 - 263 corresponding to the counter ZO to Z 15 is at logic 1 when a counter has been set. The tour ter has been set. The counter status can be interroga.:ed via 248 to 263. On reaching the counter status 0 the marker for the counter status is set again to logic 0. Note: For the duration of the first program cycle after the setting of the counter, the corresponding marker 248 to 263 remains at logic 0. The counter will be decremented by 1 if the corresponding marker has a logic state 1 at the end of a PLC-cycle. In the event of the corresponding marker havii?g a logic state 0 at the end of a PLC-cycle, no decrement occurs.

Counter not equal to 0

248 - 263

Counter release

impulse-

Z96 - Zlll

Impulse

diagram
machine parameter 5 13 has been set to 5 (e.g. machine 2 2
10

The corresponding Counter status

parameter

94)

Set counter Lm Counter status not equal to zero

#14

Counter impulse release


l&O 160 180 200

t cm51

Relationship

of the counter-markers

to the machine

parameters

C 4) Timers The PLC in the TNC 150 has 16 timers at its disposal. The start of each of the 16 timers is controlled by a special marker with the identification T. The timers time out from the times programmed in the corresponding machine parameters. The unit of time is 20 ms (max. 65535 units programmable). An additional special marker with the identification T enables Timer running to be interrogated. Function Timer start Marker identification Remarks Through the assignment of a logic l, the corresponding timer will be set to the preset value in the associated machine parameter and started. The assignment of the logic 1 must only exist for one PLC cycle, otherwise the setting will be repeated on each subsequent program cycle. The marker T48 to T63 corresponding to the timer TO to TI 5 is at logic I, when a Timer has been set. The status Timer running can be interrogated via T48 to T63. On the timing out of the timer, the marker Timer running is set again to logic 0. Note: For the duration of the first program cycle after the sl?tting of the timer, the corresponding marker T48 to T63 remains at logic 0.

TO toT31

Timer

running

T48

to T79

lmpuls diagram ; (e.g. machine parameter 110)

Relationship Timer start Timer running

of the markers: TO T48 Tl T49 T2 T3 T4 T52 T5 T6 T7 T55 T8 T56 T9 TIO Tll T59 T12 T13 T60 T61 122 T14 T62 Ti5 T63 125

T50 T51 112 113

T53 T54 116

T57 T58 119

Machine parameter Timer Timer start running

110 111

114 115

117 118

120 121

123 124

T16 T64

T17 T18 T65

T19

T20 T68

T21 T22 T69

T23

T24 T25 T72

T26

T27 T75 204

T28 T76 205

T29 T30 T77 T78 206 207

T31 T79 208

T66 T67 195 196

T70 T71 199 200

T73 T74 203

Machine parameter

193 194

197 198

201~202

C 5) Macro-programmes The TNC 150 Q can be equipped Exact information concerning

for customer-specific

macro-programmes from

e.g. for aiding a toolchanger

macro-programs

can be obtained

HEIDENHAIN.

C 6) Selecting and exiting The TNC 150 control offers

from the PLC-modes the possibility of programming

and the subsequent

testing of the PLC program.

Press

MOD 0

Select the MOD-mode by pressing

Code rfl .

number

I
I
I
The mode buttons

Enter code

number

95 10 26 and press

q
le3)

The control

automatically display:

switches TABLE

to the E/A/Z/T/M

mode

Dialogue

select the following

PLC modes:

Table E/A/Z/T/M a+ McpCEl PLC Programme PLC Programme

(see section Trace Editior

C 6.3) C 6.2) C 6.1)

(see section (see section

The PLC modes are exited

by pressing

C 6.1) PLC Programme editor: Select the PLC Programme editor

PCE button L-l mode with the

pee 0

button.

The VDU

displays

the following:

In this mode, the PLC programme can be compiled and edited. When compiling the PLC-programme at the control, the PLC-programme is stored internally in RAM (Random Access Memory). A PLC-programme can be copied from the control onto a ME 1~31/102 cassette or directly into an EPROM programming unit. A master EPROM with the PLC-programme is compiled by HEIDENHAIN from the magnetic tape containing the PLC-programme. Programme administration is also carried out by HEIDENHAIN. In the control, there is a socket provided for the EPROM . Machine parameter 77 selects whether the machine should utilised the PLC program in RAM or EPROM. For editing purposes, a program can be copied from EPROM ini. RAM.

Machine Parameter 77 Entered value 1: The PLC-programme Entered value 0: The PLC-programme

is stored is stored

in the EPRON area. in the RAM area.

Note: The PLC-programme in the RAM-memory is checked erased and the following error message is displayed: PC: PROGRAM MEMORY ERASED

after control

switch-on.

An erroneous

programme

is

52

C 6.1.1) Keyboard layout for PLC-programming If the control mode PLC program editor is selected, some of the buttons on the front panel are assigned as PLC programming functions. A PLC-programming keyboard foil showing the appropriate button designations forms part of this manual.

COPY

HEIDENHAIN TNCISO . a

C 6.1.2) TNC-Symbol

Button

functions PLC-Symbol PLC-Function When

q q GO q 4 q t q q
CL PGM DEL 0 TO DkZF

q q GO u 4 q t q
CL PGM DEL 0 TO

IS a Iso p ressed, the PLC-program PLC-cc,mmand (VDU blank) and

is erased

Clears the actual

If an additional numeric respective PLC-commanld Selects the following Selects the previous

value (0 .. . 2047) is selected

is pressed,

the

PLC-command PLC -command (EPROM) into RAM

COPY

Transfers as necessary and available PLC-programme after additional press of ENT -key. kzl Input/Output of PLC-pr<Igrams to Cassette

(ME) or printer

Exits from the PLC-editor

into normal NOP.

NC operation

q q q q q

STOP

CYCL DEF TOOL DEF CYCL CALL TOOL CALL

El
q
LBL SET

R-' q

q q q 0 q ON q x0 q XON q = q S q SN q
NOP U UN

Enters the PLC-command

The description

of the PLC-commands

can be found

in section

C 1

The following buttons pr.ovide the PLC commands with the operands. Terminate operand input with the button or by entering the next PLC-command.

Input; Output;

plus the necessary plus the necessar-y plus the necessary plus the necessary plus the necessary

numeric numeric

value (0 value (0

. 125) . 63)

q
2

Counter; Timer; Marker;

numeric numeric numeric

value (0 . . 15) value (0 . . . 31) value (0 3023)

54

6.1.3)

Programming

PLC-commands

Control

in PLC

program

editor

mode

~~~~~~LLJ~~
(Pushbutton Press operand Pushbutton button layout

Commence

input by pressing

a PLC instruction

button

or q .

layout, t

see section

C 6.1.2)

L2Immxlm (see section t C 6.1 .l and C 6.1.2)

Enter numeric operand entry

value:

keys

10..

. Terminati&

of

by pressing

q
Press .

or entry

of next PLC-command.

Programming

the NOP PLC-command:

El

NOP

Note: Free command

lines are displayed

on the VDU

as NOPs.

6.1.4)

Call-up of a specific

PLC-command

Press the Dialogue display:

j GOT0

button PGM-LINE = 0

01..

Enter numeric entry with

value:

buttons button. (permitted

.m

and terminate

values 0 - 2047)

The entered

block

is displayed.

C 6.1.5)

Sequential

checking

of PLC commands

Select the command

number with

from which the ;; Cl

the programme button

is

to be checked

With the Cursor Key forwards or reverse

C 6.1.6)

Deleting

PLC-commands
Select the line number of t7e command to be deleted.

C 6.1.7)

Entering

PLC-commands

into an existing

programmt!
which the the additional ro button.

Select the command,

behind with

is to be entered

1;0 r1

command

Enter new command

and store.

C 6.1.8)

Deleting

a PLC-Programme

Press the

button

NO

Dialogue

Request

YES

ERASE

PC-PROGRAM

1
Press I:& El button Press @

t
button

56

C 6.1.9)

Transfer

of a programme

from

the main memory

into the read/write-store

NO

Dialogue

quesion: YES

6.1.10)

Input/Output

of PLC-programmes

on magnetic

tape? or printer

Switch

on peripheral

unit ant cipress

External output

External input

With external

data output,

the following

dialogue

questions

arc! posed:

,
Data output Press with binary cg I Dialogue display: characters: Data output Press with -button

!
ASCI l-characters: 10
ENT

-button

EXTERNAL

DATA OUTPUT

Data transfer

is started

Dialogue

question:

OUTPUT

FROM PGM-LINE
ENT -button Dl

=0

Enter block

No. and press

c
question:

Dialogue

OUTPUT

TO PGM-LINE

=0

Enter block

No. and press

c
Dialogue

ENT

-button

display: EXTERNAL DATA Data transfer is started

INPUT

YES

Press

q -button +
Di; logue display:

EXTERNAL

DATA

OUTPUT

58

With external

data input,

the following

dialogue

questions

are posed:

Data input with

ASCI l-characters

Data input with

binary

characters

C ialogue question: C I Dialogue display: EXTERNAL DATA Data transfer is started Enter block 1 INPUT

INPUT

FROM

PGM-LINE ENT -button 101

= 0

No. and press

6.2)

Operating

mode PLC-Programme PLC-Programme

trace function: trace-function

PCT -button the mode-key H .

Operating

mode selection display

by the pressing

The following

appears on the VDU

In this mode, the function of the PLC-program can be checked in the RAM-memory. commands, the logic state of the operands and gating results are displayed.

In addition

to the PLC-

6.3)

Operating

mode Table display shows

E/A/Z/T/M:

Select the Operand The VDU-display TABLE E/A/Z/T/M

mode by pressing dialogue:

TAB -button L-l TAB -button the I

(see section

C 6).

the following

By pressing Inputs outputs Counters Timers Markers are displayed

the respective : : : : :

operand

button,

the states of all the

q q
z El

E -button

A -button -button -button -button

q
r 0
M

on the VDU.

Note: .If a change to some other display press the D; -button. cl .The cursor buttons video on the VDU-display,

mode or operating

mode from an operand

display

mode is required,

first

q .mandm.m

enable a specified operand to be highlighted in order that the logic state of an operand can be easily observed.

in inverse

.Marker logic state display: As only 120 markers can be displayed selects some other marker range. The VDU-displays the following

simultaneously,

the

i, -button 11

and the entry

of a numeric

value

(e.g. the logic input states)

C 7) Off-line PLC,programming An off-line programming terminal is not currently available frown HEIDEN mation as to the format of the PLC-commands so that off-line programmir terminal for the HEIDENHAIN-PLC if they so wish. Note: With external programming, by the character * i . 60

HAIN. This section provides inforlg terminal suppliers can develop a

comments

following

PLC-commands

must be separated

from the PLC-command

C 7.1) PLC-command format Every PLC-command requires a 16 bit word i.e. 2 bytes are defined in the PLC-command memory. An command consists of a 4 bit PLC-operation code and the 12 bit PLC-address. The PLC-operation code defines the binary instruction and the PLC-address calls a memory location for the operands which are to be processed. Lower EPROM addresse.g.addressOjHigher EPROM address 3.g. address 1

4 Bit PLC-operation C 7.2) PLC-Operation

code

IFBit P LC-Add ress

codes for PLC-Commands PLC-Operation 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 11111 code

Abbreviation NOP U UN 0 ON x0 XON S SN R RN = NOP C 7.3) PLC-Address

for PLC-Commands PLC-Address 000 - CCF CD0 - D4F E50 - E8F (Hexadecimal)

Abbreviation MO - M3279 EO - El27 AOm- A63

C 7.4) EPROM The PLC program Addresses: PLC-Operand P LC-Add ress PLC-Operand P LC-Add ress PLC-Operand P LC-Add ress I

Address list is stored in an HN2764

EPROM

1 msb - PLC-Address Isb msb PLC-Address 1 Isb 1 msb - PLC-Address Isb

EPROM-Address EPROM-Address EPROM-Address EPROM-Address EPROM-Address EPROM-Address

0 1 2 3 4 5

PLC-Operand 1 msb - PLC-Address P LC-Add ress Isb Internal P LC-software

!PROM-Address !PROM-Address

4094 4095

EPROM-Address

8191
61

D)

Standard

TNC 150 B/TNC

150 0 PLC-program

The TNC 150 B control has interfacing interface is achieved by a PLC program.

has for an external

description1 mahine

interface

(similar

to the TNC 145 C). This

The TNC 150 0 control is supplied with an external PLC-board. specific PLC-program is defined by the machine tool builder.

The definition

of the inputs

the outputs

and the

In order to simplify the first commissioning of the TNC 150 Q, the PLC-program programmed into the PLC program EPROM. This program must be exchanged for the specific machine tool builders program. The following description covers the standard stored PLC program

for the TNC

150 B is

for the TNC 150 B/TNC

150 Q controls.

D 1)

Address list Outpu? address


REF end position X REF end position Y REF end position Z REF end position IV REF inpulse inhibit X REF inpulse inhibit Y REF inpulse inhibit Z REF inpulse inhibit IV EMERGENCY Stop feedback Direction button X+ Direction button XDirection button Y+ Direction button YDirection button Z+ Direction button ZDirection button IV+ Direction button IVMiscellaneous function complete Feed enable Manual pressed Internal link to output 6 Rapid button Start button Stop button 0 1 2 3 4 5 6 -__ 7 8 9 10 11 12 13 14 15 16 feedback 17 18 19 20 21 22 X axis enable Y axis enable X axis enable IV axis enable Control in operation Control in automatic Spindle on control M-S-T code Bit 1 M-S-T code Bit 2 M-S-T code Bit 3 M-S-T code Bit 4 M-S-T code Bit 5 M-S-T code Bit 6 M-S-T code Bit 7 M-S-T code Bit 8 M03, spindle clockwise M04, spindle counter clockwise MO5 spindle stop M08, coolant on MO9 coolant off G/S Strobe M Strobe T Strobe

Input address 0
1 2 3 4 5 6 7 8 9

10
11 12 13 14 15 16 17 18 19 20 21 22 23

Timers
10 11 12 13 14 15 G-M-S-T-output: G-M-S-T-output: G-M-S-T-output: Jog spindle CW Jog spindle CCW Delay feed enable strobe delay strobe duration delay for auxiliary

function

ccmplete

(Positioning

loop)

62

Marker 900 901 902 903 904 905 908 909 910 911 912 913 917 919 920 921 922 923 924 925 926 927 929 930 932 933 934 935 936 938 939 943 944 945 948 949 950 951 952 960 961 962 963 964 965 966 967 968 969

List Programming mode Manual mode Electronic handwheel mode Manual (data input mode Single block mode Automatic mode Manual mode Control mode Buffer marker actual Buffer marker actual Buffer marker actual Buffer marker actual Buffer marker manual

position position position position pressed

value value value value

transfer transfer transfer transfer

>(. axis Y axis 2 axis IJ axis

Manual pressed Buffer marker Buffer marker Buffer marker Buffer marker Buffer marker 1st buffer marker 1st buffer marker 1 st buffer marker Buffer Buffer Buffer Buffer Buffer Buffer Buffer Buffer Buffer Buffer Buffer Buffer marker marker marker marker marker marker marker marker marker marker marker marker

start button rapid button MO3 output MO4 output MO5 output G/S change signal M change signal Tl change signal 6

- Output - MOO MO2 MO3 MO4 MO5 MO6

- MO8 - MO9 - Ml3 - Ml4 - M30 code-decade Ox code-decade lx - G/S change signal - M-change signal - Tl change signal range (0) range (1) range (2) range (3) range (4) range (5) range (6) range (7) running running

Buffer marker - M Buffer marker - M 2nd Buffer marker 2nd Buffer marker 2nd Buffer marker Buffer Buffer Buffer Buffer Buffer Buffer Buffer Buffer Buffer Buffer marker marker marker marker marker marker marker marker marker marker -

gear gear gear gear gear gear gear gear T13 T14

2)

Reference

listing

for markers,

inputs/outputs

and timers

Thislistshowswhich instructions use which markers, inputs/outputsand timers. For PLC-commands with * a signal is generated. With the remaining PLC-commands the signal is gated.
Marker Nos; - Used with PLC-command numbers:

marked

"0000 "0004 "0008 "0012 "0016 "0020 "0024 "0028 0219 M909 "0032 M910 "0076 M911 "0080 M912 "0084 M913 "0088 M917 0064 M919 "0065 0100 M920 0179 M921 0183 M922 0058 M923 0059 M924 "0359 M925 0401 M926 0404 M927 0407 M929 0047 M930 "0249 M932 "0255 M933 "0261 M934 "0267 M935 "0273 M936 "0279 M938 "0285 M939 "0291 M943 "0297 M944 "0303 M945 "0312 M948 "0238 0286 M949 "0243 M950 "0402 M 951 "0405 M952 "0408 M960 "0317 M961 "0322 M962 "0327 M963 "0332 M964 "0337 M965 "0342 M966 "0347 M967 "0352 M968 0560 M969 0568 MZOOO 0033
64

MO M900 M901 M902 M903 M904 M905 M908

0152 0025 0026 0027 0029 0030 0031 0061 0224 0043 0089 0094 0099 0104 "006'7 0068 0105 "0191 *019:3 "0357 *0358 "0366 "0420 "0422 "0424 0052 0367 0368 0353 0360 0369 0370 0377 0382 0354 036'1 037'1 0244
0292 0409

0153

0425

0426

0186 0229 0060 "0093 "0098 "0103 "0108 0073 0123

0194

0199

0204

0209

0214

0077 0126

~ 0081 ~ 0129

0085 0132

0090

0095

"0364 "0365 "0376

"0374 "0375 "0392

0390

"0391 0397

0393 0395

"0056 0383 0384

~ I

0385

0378 0379 0386 0250


0298

0256

0262

0268

0274

0280

0410 0411 0451 0454 0457 0460 0463 0466 0469 0472 "0566 "0574

"0581 "0584

Marker M2001 M2002 M2003 M2008 M2009 M2010 M2011 M2032 M2033 M2034 M2035 M2036 M2037 M2038 M2039 M2043

Nos. - Used with 0035 0037 0039 0074 0078 0082 0086 0523 0526 0529 0532 0535 0538 0541 0544 0313 0399 0462 0400 0486 0355 0445 0519 0406 0534 0475 0478 0481 0484 0487 0490 0493 0496 0245 0293 0246 0294 0247 0295 0248 0296 0234 0235 0236 0237 0314 0315 0316 0001 0002 0003 0041 0045 0389 "0154

PLCcommand-numbers

0'112 0'115 0'118 0'121

0124 0127 0130 0133

M2044 M2045

M2046 M2064 M2065 M2066 M2067 M2068 M2069 'M2070 M2071 M2072 M2073 M2074 M2075 M2076 M2077 M2078 M2079 M2104 M2105 M2106 M2176 M2177 M2178 M 2184 M2185 M2191 M 2448

0318 0418 0465 0419 0489 0362 0498 0551 0423 0537

0323 0435 0468 0437 0492 0372 0501 0595 0441 0540

0328 0443 0471 0444 0495 0380 0504 0446 0543

0333 0450 0546 0474 0547 0387 0507 0522 0555

0338 0453 0559 0477 0590 0403 0510 0525 0600

0343 0456 0567 04(30 0421 05'13 0528

0348 0459 0585 0483 0439 0516 0531

0251 0299 0252 0300 0253 030 1 0254 0302 0239 0240 0241 0242 0319 0320 0321 0005 0006 0007 0057 0050 "0'180

0257 0304 0258 0305 0259 0306 0260 0307 0308 0309 0310 0311 0324 0325 0326 0009 0010 0011

0263 0499 0264 0502 0265 0505 0266 0508 0511 0514 0517 0520 0329 0330 0331 0013 0014 0015

0269 0270 0271 0272

0275 0276 0277 0278

02131 02132 02133 02134

0287 0288 0289 0290

0334 0335 0017 0018 0019

0339 0340 0341 0021 0022 0023

0344 0345 0346

0349 0350 0351

M2449
M 2450

"0155
"0156

"0184
"0188

Marker M2451 M 2456 M2457 M2458 M2459 M2460 M2461 M2462 M2463 M2464 M2465 M2466 M2467 M2472 M2473 M2474 M2475 M2476 M2477 M2478 M2479 M2480 M2481 M2482 M2483 M2485 M2486 M 2487 M2488 M2490 M2491 M2492 M2493 M2494 M2495 M2544 M2545 M2546 M2547 M2552 M2553 M2554 M2555 M2556 M2557 M2558 M2559 M2815

Nos. - Used with "0135 "0157 "0158 "0159 "0160 "0161 "0162 "0163 "0164 "0165 "0166 "0167 "0137 "0168 "0169 "0170 "0171 "0172 "0173 "0174 "0175 "0436 "0438 "0440 "0442 "0394 "0396 "0398 "0177 "0576 "0578 "0069 "0070 "0071 "0072 "0075 "0079 "0083 "0087 "0092 "0097 "0102 "0107 "0145 "0147 "0149 "0151 "0049 "0136 "0197 "0202 "0207 "0212 "0217 "0222 "0227 "0232 "0181 "0185 "0189 "0138 "0198 "0203 "0208 "0213 ~"0218 "0223 "0228 "0233 "0589 ~"0594 ~"0599 ~"0604

PLC-command-numbers "0142

"0143

~ ~ 1 i

0091 0096 0101 0106

0111 0114 0117 0120

"0125 "0128 "0131 "0134

~"0054

66

Input Nos. - Used with EO El E2 E3 E9 E 10 E 11 E 12 El3 E 14 El5 El6 E 17 E 18 E 19 E20 E 21 E22 E23 Output A0 Al A2 A3 A4 A5 A6 A7 A8 A9 A10 All Al2 Al3 Al4 Al5 Al6 Al7 Al8 A19 A20 A 21 A22 Timer TlO Tll T12 T13 T14 T15 T58 T 59 0144 0146 0148 0150 0195 0196 0205 0206 0215 0216 0225 0226 0588 0141 0063 0048 0182 0178 0176

PLC-command-numbers

020 1 0200 021 1 0210 0221 0220 0231 0230 0593 0066 0053 0192 0187

0598

0603

0190

Nos. - Used with "0034 "0036 "0038 "0040 "0042 "0044 0046 "0427 "0428 "0429 "0430 "0431 "0432 "0433 "0434 "0356 "0363 "0373 "0381 "0388 "0550 "0554 "0558

PLC-command-numbers

0051 "0452 "04155 "0458 "0461 "04164 "0467 "04170 "04173

0055 "0476 "0479 "0482 "0485 "0488 "0491 "0494 "0497

"0062 "0500 "0503 "0506 "0509 "0512 "0515 "0518 "0521

"0524 "0527 "0530 *0533 "0536 "0539 "0542 "0545

Nos. - Used with "0415 "0416 "0417 0561 0562 "0109 0412 0413

PLC-command-numbers

0586 *0565 0570 "0110 "04.47 "04.48

0591 6569 "0573 "0113 0548 0549

0596 0579 0582 "0116 0552 0553

0601

"0119 0556 0557

*01;12

0139

T60
T61 T62

0414
0563 0564 0140

*co449
0571 0572

0587
0575 0577

0592
0580 0583

0597

0602

T63

3)

Standard

PLC-program

for the TNC 150 B / TNC 150 0

Note: The note terminal 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 0018 0019 0020 0021 0022 0023 0024 0025 0026 0027 0028 0029 0030 0031 0032 0033 0034 0035 0036 0037 0038 0039 0040 = UN UN UN = u UN UN = UN U UN = u u UN = UN UN u = U UN U = 0 0 0 = 0 0 0 = u = u = u = u = M 0 M2176 M2177 M 2178 M 900 M 2176 M2177 M 2178 M 901~ M2176 M2177 M2178 M 902 M M M M 217 6 217 7 217 8 903

J ../..I refers to the TNC

150 B terminal

numbers

(see section

D 4).

Choses a logic chain where Mode decoding Mode-code 2 Mode-code 2 Mode-code 22 Store program mode Mode-code 2 Mode-code 2 Mode-code 22 Manual mode M,ode-code Mode-code Mode-code Electronic2 2 22 handwheel

it is incomplete

at the end of the program

mode

Mode-code 2 Mode-code 2 Mode-code 22 Manual data input Mode-code 2 Mode-code 2 Mode-code 22 Single block mode Mode-code Mode-code Mode-code Automatic 2 2 22 mode

mode

M 217 M217 M 217 M 904 M 217 M217 M 217 M 905 M M M M M M M M 900 901 902 908 903 904 905 909

Q 7 8

! 8

Store program mode Manual mode Electronic handwheel Manual modes

mode

M 200 A 0 M 200 A 1 M 200 A 2 M 20C A 3

Manual data input mode Single block mode Automatic mode Control in automatic mode Axis enables Enable X-axis Terminal Jl/l Enable Y-axis Terminal Jl/2 Enable Z-axis Terminal Jl/3 Enable IV-axis Terminal Jl/4

68

0041 0042 0043 0044 0045 0046 0047 0048 0049 0050 0051 0052 0053 0054 0055 0056 0057 0058 0059 0060 0061 0062

U = U = U U u UN s u UN UN u s U = 0 0 0 U 0 =

M 2184 A 4 M 909 A 5 M2185 A 6 M 929 E 20 M 2815 M A M E M 2185 6 929 20 2815

Control in operation Terminal J1/5 Control in automatic mode Terminal Jl/6 Checking for spindle on 1st. PLC-cycle following PLC cycle interruption Check for spindle on: Terminal Jl/7 Buffer marker A6 - delayed during 1st PLC cyc:le (contact Spindle checking feedback terminal J5/4 Flashing alarm from PLC 1st PLC-cycle following PLC cycle interruption Check for spindle on terminal Jl/7 Buffer marker A6 - delayed durirlg 1st PLC-cycle Spindle checking feedback: Terminal J5/4 Flashing alarm from PLC

opened)

(contact

opened)

A 6 M 929 M M M M M A 2184 922 923 909 908 6

0063 0064 0065 0066 0067 0068 0069 0070 0071 0072

U U = u = u = = = =

E 19 M917 M 919 E 19 M917 M M M M M 919 2492 2493 2494 2495

Check for spindle on: Terminal Jl/7 Buffer marker A6 - delayed durirg 1st PLC-cycle (contact opened) Checking for Spindle on Control in operation Buffer marker MO3 Buffer marker MO4 Control in automatic mode Manual mode Check for spindle on: Terminal Jl/7 Manual pressed - Disable servo-loops Following manual presse, transfer position value Input manual pressed: Terminal JW5 Buffer marker - El9 delayed during 1st PLC cycle (contact opened) Manual pressed Input Manual pressed Buffer marker - El9 delayed during 1st PLC-cycle Pre-select servo-enable Manual pressed Initial marker: X-servo-loop enabled Initial marker: Y-servo-loop enabled Initial marker: Z-servo-loop enabled Initial marker: IV-servo-loop enab ed

(contact

opened)

69

0073 0074 0075 0076 0077 0078 0079 0080 0081 0082 0083 0084 0085 0086 0087 0088 0089 0090 0091 0092 0093

U u s S u U s S U U S S U u S s U UN u = R

M919 M 2008 M 2544 M 910 M 919 M 2009 M 2545 M911 M919 M 2010 M 2546 M912 M919 M 2011 M 2547 M913 M910 M919 M 2544 M 2552 M910 M911 M919 M 2545 M 2553 M911 ! M912 ~ M 919 ) M 2546 M 2554 M912, M913 ~ M 919 : M 254J M 2555 M 913 )

Switch Manual X-axis Disable Buffer Manual Y-axis Disable Buffer

Manual pressed disables scrrvo-loop if axes are in position pressed in position X-axis servo-loop marker X-axis actual position value transfer pressed in position Y-axis servo-loop marker Y-axis actual position

value transfer

Manual pressed Z-axis in position Disable Z-axis servo-loop Buffer marker Z-axis actual Manual IV-axis Disable Buffer Position Buffer Manual Disable Transfer Buffer Buffer Manual Disable Transfer Buffer Buffer Manual Disable Transfer Buffer Buffer Manual Disable Transfer Buffer

position

value transfer

pressed in position IV-axis servo-loop marker IV-axis value transfer marker X-axis actual positiorl pressed X-axis servo-loop X-axis position value marker X-axis actual positior marker Y-axis actual positior pressed Y-axis servo-loop Y-axis position value marker Y-axis actual positior marker pressed Z-axis Z-axis marker Z-axis actual position

value transfeir

value transfer value transfer

0094
0095 0096 0097 0098

u
UN U = R

value transfer value transfer

0099
0100 0101 0102 0103 0104 0105 0106 0107 0108

u
UN u = R u UN U = R

servo-loop position value Z-axis actual position

value transfer

marker IV-axis pressed IV-axis servo-loop IV-axis actual position marker IV-axis

value

70

0109 0110 0111 0112 0113 0114 0115 0116 0117 0118 0119 0120 0121 0122 0123 0124 0125 0126 0127 0128 0129 0130 0131 0132 0133 0134 0135 0136 0137 0138 0139 0140 0141 0142 0143 0144 0145 0146 0147 0148 0149

R RN u UN s u UN S u UN s u UN s ON ON R ON ON R ON ON R ON ON R R RN s SN UN UN u S R U = U = U =

T 15 T 15 M 2544 M 2008 T 15 M 2545 M 2009 T 15 M 2546 M 2010 T 15 M 2547 M 2011 T 15 M919 M2008 M 2544 M919 M 2009 M 2545 M919 MZOIO M 2546 M919 M 2011 M 2547 M 2451 M 2451 M 2467 M 2467 T T E M M 15 63 18 2451 2467

Time for Delaying Delay feed enable

Feed Enable Slat?

Disable X-axis servo-loop X-axis in position Delay feed enable Disable Y-axis servo-loop Y-axis in position Delay feed enable Disable Z-axis servo-loop Z-axis in position Delay feed enable Disable IV-axis servo-loop IV-axis in position Delay feed enable Enable Servo-loop if axis is not in position or manual Manual pressed X-axis in position Enable X-axis servo-loop (servo-loop X-axis inhibiting Manual pressed Y-axis in position Enable Y-axis servo-loop Manual pressed Z-axis in position Enable Z-axis servo-loop

not activated

not permitted)

(servo-loop

Y-axis

inhibiting

not permitted)

(servo-lolp

Z-axis

inhibiting

not permitted)

Manual pressed IV-axis in position Enable IV-axis servo loop (servo-loop Feed enable Feed enable TNC

IV-axis

inhibiting

not permitted)

Complement

TNC-feed

enable

E 0 M 2556 E I M 2557 E 2 M 2558

Delayed feed enable Timer T15 running Feed enable TNC feed enable Complement feed enable Reference Point Switch Terminal J5/9 X-axis REF end position Terminal J5/10 Y-axis REF end position Terminal J5/1 1 Z-axis REF end position Terminal J5/12 IV-axis REF end position

0150 u
0151 =

E3
M 2559

Start conditions 0152 0153 0154 0155 0156 0157 0158 0159 0160 0161 0162 0163 0164 0165 0166 0167 0168 0169 0170 0171 0172 0173 0174 0175 0176 0177 0178 0179 0180 0181 0182 0183 0184 0185 0186 0187 0188 0189 0190 0191 0192 0193

for setting

button

markers

0
ON R R R R R R R R R R R S s S s S s s S s s s U = U U S R U U S R u u s R u = u =

MO
MO M 2448 M 2449 M 2450 M 2456 M 2457 M 2458 M 2459 M 2460 M 2461 M 2462 M 2463 M 2464 M 2465 M 2466 M 2472 M 2473 M 2474 M 2475 M 2476 M 2477 M 2478 M 2479 E 23 M 2488 E M M M 22 920 ~ 2448 2464 NC-Start Rapid Memory function for normal traverse Manual traverse X+ Manual traverse XManual traverse Y+ Manual traverse Y Manual traverse Z+ Manual traverse ZManual traverse IV+ Manual traverse IVComplement of start Complement of rapid Complement memory function for rnanual traverse Complement of manual traverse X+ Complement of manual traverse XComplement of manual traverse Y+ Complement of manual traverse YComplement of manual traverse Z+ Complement of manual traverse ZComplement of manual traverse IV+ Complement of manual traverse IV-Stop-, Start-, Latch buttons, Memory function for manual traversing NC-Stop button: Terminal J5/1 NC-Stop NC-Start-button: Terminal J5/2 Buffered marker, start button delayed NC-Start Complemented NC-Start Rapid button: Terminal J5/3 Buffer marker: rapid button delayec Rapid Complement of rapid

during

1st fLC cycle (contact

is opened)

E21 M 921 M 2444 M 2465 M 908 ~ E22 M 245q M 2466 E 22 M 920 E 21 M 921

during

1st PLC cycle (contact

is opened)

Manual mode NC-Start button Memory function for manual traverse Complemented memory function for manual NC-Start-button: Buffer marker: Rapid button: Buffer marker: Terminal J5/2 NC-Start button Terminal J5/3 rapid button

traverse

72

0194 0195 0196 0197 0198

u U UN s R

M E E M M

908 9 10 2456 2472

Direction buttons Manual mode X+ direction button: Terminal J6.15 X- direction button: Terminal JE/6 X+ direction button X+ direction button complemented Manual mode X- direction X+ direction X- direction X- direction Manual mode Y+ direction Y- direction Y+ direction Y+ direction Manual mode Y- direction Y+ direction Y- direction Y- direction Manual mode Z+ direction Z- direction Z-i- direction Z+ direction Manual mode Z- direction Z+ direction Z- direction Z- direction

0199
0200 0201 0202 0203 0204 0205 0206 0207 0208

u
u UN s R U U UN S R

M 908 E 10 E 9 WI 2457 M 2473 M E E M M 908 11 12 2458 2474

button: Terminal,JEs/6 button: Terminal J6/5 button button complementad

button: Terminal J6/7 button: Terminal JEJ8 button button complemented

0209
0210 0211 0212 0213 0214 0215 0216 0217 0218 0219 0220 0221 0222 0223 0224 0225 0226 0227 0228

u
u UN s R U U UN s R u u UN s R U U UN S R

M 908 E 12 E 11 M 2459 WI 2475 M E E M M M E E M M M E E M M M E E M M 908 13 14 2460 2476 908 14 13 2461 2477 908 15 16 2462 2478 908 16 15 2463 2479

button: Terminal J6/8 button: Terminal J6/7 button button complemented

button: Terminal J6,9 button: Terminal JE/lO button button complemented

button: Terminal JE/lO button: Terminal J6.19 button button complementl?d

Manual mode IV+ direction button: Terminal JWI 1 IV- direction button: Terminal J6/12 IV+ direction button IV+ direction button complemerxed Manual mode IV- direction button: Terminal J6/12 IV+ direction button: Terminal JWll IV- direction button IV- direction button complemented

0229
0230 0231 0232 0233

u
U UN S R

0234 0235 0236 0237 0238

UN UN UN UN =

M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M

2076 2077 2078 2079 948 2076 2077 2078 2079 949 948 2072 2073 2074 2075 930 948 2072 2073 2074 2075 932 948 2072 2073 2074 2075 933 ~ 948 1 2072 2073~ 2074( 2075~ 934 ~ 948 ~ 2072~ 2073 20741 2075~ 935 ~ 948 ~ 2072; 2073~ 20741 2075~ 936 ~ 948 ~ 2072; 2073~ 2074 2075 938

Buffer markers for setting M-codes 5th Bit M-code 6th Bit M-code 7th Bit M-code 8th Bit M-code Buffer marker M-code decimal decade 0 x 5th Bit M-code 6th Bit M-code 7th Bit M-code 8th Bit M-code Buffer marker M-code decimal decade 1 x Buffer marker M-code decimal decade 0 x 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker MOO Buffer marker M-code decimal decade 0 x 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker MO2 Buffer marker M-code decimal decac~e0 x 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker MO3 Buffer marker M-code decimal decaae 0 x 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker MO4 Buffer marker M-code decimal decade 0 x 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker MO5 Buffer marker M-code decimal decade 0 x 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker MO6 Buffer marker M-code decimal decade 0 x 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker MO8

0239
0240 0241 0242 0243 0244 0245 0246 0247 0248 0249 0250 0251 0252 0253 0254 0255 0256 0257 9258

u
UN UN UN = U UN UN UN UN = U UN U UN UN = U U U UN UN = U UN UN U UN = U U UN U UN = U UN U U UN = U UN UN UN U =

0259
0260 0261 0262 0263 0264 0265 0266 0267 0268 0269 0270 0271 0272 0273 0274 0275 0276 0277 0278 0279 0280 0281 0282 0283 0284 0285
74

0286 0287 0288 0289 0290 0291

U U UN UN U =

M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M M

948 2072 2073 2074 2075 939 949 2072 2073 2074 2075 943 949 2072 2073 2074 2075 944 2072 2073 2074 2075 2076 2077 2078 2079 945 2043 2104 2105 2106 960 2043 2104 2105 2106 961 2043 2104 2105 2106 962 2043 2104 2105 2106 963

Buffer marker M-code decimal 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker MO9 Buffer marker M-code 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker Ml3 decimal

decade-0

0292
0293 0294 0295 0296 0297 0298 0299 0300 0301 0302 0303 0304 0305 0306 0307 0308 0309 0310 0311 0312 0313 0314 0315 0316 0317 0318 0319 0320 0321 0322 0323 0324 0325 0326 0327 0328 0329 0330 0331 0332 0333 0334 0335 0336 0337

u
u u UN UN = U UN UN u UN = UN UN UN UN U u UN UN = u UN UN UN = U u UN UN = U UN U UN = U u U UN =

decade 1 x

Buffer marker M-code decimal 1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code Buffered marker Ml4

decade 1 x

1st Bit M-code 2nd Bit M-code 3rd Bit M-code 4th Bit M-code 5th Bit M-code 6th Bit M-code 7th Bit M-code 8th Bit M-code Buffered marker M30 Buffered markers for setting gear vange codes Change gear signal 1st Bit, gear range code (Isb) 2nd Bit, gear range code 3rd Bit, gear range code (msb) Gear range (0) Change gear signal 1st Bit, gear range code (Isb) 2nd Bit, gear range code 3rd Bit, gear range code (msb) Gear range (1) Change gear signal 1st Bit, gear range code (Isb) 2nd Bit, gear range code 3rd Bit, gear range code (msb) Gear range (2) Change gear signal 1st Bit, gear range code (Isb) 2nd Bit, gear range code 3rd Bit, gear range code (msb) Gear range (3) Change gear signal 1st Bit, gear range code (Isb) 2nd Bit, gear range code 3rd Bit, gear range code (msb) Gear range (4)

u M 2043 UN M 2104 UN M 2105 U M 2106 = M 964

0338 0339 0340 0341 0342 0343 0344 0345 0346 0347 0348 0349 0350 0351 0352 0353 0354 0355 0356 0357 0358 0359 0360 0361 0362 0363 0364 0365 0366 0367 0368 0369 0370 0371 0372 0373 0374 0375 0376 0377 0378 0379 0380 0381 0382 0383 0384 0385 0386 0387 0388

U U UN u u UN u U = U U u u = 0 0 u = s I? R 0 0 U = R S R 0 0 0 0 0 U = R R S 0 0 0 U = 0 0 0 0 0 U =

M 2043 M 2104 M2105 M 2106 M 965 M M M M M 2043 2104 2105 2106 966

Change gear signal 1st Bit, gear range code (Isb) 2nd Bit, gear range code 3rd Bit, gear range code (msb) Gear range (5) Change gear signal 1st Bit, gear range code (Isb) 2nd Bit, gear range code 3rd Bit, gear range code (msb) Gear range (6) Change gear signal 1st Bit, gear range code (Isb) 2nd Bit, gear range code 3rd Bit, gear range code (msb) Gear range (7) Decoded M Output Buffered marker MO3 Buffered marker Ml3 Change M MO3 output/spindle CW: Terminal Buffered marker output MO3 Buffered marker output MO4 Buffered marker output MO5 Buffered marker Buffered marker Change signal M MO4 output/spindle Buffered marker Buffered marker Buffered marker Buffered marker Buffered marker Buffered marker Buffered marker Buffered marker Change signal M MO5 output/spindle Buffered marker Buffered marker Buffered marker MO4 Ml4 CCW: Terminal output MO3 output MO4 output MO5 MOO MO2 MO5 MO6 M30 stop: Terminal output MO3 output MO4 output MO5 J2/12 J2/11

M 2043 M2104 M 2105 M 2106 M 967, M M M A M M M M M M A M M M M M M M M M A M M M M M M M A M M M M M M A 933 943 2045 15 922 ~ 923 924 934 944 204! 16 922 923 924

J2/10

& P

930 932 935 936 945 204! 3 17 922 923 924 938 943 944 204 18 939 930 932 935 945 204 9 19

Buffered marker MO8 Buffered marker Ml 3 Buffered marker Ml4 Change signal M MO8 output/coolant ON: Terminal Buffered marker Buffered marker Buffered marker Buffered marker Buffered marker Change signal M MO9 output/coolant MO9 MOO MO2 MO5 M30 OFF: Terminal

,13/l

J3/2

76

0389 0390 0391 0392

U R R s

M2191 M 922. M 923 M 924 M 922 M 2485 M 923 M 2486 M 924 M 2487 M 2043 M 2044 M925 M 950 M 2045 M 926 M 951 M 2046 M 927 M 952 M 950 M951 M 952 T 58 T 59 T 60 T 10 T 11 T 12 M 2043 M 2044 M 925 M 2045 M 926 M 2046 M 927 M 0 M 0 A 7 A 8 A 9 A 10 A 11 Al2 Al3 Al4

0393
0394

u
=

Emergency stop condition for spindle on/off Error message external emergency stop is displayed Buffered marker output MO3 Buffered marker output MO4 Buffered marker output MO5 Spindle status feedback to TNC Buffered marker MO3 Status display MO3 Buffered marker MO4 Status display MO4 Buffered marker MO5 Status display MO5 Setting timers for G-M-S-T1 -output on leading edge G-change signal S-change signal 1st buffered G/S change signal 2nd buffered G/S change signal M-change signal 1st buffered M change signal 2nd buffered M change signal Tl -change signal 1st buffered Tl -change signal 2nd buffered Tl -change signal 2nd buffered G/S-change signal 2nd buffered M change signal 2nd buffered Tl -change signal Timer 10 running Timer 11 running Timer 12 running Start TIO (G-M-S-T delayed coded strobe output) Start Tll (G-M-S-T output permanent strobe) Start T12 (G-M-S-T delayed feedb(ack output) Setting buffered markers Change signal G Change signal S 1 st buffered G/S-change signal Change signal M 1st buffered M-change

0395
0396

u
=

0397
0398 0399 0400 0401 0402 0403 0404 0405 0406 0407 0408 0409 0410 0411 0412 0413 0414 0415 0416 0417 0418 0419 0420 0421 0422 0423 0424 0425 0426 0427 0428 0429 0430 0431 0432R 0433 0434R

u
= 0 0 UN = U UN = U UN = 0 0 0 UN UN UN = = = 0 0 = U = U = 0 ON R R R R R R

signal

Change signal Tl 1st buffered Tl -change signal Resetting M-S-T-outputs

Reset Reset Reset Reset Reset Reset Reset Reset

M-S-T-output M-S-T-output M-S-T-output M-S-T-output M-S-T-output M-S-T-output M-S-T-output M-S-T-output

Bit Bit Bit Bit Bit Bit Bit Bit

1 2 3 4 5 6 7 8

0435 0436 0437 0438

U RN u RN

M 2043 M 2480 M 2044 M 2481 M 2045 M 2482 M 2046 M 2483 M M M M T T T 2043 2044 2045 2046 58 59 60

Resetting the G-M-S-T G-code change signal G-code feedback S-code change signal S-code feedback M-code change signal M-code feedback

completed

ifeedback

signals

0439
0440 0441 0442 0443 0444 0445 0446 0447 0448 0449 0450 0451 0452 0453 0454 0455 0456 0457 0458

u
RN u RN UN UN UN UN R R R u u S U, u S U u S

M 2043 M 960 A 7 M 2043 M 961 A 8 M 2043 M 962 A 9 M 2043 M 963 A 10 M 2043 M 964 A 11 M 2043 M 965 A 12 M 2043 M 966 A 13 M 2043 M 967 A 14 M 2044 M 2064 A 7 M 2044 M 2065 A 8

Tl -code change signal Tl -code feedback Timer for G-M-S-T-output reset G-code change signal for S-analogue S-code change signal M-code change signal T-code change signal Timer 10 runs: Delay of strobe Timer 11 runs: Strobe duration Timer 12 runs: Delay of feedback signal auxiliary Gear range code output Gear change signal Gear range code (0) Gear range code Bit 1: Terminal J2/2 Gear change signal Gear change code (I) Gear range code Bit 2: Terminal Gear change signal Gear range code (2) Gear range code Bit 3: Terminal Gear change signal Gear range code (3) Gear range code Bit 4: Terminal Gear change signal Gear range code (4) Gear range code Bit 5: Terminal Gear change signal Gear range code (5) Gear range code Bit 6: Terminal Gear change signal Gear range code (6) Gear range code Bit 7: Terminal Gear change signal Gear range code (7) Gear range code Bit 8: Terminal s-outputs Change S-signal S-code Bit 1 S-code Bit 1: Terminal J2/2 Change S-signal S-code Bit 2 S-code Bit 2: Terminal

function

completed

J2/3

J2/4

0459
0460 0461 0462 0463 0464 0465 0466 0467 0468 0469 0470 0471 0472 0473 0474 0475 0476 0477 0478 0479 78

u
U S U U S U U S U U s u U s u u S U U S

J2/5

J2/6

J2/7

J2/8

J2/3

J2/3

0480 0481 0482 0483 0484 0485 0486 0487 0488 0489 0490 0491

U U S U U S U U S U u s

M 2044 M 2066 A9 M 2044 M 2067 A 10 M 2044 M 2068 A 11 M 2044 M 2069 A 12 M 2044 M 2070 A 13 M 2044 M 2071 A 14 M 2045 M 2072 A7 M 2045 M 2073 A8 M 2045 M 2074 A9 M 2045 M 2075 A 10 M 2045 M 2076 A 11 M 2045 M 2077 A 12 M 2045 M 2078 A 13 M 2045 M 2079 A 14

Change S-signal S-code Bit 3 S-code Bit 3: Terminal Change S-signal S-code Bit 4 S-code Bit 4: Terminal Change S-signal S-code Bit 5 S-code Bit 5: Terminal Change S-signal S-code Bit 6 S-code Bit 6: Terminal Change S-signal S-code Bit 7 S-code Bit 7: Terminal Change S-code S-code M-Code Change M-code M-code

J2/4

J2/5

J2/6

J2/7

0492 0493 0494 0495


0496 0497 0498 0499 0500 0501 0502 0503 0504 0505 0506 0507 0508 0509 0510 0511 0512 0513 0514 0515 0516 0517 0518 0519 0520 0521

u u s u
U s U u s u U s u u S u U s u u S u u s U u S u U S

J2/8

S-signal Bit 8 Bit 8: Terminal J2/9 outputs M-signal Bit 1 Bit 1: Terminal J2/2

Change M-signal M-code Bit 2 M-code Bit 2: Terminal Change M-signal M-code Bit 3 M-code Bit 3: Terminal Change M-signal M-code Bit 4 M-code Bit 4: Terminal Change M-signal M-code Bit 5 M-code Bit 5: Terminal Change M-signal M-code Bit 6 M-code Bit 6: Terminal Change M-signal M-code Bit 7 M-code Bit 7: Terminal Change M-signal M-code Bit 8 M-code Bit 8: Terminal

J2/3

J2/4

J2/5

J2/6

J2/7

J2/8

J2/9

0522 0523 0524 0525 0526 0527 0528 0529 0530 0531 0532 0533 0534 0535 0536 0537 0538 0539 0540 0541 0542 0543 0544 0545 0546 0547 0548 0549 0550 0551 0552 0553 0554 0555 0556 0557 0558

U U S U U S U u S u U s u u S U U s u U S u U s 0 0 UN U = u UN U = u UN U =

M 2046 M 2032 A 7 M 2046 M 2033 A 8 M 2046 M 2034 A 9 M 2046 M 2035 A 10 M 2046 M 2036 A 11 M 2046 M 2037 A 12 M 2046 M 2038 A 13 M 2046 M 2039: Al4 M M T T A M T T A 2043 2044 58 59 20 2045 58 I 59 ~ 21

T-Code Change T-code T-code

outputs Tl -signal Bit 1 Bit 1: Terminal

J2/2

Change Tl -signal T-code Bit 2 T-code Bit 2: Terminal Change Tl -signal T-code Bit 3 T-code Bit 3: Terminal Change Tl -signal T-code Bit 4 T-code Bit 4: Terminal Change Tl -signal T-code Bit 5 T-code Bit 5: Terminal Change Tl -signal T-code Bit 6 T-code Bit 6: Terminal Change Tl -signal T-code Bit 7 T-code Bit 7: Terminal

J2/3

J2/4

J2/5

J2/6

J2/7

J2/8

Change Tl -signal T-code Bit 8 T-code Bit 8: Terminal J2/9 Gear MS-T1 -Strobe Change gear range signal Change S-signal Timer 10 running (G-M-S-T delayed coded strobe output) Timer 11 running (G-M-S-T output Flermanent strobe) Gear range strobe/S-strobe: Terminal J3/3 Change M-signal Timer 10 running (G-M-S-T Timer 11 running (G-M-S-T M-strobe: Terminal J3/4 Change Tl -signal Timer 10 running (G-M-S-T Timer 11 running (G-M-S-T Tl -strobe: Terminal J3/5

delayed coded strobe output) output Fermanent strobe)

M 2046~ T 58 T 59 A22 )

delayed coded strobe output) output permanent strobe)

80

0559 0560 0561 0562 0563 0564 0565 0566 0567 0568 0569 0570 0571 0572 0573 0574 0575 0576 0577 0578 0579 0580 0581 0582 0583 0584 0585 0586 0587 0588 0589

U UN UN UN UN UN = S U UN UN UN UN UN = s u = U = UN UN R UN UN R U UN UN U S

M M T T T T T M M M T T T T T M

2043 968 13 14 61 62 13 968 2043 969 13 14 61 62 14 969

Spindle jog when gear changing Change gear signal Buffer marker T13 running Jog duration, spindle cw Jog duration, spindle ccw Timer 13 running (jog duration, spindle cw) Timer 14 running (jog duration, spindle ccw) Start timer 13 (jog duration, spindle cw) Buffer marker T13 running Change gear signal Buffer marker T14 running Jog duration, spindle cw Jog duration, spindle ccw Timer 13 running (jog spindle cw) Timer 14 running (jog spindle ccv\O Timer 14 start (jog spindle ccw) Buffer marker T14 running Timer 13 running (jog spindle Jog cw (to start spindle) cw)

T 61 M 2490 T 62 M 2491 T 13 T 61 M 968 T 14 T 62 M 969 M T T E M 2043 12 60 17 2480

Timer 14 running (jog spindle ccv1) Jog ccw (to start spindle) Resetting buffer markers Jog duration spindle cw Timer 13 running Buffer marker 713 running Jog duration spindle ccw Timer 14 running Buffer marker T14 running M-S-Tl-Code feedback when T12 timed out Change gear signal G-M-S-T output: delay feedback Timer 12 running Auxiliary function complete feedback: Terminal Gear range feedback Change S-signal G-M-S-T output: delay feedback Timer 12 running Auxiliary function complete feedback: S feedback Change M-signal G-M-S-T output: delay feedback Timer 12 running Auxiliary function complete feedback: M feedback Change Tl -signal G-M-S-T output: delay feedback Timer 12 running Auxiliary function complete feedback: Tl feedback

J5/7

0590
0591 0592 0593 0594

u M 2044 Ut.l T 12 UN T 60 u E 17 s M 2481 u


UN UN U s U UN UN U S M T T E M M T T E M 2045 12 60 17 2482 2046 12 60 17 2483

Terminal

J5/7

0595
0596 0597 0598 0599 0600 0601 0602 0603 0604

Terminal

J5/7

Terminal

J5/7

4)

Terminal
TNC 150 Q outputs PL 100 B PL 110 B A0 Al A2 A3 A4 A5 A6

layout

for input/output
#Control -TNC 150 muitipoint Iconnector control :Jl/l .J1/2 .Jl I3 .J1/4 .J1/5 .J1/6 .J1/7 .J1/8 .J1/9 .Jl/lO .Jl/ll .J1/12 .J2/1 .J2/2 .J2/3 .J2/4 .J2/5 ,J2/6 ,J2/7 .J2/8 J2/9 .12/l 0 .12/l 1 .12/l 2 ,13/l .J3/2 .J3/3 .J3/4 .J3/5 B of

signals for TNC 150 El / TNC 150 c1


User

A7 A8 A9 A10 Al 1 Al2 Al3 Al4 Al5 Al6 Al7 Al8 A19 A20 A21 A22 Multipoint connector control J3/2 J3/7 J3/3 J3/4 J3/10 J3/1 1 J3/12 Jl/l J1/2 J113 Jll4 Jll5 J1/6 Jll7 J1/8 J1/9 Jl/lO

* c -

X Y Release Z IV Control in operation Control in automatic mode Lock for spindle on Emergency stop (no output from + 24 V supply + 24 V supply + 24 V supply + 24 V supply + 24 V supply M-S-T Code bit 1 M-S-T Code bit 2 M-S-T Code bit 3 M-S-T Code bit 4 M-S-T Code bit 5 M-S-T Code bit 6 M-S-T Code bit 7 M-S-T Code bit 8 MO3 Spindle clockwise MO4 Spindle counter-clockwise MO5 Spindle stop MO8 Coolant on MO9 Coolant off S-Strobe M-Strobe Gating signal T-Strobe >

direct

NC-part

of machine)

of .J3/6 .J3/7 .J3/8 .J3/9 .13/l .:3/l .13/l .14/l .J4/2 .J4/3 .J4/4 .14/5 .J4/6 .14/7 .J4/8 .I419 .14/10 .14/l .14/l + 12 V do not manual ov ~ do not do not Housing only for feed assign feed assign assign rate potentiometer

s 0 1 2

+/-

c
_

o v

+I-

AnalogLe ) AnalogLe AnalogLe I ne

output output output

2 IV spindle

+I-

o v +Io v

--_ 1 2 * )

Inputs PL 100 PLIIOB E23 E22 E21 E20 El9 El8 El7 E8 EO El E2 E3 E4 E5 E6 E7 E9 El0 El1 El2 El3 El4 El5 El6 B -

do not assign 0 V Return

.15/l .J5/2 .J5/3 .J5/4 .J5/5 .J5/6 .15/7 .J5/8 J5/9 .15/l .15/l .15/l .16/l .J6/2 .J6/3 .J6/4 .J6/5 .J6/6 .J6/7 .J6/8 .J6/9 .16/l ,J6/11 .J6/12

2-t 5--

0 1 2

Stop-button Start-button Rapid traverse button do not assign Manual feed (opens position Feed rate release Feedback: Auxiliary function Feedback: Errergency stop Reference end position X Reference end position Y Reference end position Z Reference end position IV Reference pul:;e suppressor Reference pul!;e suppressor Reference pul:;e suppressor Reference pul:;e suppressor Direction button X+ Direction button XDirection button Y+ Direction button YDirection button Z+ Direction button ZDirection button IV+ Direction button IV-

loop) completed (is directly

test

interrogated

by

NC-part

of cant

X Y Z IV

TNC

150

Q aonnector

52/l

- J2/12

do not

assign

E)

Programming list

list

PLC-program

I,

----+I+

Inputs First PCB -Input -Xe El E2 E3 E4 E5 E6 E7 E8 E9 E 10 E 11 E 12 I I (Reference 1Reference 1Reference Reference Reference Reference Reference Feedback, end oosition end position end position end oosition pulse inhibit pulse inhibit pulse inhibit pulse inhibit Emergency X Y Z IV X Y Z IV stop E 47 ___E 48 E 49 E 50 E 51 E 52 E 14 I E 53 E 54 E 55 E 56 t i E 39 ___E 40 E 41 ___E 42 E 43 E 44 -E 45 ~-+

E 19

E 58 E 59 E 60 E 61 57 i Ovlerload of an output stage

E 23 E 24 E 25 E 26 E 27 E 28 E 29 E 30 E 31 E 32 E 33 E 34 E 35 E 36 E 37 E 38

I I

E 62 E 63

84

inputs Second Input E 64 E 65 E 66 E 67 E 68 E 69 E 70 E 71 E 72 I I I I I I I I I E 108 E 109 I PCB Remarks El03 I

E 76 E 77 E 78 E 79 E 80 E 81 E 82 E 83 E 84 E 85 E 86 E 87 E 88 E 89 E 90 E 91 E 92 E 93 E 94 E 95

I I
I I E 119 El20 E 121 E 122 El23 E 124

I I I I I
I

E 127

Overload (internally

of an output wired)

stage

E 98 E 99 E 100 E 101 E 102

I I I

outputs First PC6 Second -output -PCB Re!marks

Al A2 A3 A4 A5 A7 A9 A 10 All A 12 A 13 A 14 A 15 Al6 A 17 Al8 A 19 A 20 A21 A 22 A 23 A 24 A 25 A 26 A 27 A 28 A 29 A 30 A31

I I I

A 32 ___A 33 A -- 34 A 35 ____A 36
r

A 39 A 40 I I A41 A 42

I
I

A 45 ____A 46 A 47

A 52 A 53 -+

A 58 A 59 A 60 A61 A 62 Cancellation condition of overload (internally wired) A 63 (internally wired)

86

Marker list Marker No. Remarks

IL- O##
Marker No.

9 I

4 5 6 7 8 9

=------A -4
3 4 6 7
8

1 I

9 0 1 2 a 3 4 5
6

0 I 1 I 2 I
3 4 5 6 7
8

I
I

8 9 0 1 2 3 4 5 6 7 8 9 0 *

9 0 1 2 3 4 5 6 7 8 9 0

87

F) List of machine Machine parameters Function

parameters for TNC 150 which affect the PLC have been marked Parameter No. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 Entry values

X Y Z IV Manual feed (100 %) X Y Z IV Speed when approaching X reference points Y Z IV Signal evaluation X Y Z IV Traversing direction when X Y approaching reference marks Z IV Counting direction X Y Z IV Polarity of nominal value X voltage Y Z IV Integral factor X Y Z IV Differential factor X Y Z IV Backlash compensation X Y Z IV Correction factor for linear X correction Y Z IV Software limit switch x+ ranges XY+ Yz+ ZIv+ IVAnalogue voltage with rapid traverse Approach speed Acceleration Circular acceleration 88

Rapid traverse

80 - 15 999 mm/min

(IV: D?grees/min.

wiith axis designation

A or B or C)

1 2 20-fold

2 2 lo-fold

0 2 Plus-direction (with correct programming

1 g Minus-direction of parameters Nos. 20 to 27)

0 or 1

nlsitive with positive traversing 1 2 negative with positive traversing

direction direction

0 -- 65 535

0 -- 65.535

- 1.000 mm -+

1.000 mm

- 1 .OOO mm/m

- + 1 .OOO mm/m

0 to + 30 000.000

mm

Angular

axis 0 to + 30 000

+ 4.5 - + 9 Volts 0.1 - 10 m/mine 0.001 - 1.5 ml&

Function

Parameter No. 56 57 58 59

Entry

values

Position supervision (eraseable) Position supervision (emeraencv stop) Positioning accuracy X, Y,I Axis sequence for reference point approach

0.001 - 30 mm 0.001 - 0,05 mm x Y z IV 12 e z x Y IV x Y IVZ 13 2 z x IV Y 14 9 z Y x IV x z Y IV xz IVY 15 2 z Y IV x 16 2 Z IV X Y XIVYZ f x IVZ Y 17 c z IV Y x g Y X Z E 18 2 IV X Y Z 2 Y x IVZ 19 f IV x z Y g Y Z X IV 2oc IVY x z YZIVX 21 z IV Y z x 2 Y IVX z 22r IVZ x Y q Y IVZ x 23e IVZ Y X 4 on 1 2 off No output Output only when tool number changes Output of all tool numbers No output of spindle rpm 2 Coded output only when rpm changes g Coded output of all rpms g S-Analogue voltage output Gear switching signal only when gear ratio changes 2 S-Analogue voltage output, Output of gear switching signal with every tool call f S-Analogue voltage output without gear switching signal 2 2. 2
01991

Speed pre-control Output of tool numbers

60 61

Output of spindle speeds codes or as S-analogue voltage

62

0 1 2 34 42 5 6 7 8 92 0 1 0 0 1 2 0 1 2 3

5 tom code limit Oscillation when acceleratina Disolav resolution External feed rate potentiometer 63 64 65 66 0 0 1 2 Dwell time, rotation change of in tapping cycle Memory function for direction Special procedure for reference approach PLC: Nominal value voltage for drive when gear changing Program end character Selection for control of inhibited spindle buttons point spindle 67 68 69 70 71 axes 72 1 0 1 2 3 4 5 6 7 0 0

g c G 2

lum internal manual external manual internal external

0.01 - 0.999 1 2 5um potentiometer for override and feed potentiometer for override and feed potentiometer for override potentiometer for manual feed 0 - 65 535 msec. 1 1 0 = A 2 on on

2 2

off off

9.999 Volts

126 4 2 4 2 2 4 g 2

(depending on value of appropriate character on tape) none Axis inhibited xAxis inhibited yAxis inhibited Axis inhibited X-,YzAxis inhibited x-, zAxis inhibited Y-, ZAxis inhibited X-,Y-,ZAxis inhibited

89

Function

Parameter No. 8 9 c Jl IVx-,

Entry

values

IV-

10
11 12 13 14 15 Pre-cut out time for tapping cycle Override effective on pressing rapid button Override in 2 % steps or infinitely variable 73 74 0 1 2 3 Reference signal evaluation for inhibited axes Display and transducer supervision inhibited axes PLC program from RAM or from EPROM RPM-range gear ratios 0 S-analogue output 1 2 3 75 for 76 77 78 79 80 81 0 0 0 1

2
g 2 e 2 =^ e c 2 e 2 2 2 g

Y-,
x-, z-, x-, Y-, x-,

IVY-, IVz-, z-, Y-,

Override Override Override Override Override Override Override Override inactive inactive RAM EPROM

Axis inhibited Axis inhibited Axis inhibited IVAxis inhibited Axis inhibited IVAxis inhibited IVAxis inhibited z--, IVAxis inhibited 0 - 65.535 s ineffective on pressing rapid button in 2 % steps effective on pressing rapid button in 2 % steps ineffective on pressing rapid button infinitely variable effective on pressing rapid button infinitelv variable 1 =^ active 1 2 active

0 - 9 000,000

rpm

7 S-Analogue voltage with S-Override at 100 % S-Analogue voltage with S-Override at max. output voltage Limitation of S-override Maximum Axis designation for axis IV

85 86 87

0.999 - 9.999 Volts

o88

150%

Constant contouring speed at corners Decimal character in program output via V.24 Overlapping factor with pocket milling PLC: Counter predetermined value for counters 0 - 15 PLC: Timer duration for timers 0 - 15 PLC: Position values for 31 coordinates 31 = Ref. PLC: Activation of next tool No. PLC: Setting of 16 markers to binary

93 94 to 109 llOt0 125 126 to 156 157 158

0.001 - 1.414 0 - 65 535 0 - 65 535 in units of 20 ms-

inactive

+ 30 000.000 mm 1 =^ active 0 - 65 535

0 -

65 535 (in 65 536~pm-units)

Function

Parameter No.

Entry

values

80 - 15 999 mm/min

Display of current feed rate before start in manual Ramp gradient for S-analogue Standstill Programming station

0 168 169 1 2 not 0 1 2 3 0 1 I

off

on

0 - 1.999 Volts/ms 0.001 to 30 mm z 2 yet z 2 g 2 g 2 Programming station: PLC active Programming station: PLC inactive active, enter 0 M 03: positive voltage M 04: negative voltage M 03: negative voltage M 04: positive voltage M 03 and M 04: positive voltage M 03 and M 04: negative voltage Status display not to be cancelled Status display to be cancelled 0- IOOmm 0- 1OOmm 0.001 - 1.000 0.100 - 10.000

Handwheel Polarity S-analogue

voltage

171 172

Cancellation of status display with 173 with M 02 and M 30 I Trailing error supervision in trailing operation (Emergency stop) 174 (eraseable) 175 Multiplication factor for KV-factor 176 X 177 KV-factor for Y 178 Z 1179 IV 180 Characteristic kink 181 Minimum for feed rate override with tapping 182 Maximum for feed rate override with tapping 183 184 Minimum voltage for S-analogue output Waiting time for cut-out of remaining 185 nominal value voltage with error display Positioning error X-Axis Tool change position (M 92) 186 Y-Axis 187 Z-Ax is 188 189 I V-Axis Programming of rpm S = 0 permitted 190 (voltage value of MP 184 may be exceeded) Display of current spindle rpm before 191 start in manual Position window for axis IV 192 PLC: Timer duration for timer 16 - 31 193 to 208 Support of PLC-macro commands 209 to 212 Scaling cycle effective on 2 or 3 axes 213 Programmed stop with M 06 214

I 0 - 100.000 o150% %

o- 150% 0 - 9.999 Volts 0 - 65.535 sec.

30 000.000

1 c S = 0 not permitted

0 =^ S = 0 permitted

on 0.001 65 535 in units of 20 ms 0

off

0.05 mm

0 -

0 1 0 1

2 2 e c

Scaling in 3 main axes X, Y and Z Scaling in working plane programmed stop with M 06 no programmed stop with M 06
I

91

G) List of markers for signal exchange between PLC and NC Note: Markers M 1900 to M 1999 are either user-markers or markers for signal exchange depending on marker 2496 (see section C 2.2.4.2).
Marker-No. 2000 2001 2002 2003 2004 12005 12008 2009 2010 2011 2012 Function Release Release Release Release X-axis Y-axis Z-axis IV-axis for for spindle spindle drive drive is 0 V I I I

between

the PLC and NC -

0 = Analogue voltage is located in ramp 1 1 1 X-axis Y-axis Z-axis IV-axis = Analogue in position in position in position in position impulse exceeded impulse exceeded impulse exceeded impulse exceeded (Isb) voltage

Lubrication X-axis limit Lubrication Y-axis limit Lubrication Z-axis limit Lubrication IV-axis limit 1. Bit 2. Bit T-Code T-Code

necessary necessary I necessary necessary

2013

2014 2015 2032 2033 2034 12035 2036 2037 2038 .2039 I2043 2044 2045 2046 2047 2048 2050 2051 2052 2053 2054 2055 2056 2057 2064
I

3. Bit T-Code 1 4. Bit T-Code 5. Bit T-Code 6. Bit T-Code 7. Bit T-Code 8. Bit T-Code 1 Change 1 Change Change Change Change Tapping Programming Manual Electronic Positioning Program Automatic I Proaram Approach I. Bit S-Code test to reference (Isb) point Marker influenced by machine parameter 158 run operation handwheel with single MDI block signal signal signal signal signal cycle (msb) G-Code S-Code M-Code T-Code 2. T-Code is called (see machine parameter 157) for S-analogue

I
1

sitioning

with

MDI

I 2. Bit S-Code 12066 2067 2068 2069 2070 12071 2072 2073 12074 2075 2076 2077 2078 1 3. Bit 4. Bit 5. Bit 6. Bit S-Code S-Code S-Code S-Code

7. Bit S-Code I 8. Bit S-Code I. Bit 1 2. Bit M-Code M-Code M-Code (msb) (Isb)

I 3.

Bit

4. Bit M-Code 5. Bit M-Code 6. Bit 7. Bit 8. Bit M-Code MCode M-Code (msb) I

2079

Marker-No. 2205 2206 2207 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479. 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 i 2491 2492

Function Marker (value Marker (value Marker (value NC-Start NC-rapid Memory 1 Feed 1 Start I Start Start Start Manual Manual 1 Manual 1 Manual IM anual Manual I Manual I Manual function release PLC-positioning PLC-oositionina PLC-positioning PLC-Positioning traversing traversing traversing traversing traversinq traversing traversing traversing X+ XY+ YZ+ ZIV+ IVNC-start NC-rapid memory feed start start start start manual manual manual manual manual manual manual manual signal S-Code M-Code T-Code 2. T-Code display display display and and MO5 sign sign of analogue of analogue output output MO3 MO4 gear function for manual traversing I I I I I X-axis Y-axis Z-axis IV-axis for manual traversing I I I influenced 8192) influenced 16384) influenced 32768) by machine by machine by machine parameter parameter parameter 158 158 158

Marker-No. 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 Xaxis Y-axis Z-axis IV-axis X+ XY+ YZ+ ZIV+ IVcode S-Analogue

Function Inhibit Inhibit Inhibit Inhibit position position position position loop loop loop loop X-axis Y-axis Z-axis IV-axis distance in X-axis lubrication distance in Y-axis lubrication distance in Z-axis lubrication distance in IV-axis lubrication position position position position position position position position X-axis X-axis X-axis X-axis X-axis Y-axis Y-axis Y-axis Y-axis Y-axis Z-axis Z-axis Z-axis Z-axis Z-axis IV-axis IV-axis IV-axis IV-axis IV-axis (msb) coding) coding) coding) coding) coding) coding) coding) coding) (msb) (Isb) (msb) (Isb) (msb) (Isb) value value value value X-axis Y-axis Z-axis IV-axis (Isb) in position in position in position in position loop loop loop loop X-axis Y-axis Z-axis IV-axi

Reset accumulated for travel-dependent Reset accumulated for travel-dependent Reset accumulated for travel-dependent Reset accumulated for traveldependent Transfer Transfer Transfer Transfer REF-point REF-point REF-point REF-point PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning PLC-positioning TNC-button TNC-buttons TNC-button TNC-buttons TNC-button TNC-buttons TNC-button TNC-buttons TNC-button TNC-buttons TNC-button TNC-buttons TNC-button TNC-buttons TNC-button TNC-buttons Strobe Flashing for actual actual actual actual end end end end

I Complemented Complemented Complemented Complemented I Complemented Complemented Complemented Complemented I Complemented Complemented Complemented Complemented Complemented Complemented 1 Complemented Complemented Feedback Feedback I Feedback Feedback Feedback Status I Status I Status NC-Stop Inversion Spindle Spindle I Activation Activation Activation

release PLC-positioning PLC-positioning PLC-positioning PLC-positioning traverse traverse traverse traverse traverse traverse traverse traverse change

2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2800 2801 2802 2803 2804 2805

code for external address of (see markers 2855 to 2923 for code for external address of (see markers 2855 to 2923 for code for external address of (see markers 2855 to 2923 for code for external address of (see markers 2855 to 2923 for code for external address of (see markers 2855 to 2923 for code for external address of (see markers 2855 to 2923 for code for external address of (see markers 2855 to 2923 for code for external address of (see markers 2855 to 2923 for button-code error message from PLC

of analogue ccw for cw for gear gear

voltage change change loop loop loop inhibit inhibit inhibit for for for X-axis Y-axis Z-axis

position position position

2806 2807 2808

Release

marker

for

decoded

M-Code-output

2815

93

Marker-No. 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2868 2869 2870 2871 2872 2880

Function 1 Button Button Button 1 Button 1 Button m inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit inhibit I I I

Button 1 0011 0011 0011 0011 0011 0100 0100 0100 0100 0100 0100 0100 0100 0100 0100

code 1011 1100 1101 1110 1111

q
m m m m m

I Button
I Button Button Button

I I

0000
0001 0010 0011 0100 1000 1001 1010 1011 1100

q
m m m m m m m kd

I Button I Button
1 Button I Button I Button I Button

I I
I 1 1

I Button

Error

message

27

Marker-No. 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980

Function Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error Error 1 Error message message message message message message message message message message message message message message message message message message 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

Marker-No.

Function Error Error Error Error Error 1 Error Error message message message message message message message message message message message 89 90 91 92 93 94 95 96 97 98 99

1 I 3013

1
I

I
-1
I

3014 3015 3016 3017

I I 3019
3018 3020 3021 3022 3023

I Error
Error Error Error

2981

I I

1 2982

2987

Error 1 Error 1 Error Error Error Error Error Error Error 1 Error ) Error Error Error Error Error Error Error Error Error Error Error Error
I

message message message message message message message message message message message message message message message message message message message message message message message message message message

63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 1 I

1 1

2988 2989 2990 2991 2992 2993 2994

I
1

2995

1 2996
2997 2998 2999 3000 3001 3002 3003

3004 3005 3006 3007 3008 3009

I Error I Error Error Error

1
I

1 3010 3011 3012 c

95

DR. JOHANNES IjElDENHAlN


D-8225 Traunreut Telefon (086691 31-O. Telex 56831

Vous aimerez peut-être aussi