Académique Documents
Professionnel Documents
Culture Documents
PLC-Description
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
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
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 _
61 61 61 62 62 64 68 82 83 88 92
This PLC-description
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
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
states. and 0
in this description.
= 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:
(logic circuits).
in the switching
ways:
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
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
in two
adaptation
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
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
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
836 216
05 05
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
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)
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
/. .
-.-.
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
freely available
for
1000
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
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
Internal Emergency Stop wired NC section of the control directly output For the monitoring of the bipolar
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
Emergency
Internal Emergency Stop wired NC section of the control directly output For the monitoring of the bipolar
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.
Nominal
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
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
(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
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
11
2.4)
Layout
of PLC-boards
low voltage.
2.4.1)
PLC-board
f 24V
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
unassigned
--j-m
IL1
PI
II
Cjutput
Emergencystor
f3utput:
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
150-Operating
manual).
EPROM
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
in the command
memory
which
is not occupied
Abbreviation NOP
is assigned
to a marker
or output:
a logic sequence
Abbreviation =
15
two
input variables
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
C 1.4) AND-Command with inverted operand: UN With the aid of the UN-command, two input variables
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
Abbreviation 1 UN
two
input variables
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
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
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
Abbreviation , ON
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
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.
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.
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
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
+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
0 0 ti
is behaving
as a NOR-function.
-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
effects
the following
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
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,
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
number 1
is to be checked
with
consisting
of X0-commands
Gating
X0 X0 X0 =
El E2 E3 Al
produces
a logic 1
I 0 -1
El -1
=I E2p1
q1
E3-, -AI
L
produces
a logic 0
and a logic 1
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
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
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
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
PLC-Programme:
23
C 2) C 2.1) Address
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).
Signal dhection
NC -PL.C
as follovls:
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
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-
lubrication
impulses:
X, Y, Z, IV
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
lubrication-impulse-marker
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
2549
2550
2551
25
C C
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
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
can be suppressed
by machine
parameters
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
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
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
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
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
of the spindle
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
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
the markers
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
D 3.
2.2.6) No.
Marker
Marker 2048
cycle is called-up
NC-PI-C
If the tapping
cycle is called, 1
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
These markers identify the currently activiated on the VDU-screen in reverse image (e.g.
TNC-axis ).
button:
The corresponding
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
Markers Markers
for selected
operating
mode
for operating
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 = = = = = = =
by the selected
operating
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
operating
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
mode which
2.2.9) No.
Markers
PLC-program
of PLC-programme
Marker
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
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
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
parameter
158 is established
as
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
q 0
y F! / m
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
I III
2868 2869 2870 2871 2872 2880
?I
EiJ cl
q
9
Ej)
IT
u rl
,E: Inhibit
button button
I
Ii
I-
* *
Inhibit Inhibit
u l-3
q
$k 0 2: E akd
34
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
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
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
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
in the VDU-screen
# (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
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
loop cannot
be opened with
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
reset corresponding
2.2.14) No.
Markers
for transfer
of actual
position
values as nominal
values (Teach-in)
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
markers
the momentary
position
value is transformed
into
is only possible
mode.
39
2.2.15) No.
Markers
for external
buttons
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
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
of the NC-start-button)
(second
contact
of the NC-start-button)
40
contact
exists, button)
the programme
may be written
in the following
way:
(NC-Start
(NC-Start
button)
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
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
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
Call-up
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
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)
by an external
for
44
The buttons
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 -+
)%
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
cl R'
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
+ 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
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
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
inputs
and outputs Function Reference Reference Reference Reference Reference Reference Reference Reference Feedback Overload Overload
are reserved
and cannot
be freely
allocated:
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
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
of D.C. motors.
Bipolar
outputs
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.
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.
248 - 263
Counter release
impulse-
Z96 - Zlll
Impulse
diagram
machine parameter 5 13 has been set to 5 (e.g. machine 2 2
10
parameter
94)
#14
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
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
110 111
114 115
117 118
120 121
123 124
T16 T64
T19
T20 T68
T23
T26
Machine parameter
193 194
197 198
201~202
for customer-specific
macro-programmes from
macro-programs
can be obtained
HEIDENHAIN.
Press
MOD 0
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
PLC modes:
by pressing
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
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
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 erased
If an additional numeric respective PLC-commanld Selects the following Selects the previous
is pressed,
the
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
NC operation
q q q q q
STOP
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
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
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)
value:
keys
10..
. Terminati&
of
by pressing
q
Press .
or entry
of next PLC-command.
Programming
El
NOP
on the VDU
as NOPs.
6.1.4)
Call-up of a specific
PLC-command
j GOT0
button PGM-LINE = 0
01..
value:
.m
and terminate
values 0 - 2047)
The entered
block
is displayed.
C 6.1.5)
Sequential
checking
of PLC commands
number with
is
to be checked
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.
behind with
is to be entered
1;0 r1
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
NO
Dialogue
quesion: YES
6.1.10)
Input/Output
of PLC-programmes
on magnetic
tape? or printer
Switch
on peripheral
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
c
question:
Dialogue
OUTPUT
TO PGM-LINE
=0
Enter block
c
Dialogue
ENT
-button
INPUT
YES
Press
q -button +
Di; logue display:
EXTERNAL
DATA
OUTPUT
58
With external
data input,
the following
dialogue
questions
are posed:
ASCI l-characters
binary
characters
C ialogue question: C I Dialogue display: EXTERNAL DATA Data transfer is started Enter block 1 INPUT
INPUT
FROM
= 0
6.2)
Operating
Operating
by the pressing
The following
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
E/A/Z/T/M:
(see section
C 6).
the following
the respective : : : : :
operand
button,
q q
z El
E -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
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
of a numeric
value
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
comments
following
PLC-commands
must be separated
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
code
codes for PLC-Commands PLC-Operation 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 11111 code
for PLC-Commands PLC-Address 000 - CCF CD0 - D4F E50 - E8F (Hexadecimal)
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
EPROM
0 1 2 3 4 5
!PROM-Address !PROM-Address
4094 4095
EPROM-Address
8191
61
D)
Standard
150 0 PLC-program
The TNC 150 B control has interfacing interface is achieved by a PLC program.
description1 mahine
interface
(similar
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
150 B is
150 Q controls.
D 1)
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
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
- 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
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
0194
0199
0204
0209
0214
0077 0126
~ 0081 ~ 0129
0085 0132
0090
0095
0390
"0391 0397
0393 0395
~ I
0385
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
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
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
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
~"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
Nos. - Used with "0415 "0416 "0417 0561 0562 "0109 0412 0413
PLC-command-numbers
0601
*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
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
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
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
mode
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 =
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)
0063 0064 0065 0066 0067 0068 0069 0070 0071 0072
U U = u = u = = = =
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 )
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
0094
0095 0096 0097 0098
u
UN U = R
0099
0100 0101 0102 0103 0104 0105 0106 0107 0108
u
UN u = R u UN U = R
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
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
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
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
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
u U UN s R
M E E M M
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
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
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
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
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)
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
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
1 2 3 4 5 6 7 8
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
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
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
M 2046~ T 58 T 59 A22 )
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
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)
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
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
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-
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 -
.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-
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 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
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
I I I
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 -+
86
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
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.
A or B or C)
1 2 20-fold
2 2 lo-fold
0 or 1
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
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
60 61
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
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
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-,
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
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
inactive
0 -
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
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
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% %
30 000.000
1 c S = 0 not permitted
0 =^ S = 0 permitted
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
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
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
voltage change change loop loop loop inhibit inhibit inhibit for for for X-axis Y-axis Z-axis
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
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
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
I
1
2995
1 2996
2997 2998 2999 3000 3001 3002 3003
1
I
95