Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
TNC 320
January 2008
638142_00_a_01.pdf 2 11.12.2007 08:07:01
Contents 1 Safety Precautions ................................................................................................................. 7
2 How to Use this Service Manual .......................................................................................... 9
2.1 About this Manual ........................................................................................................... 9
2.2 Other Documentation.................................................................................................... 10
2.3 Support .......................................................................................................................... 10
2.4 Safety ............................................................................................................................ 10
3 Code Numbers ..................................................................................................................... 11
3.1 Introduction ................................................................................................................... 11
3.2 Overview ....................................................................................................................... 11
3.3 Notes on Entering the Code Numbers .......................................................................... 12
4 Error Messages .................................................................................................................... 15
4.1 Introduction ................................................................................................................... 15
4.2 Error Window ............................................................................................................... 16
4.3 List of NC Error Messages ............................................................................................ 20
5 Errors..................................................................................................................................... 25
5.1 Introduction ................................................................................................................... 25
5.2 Overview of Possible Errors .......................................................................................... 25
6 Procedures and Tips for Error Diagnosis ........................................................................... 29
6.1 Introduction ................................................................................................................... 29
6.2 Sequence for Finding Errors in the Control Loop .......................................................... 29
6.3 Error Localization by Process of Interchange ................................................................ 31
6.4 Error Localization by Process of Exclusion .................................................................... 31
6.5 Notes and Tips............................................................................................................... 33
7 Logs and Service Files ......................................................................................................... 35
7.1 General .......................................................................................................................... 35
7.2 Calling the Logs ............................................................................................................. 36
7.3 Settings for the Logs ..................................................................................................... 37
7.4 Saving Service Files....................................................................................................... 38
7.5 Evaluating the Service Files........................................................................................... 40
8 Diagnosis with the Online Monitor (OLM) ........................................................................ 41
8.1 Introduction ................................................................................................................... 41
8.2 OLM Operation.............................................................................................................. 41
8.3 Screen Layout................................................................................................................ 42
8.3.1 Variable display .................................................................................................... 42
8.3.2 Units .................................................................................................................... 43
8.3.3 Status display ....................................................................................................... 43
8.4 Using the OLM for Troubleshooting.............................................................................. 44
9 Integrated Oscilloscope....................................................................................................... 45
9.1 Introduction ................................................................................................................... 45
9.2 Activation and Settings.................................................................................................. 45
9.3 Recording Signals .......................................................................................................... 50
9.4 Analyzing Recordings .................................................................................................... 52
9.5 Saving and Loading Recordings..................................................................................... 54
10 PLC Diagnostics ................................................................................................................ 55
10.1 Introduction ................................................................................................................. 55
10.2 Diagnosis Options in the PLC Mode ........................................................................... 58
10.2.1 The API DATA Function ..................................................................................... 58
10.2.2 The WATCH LIST Function ................................................................................ 60
10.2.3 The TABLE Function .......................................................................................... 63
10.2.4 The TRACE Function .......................................................................................... 67
10.2.5 PLC Diagnostics with the Integrated Oscilloscope ............................................ 68
10.3 The COMPILE Function............................................................................................... 71
10.4 Calling the PLC Error Table for Diagnosis.................................................................... 72
DANGER
DANGER
Ensure that the main switch of the control is switched off and that connected devices are
not under power when you engage or disengage any connecting elements or connection
clamps.
DANGER
Caution
DANGER
Incorrect or not optimized input values may lead to malfunction of the machine and may
thus cause damage to persons or property.
The machine configuration (config objects and machine parameters) may only be changed
by the machine manufacturer or after consultation with the machine manufacturer!
Uncontrolled movements must be expected.
Caution
Note the safety precautions on the machine (e.g. stickers, signs) and the safety precautions
in the documentation of the machine manufacturer (e.g. operating instructions).
DANGER
Technicians who work on the electrical system of the machine must have the required
technical knowledge and competence!
DANGER
DANGER
Always secure vertical axes to prevent them from falling down before you perform tests
on these axes!
The interfaces for the PLC inputs/outputs, machine operating panel and PL expansion
cards comply with the basic insulation in accordance with IEC 742 EN 50 178.
Only units that comply with the requirements of IEC 742 EN 50 178 for basic insulation
may be connected, otherwise damage to persons or property may be caused.
The maximum mean dc voltage of the PLC inputs is 31 V.
Meaning of the
symbols used in
this manual
DANGER
Failure to comply with this information could result in most serious or fatal injuries,
and/or in substantial material damage.
Caution
Failure to comply with this information could result in injuries and interruptions of
operation, including material damage.
Note
It is assumed that...
The machine had been working perfectly before the error occurred.
Only original spare parts are used!
Note
Basic knowledge of Windows is required for some of the descriptions in this Service
Manual, e.g. those that deal with the use of a service laptop or PC.
Note
Other documentation is available in PDF format for free download from www.heidenhain de.
2.3 Support
Caution
The machine manufacturer must be contacted first for error diagnosis on your machine tool!
However, support will also be provided by the Service Department of HEIDENHAIN Traunreut
or by your HEIDENHAIN agency.
You will find telephone and fax numbers, as well as e-mail addresses, on the back cover of this
Service Manual, or on the HEIDENHAIN website at www.heidenhain.de.
2.4 Safety
DANGER
3.1 Introduction
With code numbers …
certain areas of the memory card
certain file types
certain functions
... can be called.
DANGER
Code numbers may only be passed on to and/or be used by trained service technicians.
Inexpert handling may result in a loss of important data, in faulty machine performance and
thus lead to damage or injury to property or persons.
3.2 Overview
Code number Brief description
0 Delete the code numbers entered so far.
Same effect as a restart!
123 Edit the machine parameters the machine tool builder makes available
to the operator.
13852 Commission analog axes.
75368 Offset adjustment for analog axes, .
95148 Edit machine parameters, see page 28 – 295.
531210 Reset the non-volatile PLC operands. Control operation stops.
A restart is required.
555343 Enable special functions for Q parameter programming and
activate the table editor.
654321 Call the OLM area (online monitor), see page 8 – 41.
688379 Integrated oscilloscope, see page 9 – 45.
807667 Select the PLC Programming mode, see page 11 – 93.
857282 Reset the operating times.
NET123 Edit the network settings.
SIK Display of the number of the system identification key and of the enabled
options, see page 25 – 262.
January 2008 3 – 11
3.3 Notes on Entering the Code Numbers
Keep the code numbers confidential!
Code numbers can only be entered in the Programming and Editing mode.
The screen must be blank or the file editor displayed.
The program manager must not be open (pressing the MOD key would activate the
configuration data for the serial interfaces).
Press the MOD key and enter the code number. Conclude your entry by pressing ENTER.
Now use the numeric keypad to enter the letters or numbers (as when writing an SMS).
Or ...
Connect a computer keyboard with USB interface to TNC 320 (connector X141 or X142).
Note
When certain code numbers are entered, new soft keys are displayed, e.g. CONFIG EDIT, PLC
EDIT, OSCI.
With these soft keys you can now change to the respective areas without having to enter the
code number again.
When you have finished your work do not forget to delete all code-number soft keys (CONFIG
EDIT, PLC EDIT, OSCI, etc.) --> Enter the code number 0, confirm with ENTER or restart the
control!
January 2008 3 – 13
3 – 14 HEIDENHAIN Service Manual TNC 320
4 Error Messages
4.1 Introduction
TNC 320 features a comprehensive integral monitoring system for the prevention of input or
operation errors, as well as for identification and diagnosis of technical defects on the control
and the connected devices. The monitoring system is an integral component of the TNC
hardware and software and is active as long as the control is switched on. The presence of a
technical fault or an operation error is made known through a plain-language message.
The effect of the monitoring functions is described in the annex. --> see “Annex: Monitoring
Functions” on page 1 – 1
Moreover, the machine manufacturer can define specific PLC error messages.
NC error messages
Are part of the HEIDENHAIN NC software.
Can be subdivided into error messages that result from operation, programming and machine
applications and those that indicate a technical defect (devices, electronic and mechanical
components, etc.)
HEIDENHAIN defines how the control reacts to an NC error message (NC Stop, EMERGENCY
STOP, etc.)
HEIDENHAIN defines whether the control can still be operated or has to be rebooted after an
NC error message.
If you have any questions, please contact your machine manufacturer and/or HEIDENHAIN.
January 2008 4 – 15
The machine manufacturer can display additional information on PLC error messages in the
small PLC window (above the soft-key row).
To obtain information on the cause of error and the corrective action, proceed as follows:
Press the MORE INFORMATION soft key.
To obtain further details on the error, such as date, time, event class, line of the NC program,
control program reporting the error, etc., proceed as follows:
Press the INTERNAL INFORMATION soft key.
In the Source: line you can see whether the present error is an NC or a PLC type.
January 2008 4 – 17
Clearing errors To delete an individual error:
Place the cursor on the entry to be deleted.
If the error cause is still existing, the corresponding error message will be displayed again.
--> Correct the error!
Note
Some error messages cannot be acknowledged. --> Shut down the control correctly (soft
key OFF) and restart it afterwards.
If this does not work: Switch the power switch of the machine off and on again.
Information on the Error number: Assigned by HEIDENHAIN or by the machine tool builder.
error message Error class: Defines the control’s reaction to this error (see table).
Error text: Describes the error (in one or several lines). If the error occurs while an NC program
is being run, the line of the NC program will also be indicated.
Checking logs Error and keystroke logs can be used to examine error messages and keystrokes in their time
sequence. --> see “Logs and Service Files” on page 7 – 35
Saving error Being part of an error log, error messages can be saved to a ZIP file. --> see “Logs and Service
messages Files” on page 7 – 35
January 2008 4 – 19
4.3 List of NC Error Messages
Complete list You can find the complete list of all NC error messages (including operator errors) on the
TNCguide DVD in several languages and sorted by error numbers.
This TNCguide information is also available on our website
http://www.heidenhain.de/Services and Documentation/...
This is the official list of NC error messages which contains all possible errors of HEIDENHAIN
controls that operate with the NC kernel operating system.
It comprises technical error messages as well as error messages related to operation and
handling!
Note
When it is possible and useful you should switch the control off and on again in order to see
whether the error message is generated again afterwards.
Filtered list The list below contains the most important error messages that indicate a technical defect.
A reference will be made, if there are additional descriptions in this Service Manual.
Error Message Possible Cause of Error Measures for Error Diagnosis and/or
Corrective action
Deviation in the switch-on The switch-on position of this axis Check current position
position of axis %2 too large deviates from the last one stored by See ”Troubleshooting” on page 16 –
more than permitted tolerance. 174
See ”Possible Causes of Errors” on See ”Investigating Position Encoders”
page 16 – 172 on page 16 – 180
Amplitude too high at position Noise on signal See ”Troubleshooting” on page 16 –
encoder %1 Scanning head too close to scale 174
For very old encoders: Incandescent See ”Investigating Position Encoders”
lamp too bright (spiral-wound filament on page 16 – 180
short-circuited) Adjust scanning head
See ”Possible Causes of Errors” on
page 16 – 172
Movement monitoring error See "Excessive servo lag in %2" See "Excessive servo lag in %2"
in %2
Input frequency of position Noise on position encoder signals Check the shielding (see “Notes and
encoder %.1s Tips” on page 6 – 33)
Check the encoder signals (see
“Investigating Position Encoders” on
page 16 – 180)
EnDat encoder (%2) reports Connected EnDat encoder or encoder See ”Troubleshooting” on page 16 –
error cable is defective 174
See ”Possible Causes of Errors” on See ”Investigating Position Encoders”
page 16 – 172 on page 16 – 180
EnDat encoder (%2) reports Connected EnDat encoder or encoder See ”Troubleshooting” on page 16 –
wrong position cable is defective 174
See ”Possible Causes of Errors” on See ”Investigating Position Encoders”
page 16 – 172 on page 16 – 180
January 2008 4 – 21
Error Message Possible Cause of Error Measures for Error Diagnosis and/or
Corrective action
MC amplitude too low %2 See "Position encoder %2: Amplitude See "Position encoder %2: Amplitude
too small" too small"
MC housing fan defective Rotational speed of the housing fan is Return the MC 320 for repair (see
too low “Exchanging MC 320” on page 25 –
264)
MC NC temperature out of tol. See "Temperature too high (CPU%1 := See "Temperature too high
%2°C)" (CPU%1:= %2 °C)"
Encoder defective %1 Evaluation of ref. marks of distance- See ”Troubleshooting” on page 16 –
coded encoder is faulty 174
See ”Possible Causes of Errors” on See ”Investigating Position Encoders”
page 16 – 172 on page 16 – 180
Encoder %1 defective See "Position encoder %1 defective" See "Position encoder %1 defective"
EMERGENCY STOP defective Relays, safety contactor combinations Replace relays, safety contactor
defective or too slow combinations
Input I3 (X42/4) is permanently at 24 V Check input I3 (see “Checking the
MC 320 defective EMERGENCY STOP chain” on page 18
– 189)
Error in zero pulse distance of Contradiction apparent from See ”Troubleshooting” on page 16 –
encoder %2 comparison of absolute and 174
incremental positions See ”Investigating Position Encoders”
See ”Possible Causes of Errors” on on page 16 – 180
page 16 – 172
Pos. error too large %.1 See "Excessive servo lag in %2" See "Excessive servo lag in %2"
Exchange buffer battery The voltage of the buffer battery is too Replace buffer battery (see “Buffer
low. Battery” on page 15 – 161)
Excessive servo lag in %1 See "Excessive servo lag in %2" See "Excessive servo lag in %2"
Excessive servo lag in %2 Blunt tool See ”Sequence for Finding Errors in
Insufficient lubrication the Control Loop” on page 6 – 29
Machining feed rate too high Reduce machining feed rate
Spindle speed too low Increase spindle speed
Shocks, vibrations Remove shocks, vibrations
Stiffness of mechanical components Carry out offset adjustment (see
“Adjusting the Electrical Offset” on
Excessive offset page 19 – 206)
Incorrect speed adjustment Carry out speed adjustment (see
Speed encoder defective “Speed Adjustment at Servo
Defective carbon brushes Amplifier” on page 19 – 210)
Excessive backlash Check the speed encoder (ask the
manufacturer!)
Coupling system defective (belt, gear,
coupling) Replace carbon brushes
Defect in the mounting of the position Remove backlash
encoder or scanning head Fasten encoder or scanning head
Position encoder or cable defective See ”Investigating Position Encoders”
on page 16 – 180
Signal frequency at position See "Input frequency of position See "Input frequency of position
encoder %1 encoder %1" encoder %1"
Standstill monitoring %2 Shocks, vibrations See ”Sequence for Finding Errors in
Excessive offset the Control Loop” on page 6 – 29
Vertical axes: Poor brake or faulty Remove shocks, vibrations
weight balance Carry out offset adjustment (see
Great mechanical effects during “Adjusting the Electrical Offset” on
machining page 19 – 206)
Replace or repair brake, adjust weight
balance
Check tools
Temperature too high (CPU%1 Climate control unit in electrical cabinet Repair or replace climate control unit
:= %2°C) defective Clean the filter pads
Clogged filter pads Replace fan in electrical cabinet
Fans in electrical cabinet defective If the fan in the control is defective
Fan in MC 320 defective ---> Replace MC 320 (see “Exchanging
Temperature sensor in the control MC 320” on page 25 – 264)
defective If the temperature sensor in the control
Unfavorable mounting of components is defective --> Replace MC 320 (see
“Exchanging MC 320” on page 25 –
264)
January 2008 4 – 23
4 – 24 HEIDENHAIN Service Manual TNC 320
5 Errors
5.1 Introduction
Not all error conditions on the control or machine can be shown by error messages on the
monitor.
Therefore, this chapter gives you an overview of errors with notes and tips on how to proceed.
Static and Errors can be assigned to the categories of static errors (e.g. interruption in the electrical cabinet,
nonstatic errors defective device) and nonstatic errors (e.g., loose connection, shielding problems,
interferences).
Naturally, static errors can be found more easily.
Sporadic and Check whether you can reproduce a certain error on the machine at any time (nonsporadic error).
nonsporadic This assists you in troubleshooting.
errors To investigate sporadic errors e.g. the integrated log files and the integrated oscilloscope are
suited.
Note
Where it is possible and useful, you may switch the control off and on to observe whether
the error is generated again afterwards.
January 2008 5 – 25
Error Possible Error Cause Measures for Error Diagnosis and/
or Corrective action
The control does not boot completely No good contact of memory card Remove and re-insert the memory
(error messages related to the booting Memory card defective card
procedure may be displayed). Replace memory card or MC 320,
see “Exchange of HEIDENHAIN
Components” on page 25 – 261
The message RELAY EXTERNAL DC EMERGENCY STOP chain Check "Control is ready" output and
VOLTAGE MISSING does not disappear, interrupted acknowledgment I3, see “Checking
although the key "Control voltage ON" 24 V power supply from connector the Enables on TNC 320” on page
is pressed. X 34 is missing 18 – 187
MC 320 defective
The Power interrupted message The control does not receive the see “Operating Keys and
cannot be confirmed signal of the CE key Potentiometers” on page 21 – 219
The machine cannot be referenced Interruption between NC Stop key Eliminate the interruption, repair the
after switch-on, or during operation and control (the NC Stop signal is key, etc., see “Machine Operating
neither the axes can be moved nor the low-active) Panel” on page 22 – 235
spindle switched on.
The machine is in the mode Cross Drive system not ready for operation See ”Checking the Readiness of the
over reference points which is Analog Servo Drives” on page 18 –
Alarm from servo 194
neither possible with the NC START
key nor with the axis direction keys. Feed-rate enable missing
See ”Checking the Enables on TNC
NC STOP signal active 320” on page 18 – 187
Inspect NC Stop key
During reference run, the machine The trip dogs for direction reversal See ”Reference Run” on page 17 –
moves to the EMERGENCY STOP limit during reference run are defective 183
switch or to the mechanical stop (for PLC input at TNC 320 or PLC I/O See ”Checking the PLC inputs” on
machines with trip dogs) board (e.g. PL 510) defective page 10 – 63
During reference run, the machine The reference marks of the linear or Check linear scale, angle encoder,
moves to the EMERGENCY STOP limit rotary encoders were not evaluated etc., see “Encoder Interface” on
switch or to the mechanical stop (for The reference marks of the rotary page 16 – 171
machines without trip dogs) encoders in the servo motors were Check servo motor, drive amplifier --
not evaluated > Ask the manufacturer!
The STIB symbol for "Control-in- Axis did not reach the positioning Perform drift adjustment see
operation" (NC START button in status window “Adjusting the Electrical Offset” on
display) remains in place even though Excessive static and sliding friction page 19 – 206
positioning appears to be completed.I (slip & stick ) After axis post/re-optimization
in the automatic operating modes the Excessive offset Check the workpiece
next NC block is not executed; the NC Approach behavior of axis not
program hangs. optimized
Chip in threaded hole; reversal point
is not reached
Axes oscillate; loud noise may be Negative mechanical changes in the Check the mechanics of your
produced machine axes machine; consult your machine
manufacturer
Axis "jolts" Carbon brushes to supply the motor Exchange the carbon brushes
with energy or to pick off the
speedometer are abraded on one
side or used up
Inexplicable drift of the drives (offset Poor shielding or grounding Check the grounding of your
and speed adjustment at the servos machine; consult your machine
are OK) manufacturer
Ensure that all grounding clamps are
secure
See ”Shielding and grounding” on
page 6 – 33
The following error is too high at axis Excessive drift Perform drift adjustment see
standstill. “Adjusting the Electrical Offset” on
page 19 – 206
January 2008 5 – 27
5 – 28 HEIDENHAIN Service Manual TNC 320
6 Procedures and Tips for Error Diagnosis
6.1 Introduction
The following systematic procedures have proven themselves for error diagnosis at a machine
tool.
They are described below.
Note
Make use of the extensive diagnosis options of TNC 320, such as...
Integrated oscilloscope (see “Integrated Oscilloscope” on page 9 – 45)
PLC diagnosis (see “PLC Diagnostics” on page 10 – 55)
Log files (see “Logs and Service Files” on page 7 – 35)
Online monitor (see “Diagnosis with the Online Monitor (OLM)” on page 8 – 41)
Also note the procedures and tips for error diagnosis at NC-controlled machine tools in
chapter 6.5!
Note
Note
In exceptional cases defective measuring systems may be the cause of the above-
mentioned error messages in the control loop. Due to defective electronics or a damaged
cable, constant voltage values are supplied to the control that are within the tolerance range
of the encoder specifications. Consequently, no encoder error message is generated!
To perform an analysis, increase the monitoring limits (e.g. for the following error, see
“Annex: Monitoring Functions” on page 1 – 1) such that a longer distance can be traversed.
Now inspect the encoder signals with an appropriate measuring device (e.g. PWM 9, see
“PWM 9 Encoder Diagnostic Set” on page 27 – 289).
When the axis is moved, the signal must change (sine, cosine)!
Finally, restore the original monitoring tolerances!
January 2008 6 – 29
Flowchart
Procedure in the event of errors in the control loop
YES
Hydraulics, NO
Correct error in hydraulics,
pneumatics, brakes
pneumatics, brakes.
OK?
YES
Coupling NO
Correct errors in
system
coupling system.
OK?
YES
Drive NO
Correct errors in
system
drive system.
OK?
YES
NO
Control and Replace defective control
connected devices OK? or encoders or cables.
YES
Example:
Interchange
possibilities
on TNC 320
January 2008 6 – 31
Deselection of an axis
Do No
The errors are limited to one axis!
error messages continue
Find out the error cause.
to occur?
Yes
Note
Errors occur that do not uniquely refer to a certain axis or connected device.
--> Sequentially deselect the axes or disconnect the devices and deselect them in the
NC software!
Note
If you intend to use the exclusion method for the tool changer, chip conveyor, etc., contact
your machine manufacturer!
Power Where it is possible and useful, you may switch the control off and on to observe whether the
OFF and ON error is generated again afterwards.
What is the cause Ask the operator or technician who worked last with or on the machine about the detailed course
of this error? of events.
Were there any particular incidences such as …
Thunderstorms
Modifications to the machine
Update of NC software
New machining program
Tool breakage
Collision
Power failure
Etc.
The error diagnosis will be easier for you if you ask pointed questions to get precise answers!
Comparison with If identical machines or devices are available, you can compare the functions.
functioning
This can be very helpful for troubleshooting!
machines or
devices
Males and Observe the following instructions for connecting or disconnecting any connectors:
females
Connect and disconnect straightly! Otherwise, the spring contact in the D-sub connectors
could be widened. This may result in contact problems!
Low voltages All units connected to the control are supplied by the control (encoders with long cables
and polyfuses are maybe provided with voltage amplifiers).
The TNC 320 features "polyfuses".
Polyfuses are electronic "self healing" fuses that become highly resistive if an overload occurs
and thus separate defective peripherals (encoders, handwheel, USB devices, touch probes,
machine operating panel) from the low voltages in the control.
Error messages related to the respective device may be displayed afterwards.
Caution
The video signal is switched off, if there is a short-circuit in the power supply of the
handwheel (12 V) or in the 15 V power supply of the touch probe (not the 5 V supply).
--> The screen goes blank!
Shielding and Defective shieldings and groundings may also result in undefined errors or in a malfunction of
grounding the machine (e.g. vibration of axes, poor quality of the workpiece surface). The reason are
compensating currents that are caused by potential differences.
Therefore, check the terminals, shielded cables (the braiding must not contact the 0 V conductor
inside the cable), cover plates, grounding bars, contact plates, etc.
Sources of Also consider possible sources of interference that may have a negative effect on the control
interference and the connected devices.
Interference is mainly produced by capacitive and inductive coupling from electrical conductors
or from device inputs/outputs, such as ...
Strong magnetic fields, e.g. from transformers, electric motors, magnetic clamping tables
Relays, contactors and solenoid valves
January 2008 6 – 33
High-frequency equipment, pulse equipment and stray magnetic fields from switch-mode
power supplies
Adjoining welding facility
Power lines and leads to the above equipment
Note
Contamination Pay special attention to contaminated units (oil, grease, dust, etc.)!
What could be the reason for the contamination?
Some examples:
Machining of graphite
Coolant or coolant vapor
Defective filter system in the electrical cabinet (filter pads)
Oil or oil vapor
Oil in the compressed-air system
Temperature Use the appropriate equipment to measure, whether the temperature is exceeded.
What could be the reason?
Some examples:
Climate control unit in electrical cabinet defective
Clogged filter pads
Defective fan
Motors and servos overloaded
Defective temperature sensors
Unfavorable mounting of components
DANGER
7.1 General
Logs and service files serve as troubleshooting aids.
The log files comprise the error log, the keystroke log and the service files.
For this purpose errors and system information (system start, system end, etc.) are entered.
All keystrokes and mouseclicks are logged.
Note
The first horizontal soft key (bottom left on the monitor) is entered as HORZSOFTKEY1 in the
keystroke log, the second one as HORZSOFTKEY2, etc.
The arrow keys for switching the horizontal soft-key rows are logged (SOFTKEYSCROLLLEFT
and SOFTKEYSCROLLRIGHT).
Any newly called soft-key row starts with HORZSOFTKEY1.
The first vertical soft key (top right of the screen) is entered as VERTSOFTKEY1 in the log,
the second one as VERTSOFTKEY2, etc.
The arrow key for switching the vertical soft-key rows is logged as SOFTKEYSCROLLUP.
Any newly called soft-key row starts with VERTSOFTKEY1.
Note
The error log also features a counter which is incremented at IPC clock pulse.
This counter is used as time reference for the information in the individual service files.
January 2008 7 – 35
7.2 Calling the Logs
Press the ERR key to open the error window.
Now you can open the error log file by pressing the ERROR LOG soft key.
The soft key KEYSTROKE LOG opens the log containing the keystrokes.
Current and Two files are available for the error log and the keystroke log: the current file and the
previous file previous file.
As soon as the current file is full, it becomes the previous file and the control creates a
new current file.
I.e. if you do not find an error message or a keystroke in the current file:
Press the PREVIOUS FILE soft key.
Search this file for the error message or keystroke.
Setting filters in Use a filter to limit the log file display to the following error groups:
the error log
Information
Warnings
Errors
System errors
Whether the filter is taken into account depends upon the setting of the
FILTER ON / OFF soft key.
Press this soft key to activate the filter settings.
Now press the FILTER SETTINGS soft key.
Press the filter soft keys to obtain the desired display.
Press the REFRESH soft key.
With the soft key MORE FILTER FUNCTIONS you can ...
Select clients whose errors and error information are to be considered in the log file display.
Select date and time from which you want the log file contents to be displayed.
Close the dialog box with OK and press the REFRESH soft key again to load the settings.
January 2008 7 – 37
7.4 Saving Service Files
Press the ERR key to open the error window.
Press the soft key SAVE SERVICE FILES. --> The files concerned are zipped and
stored in the TNC:\ main directory.
Note
The files that are compressed here comprise the files defined by HEIDENHAIN as well as
all files in the directories PLC:\Service and TNC:\Service (if existing).
January 2008 7 – 39
7.5 Evaluating the Service Files
The compressed service files cannot be viewed on the control.
Read out the required ZIP file (e.g. service1.zip) to an external data medium.
Decompress the ZIP file.
Open the log files with a text editor.
Other files you can e.g. open with EXCEL.
Note
For further evaluation in detail send the compressed service files (e.g. service1.zip) to your
machine your machine manufacturer or to a HEIDENHAIN service agency.
8.1 Introduction
The OLM (OnLine Monitor) is part of the control software and can be used for diagnosing
MC 320.
Software structure
January 2008 8 – 41
8.3 Screen Layout
The OLM lists the variable designations, status designations, etc. in the dark-highlighted
boxes of the “main window.”
The white-highlighted boxes contain the variable values. The OLM displays the values of two
axes or channels.
In the column heading, the axis designation or channel designation defined in the parameters
is shown.
Parameter for axis designation:
System/CfgAxes/axisList(axisId)
Parameters for channel designation for IPO:
ChannelGroup/CfgChannelGroup/Machining/ChannelList
Parameter for channel designation for SimIpo:
ChannelGroup/CfgChannelGroup/Simulation/ChannelList
The term Index n in the column heading means that no axis or no channel is defined for this
index.
The following general data is displayed in the bottom display line:
Connected: Indicates the software or function area to which the OLM is connected.
Ipo
SimIpo
PLC
none: No connection
IpoCounter: Counts the IPO clock pulses
Note: The contents of the IpoCounter are also stored for trace information and error
messages.
Ax/Chn-Number: Logical axis number or channel number (depends on the selected function)
Number at left: Left column
Number at right: Right column
8.3.2 Units
The OLM displays data in the following units:
Linear axes
For position, length, etc: in [mm]
For speed: in [mm/s]
For acceleration: in [mm/s2]
Rotary axes (spindles)
For position, etc: in [°]
For speed: in [°/s]
For acceleration: in [°/s2]
In the main window, the status of the binary variables is displayed. The status is identified by the
background color and the code letter.
Green or “T”: true
Red or “F”: false
Yellow: Status not defined yet
The information given about the display of variables also applies to the column headings and the
bottom display line.
January 2008 8 – 43
8.4 Using the OLM for Troubleshooting
The use of the online monitor for field service is described in the respective chapters of this
Service Manual.
9.1 Introduction
The TNC 320 features an integrated oscilloscope with...
6 channels for recording analog signals
16 channels for recording digital signals
Note
The integrated oscilloscope is a useful aid for investigating errors related to axis
movements.
For example, the comparison of actual to nominal values, such as distance, velocity and
acceleration may provide information about possible error locations and causes.
Note
The integrated oscilloscope also allows for simultaneous recording of analog signals and
PLC signals!
January 2008 9 – 45
Setup for Press the SELECTION soft key.
analog signals
and PLC signals
In the dialog box, set:
Type of display: Set the time interval for recording the signals.
YT: Chronological depiction of the channels
YX: Graph of two channels
Sampling time: Set the time interval for recording the signals.
CC clock: Time interval = 0.6 ms
IPO clock: Time interval = IPO clock = 3 ms
PLC clock: Time interval = PLC clock
(results from System/CfgCycleTimes/plcCount * Ipo clock)
3 000 grid points (events) are stored. The time grid determines the duration of recording.
Examples:
0.6 ms ⋅ 3000 = 1.8 s
3 ms ⋅ 3000 = 9 s
21 ms ⋅ 3000 = 63 s
Note
TNC 320 with analog axes does not feature a CC (digital controller).
Therefore, the smallest reasonable time interval is the 3 ms IPO clock!
Channel 1 to channel 6
Specify the signals to be recorded:
Assign the channels of the analog signals to be recorded to the respective axes.
Specify the operand type (B,W,D,I,O,T,C) and the address for the recording of PLC operands.
Note
To compare a "SAVED" signal to a newly recorded signal both recordings should be made
with the same trigger conditions!
Otherwise, shifts on the time axis may make signal comparison difficult or impossible.
Trigger conditions:
Specify the trigger conditions in the following input fields:
Trigger: Set the trigger condition.
Single shot: After pressing the soft key, the next 3000 events are stored.
Free run: The recording is started and ended by soft key. When you press the STOP soft
key, the last 3000 events (maximum) are saved.
Channel 1 to Channel 6: Recording begins when the trigger condition of the selected
channel is fulfilled.
Channel 1 + L to channel 6 + L: Recording begins when the trigger condition of the channel
selected here as well as the trigger conditions of the digital signals (trigger condition “logic”)
are fulfilled. The trigger conditions are AND-gated.
Logic: Recording begins when the trigger condition of the digital signals is fulfilled (trigger
condition “logic”).
Edge: Set when triggering is to occur:
+: Trigger at rising edge
–: Trigger at falling edge
Trigger threshold: Enter the trigger threshold (you will find the appropriate units in the signals
table on Page 49).
Pre-Trigger: Select a value from the selection box.
Recording begins at a time preceding the trigger time point by the value entered here.
The Output and Feed rate F fields are reserved.
January 2008 9 – 47
Special setup for Call the “M, I, O, T, C selection” dialog box:
the PLC signals Press the SELECT MIOTC soft key.
M, I, O, T, C
Set:
Operand: Type and number of the PLC operand
M: Marker
I: Input
O: Output
T: Timer
C: Counter
Trigger:
X: No trigger
0: Trigger at 0-level
1: Trigger at 1-level
The trigger is only taken into consideration if Selection = X is set.
Selection:
X: Signal is displayed and considered as trigger
Empty field: Signal is not displayed and not considered as trigger
Note
You define the general trigger conditions (“Trigger” input field) and the pre-trigger in the
setup for analog signals.
The trigger condition “logic” is fulfilled when all triggers set in “MIOTC SELECT” are
fulfilled (AND-gating).
Note
For technical reasons the signals Position: A (0° signal of position encoder) and
Position: B (90° signal of position encoder) cannot be recorded with the internal
oscilloscope!
Note
The signals PosDiff, v (n act), v (n nom), I (n int) and I (nom) are reserved for
digital axes.
If v (n act), v (n nom), I (n int) or I (nom) are selected, the following error message
is displayed:
251-0ced WARNING! Error in synchronization of data channels
Note
The PLC operands are addressed with numbers in the oscilloscope. You get the numerical
addresses from the PLC diagnostic function WATCH LIST.
January 2008 9 – 49
Sampling rate The resolution of the internal oscilloscope is at most 3 ms.
With a scanning frequency of 333 Hz signal frequencies up to 166 Hz can be displayed!
For every channel, the type and resolution of the analog signal are shown in the left status field.
The operand type and address are listed for digital signals.
To stop recording:
Press the STOP soft key.
Stop display:
Press the DISPLAY STOP soft key.
Pre-trigger = 100%: Recording is stopped. The last 3000 events before the fulfilled trigger
condition are saved.
Note
If the trigger condition is fulfilled before the corresponding number of events have been
stored when the pre-trigger is set to 25, 50, 75 or 100%, then correspondingly fewer events
are recorded.
Example:
Oscilloscope display with pre-trigger 75 %; the trigger condition is fulfilled immediately when
recording is started.
During recording, the selected signals are continuously displayed. You can freeze the display of
the signals with the DISPLAY STOP soft key. This does not affect the recording of the signals.
The recorded data remain stored until you start recording again or activate another graphic
function.
A fulfilled trigger condition is indicated with a “T” in the status field at right below the display
area.
Hide/show gridlines:
Press the GRID soft key.
January 2008 9 – 51
9.4 Analyzing Recordings
Recording After recording has completed, the oscilloscope shows the memory contents. The information
completed in the status field below the display area refers to the displayed events. It has the following
meanings (see figure below):
Left number: Time the “leftmost” event was recorded
Right number: Time the “rightmost” event was recorded
The bar symbolizes the displayed range relative to the memory content.
The fulfillment of the trigger condition is designated as “t0” (t=0). Events that were recorded
before the trigger condition was fulfilled are given a negative time. If no trigger condition was
defined, the beginning of the recording is designated as “t0.”
Influence the
signal display Soft keys that influence the signal display:
Shift the signal downward.
Shift the The following soft keys influence the entire display range (all signals):
time axis
Shift the display range to the left.
The information for the second cursor is relative to the first cursor. It is shown in the status
field (see “Cursor information” figure):
Code “t2: .....”: Cursor position in [s], referenced to the first cursor
Code “Cu2: .....”: Signal referenced to the first cursor position
Cursor information:
January 2008 9 – 53
9.5 Saving and Loading Recordings
You can save the recorded signals and all settings in one file. The file must have the
extension SCO (oscilloscope trace file).
You can load and evaluate saved SCO files in the oscilloscope. HEIDENHAIN also makes
the PC program TNCscopeNT available for evaluating SCO files.
10.1 Introduction
PLC Terminology PLC is a general term from control technology and is the abbreviation for:
Programmable Logic Control.
The PLC is an integral part of a HEIDENHAIN control and is therefore referred to as
Integral PLC.
Note
The machine manufacturer creates the PLC program for the machine or adapts an existing
PLC project to his machine.
DANGER
Changes to the PLC program or to the PLC wiring may influence not only the function
but also the safety of the machine! This may result in damage to property or persons!
Changes to the PLC may only be performed by the machine manufacturer!
Data exchange The PLC has to exchange data with the machine but also with the operating system of the
with the PLC control to be in a position to carry out adaptation and control tasks.
Depending on the type of control, various inputs and outputs are available for data exchange
with the machine.
Data exchange between PLC and NC is implemented over the Application Programmer
Interface (API), a symbolic programming interface.
The familiar previous PLC-NC interface is also available and can be used by the machine
manufacturer, if desired.
Calling the Press the following keys to call the PLC mode:
PLC mode Select the Programming mode of operation.
After the code number has been entered, the PLC main menu is displayed.
January 2008 10 – 55
PLC main page
Code length:
Length of the compiled sequential program in bytes.
Running PGM:
Name of the last compiled PLC program (program in process memory).
During switch-on, the control automatically compiles the program that was selected in process
memory before switch-off.
The files only become active after they have been compiled.
Trace PGM:
Name of the PLC program called last in the Trace mode.
Error table:
Name of the error table used.
Editor PGM:
Name of the program or file in the editor’s main memory.
January 2008 10 – 57
10.2 Diagnosis Options in the PLC Mode
TNC 320 provides comprehensive PLC diagnosis options.
Since the PLC program was written by the machine manufacturer, PLC diagnosis often requires
his support.
Note
If the machine manufacturer is using the programming interface (API) compatible with
the TNC, the API DATA function is not active or does not provide useful display values.
January 2008 10 – 59
10.2.2 The WATCH LIST Function
The WATCH LIST function enables you to create a table of different operands whose states are
then displayed altogether.
Note
Create a WATCH LIST with the aid of the machine manufacturer, if necessary.
Load the saved WATCH LIST selection from the memory card
(*.WLT file)
Return to the PLC main menu
Saving After you have created a WATCH LIST, you can save the settings in a WLT file and call them
WATCH LIST files again at a later date:
Press the SAVE soft key. --> A new window opens.
Enter the name for the list to be saved (the file extension must be wlt) and confirm your entry
with OK.
Loading When you call the WATCH LIST function after a restart, the file tmp.wlt is loaded automatically.
WATCH LIST files Now you can call previously saved WATCH LIST files:
Press the LOAD soft key. --> A new window opens. The saved WATCH LIST files are
displayed.
January 2008 10 – 61
Use the cursor to select the desired WATCH LIST and confirm it with OK.
Checking the The following describes the testing of PLC inputs and outputs for which the TABLE function can
PLC inputs be very helpful:
January 2008 10 – 63
Note
The displayed logical states must be in agreement with the voltage level of each input!
Possible causes If there is a difference (e.g., the voltage level is within the tolerance range but the logical
of error state is 0), it may have the following causes:
Defective input at the MC or the PLC expansion card
Defective cable or connector
Fault in the PLC bus
Note
It is not possible to measure PLC inputs directly at the handwheel or at the cable adapter
for the handwheel!
Note
If the HEIDENHAIN test adapter (or the "Universal Measuring Adapter") is available, you can
connect it between the connectors X42 and X45 of the MC to measure the voltage level of
the input to be checked. --> See “Inspection and Testing Equipment” on page 27 – 283
Note
Meaning of the
LEDs on the
PLD 16-8 LED Meaning
Red LED at X4, pin 1 Short circuit of the outputs
Yellow LEDs at X4, X5 and X6 Status of the inputs and outputs
Green LEDs at X6, pin 9 and pin 10 24 V power supply of the outputs
The displayed logical states must be in agreement with the voltage level of each output!
Troubleshooting If there is a difference (e.g., the logical state is 1, but the voltage level is below the tolerance
limit), proceed as follows:
Yes
Connecting cable, wires, relay, etc.
Short-circuit?
defective.
No
Yes
Configuration may be faulty;
Output current too high?
contact the machine tool builder!
No
Output board of MC or
PLC expansion board defective,
or interruption in connector,
or interference on a PLC bus
Note
It is not possible to measure PLC outputs directly at the handwheel or at the cable adapter!
January 2008 10 – 65
Note
If the HEIDENHAIN test adapter (or the "Universal Measuring Adapter") is available, you can
connect it between the connectors X41 and X46 of the MC to measure the voltage level of
the output to be checked. --> See “Inspection and Testing Equipment” on page 27 – 283
Measuring circuit
with test adapter
for PLC inputs and
outputs on the MC
DANGER
Do not engage or disengage any connecting elements while the machine is under power!
The control identifies every cyclically executed command with an asterisk (*).
Use the arrow keys or the GOTO function to select the program section that the control should
display on the screen.
The PLC program to be displayed is chosen with the SELECT MODULE soft key, and must be
the currently active main program or a file integrated with USES.
January 2008 10 – 67
10.2.5 PLC Diagnostics with the Integrated Oscilloscope
The integrated oscilloscope offers the possibility of recording PLC operands as a function of
time. Thus, it can be used as logic diagram!
Selecting Here you can only record PLC operands with their possible states (0 or 1).
M, I, O, T, C Up to 16 channels can be selected.
These PLC signals can be recorded simultaneously with analog signals.
Press the SELECT MIOTC soft key.
Choose the operand type and number.
January 2008 10 – 69
Note
To display the numerical addresses call the symbol list e.g.in the Watch List function.
--> See “Display of symbolic operands in the WATCH LIST” on page 10 – 61.
Note
You define the general trigger conditions (“Trigger” input field) and the pre-trigger in the
setup for analog signals.
The trigger condition “logic” is fulfilled when all triggers set in “M I O T C selection” are
fulfilled (AND-gating).
Note
The compilation of very extensive PLC programs may take some time. Compilation is
completed when the PLC main menu appears on the screen again and values are displayed
under Processing time. If errors occur during the compilation of the program, the control
displays a corresponding message in the PLC main menu.
Caution
January 2008 10 – 71
10.4 Calling the PLC Error Table for Diagnosis
Introduction The machine manufacturer defines the PLC error messages in the PLC ERROR TABLE.
This PLC error table has the extension .PET.
You can open this file to learn more about the PLC error messages!
DANGER
The PET table may only be opened for the purpose of fault diagnosis.
Under no circumstances may the settings be changed, as this will alter the performance of
the machine!
This could lead to damage to property or persons!
Calling the Enter the PLC code number. --> See “Code Numbers” on page 3 – 11
PET table Exit the PLC main page with END.
Example of
a PET table
If you place the cursor to the right, you get more information about the PLC error messages.
Error text file Error texts are defined directly in the PET table (max. 32 characters; not language-sensitive) or
in the error text file. In the error text file, the machine manufacturer defines the error text to be
displayed as well as the information on the cause of error and corrective action.
Error text files are language-sensitive. The path for the error text file is permanently defined:
PLC:\LANGUAGE\EN (or another language abbreviation).
Note
If the # symbol is entered in the ERROR column of the PET table, there is a link to an error
text file in the respective national language.
Ideally the PLC programmer also writes the text of the error message (e.g. # 010 Machine
guard is open!) next to the # symbol with the error number. However, this is not mandatory.
--> The error texts can be found in the corresponding PLC error text file!
January 2008 10 – 73
10.5 Overviews
The following tables are excerpts from the TNC 320 Technical Manual of February 2006.
Instructions The table below provides an overview of all possible PLC commands:
overview
Group of Syntax Function
functions
Loading and saving commands
L Load
LN Load NOT
L– Load two’s complement
LB Load BYTE
LW Load WORD
LD Load DOUBLE WORD
= Assignment
B= Assign BYTE
W= Assign WORT
D= Assign DOPPELWORT
=N Assign NICHT
=– Assign two’s complement
Setting commands
S Set
R Reset
SN Set NOT
RN Reset NOT
Logical operations
A And
AN And NOT
O Or
ON Or NOT
XO Exclusive OR
XON Exclusive OR NOT
Arithmetical commands
+ Addition
– Subtraction
x Multiplication
/ Division
MOD Remainder
January 2008 10 – 75
Group of Syntax Function
functions
Stack operations
PS Push data onto the data stack
PL Pull data from the data stack
PSL Push logic accumulator onto the data stack
PSW Push word accumulator onto the data stack
PLL Pull logic accumulator from the data stack
PLW Pull word accumulator from the data stack
Jump commands
JP Unconditional jump
JPT Jump if logic accumulator = 1
JPF Jump if logic accumulator = 0
CM Call module
CMT Call module if logic accumulator = 1
CMF Call module if logic accumulator = 0
EM End of module, program end
EMT End of module if logic accumulator = 1
EMF End of module if logic accumulator = 0
LBL Label
January 2008 10 – 77
Operand PLC operands of the “general data” group
overview
(new TNC API)
Markers Description SW
version
General – Control configuration
D NN_GenOmgCount Number of configured groups of operating
modes
D NN_GenChnCount Number of configured machining channels
D NN_GenAxCount Number of configured logical axes (including
spindles)
D NN_GenSpiCount Number of configured spindles
General – Control status
D NN_GenOmgManual Selected operating mode group for manual
operation
D NN_GenChnManual Selected machining channel for manual
control
D NN_GenSpiManual Selected spindle for manual control
M NN_GenCycleAfterPowerOn 1. PLC scan after power on
(M4172)
M NN_GenCycleAfterPlcStop 1. PLC scan after interruption of the PLC
program
(M4173)
M NN_GenCycleAfterReConfig 1. PLC scan after changing of the
configuration data
(M4174)
M NN_GenNcInitialized Control is being initialized (after start-up
cycles)
(M4184)
M NN_GenNcEmergencyStop Control in “external emergency stop” state
(M4178)
General – Error handling
M NN_GenApiModuleError An error occurred when using an API
module.
(M4203)
D NN_GenApiModuleError Error code that appeared when using an API
Code module.
(W1022)
General – Key information
D NP_GenKeyCode Code of the depressed key
(W274)
D NP_GenModCode Code of the code number last entered
(D276)
M PP_AxHandwheelLocked Disable handwheel motion
(M4576)
D NP_GenSoftkeyHori Code of the horizontal soft key last pressed
(W302)
D NP_GenSoftkeyVert Code of the vertical soft key last pressed
(W304)
General – Touch probe
M NN_GenTchProbeReady Touch probe: Ready (hardware signal)
(M4050)
M NN_GenTchProbeDeflected Touch probe: Stylus deflected (hardware
signal)
(M4052)
January 2008 10 – 79
PLC Operands of the “Operating Mode Group” Group
Markers Description SW
version
OMG – Configuration
D NN_OmgChnCount Number of machining channels for this
group of operating modes
D NN_OmgChn Array of the machining channels for this
group of operating modes
OMG – Operating modes
M NN_OmgManual Manual Operation operating mode
(M4150)
M NN_OmgHandwheel Electronic Handwheel operating mode
(M4151)
M NN_OmgMdi Positioning with Manual Data Input
operating mode
(M4152)
M NN_OmgProgramSingle Program Run, Single Block operating mode
(M4153)
M NN_OmgProgramRun Program Run, Full Sequence operating
mode
(M4154)
M NN_OmgProgramReference Reference operating mode
(M4155)
M NN_OmgProgramDiagnosis Diagnosis operating mode
M NN_OmgJogIncrement Jog Increment operating mode
(M4579)
OMG – Program run
M PP_OmgNcStart NC start for all machining channels of this
operating mode group
M PP_OmgNCStop NC stop for all machining channels of this
operating mode group
Markers Description SW
version
Channel – Configuration
D NN_ChnAxisCount Number of axes of this machining channel
D NN_ChnAxis Array of the axes of this machining channel
Channel – Error handling
M NN_ChnErrorWarning Error or warning occurred
M NN_ChnErrorFStop Feed stopped because of an error
(M4220)
M NN_ChnErrorNCStop NC stop due to an error
(M4221)
M NN_ChnErrorCancel Program canceled because of an error
(M4223)
M NN_ChnErrorEmergency Emergency stop because of an error
Stop
(M4222)
M NN_ChnErrorReset Reset because of an error
January 2008 10 – 81
Markers Description SW
version
Channel – Touch probe
M NN_ChnTchProbeCycle Touch probe: Touch probe cycle active
(M4053)
M PP_ChnTchProbeMonitor Touch probe: Enabling the probing process
(M4055)
Channel – Feed rate
D NN_ChnProgFeedMinute Programmed feed per minute [mm/rev]
(D360)
D NN_ChnProgFeedRevolution Programmed feed per revolution [mm/min]
D NN_ChnProgFeedThread Programmed thread feed rate [mm/rev]
M NN_ChnProgMinuteActive Feed per minute active
M NN_ChnProgRevolution Feed rate per revolution active
Active
M NN_ChnProgThreadActive Thread feed rate is active
D NN_ChnContourFeed Current contouring feed rate [mm/min]
(D388)
D PP_ChnContourFeedMax Max. feed rate from PLC [mm/min]
(D596)
D NN_ChnFeedOverrideInput Feed-rate override set [%]
(W494)
D PP_ChnFeedOverride Feed-rate override entered by the PLC [%]
(W766)
D NN_ChnRapidFeedOverride Rapid traverse override set [%]
Input
(W496)
D PP_ChnRapidFeedOverride Rapid traverse override entered by the
PLC [%]
(W752)
D PP_ChnConfigOverride Configurable override (e.g. rapid traverse)
M PP_ChnFeedEnable Feed-rate enable for all axes
M PP_ChnWorkFeedEnable Rapid traverse enable for all axes
Channel – Status
M NN_ChnToolLifeExpired Tool life 1 expired
(M4543)
M PP_ChnEnableAxisKeyLatch Enabling latching of axis-direction key
M PP_ChnRapidTraverseKey Rapid-traverse key
(M4561)
Markers Description SW
version
Axis – Configuration
D NN_AxLogNumber Logical axis number (identical to axis
number of “axes of the machining channel”)
Axis – Drive
M NN_AxDriveReady Axis drive is ready
M PP_AxDriveOnRequest Switch axis drive on
(CM9161)
M NN_AxDriveOn Axis drive is on (and at least speed-
controlled)
(CM9162)
M PP_AxPosControlRequest Position-control the axis
(W1040)
M NN_AxPosControl Axis is position-looped
(W1024)
M PP_AxValueActToNominal Actual-to-nominal value transfer
M NN_AxCorrectingLagError Following error eliminated
M PP_AxClampModeRequest Prepare to open the position control loop
(W1038)
Axis – Control
M NN_AxReferenceAvailable Reference mark not yet traversed
(W1032)
M PP_AxReferenceEndPosition Reference end position
(W1054)
D PP_AxManualFeedMax Maximum manual axis feed rate [mm/rev]
M PP_AxFeedEnable Axis-specific feed rate enable
(W1060)
M NN_AxInMotion Axes in motion
(W1028)
M NN_AxInPosition Axes in position
(W1026)
M PP_AxTraversePos Manual traverse in positive direction
(W1046)
M PP_AxTraverseNeg Manual traverse in negative direction
(W1048)
M PP_AxHandwheelLocked Disable handwheel motion for specific axes
(W1062)
M PP_AxDeactivateMonitoring Deactivate monitoring functions
(W1042)
M NN_AxLubricationPulse Lubrication pulse: Value in
MP_lubricationDist exceeded
(W1056)
M PP_AxLubricationDistReset Reset the accumulated distance
(W1058)
January 2008 10 – 83
PLC Operands of the “Spindle” Group
Markers Description SW
version
Spindle – Configuration
D NN_SpiLogNumber Logical axis number of the spindle
Spindle – Drive
M NN_SpiDriveReady Spindle drive is ready
M PP_SpiDriveOnRequest Switch spindle drive on
(CM9161)
M NN_SpiDriveOn Spindle drive is on (and at least speed-
controlled)
(CM9162)
Spindle – Control
M NN_SpiReferenceAvailable Reference position found
(M4018)
M PP_SpiReferenceMarkSignal Trip dog
D PP_SpiSpeedMax Maximum speed of the spindle
(D604)
M PP_SpiEnable Spindle enabling
(M4008)
M NN_SpiInMotion Spindle in motion
(M4002)
M NN_SpiSpeedOK Spindle speed reached
(M4001)
M NN_SpiControl Spindle position-controlled
M NN_SpiControlInPos Spindle in position
(M4000)
M NN_SpiSyncSpeed Rotational speed synchronism active
M NN_SpiSyncAngle Angle synchronism active
M NN_SpiSyncReached Synchronous operation reached
D NN_SpiOverrideInput Speed override set [%]
(W492)
D PP_SpiOverride Speed override set by the PLC [%]
(W764)
M NN_SpiTapping Tapping active
(M4030)
M NN_SpiRigidTapping Tapping with spindle interpolated with
Z axis active
(M4031)
Note
The transmission of input states of handwheels and PLC input/output units (expansion cards)
is performed with HEIDENHAIN serial data transmission busses on the connectors X23
and X47.
On the X42 and X46 connectors, each input has its own wire.
January 2008 10 – 85
10.6.2 Analog Inputs
Note
The MC 320 does not have any analog inputs. If you need analog inputs or inputs for Pt 100
thermistors, the PL 510 PLC input/output unit can optionally be expanded with the PLA 4-4
analog module.
The PLA 4-4 PLC input/output unit (for PL 510) has analog inputs and inputs for Pt 100
thermistors.
Constant current: 5 mA
Temperature range: 0 °C to 100 °C
Resolution (W486, W488, W490): 0.5 °C
Resolution (Module 9003, 9138): 0.03 °C (PLA 4-4)
Internal value range: 0 to 200, at a resolution of 0.5 °C
0 to 1000, at a resolution of 0.1 °C
0 to 3333, at a resolution of 0.03 °C
Output signals The switching outputs are transistor outputs with current limitation.
and addresses
Please note:
Permissible load: Resistive load (ohmic load); inductive load (e.g. relay, contactor) only with
quenching diode parallel to inductance
MC 320: Short circuiting of one output is permissible.
No more than one output may be short-circuited at one time.
PLD 16-8: The outputs are short-circuit proof.
Output signals:
Note
DANGER
PLC outputs must neither be connected to a 24-V supply, nor to other PLC outputs with a
difference in potential. Otherwise, the voltage present at the PLC outputs is transmitted to
the power supply. As a result, the PLC outputs that can be switched off may nevertheless
be supplied with this voltage.
This could lead to damage or injury to property or persons!
Addresses:
The "control-is-ready" output at X41 can have the same load as a normal PLC output. If a higher
current is required for switching a relay, the "control-is-ready" outputs of the PLs can be used in
addition. A separate power supply for the PLs is necessary for this.
Note
The transmission of output states of handwheels and PLC input/output units (expansion
cards) is performed with HEIDENHAIN serial data transmission busses on the connectors
X23 and X47.
On the X41 and X46 connectors, each output has its own wire.
January 2008 10 – 87
10 – 88 HEIDENHAIN Service Manual TNC 320
11 Memory Card and File Manager of the TNC 320
11.1 Introduction
The TNC 320 memory card contains the TNC data, the PLC data and the entire operating system
with the NC software.
Caution
Defects in the memory card may have the result that no functions can be called any more.
The CRF (compact flash removable) memory card is located in a slot at the bottom of the
MC 320 housing (X600).
CFR
System files, PLC programs, machine parameters, help files, PLC dialogs,
PLC error tables, compensation value tables and OEM cycles, etc. are
stored here.
Enter the code number 807667 to access the PLC partition.
SYS:\ System-specific data
Caution
Alterations to the SYS partition can impair proper function of the control!
January 2008 11 – 89
Size of the
partitions
Partition Contents
Assignments to The control partitions are usually assigned to the following system variables:
system variables
Partition System variable
SYS:\ %SYS%
PLC:\ %OEM%
TNC:\ %USR%
No communication If there is no communication with the CFR when the control is started, usually the following
with the CFR message is displayed:
DISK BOOT FAILURE, INSERT SYSTEM DISK AND PRESS ENTER
Check, whether the memory card is firmly in the slot, or check the memory card on a functioning
TNC 320 (if available).
At present no further tests are possible in the field!
Communication If the control still communicates with the memory card, some tests might be carried out in the
with the CFR field. --> Contact your HEIDENHAIN service agency for that matter.
Caution
If you want to set the system time of TNC 320 to the second contact the HEIDENHAIN
helpline.
In the configuration object CfgSystemTime / parameter offsetToUTC you can enter
the difference between local time and system time (input +/- 12 hours).
UTC (= Universal Time Coordinated) is used as system time.
Note
After the parameter offsetToUTC was edited, the control reboots automatically!
Calling the Press the following key combination to call the TNC partition:
TNC partition
Select the Programming mode of operation.
Use the LEFT and RIGHT arrow keys to toggle between directory field and
files field.
With the +/- key or with ENTER you can open and close subdirectories.
Select subdirectories or files by pressing the UP and DOWN arrow keys.
The selected directory or file is displayed in the header.
January 2008 11 – 91
Overview of the File type File extension
most important
TNC file types NC program in HEIDENHAIN plain-language .H
NC program in ISO language .I
Tool table .T
Pocket table (tool changer) .TCH
Datum table .D
Touch probe table .TP
Note
If you cannot find certain files although the cursor is placed in the correct directory,
a file types filter may be active.
The filter setting is displayed above the file list, for example TNC:\*.H
To remove this filter use the soft keys SELECT TYPE --> SHOW ALL .
File information
File name Name consists of up to 25 characters plus file extension
Bytes File size in bytes
Status File properties:
E File selected in Programming mode of operation
S File selected in Test Run mode of operation
M File selected in a Program Run mode of operation
P Protected file that cannot be deleted or edited
Date Date on which file was last changed
Time Time at which file was last changed
Note
Refer to the TNC 320 User’s Manual for a detailed description of file management!
Calling the Press the following key combination to call the PLC partition:
PLC partition
Select the Programming mode of operation.
After the code number has been entered, the PLC main menu is displayed.
January 2008 11 – 93
Overview of the File type File extension
most important
PLC file types ASCII files (text files, such as PLC dialogs and error messages) .A
Image files for PLC soft keys and help graphics .BMX
HEIDENHAIN cycles .CDC .CDF
Configuration files (machine parameters) .CFG
Compensation value assignments .CMA
Compensation value tables .COM
Help and dialog files .CSV
OEM cycles .CYC .DES .ELE
Definition files .DEF
PLC error table .PET
Compiled PLC programs .PLC
Oscilloscope trace file .SCO
Source files (source code) .SRC
Text file (e.g. help information and current values of configuration .TXT
objects and parameters)
Watch list file .WLT
ZIP files (e.g. backed-up machine parameters and log files) .ZIP
Note
If you cannot find certain files although the cursor is placed in the correct directory,
a file types filter may be active.
The filter setting is displayed above the file list, for example PLC:\*.DEF
With the soft keys SELECT TYPE --> DEFAULT you can select the predefined filters.
Press the DISPLAY FILTER soft key and enter *.* to view all PLC files.
Note
Refer to the TNC 320 User’s Manual for a detailed description of file management!
January 2008 11 – 95
11 – 96 HEIDENHAIN Service Manual TNC 320
12 Data Backup
12.1 Introduction
Data backup When servicing it is often necessary or advisable to back up certain control data!
recommended
You should always back up the original machine parameters before you make any changes
to the settings of the machine. This can be done on the flash card of the TNC 320 without
having to transfer data to an external medium --> see “Backing up machine parameters” on page
28 – 299.
Moreover, all PLC data, i.e. the specific machine data determined by the manufacturer, are of
priority interest for service technicians.
Note
The machine data (PLC partition) for the machine tool can be obtained from the machine
manufacturer, or they are supplied with the machine.
Caution
If changes were made to the machine (NC software update, modifications, etc.) that result
in changes or adaptations of the machine data (machine parameters, PLC program, etc.),
a new backup for this machine must be created!
Available For data backup the following data interfaces are available on TNC 320:
data interfaces
Ethernet Connector X26
RS-232-C (V.24) Connector X27
USB Connectors X141 and X142
Note
Note
If you want to profit from the additional functions of the data transfer software TNCremoNT
the use of the Ethernet interface is advisable.
The transfer rate of this interface is considerably higher than that of the RS-232 interface.
Depending on the Windows system of your laptop/PC, the proceedings for requesting and
setting the Ethernet configuration may be slightly different.
The following description is an example with Windows 2000.
Windows knowledge is required!
To access the network settings of your laptop/PC you require the appropriate access
rights (if required, ask your system administrator).
To access the network settings at the control the code number NET123 is required.
January 2008 12 – 97
Data transfer For data transfer and data backup the HEIDENHAIN data transfer software TNCremoNT
software as of version 2.6 is used in this description.
TNCremoNT
You can download the current version of TNCremoNT from the HEIDENHAIN website
(www.heidenhain.de/Services/...) and install it on your service laptop or stationary computer.
Note
Note
BINARY-to-ASCII In contrast to the other TNC controls TNC 320 does not feature BINARY-to-ASCII conversion
conversion for data backup!
The data on the TNC 320 memory card are in ASCII format!
USB stick A very simple way of backing up data is to copy them onto a USB stick.
Two USB interfaces are standard features of TNC 320. The memory stick is simply plugged in.
--> The control automatically detects a standard USB device.
In the program management of the control the data can now be backed up on the USB stick
(e.g. using the dual-window concept).
Requirements: A USB device (e.g. USB stick) with the following characteristics:
USB 1.1
FAT or VFAT formatted
Current consumption below 0.5 A (otherwise a separate power supply is required)
USB cable, max. 6 m (for longer cables amplifiers must be used)
Note
Connecting the Connect the USB stick to the interface specified by the machine manufacturer (in the console
USB stick or in the electrical cabinet) or directly to the MC 320.
The USB interfaces X141 and X142 are located on the lower left on the back side, behind the
Ethernet interface.
DANGER
Please bear in mind the danger of current and voltage when you open the console to
connect the USB stick.
Switch to the Programming mode and press the PGMMGT key. -->
The USB device appears in the folder list.
Press the soft key with the symbol "Remove USB stick".
--> The USB device disappears from the folder list.
Remove the USB stick.
Caution
If you remove the USB stick without having pressed the "Remove USB stick" symbol before,
you may loose data on the stick!
January 2008 12 – 99
12.2.2 Via Ethernet
Note
DANGER
Please bear in mind the danger of current and voltage when you open the console to
connect the data cables.
Connection setup It is advisable to set up a direct connection between your service laptop and the control
at the customer's (peer-to-peer).
(service call)
Ask your customer whether you may disconnect the control from his in-house network for
the duration of your work.
Connect your laptop directly to the control by means of a crossed Ethernet cable.
Now either adapt the IP address and the subnet mask of your laptop to the IP address
and subnet mask of the TNC 320, or vice versa.
If you want to adapt the settings of your laptop to those of the TNC:
Note
To make the following changes to the settings of your Ethernet card, you require the
relevant permissions. Ask your system administrator.
Note
We recommend using the IP address of the TNC 320 and increasing or decreasing the last
place by one.
Example:
Address of TNC 320 160.1.180.5
Address of laptop 160.1.180.6
If you want to adapt the settings of your laptop to those of TNC 320:
Caution
Note down the original settings which you will have to restore later!
Note
We recommend using the IP address of the laptop and increasing or decreasing the last
place by one.
Example:
Address of laptop 160.1.11.227
Address of TNC 320 160.1.11.228 or 160.1.11.226
The TNCremoNT screen is split and the control's hard disk is shown in the lower half of
the screen.
Note
If this does not work, please check the connecting cable and the settings.
You can also try, whether pinging works --> see next pages!
"Ping-loopback test" on the laptop (test of the Ethernet card of the laptop):
In the prompt enter the ping command followed a blank and the IP address of the Ethernet
card of the laptop.
Confirm with ENTER. --> If the Ethernet card functions it will respond! If the Ethernet card
does not function, a timeout message etc. is displayed.
"Ping-loopback test" on the control (test of the Ethernet card of the control):
Call the Programming mode of operation and press the PGMMGT key.
Then press the soft keys NETWORK and PING.
Enter the IP address of TNC 320.
Press ENTER to confirm. --> If the Ethernet card functions, you will receive a positive response
(0% packet loss). If the Ethernet card does not function, a message is generated reporting the
loss of data packets.
Example of a "ping-loopback test“ at the control:
Note
If the "pinging" does not work, you have to check again all settings and the hardware
(Ethernet cables, Ethernet cards).
Meaning of the
LEDs on the
Ethernet data LED Condition Meaning
interface X26 Green Blinking Interface active
Off Interface inactive
Yellow On 100 Mb net
Off 10 Mb net
Restoring the After you have finished data backup and separated the connection, do not forget to reactivate
original settings the original network settings of your laptop or of TNC 320.
At the laptop enter the original settings and confirm with ENTER.
At the control enter the original settings and confirm with ENTER.
Note
Requirements A laptop/PC with an RS 232 interface or a USB interface (for connection of a USB/RS 232
adapter)
A crossed serial data transfer cable (standard cable) for the connection of laptop and
D-sub connector on the electrical cabinet (HEIDENHAIN adapter block).
Possible configurations, also for direct connection of the laptop to TNC 320.
-->see “Cable Overview” on page 12 – 119.
DANGER
Please bear in mind the danger of current and voltage when you open the console to
connect the data cables.
Note
Do not use self-manufactured cables (shielding problems, contact problems, short circuits,
etc.).
Mark your cable as "crossed" or "non-crossed".
Caution
Baud rate for LSV-2 Select a baud rate for the LSV-2 protocol:
Call the MP list.
Open the path System/Network/Serial/CfgSerialPorts/baudRateLsv2.
Open the selection window (Arrow Right key, GOTO key) and confirm the current baud rate
or select a higher baud rate. (Should this make problems you can revert to lower rates.)
Note
The TNC 320 recognizes automatically when the LSV-2 protocol is used (e.g., data transfer
with TNCremoNT).
If you use a USB/RS 232 adapter, automatic detection of the baud rate should not be active.
In this event set the transfer rate at the control and at the laptop.
The TNCremoNT screen is split and the control's hard disk is shown in the lower half of
the screen.
Note
If this does not work, please check the connecting cable and the settings.
Note
Information on setting up data interfaces and reading data (e.g. TNCserver operation) can be
found in the User's Manual of TNC 320.
Connection setup Connect a USB stick --> see “Connection Setup” on page 12 – 99.
or
Establish the connection between the control and the laptop using TNCremoNT
--> see “Connection Setup” on page 12 – 99.
Transferring data to Switch to the Programming mode and press the PGMMGT key.
the USB stick
Note
Press the soft keys SHOW FILES and SHOW TREE to activate the respective view.
Place the cursor in the right half on the directory, subdirectory or file you wish to transfer.
Press the soft key "Remove USB stick" before you remove the stick.
--> see “Disconnecting the USB stick” on page 12 – 99
Transferring data Switch to the Programming mode and press the PGMMGT key.
from the USB stick
Note
Press the soft keys SHOW FILES and SHOW TREE to activate the respective view.
Place the cursor in the right half on the directory or subdirectory to which you wish to transfer
the data.
Return to the other side now.
Press the soft key "Remove USB stick" before you remove the stick. -->
see “Disconnecting the USB stick” on page 12 – 99
Note
To change the partition, click one of the two buttons to the right of the blue bar with the path
information.
To change to the PLC partition, enter PLC: followed by the PLC code number.
Reading in In the lower half of the screen (TNC 320 contents) select the target directory.
data using --> Double-click the requested directory.
TNCremoNT --> The path information appears in the blue bar above.
Note
To change the partition, click one of the two buttons to the right of the blue bar with the path
information.
To change to the PLC partition, enter PLC: followed by the PLC code number.
In the upper screen window (laptop/PC contents), select the directory containing the file you
wish to upload onto TNC 320. In the example C:\Backup --> Double-click the requested
directory. --> The path information appears in the blue bar above.
Using the mouse, click the file you wish to read in.
Press and hold the left mouse button and pull the file into the lower window.
Release the mouse button. --> The file is being transferred.
Note
The control should be in Power interrupted state while the backup is run.
Otherwise, files may be used by the system and therefore inaccessible.
Selecting the In the upper screen half (laptop contents), select the directory where you
partition you want to store the backup files. --> Double-click the requested directory.
--> The path information appears in the blue bar above.
You can also create a new folder with TNCremoNT.
For this purpose click File / Create folder ... or the respective icon.
Note
The folder where you save the backup should have an identifying name (e.g. the machine
number) so that it can clearly be assigned to the machine concerned!
Avoid long paths and file names (no more than 80 characters should be used).
In the lower screen half (TNC contents), select the partition from which you want to back-up
data.
Note
To change the partition, click one of the two buttons to the right of the blue bar with the path
information.
To change to the PLC partition, enter PLC: followed by the PLC code number.
Click the main directory of the selected partition (in the example PLC:).
It must be shown in the blue bar!
Scan all
All files in the TNC and PLC partitions and several selected files in the
SYS partition (e.g. TIMES.SYS) are scanned.
Note
Scanning in this context means creating a reference list for the directory tree.
A file with the extension *.LST is generated. This file serves to restore the original
directory tree at a later date.
Backups for If you want to create a backup archive for your TNC or PLC data:
data archives
Select Scan directory tree
The backup should have an identifying name (for example the machine number, etc.)
Separate archives should be created for the TNC partition and for the PLC partition!
Backup for an If you intend to insert a new memory card (and still can backup data from the old card):
exchange of the
Select Scan all ("full backup") or
memory card
Scan system and machine files (if the TNC data have already been backed
up or the source files are stored on an external data medium)
The machine time (TIMES.SYS), the calibration data of the touch probes, etc. are copied and
transferred to the new memory card.
These backup types are not intended for an archive, since machine time, calibration data, etc.
continue to change.
Note
For these backup types the settings of date and time on control and laptop must match.
Otherwise the error message Wrong password! is displayed.
Enter the name of the backup file (extension BCK) in the file name line.
Start the data transfer with Save.
Note
The backup is only complete and can be restored at a later date, if both files are available:
*.BCK backup file with the original files in compressed format
*.LST reference list containing the directories and the files
General If you want to create a backup (e.g. of the PLC partition), all related files are stored in one
*.BCK file using a compression algorithm.
To view individual files you can extract them from the *.BCK file by means of TNCremoNT!
Caution
Caution
The machine must not operate while the data of the memory card are being restored.
The control should be in Power interrupted state.
Never press any key on your control while data transfer is running!
Note
If you work with Ethernet connection, please check or make the necessary settings.
--> see “Connection Setup” on page 12 – 99
Selecting the In the upper screen half (laptop/PC contents), select the directory where you have stored the
backup file backup file.
In the example C:\Backup machine XYZ --> Double-click the requested directory. --> The path
information appears in the blue bar above.
Restart the control after successfully restoring the machine backup (reboot).
Now the machine should operate as usual.
Note
If you receive the error message Wrong password when restoring data with TNCremoNT,
date and time of the control and the laptop probably do not correspond.
You may have to reset the system time on the control.
--> see “Setting the System Time” on page 11 – 90
Note
Do not use self-manufactured cables (shielding problems, contact problems, short circuits,
etc.).
Mark your cable as "crossed" or "non-crossed".
Caution
Note
We recommend to mark the crossed Ethernet cable accordingly in order to avoid confusion.
If you establish the connection via your local network (intranet), you normally use a non-crossed
Ethernet cable (patch cable).
Note
The V.24 / RS-232-C has different pin layouts at TNC 320 (connector X27) and at the V.24
adapter block (D-sub connector on electrical cabinet).
Exception: The cable with the ID 366964-xx may be connected to the 9-pin adapter block or
directly to the control.
Note
The serial data interfaces are described in detail in the Service Manual 'Data Interfaces of
HEIDENHAIN Devices'.
Available for download from www.heidenhain.de/Services and Documentation/...
The Help menu of TNCremoNT also contains information on constellations and cables for
serial RS-232-C data transfer.
Overview:
Background:
The RS 232 adapter block on the electrical cabinet mostly has a
25-pin connector, the COM interface on the laptop mostly a 9-pin
connector.
ID label
(example)
Note
The most important information for the service is the unit designation and the ID!
In the following pictures the position of the ID labels on HEIDENHAIN components is marked
by arrows .
Control
MC 320
Compact contouring control with
integrated main computer, flat-panel
display and integrated operating keys.
MB 420 machine operating panel
(optional).
4 analog closed-loop axes
(EnDat, 1 VPP, 11 µA)
Machine
operating panel
HR 410 Handwheel
Portable electronic handwheel with snap-on (switchable) keys.
Keys for selecting five axes
Keys for traverse direction
Keys for preset feeds
Actual-position-capture key
Three keys for machine functions
(definable via PLC)
Spindle right/left/stop
NC start/stop, spindle start;
for HEIDENHAIN basic PLC program
Two permissive buttons (24 V)
Emergency stop button (24 V)
Magnetic holding pads
The handwheel is available with or without detent.
HR 130 Handwheel
Panel-mounted handwheel
With ergonomic knob, radial
cable outlet
HRA 110
TS 640
TS 440
General When you consult your machine manufacturer or HEIDENHAIN in the event of an error or a
malfunction of your machine, it is important that know which NC and PLC software is installed
on TNC 320.
Note
You can display the system information in any mode of operation by pressing the
MOD key on your control!
Control model
NC software
No export license is required for the NC software of the control. --> TNC 320 is approved for
export to all countries!
HEIDENHAIN releases a new NC software type whenever it introduces extensive new
functions.
PLC software
The machine manufacturer identifies his PLC software by means of a character string.
Caution
Do not engage or disengage any connecting elements while the unit is under power!
See ”Safety Precautions” on page 1 – 7!
14.2 MC 320
X1 to X4 Position encoder
X
X8 Nominal value output, analog
X44
X23 X100
X34 X12 TS touch trigger probe
X30
X27 X13 Reserved
X142 X26
X41 X23 Handwheel
X141
X1 X26 Ethernet data interface
X27 RS-232-C/V.24 data interface
X141, X142 USB interface
X46 X600 X2
X125 X8 X30 Reserved
X34 24 V for “control-is-ready”
X3
X601 output
X12 X41 PLC output
X42
X4 X42 PLC input
X121 X13 X44 24 V PLC supply voltage
X147 PLC expansion
X147
X46 Machine operating panel
X X121 Reserved
X601 Reserved
B Signal ground
Note
The interface complies with the requirements of EN50178 for “low voltage electrical
separation”.
10 Free 10 3 3 Red 3 3
0V
11 (sensor) 11 White 4 4 White 4 4 White 6b
12 Free 12 2 2 Black 2 2
Internal Internal Internal Internal
13 shield 13 shield 11 11 shield 11 11 shield
Note
The interface complies with the requirements of EN50178 for “low voltage electrical
separation”.
X12:
Connection of the
touch probe for
workpiece
measurement
Note
The interface complies with the requirements of EN50178 for “low voltage electrical
separation”.
Note
The interface complies with the requirements of EN50178 for “low voltage electrical
separation”.
Note
The interface complies with the requirements of EN50178 for “low voltage electrical
separation“.
For further information on the Ethernet interface and instructions on the configuration of the
interface, please see “Ethernet Interface RJ45 Connection” on page 12 – 119.
Note
The interface complies with the requirements of EN50178 for “low voltage electrical
separation”.
X34: The control-is-ready signal output is powered by 24 Vdc provided by the inverter or the power
Power supply for supply unit of the machine. The voltage is connected with terminal X34.
"Control-is-ready"
Pin layout:
Note
If the +24-V power supply (not disconnectable with emergency stop) is missing at X44,
the error message Supply voltage missing at X44 appears.
X46: PLC inputs I128 to I152 and PLC outputs O0 to O7 are on connection X46 of the machine
Machine operating panel. The reference potential (PLC) for outputs O0 to O7 is connected to pins 34
operating panel and 35.
Pin layout on MC 320, connecting cables and machine operating panel:
Caution
PLC inputs I128 to I152 must be driven only with the power supply from pins 36 and 37,
since this power supply is internally protected (PLC power supply from X44 connection 2).
Note
If USB components that are connected to X141/X142 require more than 0.5A, a separate
power supply becomes necessary for these components. One possibility is the USB hub
from HEIDENHAIN (368 735-01).
USB hub The power supply for the USB hub must comply with EN 50 178, 5.88 requirements for “low
voltage electrical separation.”
Connections on the USB hub (368 735-01):
X600: The memory card (compact flash removable) memory card is located in the slot X600.
Slot for CFR
Especially for machine retrofits, the use of adapters for encoder signal adjustment can be of
interest.
Encoder signals with 11 µAPP or TTL levels can be adapted to the 1 VPP interface with
HEIDENHAIN adapter connectors.
Note
Please note:
The adapters adjust only the levels, not the signal shape.
The contamination signal of the square-wave encoder cannot be evaluated.
A square-wave signal can be subdivided no more than 4-fold.
Adapter connector Pin layout of D-sub connector (female) and D-sub connector (male):
TTL (SIEMENS)
/ 1 VPP D-sub connctr. Assignment D-sub Assignment
(female) connection
15-pin (male) 15-pin
1 Not assigned 1 Not assigned
2 0V 2 0V
3 A+ 3 Ua1
4 A– 4 –Ua1
5 Not assigned 5 Not assigned
6 B+ 6 Ua2
7 B– 7 –Ua2
8 Not assigned 8 Not assigned
9 Not assigned 9 Not assigned
10 R+ 10 Not assigned
11 Not assigned 11 Not assigned
12 R– 12 Ua0
13 Not assigned 13 –Ua0
14 Not assigned 14 Not assigned
15 Not assigned 15 Not assigned
Touch probe See ”X12: Connection of the touch probe for workpiece measurement” on page 14 – 136.
systems for
workpiece
measurement
Pin layout Pin layout for the various extension cables, adapter cables, connecting cables, and the
handwheel:
contact 1
contact 2
cable adapter
contact 2
contact 1
contact 1
contact 2
contact 1+2
contact 2
contact 1
Additional components ID
Dummy plug for EMERGENCY STOP circuit 271 958-03
Connecting cables
Spiral cable 312 879-01
Normal cable 296 467-xx
Metal armor tubing 296 687-xx
X1: PLC expansion See ”X147: PLC expansion on MC 320” on page 14 – 146
on MC 320
Note
The 0-V terminals of X4 and X5 of the PLD 16-8 are connected internally. These connections
are used for connecting the potential of the electronics and for operating the LEDs. Since
only a low current is required (max. 50 mA), it is sufficient to establish only one 0-V
connection (preferably at X4).
X4
Assignment Pin
1 2 3 4 5 6 7 8 9 10
First Socket 1 0V 0V I64 I65 I66 I67 I68 I69 I70 I71
PL 510 Socket 2 0V 0V I80 I81 I82 I83 I84 I85 I86 I87
Socket 3 0V 0V I96 I97 I98 I99 I100 I101 I102 I103
Socket 4 0V 0V I112 I113 I114 I115 I116 I117 I118 I119
Second Socket 1 0V 0V I192 I193 I194 I195 I196 I197 I198 I199
PL 510 Socket 2 0V 0V I208 I209 I210 I211 I212 I213 I214 I215
Socket 3 0V 0V I224 I225 I226 I227 I228 I229 I230 I231
Socket 4 0V 0V I240 I241 I242 I243 I244 I245 I246 I247
Third Socket 1 0V 0V I256 I257 I258 I259 I260 I261 I262 I263
PL 510 Socket 2 0V 0V I272 I273 I274 I275 I276 I277 I278 I279
Socket 3 0V 0V I288 I289 I290 I291 I292 I293 I294 I295
Socket 4 0V 0V I304 I305 I306 I307 I308 I309 I310 I311
Fourth Socket 1 0V 0V I320 I321 I322 I323 I324 I325 I326 I327
PL 510 Socket 2 0V 0V I336 I337 I338 I339 I340 I341 I342 I343
Socket 3 0V 0V I352 I353 I354 I355 I356 I357 I358 I359
Socket 4 0V 0V I368 I369 I370 I371 I372 I373 I374 I375
X5
Assignment Pin
1 2 3 4 5 6 7 8 9 10
First Socket 1 0V 0V I72 I73 I74 I75 I76 I77 I78 I79
PL 510 Socket 2 0V 0V I88 I89 I90 I91 I92 I93 I94 I95
Socket 3 0V 0V I104 I105 I106 I107 I108 I109 I110 I111
Socket 4 0V 0V I120 I121 I122 I123 I124 I125 I126 I127
Second Socket 1 0V 0V I200 I201 I202 I203 I204 I205 I206 I207
PL 510 Socket 2 0V 0V I216 I217 I218 I219 I220 I221 I222 I223
Socket 3 0V 0V I232 I233 I234 I235 I236 I237 I238 I239
Socket 4 0V 0V I248 I249 I250 I251 I252 I253 I254 I255
Third Socket 1 0V 0V I264 I265 I266 I267 I268 I269 I270 I271
PL 510 Socket 2 0V 0V I280 I281 I282 I283 I284 I285 I286 I287
Socket 3 0V 0V I296 I297 I298 I299 I300 I301 I302 I303
Socket 4 0V 0V I312 I313 I314 I315 I316 I317 I318 I319
Fourth Socket 1 0V 0V I328 I329 I330 I331 I332 I333 I334 I335
PL 510 Socket 2 0V 0V I344 I345 I346 I347 I348 I349 I350 I351
Socket 3 0V 0V I360 I361 I362 I363 I364 I365 I366 I367
Socket 4 0V 0V I376 I377 I378 I379 I380 I381 I382 I383
X6
Assignment Pin
1 2 3 4 5 6 7 8 9 10
a b
First Socket 1 O32 O33 O34 O35 O36 O37 O38 O39 +24 V +24 Vc
PL 510 Socket 2 O40 O41 O42 O43 O44 O45 O46 O47 a
+24 V b
+24 Vc
Socket 3 O48 O49 O50 O51 O52 O53 O54 O55a +24 Vb +24 Vc
Socket 4 O56 O57 O58 O59 O60 O61 O62 - +24 Vb +24 Vc
Second Socket 1 O64 O65 O66 O67 O68 O69 O70 O71a +24 Vb +24 Vc
PL 510 Socket 2 O72 O73 O74 O75 O76 O77 O78 O79 a
+24 Vb +24 Vc
Socket 3 O80 O81 O82 O83 O84 O85 O86 O87a +24 Vb +24 Vc
Socket 4 O88 O89 O90 O91 O92 O93 O94 - +24 Vb +24 Vc
Third Socket 1 O128 O129 O130 O131 O132 O133 O134 O135a +24 Vb +24 Vc
PL 510 Socket 2 O136 O137 O138 O139 O140 O141 O142 O143a +24 Vb +24 Vc
Socket 3 O144 O145 O146 O147 O148 O149 O150 O151a +24 Vb +24 Vc
Socket 4 O152 O153 O154 O155 O156 O157 O158 - +24 Vb +24 Vc
Fourth Socket 1 O160 O161 O162 O163 O164 O165 O166 O167a +24 Vb +24 Vc
PL 510 Socket 2 O168 O169 O170 O171 O172 O173 O174 O175a +24 Vb +24 Vc
Socket 3 O176 O177 O178 O179 O180 O181 O182 O183a +24 Vb +24 Vc
Socket 4 O184 O185 O186 O187 O188 O189 O190 - +24 Vb +24 Vc
a. The function of this terminal can be set with a sliding switch
on the rear side of the PLD 16-8 I/O modules:
Setting 1: Control-is-ready signal
Setting 2: PLC output
b. Group 1 (terminals 1 to 4)
c. Group 2 (terminals 5 to 8)
Note
If you use only the outputs at X6 for a PLD 16-8 I/O unit (and no inputs), the 0-V connection
for supplying the electronics and for operating the LEDs must be established at X4 or X5.
Note
The iTNC 530 cyclically monitors the PLC outputs of the PL 510 for a short-circuit.
Note
The interfaces comply with the requirements of EN50178 for “low voltage electrical
separation”.
X19 to X22:
Connection for Pt
100 on the PLA 4-4 Connecting Assignment
analog module terminals
1 I+ Constant current for PT 100
2 U+ Measuring input for PT 100
3 U– Measuring input for PT 100
4 I– Constant current for PT 100
5 Shield
Note
The interfaces comply with the requirements of EN50178 for “low voltage electrical
separation”.
I
1
I
Messeingang U+ 1
2
Measuring input
Messeingang U 2
3
Measuring input
I 3
4
I 4
5
5
Pt100 Verbindungskabel kundenseitig
Pt100 4 x 0.14 mm2 abgeschirmt,
Customer's cable
4 x 0.14max
mm30 m
2 screened,
max 30 m
X2: The NC start key and the NC stop key are connected with the MB 420 via X2.
Connection of
NC start and
NC stop key
X4:
PLC outputs
Pin Assignment
1 O0
2 O1
3 O2
4 O3
5 O4
6 O5
7 O6
8 O7
9 0V
Note
If USB components that are connected to X141/X142 require more than 0.5 A, a separate
power supply becomes necessary for these components. One possibility is the USB hub
from HEIDENHAIN.
Note
For cable lengths > 10 m between MC 320 and encoders with EnDat interfaces (EnDat 2.1)
a line drop compensator is required (efficiency = 75 %).
MC 320 powers the connected devices, such as linear encoders, touch probes, transmitter-
receiver units, handwheels, USB devices.
Exceptions:
The PLC outputs are powered with 24 V machine voltage.
Infra-red touch probes have a battery.
Note
MC 320 features "polyfuses". These are electronic fuses that separate defective peripheral
devices from the low voltages in the control in the event of an error.
If a defective peripheral device draws too much current, it is "separated" from the control.
In most events a corresponding error message is displayed.
A short-circuit of the touch-probe or handwheel interface may still generate a black screen.
X34: The Control-Is-Ready output is powered with 24 V machine voltage via terminal X34.
Power supply for
"Control-Is-Ready"
signal output
Error If 24 Vdc are missing at X34 when the machine is switched on:
The EMERGENCY STOP chain is interrupted.
--> The machine cannot be switched on!
Note
For this purpose the Control-Is-Ready signal output must be integrated correctly into the
EMERGENCY STOP chain.
--> see “Basic Circuit Diagrams” on page 2 – 16, see “EMERGENCY STOP test” on page 1
– 1!
General If the machine is switched off, the power for the RAM is supplied by the buffer battery.
The rated voltage is 3 V.
The typical service life of the buffer battery is three to five years.
For safeguarding the RAM data, an additional capacitor (Gold cap) was integrated onto the PCB
of MC 320. This capacitor stores the RAM content for approx. one day without battery.
Message The following message can only be generated as of the NC software version 340551-03:
Caution
If the voltage of the buffer battery falls below 2.6 V, the error message
Replace buffer battery is generated.
The error message is activated every 30 minutes.
Replace the buffer battery at the next opportunity!
Checking the Before you replace the buffer battery, the charge status of the Gold cap should be checked:
charge status of
Enter the code number 654321 to call the on-line monitor.
the "Gold cap"
Press the LOGIN PLC soft key.
Now press the AD VALUES soft key.
In the Value column you can read the value for the goldCap -->
The voltage must be >= 3000 mV!
Note
The capacitor (Gold cap) is only being charged when the control is switched on. If the Gold
cap is not sufficiently charged, please wait a few seconds.
If the voltage of the Gold cap does not reach 3000 mV or more, the MC 320 must be
replaced.
DANGER
Note
Replacing the buffer battery may be easier, if you dismount the entire MC 320 from the
console. In this event, label all cables before you disconnect them.
Caution
Take ESD-preventive measures, see “ESD protection” on page 25 – 263, and work with
great care!
DANGER
Due to the non-symmetric shape of the battery there is only one possibility of inserting.
Battery type: 1 lithium battery, type CR 2450N (Renata), ID 315878-01
Screw the cover plate back on and remount the MC 320 in the console, if required.
Note
If the battery was exchanged although the Gold cap was not loaded sufficiently, the battery-
buffered ranges of the RAM may be deleted. The non-volatile PLC markers and words
belong to this range. This may mean that several components of the machine must be set
again (tool changer, swivel head, etc.) --> Ask the machine manufacturer!
In the BIOS settings, date and time are lost. Set these values again. --> see “Setting the
System Time” on page 11 – 90.
15.4.1 General
The integral PLC of TNC 320 as well as the PLC expansion cards PL 410B/PL 405B/PL 510
are powered by the 24 Vdc control voltage of the machine (in accordance with VDE 0551).
The control voltage must be smoothed with a capacitance of 150 µF/A rated, at least however
with 1000 µF/A. At a current load of 15 A, for example, this corresponds to a capacity of 2250 µF.
EN 61 131-2:1994 permits:
5% alternating voltage component is permissible
Minimum absolute value: 20.4 Vdc
Maximum absolute value: 28.8 Vdc
Power If half of the outputs are on at the same time, the following values apply for power consumption:
consumption
MC 320: 115 W
PL 410 B: approx. 460 W
PL 405 B: approx. 235 W
PL 510: approx. 385 W
X44:
PLC supply voltage
Error If the 24-V power supply (not disconnectable with emergency stop) is missing at X44, the error
message Processor check error! Relay ext. DC voltage missing appears.
The corresponding PLC outputs do not function. Depending on the PLC program of the machine
manufacturer, corresponding PLC error messages are displayed.
Note
Checking the PLC outputs --> see “The TABLE Function” on page 10 – 63.
No
24 V voltages available? Repair defect in electrical
Contacts o.k.? cabinet etc.
Yes
No
Yes
Caution
Connection
Pin Assignment PL 1 PL 2 PL 3 PL 4
X9 0V
X10 +24 Vdc logic power supply and for control-is-ready signala
X13 +24 Vdc O48 – O80 – O144 – O176 –
power supply O55 O87 O151 O183
for outputsa
X14 +24 Vdc O56 – O88 – O152 – O184 –
power supply O62 O94 O158 O190
for outputsa
a. 20.4 V to 28.8 V
Note
If LED is not shining, despite available power supply, the PL board is probably defective.
Note
On older PLC expansion boards PL 4xx B, you still find fine-wire fuses (glass fuses) on the
board. These may be replaced, if necessary:
On newer PL 4xx B, the glass fuse has been replaced by an SMD fuse.
The SMD fuse is firmly soldered to the board. Contact your HEIDENHAIN service agency.
Note
TNC 320 cyclically monitors the supply voltage and short circuits of the PLC outputs of a
PL 510.
Connection
PLB 510 basic Pin layout for X3 (power supply for logic circuit):
module
Terminal Assignment
1 +24 Vdc (20.4 V to 28.8 V)
2 +0 V
PLD 16-8 input/ Pin layout at X6 (power supply for PLC outputs):
output module
Terminal Assignment
9 +24 Vdc (20.4 V to 28.8 V) for group 1 (O1 … O4)
10 +24 Vdc (20.4 V to 28.8 V) for group 2 (O5 … O8)
Note
Checking the PLC outputs --> see “The TABLE Function” on page 10 – 63.
Note
If the LEDs are not shining, despite available power supply, the PLB 510 basic module or
the corresponding PLD 16-8 input/output module is probably defective.
16.1.1 Introduction
Position encoders are also referred to as linear encoders.
They report positions and movements of the machine to the control.
TNC 320 operates with incremental and absolute encoders.
Encoders with one reference mark or distance-coded reference marks and with EnDat interface
are permissible.
Linear encoders (e.g. LF, LC, LS, LB) are often referred to as scales .
Circular position encoders are referred to as angle encoders (e.g. RCN, RON, ROD, ERP,
ERA).
MC 320 features the following position encoder inputs:
X1 to X4
X5 with optional encoder input board
Scales for linear axes or angle encoders for rotary axes/spindle may be connected here.
Note
MC 320 features "polyfuses". These are electronic fuses that separate defective peripheral
devices from the low voltages in the control in the event of an error. This is also true for the
encoders!
If a defective encoder draws too much current, it is "separated" from the control.
Corresponding error messages are displayed.
DANGER
The monitoring functions for the position encoders must always be active!
Safe machine operation is not ensured without these monitoring functions.
Exception: checkAbsolutPos is only active for position encoders with distance-coded
reference marks.
The configuration data (machine parameters) for encoder connection are stored in the path
Axes/ParameterSets/Key for parameter set/CfgAxisHardware/...
The position encoder type (not distance-coded, distance-coded, EnDat) is specified in the
machine parameter posEncoderType.
The allocation of the position encoder inputs (X1 ... X4) to the axes and spindles is specified
in the machine parameter posEncoderInput.
The signal type 1Vpp or 11µApp is defined in the machine parameter posEncoderSignal.
For other signal types (TTL, etc.) adapters must be used.
--> see “Encoders” on page 14 – 147
Caution
Error codes if the access to the encoder via the EnDat interface is faulty:
Assumed
configuration Axes/ParameterSets/PX/CfgAxisHardware/posEncoderInput X01 (X axis at input X1)
Axes/ParameterSets/PY/CfgAxisHardware/posEncoderInput X02 (Y axis at input X2)
Axes/ParameterSets/PZ/CfgAxisHardware/posEncoderInput X03 (Z axis at input X3)
Block diagram
X axis
Original assignment: MC 320
... / pos Encoder Input: X 01
X1
X axis
Y axis
Original assignment: X2
... / pos Encoder Input: X 02
Note
Always exchange both, the cable and the interface assignment via machine parameter!
Yes
Note
To exchange encoder components, use the included mounting aids (spacers, mounting
brackets, test gauges, etc.) as well as the mounting and exchange instructions.
If available, use special HEIDENHAIN equipment (PWM 9, PWT, PWM 8, IK 215) for
adjustment and signal assessment. --> see “Inspection and Testing Equipment” on page 27
– 283
In a special encoder training course you can learn about corrective action (e.g. cleaning of
scales) and how this equipment is used.
The following tolerances apply by default …
For 1 Vpp encoders: 0.6 ... 1.2 Vpp
For 11 µApp encoders: 7 ... 16 µApp
The exact tolerances of the encoders can be found in the HEIDENHAIN brochures that are
available for download from the HEIDENHAIN website. --> www.heidenhain.de
Note
The scanning head of an EnDat linear encoder is programmed to match the scale
(datum shift, etc.)
For this reason EnDat linear encoders in the field must be replaced together with the
scanning head!
Note
On simple 3-axis machines, it is often not required to reset the machine datum. It is
sufficient to the check the software limit switches and to reset them, if necessary.
If you have any questions, please contact your machine tool builder!
Setting the machine datum is absolutely essential on most machine tools with tool
changers, tilting axes, etc..
Contact the machine tool builder for the correct proceeding.
Note
The OEM may have defined the machine datum beyond the range accessible by the
machine axes, i.e. it cannot be approached.
In such a case the OEM will specify a fixed point (reference hole or stud, etc.) in the
machine's work envelope with an offset to the machine datum (e.g. 500 mm).
Preparation Always try to mount the encoder as exactly as possible to its original position!
Reference the axis concerned.
In Manual Operation set the display to POSITION + STATUS.
Press the STATUS POS.DISP. soft key.
Set the position display to REF ACTL on one side and to REF NOML on the other side.
With the machine parameter displayPace you can set the position display to a high resolution.
Compare the position displays.
If the difference is too large, the drive concerned should be readjusted --> see “Adjusting the
Electrical Offset” on page 19 – 206.
It may also be required to inspect the mechanics of the machine. --> If necessary, ask the
machine manufacturer!
Note
You may have to expand the traverse range (software limit switches)!
The software limit switches are defined in the machine parameters swLimitSwitchPos and
swLimitSwitchNeg (possibly the operator has limited the traverse range even further).
Note
You may have to expand the traverse range (software limit switches)!
The software limit switches are defined in the machine parameters swLimitSwitchPos and
swLimitSwitchNeg (possibly the operator has limited the traverse range even further).
DANGER
Contact the machine manufacturer and observe the machine manufacturers's safety
precautions (setup mode, etc.)!
DANGER
If required, activate the display of the spindle position with active M5 in the machine
parameter spindleDisplay.
Return to the Manual operating mode.
Switch the display to REF ACTL. --> Now you can read the deviation of the reference mark
from the desired position.
Rotate the spindle to correct position (use e.g. dial indicator, touch probe, orientation point,
etc.) --> Ask the machine manufacturer!
Subtract the displayed value from 360° and enter the result in the machine parameter
refPosition (spindle preset).
Check, whether spindle orientation is correct!
Caution
If the spindle position is measured indirectly (gear, etc.), the machine parameter
refPosition exists several times (in the respective parameter sets).
In the configuration editor check in the table, whether there are several parameter sets for
the spindle.--> see “Machine Parameters” on page 28 – 295
If so, set the correct positions!
Note
The HEIDENHAIN testing equipment described below can also be used for preventive
maintenance.
If you find out, for example, that the specifications (e.g. the signal amplitude) of an encoder
are very close to the tolerance limits, you can replace this encoder as a preventive measure,
in order to guard against machine standstill at a later date!
HEIDENHAIN Incremental encoders are checked with the PWM 9 Phase Angle Measuring Unit.
testing equipment --> see “PWM 9 Encoder Diagnostic Set” on page 27 – 289
The absolute tracks of EnDat encoders can be inspected with the IK 215 interface card.
--> see “IK 215 Adjusting and Testing Package” on page 27 – 292
The incremental signals of EnDat 2.1 encoders are checked with the PWM 9 Phase Angle
Measuring Unit.
--> see “PWM 9 Encoder Diagnostic Set” on page 27 – 289
PWM 9 To be able to judge the electrical function of an encoder, it must be measured with a phase
angle measuring unit (PWM), an oscilloscope and possibly an impedance tester.
--> see Operating Instructions, PWM 9 Encoder Diagnostics Kit
Adapters Various adapters have been developed to permit PWM measurement of the different encoder
signals (11 µApp, 1 Vpp, TTL). You will find a connection diagram of the adapters with
ID numbers in the PWM 9 operating manual.
Internal For technical reasons encoder signals cannot be recorded by the internal oscilloscope of
oscilloscope TNC 320.
The speed encoders for analog axes and spindles are mounted to or inside the motors.
Speed encoders are also referred to as tachometers (DC motors) or as motor encoders
(AC motors).
Contact the manufacturer of the analog servo amplifier regarding inspection, troubleshooting
and speed encoder settings.
17.1 Definition
The position value (the coordinates) of an axis position is defined with respect to a freely
selectable datum. When the axes are moved, the ACTUAL position is calculated incrementally.
If there is an interruption in power, the reference between the axis position and the position
value is lost.
Reference marks HEIDENHAIN linear encoders (except EnDat) are designed with one or more reference marks.
The reference marks identify an axis position at a known distance from the machine datum.
The position of the freely selectable datum is defined with respect to the machine datum.
The datum and the actual position can be reproduced as soon as the reference marks are
traversed.
Machine table
Position encoder
Reference mark
Machine datum
Distance between For distance-coded reference marks, the machine datum is defined with respect to the scale
the scale reference reference point, which is at the first reference mark after the beginning of the measuring length.
point and the
The machine parameter refPosition contains the distance between the scale reference point
machine datum
and the machine datum.
Note
After an encoder was removed and remounted you may have to reset the machine
parameter refPosition!
See ”Resetting the Machine Datum” on page 16 – 177
Spindle preset An appropriate angle encoder or even the motor encoder can be used for oriented spindle stop.
The machine parameter refPosition contains the deviation from the desired position.
Note
After you have replaced the angle encoder for the spindle, you must reset the machine
parameter refPosition!
See ”Resetting the Spindle Orientation” on page 16 – 179
If no EnDat encoders are used, the reference marks need to be retraversed after every power
interruption.
Note
Ask the machine operator about the referencing procedure at the machine concerned.
Manual
tool retraction
DANGER
When servicing, the machine may be in a position where the sequence for the automatic
referencing of axes could result in a collision and thus may cause damage to the machine
or even personal injury (e.g., error message with reboot).
First, the axes must be retracted carefully!
If necessary, ask the machine operator.
Soft key PASS If no or not all reference marks were traversed after the machine was switched on (e.g., due to
OVER REFERENCE a previous change to another operating mode), the reference mark traverse must be activated
MARK again with the soft key PASS OVER REFERENCE MARK.
Choose the manual mode of operation for this purpose.
Press the PASS OVER REFERENCE MARK soft key.
--> The message Pass over reference mark is displayed at the top of the screen.
Start the reference run with NC-START.
Encoders with Position encoders with EnDat interface can be connected to MC 320. With these encoders
EnDat interface reference mark traverse is not required. The position value is only read when the control is
switched on. It cannot be read again.
Note
If the use of multiturn encoders with EnDat interfaces results in overflows, the
corresponding information is stored temporarily. If the control is exchanged, these
temporary data must be transferred, or the machine parameter refPosition re-adjusted
(see “Exchanging MC 320” on page 25 – 264).
18.1 General
For an operating axis (axis in control loop) ...
No "Axis clamped" symbol is shown.
The "NC START" (control-in-operation) symbol is displayed.
The feed rate display must not be highlighted.
The position display changes when the axis moves.
(When operating with velocity feedforward and display of servo lag, the change
is only minimal.)
In order to work with axes or spindles the appropriate enables are required.
If one or several enables are missing, an error message is output or the axes and/or the spindles
cannot be operated.
The following conditions must be fulfilled to drive axes and spindles:
I3 set
(X42/4, Control-is-ready signal acknowledgement)
Note
Many analog servo drives provide a "ready" signal that can be evaluated by the PLC of
TNC 320. Normally, the drive is only enabled, after the servo drives have reported that they
are ready. --> Observe LEDs and LCD displays of the drives!
A number of servo drives do not provide a "ready" signal. In this event the drive enable must
be set without actually knowing the status of the drives. If an axis or spindle cannot be
operated, as the drive is not ready, an error message (e.g. Servo lag) is generated.
Note
In the PLC mode the status of axes and spindles can be read in API DATA / AXIS
or SPINDLE.
The respective PLC operands are explained in chapter "18.2 Examination".
Check in the
PLC TABLE whether I3 is set
or check the
status of the indicator _NE1_p in OLM
No
No
Yes
EMERGENCY STOP chain
(EMERG. STOP button, axis limit Remove the interruption.
switches, etc.) interrupted?
No
Yes
+24 V present at output There is still an interruption which
Control is Ready needs to be removed. (Use the circuit
(X41/PIN34)? diagram of the machine.)
No
Yes
Supply voltage present for The Control is Ready output of the
output Control is Ready (connector MC is probably defective.
X34/PIN1 = 24V, PIN2 = 0V)? -> Replace the MC!
No
Excerpt from the Here you can see the terminals that can be measured.
basic circuit (In most of the cases the PLC inputs and outputs are connected to a strip in the electrical
diagram cabinet.)
If the Control-is-ready output on the MC is defective, you can use the Control-is-ready
output of a PLC expansion board as a makeshift:
PL 405 B or PL 410 B: X8 / pin16
PL 510, input/output module PLD 16-8: X6 / terminal 8
(The function of this terminal can be set with a sliding switch on the rear side of
the I/O module concerned; setting 1 = "Control is ready";
see “X6: PLC outputs on PL 510” on page 14 – 155)
Sliding switch
on I/O module
No
Yes
Does the error message
EMERGENCY STOP defective MC is defective.
reappear?
No
I3
Note
The function of the Control-is-ready output of a PLD 16-8 I/O module can also be tested
with this method.
Note
Procedure for the EMERGENCY STOP tests --> see “Annex: Monitoring Functions” on page
1 – 1!
Find out whether the analog servos for the axis and spindle drives are switched on and ready
for operation!
Note
Information on this is available e.g. in the operating manual of the servo drive manufacturer.
Display
Note
For the correct interpretation of the axis status, support from the machine manufacturer
may be helpful or often even necessary.
Description
Markers Description
Axis – Configuration
D NN_AxLogNumber Logical axis number (identical to the axis
number from axisList)
Axis – Drive
M NN_AxDriveReady Axis drive is ready
M PP_AxDriveOnRequest Switch axis drive on
(CM9161)
M NN_AxDriveOn Axis drive is on (and at least speed-
controlled)
(CM9162)
M PP_AxPosControlRequest Position-control the axis
(W1040)
M NN_AxPosControl Axis is position-looped
(W1024)
M PP_AxValueActToNominal Actual-to-nominal value transfer
M NN_AxCorrectingLagError Following error eliminated
Display
Note
For the correct interpretation of this display, support from the machine manufacturer may
be helpful or often even necessary.
Description
Markers Description
Spindle – Configuration
D NN_SpiLogNumber Logical axis number of the spindle
Spindle – Drive
M NN_SpiDriveReady Spindle drive is ready
M PP_SpiDriveOnRequest Switch spindle drive on
(CM9161)
M NN_SpiDriveOn Spindle drive is on (and at least speed-
controlled)
(CM9162)
Spindle – Control
M NN_SpiReferenceAvailable Reference position found
(M4018)
M PP_SpiReferenceMarkSignal Trip dog
D PP_SpiSpeedMax Maximum speed of the spindle
(D604)
19.1 Introduction
Analog servo amplifiers are also referred to as analog servos.
They are available as dc and ac versions.
For analog drives dc motors and three-phase ac motors are used.
The analog servo amplifiers are controlled via ±10 V interfaces.
The position controller is located in the MC, speed and current controller in the servo amplifier.
The HEIDENHAIN control supplies the nominal speed value. This is why the ±10 V interface is
also referred to as nominal speed command interface.
The connector X8 is the analog speed command output of MC 320.
19.3 Specifications
Note
Owing to the complexity of error conditions of the drives, we recommend to consult the
machine operator and the machine manufacturer.
Example: First find out, whether the enabling conditions (e.g., door contacts, permissive buttons, etc.)
X axis does for the axis movements are given.
not move For the axes to be traversed ...
No "Axis clamped" symbol must be shown for the axis concerned.
The feed rate display (F ...) must not be highlighted.
The "NC START" (control-in-operation) symbol must be displayed.
If necessary, ask the machine operator!
Danger
As a reference potential for measuring the analog voltage only use the 0 V of the channel to
be measured (connector X8 on MC 320).
If you measure e.g. against the housing, the axis to be inspected could start to move
unintendedly!
Danger
For inspecting the analog axes (as described in the flowchart on the next page) the
monitoring tolerances are increased.
You may have to increase the monitoring values in small steps until a reasonable analysis
of the analog voltage can be made.
Do not forget to restore the original values after completion of the tests!
No
Switch off the machine and disconnect the analog servo amplifier
from the speed command cable. Repeat the above procedure with
the servo amplifier disconnected.
Yes
Does the multimeter read a
voltage in the range of +/-10 V?
No
If the control operates properly, a nominal speed command voltage can be read with the
above routine until the monitoring values (movement, following error, etc.) are reached. The
nominal speed voltage 0 V is output together with the respective error messages.
Measuring If available, you can connect the test adapter between connector X8 of MC 320 and the nominal
setup with speed command cable. Connect a multimeter to the corresponding banana jacks of the test
test adapter adapter.
Assignment for the analog channels --> see “X8: Analog output 1 to 6” on page 14 – 136
MC 320
Servo
amplifier X8
ANALOG
Test adapter
Id.Nr. 375830-01
. . .V
Multimeter
Assumed
configuration Axes/ParameterSets/PX/CfgAxisAnalog/analog Output 1 X8, X axis at channel 1
Axes/ParameterSets/PY/CfgAxisAnalog/analog Output 2 X8, Y axis at channel 2
Axes/ParameterSets/PZ/CfgAxisAnalog/analog Output 3 X8, Z axis at channel 3
Block diagram
Note
Always exchange both, the cable and the interface assignment by means of machine
parameter!
Yes
Proposal 1:
Press EMERGENCY STOP and switch the machine on.
Call the MP list.
Note
Copy the original entry values before you edit any machine parameters!
Now change to Manual Operation and switch the position display to LAG.
From the servo lag display you can see, whether the selected axis has reached a very
small value (target value ±3 - 5 µm).
Reset the original values in machine parameters and in the position display
Carry out offset fine adjustment with the code number 75368.
--> see “Offset fine adjustment via code number” on page 19 – 209
Note
You can also produce a D-Sub connector for the analog nominal speed command interface
X8. In this connector there is a bridge between ± 10 V and 0 V for each channel.
(see “X8: Analog output 1 to 6” on page 14 – 136)
Connect this connector to the nominal speed cable that you have disconnected from the
control (X8).
Advantage of this method: The nominal speed cable is included in the offset adjustment of
the servo amplifier.
Note
Copy the original entry values before you edit any machine parameters!
Set the machine parameter axisMode for all axes and spindles to Display.
--> No output of nominal value; axes and spindles are simply displayed.
Switch on the machine completely.
Check the controller enabling on the servo amplifier and establish it, if required.
(If necessary, ask the machine manufacturer)!
Select Manual operation, set the display to ACTL value and set the axis to zero.
Adjust the servo amplifier to standstill as close as possible. The axis movement can be seen
on the actual value display and possibly on a pulley.
Restore the original condition (cabling, parameters).
Carry out offset fine adjustment with the code number 75368.
--> see “Offset fine adjustment via code number” on page 19 – 209
With the offset fine adjustment via code number the control can compensate ±1 V!
This corresponds to 10% of the ±10 V interface!!
If the offset adjustment at the servo amplifier is highly insufficient, this can thus no longer
be compensated with adjustment via code number.
The machine parameter noOffsetAdjust must be set to FALSE for the axes concerned.
The axes to be compensated must be in the position control loop.
The spindles to be compensated should be oriented for this purpose (e.g. M19).
Confirm.
TNC 320 displays the offset values determined for the analog axes.
Press the OK soft key to confirm the values.
--> The values are written to the analogOffset machine parameters automatically.
Note
Offset adjusting via code number compensates the current offset values of the entire
control loop. Later changes in offset are not compensated.
General You should adjust the speed at the servo amplifier, if ...
You have exchanged the servo amplifier or the motor.
You have replaced the motor brushes.
The servo lag is impermissibly high at constant traverse.
Milled circles are not round.
You have updated the mechanics of the axis.
(E.g., guideway, bearing, belt, coupling, ball screw, etc.)
The aim of speed adjustment is to achieve that the output nominal speed value is equal
to the really measured actual speed value (Vnom = Vact).
Note
Copy the original entry values before you edit any machine parameters!
Danger
Enter this test program together with the machine operator. Please be careful to prevent
a collision (retract Z axis first, etc.)!
Note
The kv factor for operation with following error is defined in the machine parameter
kvFactor.
For the displayed traversing speed the machine parameter kvFactor2 may be active. The
limit velocity as of which the kvFactor2 takes effect, is entered in the machine parameter
kvSpeedLimit. Contact your machine manufacturer.
Example:
Note
You can read the exact signal values on the bottom left of the oscilloscope screen next
to CU1:
Use the arrow keys to select the channel to be read.
In this example, the following error ideally is 5 mm at 9 V analog voltage and an actual speed
of 12000 mm/min (the same as the nominal speed)!
Call Press the following key combination to switch the position display:
Select a machine operating mode (Manual Operation, Program Run/Full
Sequence, etc.).
20.1 Introduction
The 15.1" TFT flat-panel display is a component of MC 320; it is integrated in the housing of
the MC.
Power supply and control of display signals are effected inside the MC housing.
The soft keys on the screen are controlled via the horizontal and the vertical soft-key row.
Caution
The video signal is switched off, if there is a short-circuit in the power supply of the
handwheel (12 V) or in the 15 V power supply of the touch probe (not the 5 V supply)
--> The screen goes blank!
Screen The soft key rows are connected to the keyboard PCB with ribbon cables.
soft keys
Troubleshooting --> see “Checking the Switches” on page 23 – 247.
Monitor If the machine is switched on but the screen remains black, proceed as follows:
Is a 85 – 264 V No
alternating current Establish power supply.
available?
Yes
Yes
Yes
If you can see the display information with TNCremoNT, it is still not 100% sure that all areas
of the graphics card are in good order!
If the function of the display is adversely affected by defective devices, the reason is
mostly the touch probe or the handwheel:
Check, whether these devices have got wet or damaged.
Check the cables for damage.
Check the touch probe and the handwheel (including the cables) for short-circuits.
If you cannot find any defect, you can successively connect all connectors, USB devices, data
interfaces, etc. (the machine must always be switched off) and observe, when the error occurs
again (in this case the black screen). Subsequently, search the error of the connected device
including its cable.
21.1 Introduction
The keyboard and the potentiometers are components of MC 320 integrated in the MC housing.
The screen soft keys are on separate boards (horizontal and vertical soft keys) that are connected
to the keyboard PCB via ribbon cables.
The key signals are transmitted to the controls by means of a matrix with every cross point of
an SL (ScanLine) being assigned to a certain key via an RL (ReturnLine).
The OEM can disable machine operation by keys as long as the handwheel is active.
Note
Defective keys either do not contact any more or are in continuous contact.
Liquid penetrated
Ribbon cable defective
Connector of ribbon cable defective
Soft-key row or keyboard PCB defective
Potentiometer wiper worn
Correct Make sure that the key really functions in the selected operating mode.
operation? --> Consult the machine operator or the user's manual!
DANGER
When liquid cleaning agents have been used, the electrical devices must dry completely
before they may be operated again.
Does the control To make sure whether the signal is received, observe the key code in the PLC double word
receive the NP_GenKeyCode when you press the keys:
key signal?
Press EMERGENCY STOP.
Reboot the control.
Do not acknowledge the Power interrupted message.
Call the PLC table for the words (see “The TABLE Function” on page 10 – 63).
Press the key to be examined and check, if the display changes to the key code valid now or
the key reacts accordingly!
Principle of the The keys are evaluated via a matrix. Every key is located at a cross point of SL (= scan line) and
key matrix RL (= return line).
--> see “Key Matrix of MC 320” on page 21 – 228
No
Any reaction?
Yes
No
Any reaction?
Yes
Note
If no test adapter is available, you can measure directly at the contacts of the ribbon cable
X1 on the keyboard PCB.
However, this is very cumbersome, since you must contact the right pins precisely while
pressing the key to be inspected!
Caution
Handle the glass in the front panel and the monitor in the housing with great care.
Pay attention not to damage, scratch or contaminate the glass panel or the monitor.
In particular, when you dismount or remount the front panel, the monitor might
be scratched by the spacer bolts on the front panel!
Place the components etc. on a soft and clean surface.
With the ribbon adapter cable connect the test adapter to the connector X1 on the keyboard
PCB.
Connect the measuring lines of a multimeter to the banana jacks of the test adapter.
Use the corresponding key matrix with the pin layout.
--> see “Key Matrix of MC 320” on page 21 – 228
Set the multimeter to "alarm" (acoustic signal) or to ohm measurement.
Press the key to be examined.
If the key functions, the multimeter will "ring". If you use ohm measurement, the measured
resistance is approx. 1 ohm (consider the resistance of the measuring lines).
Test adapter
Id.Nr. 375830-01
... W
Multimeter
Note
Displayed The values of the feed-rate potentiometer (0 ... 150 %) are displayed on the screen.
potentiometer The display of the spindle speed depends on the position of the spindle potentiometer.
values
Turn the potentiometers and observe, whether the display changes accordingly.
Note
The minimum and the maximum permissible spindle speed is defined by the OEM.
This means that the speed does not necessarily have to cover the entire range between
0 and 150 %.
Note
The positions of the potentiometers may also be displayed in the small PLC window.
--> Ask the machine operator!
Potentiometer You can use the PLC TABLE to find out, whether the control receives the potentiometer signal.
values
The potentiometer setting is displayed in the following PLC operands:
in API DATA
NN_SpiOverrideInput (= S override)
NN_ChnFeedOverrideInput (= F override)
Proceed as follows:
Press EMERGENCY STOP.
Switch the machine on and confirm the Power interrupted message.
Call the API DATA function (see “The API DATA Function” on page 10 – 58).
Press the SPINDLE soft key.
Switch to decimal display.
With the cursor select the PLC operand NN_SpiOverrideInput.
Turn the spindle potentiometer.
Note
The minimum and maximum values are defined in the machine parameter CfgPlcOverrideS.
These values are multiplied by the factor 100 for display in the PLC.
Potentiometer With the integrated oscilloscope you can record the states of PLC operands as well.
values in the The advantage of this method is that possible interruptions of the potentiometer wipers can be
oscilloscope detected more easily than in the API DATA display.
Proceed as follows:
Press EMERGENCY STOP.
Switch the machine on and confirm the Power interrupted message.
Call the WATCH LIST (see “The WATCH LIST Function” on page 10 – 60).
Press the SYMBOL LIST soft key.
Place the cursor on NN_ChnFeedOverrideInput and press INSERT. Proceed accordingly with
the PLC operand NN_SpiOverrideInput.
The following window will appear:
These minimum and maximum values for the spindle potentiometer are defined in the
machine parameter CfgPlcOverrideS. The values are multiplied by the factor 100 for display
in the oscilloscope.
The values for the feed-rate potentiometer are between 0 and 15000.
Measure For this purpose the MC 320 must be dismounted and the front panel removed.
potentiometer
Switch off the machine.
values directly
Remove the MC 320 from the console (take care that all connected cables are labeled).
Unfasten the rear screws of the front panel.
Separate the front panel from the housing. The 50-pin ribbon cable connector must be
disconnected for this purpose.
Caution
Handle the glass in the front panel and the monitor in the housing with great care.
Pay attention not to damage, scratch or contaminate the glass panel or the monitor.
In particular, when you dismount or remount the front panel, the monitor might be
scratched by the spacer bolts on the front panel!
Place the components etc. on a soft and clean surface.
Keyboard PCB
Keya PGM
ERR CALC MOD HELP
X1 pinb MGT
1a RL0 X X
2a RL1 X X X
3a RL2 X X
4a RL3 X
5a RL4 X X
6a RL5 X X
7a RL6 X
8a RL7 X
9a RL8
10a RL9
1b SL0 X
2b SL1
3b SL2 X
4b SL3
5b SL4 X X X X
6b SL5
7b SL6 X X X X X
8b SL7 X X X
a. Key
b. Ribbon cable connector X1 on keyboard PCB
1a RL0
2a RL1
3a RL2
4a RL3
5a RL4 X
6a RL5 X
7a RL6 X X
8a RL7 X X
9a RL8 X X X X
10a RL9
1b SL0 X
2b SL1 X
3b SL2 X X X
4b SL3 X X X X X
5b SL4
6b SL5
7b SL6
8b SL7
1a RL0
2a RL1
3a RL2
4a RL3 X
5a RL4 X X X
6a RL5 X X
7a RL6 X X
8a RL7 X X
9a RL8
10a RL9
1b SL0 X X X X X
2b SL1 X X X X
3b SL2 X
4b SL3
5b SL4
6b SL5
7b SL6
8b SL7
1a RL0
2a RL1
3a RL2
4a RL3
5a RL4
6a RL5 X X
7a RL6 X
8a RL7 X X
9a RL8
10a RL9 X X X
1b SL0 X
2b SL1 X
3b SL2 X
4b SL3
5b SL4
6b SL5 X X X
7b SL6 X X
8b SL7
Key
X1 pin X 7 8 9 Y 4 5 6 Z 1 2 3
1a RL0 X X X
2a RL1 X X X
3a RL2 X X X
4a RL3 X X X
5a RL4
6a RL5
7a RL6
8a RL7
9a RL8
10a RL9
1b SL0
2b SL1
3b SL2 X X X X
4b SL3 X X X X
5b SL4 X X X X
6b SL5
7b SL6
8b SL7
1a RL0 X
2a RL1 X
3a RL2 X X X
4a RL3 X X X
5a RL4 X X
6a RL5
7a RL6 X
8a RL7
9a RL8 X
10a RL9
1b SL0 X
2b SL1 X X X X
3b SL2
4b SL3
5b SL4 X
6b SL5 X X X
7b SL6 X
8b SL7 X X
Key NO END
X1 pin ENT ENT
1a RL0 X X
2a RL1 X
3a RL2
4a RL3
5a RL4
6a RL5
7a RL6
8a RL7
9a RL8
10a RL9
1b SL0 X
2b SL1
3b SL2
4b SL3
5b SL4
6b SL5 X X
7b SL6
8b SL7
X X
X X
X X
X X
X X
X X
Keya
SK1 SK2 SK3 SK4 SK5 SK6 SK7 SK8
X1 pinb
13a RL12 X X X
14a RL13 X X X
15a RL14 X X X
16a RL15 X X X
1b SL0 X X
2b SL1 X X X X
3b SL2 X X X X
4b SL3 X X
a. Key
b. Ribbon cable connector X1 on keyboard PCB
Note
Keys that were pressed are entered into the keystroke log.
The SK1 key is entered as HorzSoftkey1, the SK2 key as HorzSoftkey2, ..., the SK8 key
as HorzSoftkey8.
The horizontal soft keys are numbered serially from left to right.
The MF1 key is entered as VertSoftkey1, the MF2 key as VertSoftkey2, and so on.
The vertical soft keys are numbered serially from top to bottom.
Caution
Handle the glass in the front panel and the monitor in the housing with great care.
Pay attention not to damage, scratch or contaminate the glass panel or the monitor.
In particular, when you dismount or remount the front panel, the monitor might
be scratched by the spacer bolts on the front panel!
Place the components etc. on a soft and clean surface.
DANGER
When liquid cleaning agents have been used, the electrical units must dry completely before
they may be operated again.
22.1 Introduction
Machines with up to four axes may feature the HEIDENHAIN machine operating panel MB 420.
It is normally mounted below the TNC.
The machine operating panel is connected to the connector X46 of MC 320.
The keys and buttons of MB 420 are transmitted to the control as PLC inputs.
Moreover, MB 420 is provided with 8 PLC outputs (which serve, for example, to control the
lamps of the buttons).
If a machine operating panel from the machine tool builder is used, please refer to the
corresponding circuit diagram from which you can see the wiring of the keys.
Caution
HEIDENHAIN recommends to check the function of the EMERGENCY STOP switch on the
machine operating panel or operating tableau in regular intervals!
Note
Defective keys either do not contact any more or are in continuous contact.
Note
If the NC STOP signal (low-active) between MB and control is interrupted, the machine
cannot be traversed any more. The same problem is caused, if the NC STOP key gets stuck.
Measuring setup
with test adapter
MC 320
MB
X 46
Test adapter
Id.Nr. 375830-01
. . .V
Multimeter
Procedure:
Switch off the machine.
Connect the test adapter between the MC connector X46 and the MB 420 connecting cable.
Switch the machine back on again.
Check the supply voltage at the pins concerned with a multimeter.
Note
MC 320 features "polyfuses". These are electronic fuses that separate defective peripheral
devices from the low voltages in the control in the event of an error. This is also true for the
machine operating panel!
If a defective machine operating panel draws too much current, is "separated" from the
control. Error messages may be displayed.
Correct Make sure that the key really functions in the selected operating mode.
operation? --> Consult the machine operator or the user's manual!
DANGER
When liquid cleaning agents have been used, the electrical units must dry completely before
they may be operated again.
Does the control The keys and buttons of MB 420 are assigned to the following PLC inputs:
receive the
key signal?
I
I I I I I I I 146
136 135 134 137 138 143 145
I I I I I I I
128 148 133 149 139 144 150
I I I I I I I I
129 130 131 132 140 141 142 147
Two further inputs (I151 and I152) may be wired via terminal block X3:
Terminal X3 Assignment
1 I151
2 I152
3 +24 V
The inputs are connected to the control (MC, connector X46) via the connecting line X1.
Connectors and pin layouts on MB 420 --> see “Machine Operating Panel” on page 14 – 157.
The function of the MB keys can be checked via the PLC input table:
Press EMERGENCY STOP.
Switch on the machine.
Call the table with the PLC inputs. --> see “The TABLE Function” on page 10 – 63.
Press the keys.
Exception: I147 = NC STOP --> Changes to 0 when actuated (broken wire interlock!)
Note
Measure the input voltages, e.g. at terminal X3 of MB 420 or via test adapter at
connector X1. --> see “Test Adapter” on page 27 – 284.
The logical states in the PLC TABLE must be in agreement with the voltage level of the
respective inputs!
Terminal X4 Assignment
1 O0
2 O1
3 O2
4 O3
5 O4
6 O5
7 O6
8 O7
9 0V
The function of the outputs can be checked via the PLC output table:
Switch on the machine.
Call the PLC output table. --> see “The TABLE Function” on page 10 – 63
Establish the conditions for setting the output concerned (keystroke, function call, etc.).
If necessary, use the User's Manual or the circuit diagram of the machine or consult the
machine manufacturer.
The outputs must change condition!
You can now find out, e.g., whether a lamp is defective or is not controlled correctly.
Note
Measure the output voltages, e.g. at terminal X4 of MB 420 or via test adapter at
connector X1. --> see “Test Adapter” on page 27 – 284.
The logical states in the PLC TABLE must be in agreement with the voltage level of the
respective outputs!
DANGER
When liquid cleaning agents have been used, the electrical units must dry completely before
they may be operated again.
Other Replace defective components, such as the cable between MB and control, the board, the
components buttons NC START, NC STOP and EMERGENCY STOP with original components!
Control If you have found that the MB interface on the control is defective (connector X46) --> Replace
the control.
--> see “Exchanging MC 320” on page 25 – 264
23.1 Introduction
Shock or vibrations can cause a slight motion at the handwheel and produce an unintentional axis
movement. The threshold sensitivity of the handwheel encoder is specified in the config object
CfgHandwheel / machine parameter sensitivity.
Portable handwheels with EMERGENCY STOP button are connected to the control via an
adapter. The circuits for EMERGENCY STOP circuit and for the permissive keys are located
in the cable adapter ID 296466-xx.
Pin layouts and wiring (e.g., EMERGENCY STOP key and permissive key on handwheel adapter)
--> see “Handwheels” on page 14 – 150
Operation of the electronic handwheels --> See TNC 320 User's Manual.
Caution
Note
Defective keys either do not contact any more or are in continuous contact.
Board defective
EMERGENCY STOP button defective
Handwheel encoder defective
Liquid has penetrated
Handwheel cable defective
Error in cable adapter --> Continuous EMERGENCY STOP or permissive keys non-functional
Short circuit in cable or handwheel
Shock or vibrations --> Unintended traverse movements
Handwheel interface on MC defective
Caution
The video signal is switched off, if there is a short-circuit in the power supply of the
handwheel (12 V). --> The screen goes blank!
Functional check Switch the control display to "Nominal value" and observe, whether the display changes while
you turn the HR.
Check, whether the EMERGENCY STOP button and all other keys function properly.
Note
Visual inspection Perform a visual inspection of handwheel, EMERGENCY STOP button, keys, cable, contacts,
etc.
Examine the device for damage: Are keys heavily contaminated! Are there any jammed chips?
Have liquids entered, etc.?
Voltage Connect the test adapter between connector X23 of the MC and the handwheel and measure
supply OK? the +12 V voltage (see “Test Adapter” on page 27 – 284).
MC
X 23
Test adapter
ID 375830-01
Note
MC 320 features "polyfuses". These are electronic fuses that separate defective peripheral
devices from the low voltages in the control in the event of an error. This is also true for the
handwheel!
If a defective handwheel draws too much current, is "separated" from the control.
However, in this case the screen may go blank!
In the config object CfgHandwheel / machine parameter initValues[0] is defined, whether the
handwheel keys are evaluated by the NC or the PLC.
X IV
Y V
Actual
position
Z capture
– +
O109 O110 O111
I173 I174 I175
All keys are evaluated by the NC, except the function keys A, B and C!
Note
Ask the machine manufacturer, whether you may change the value in the machine
parameter initValues[0] for testing. The PLC program may prevent this.
O96 O97
I160 I161
O98 O99
I162 I163
O100 O103
I164 I167
I171 I172
Note
The dummy plug bridges the handwheel in the EMERGENCY STOP chain.
If no dummy plug is available, use wire to bridge the EMERGENCY STOP contacts of the
handwheel in the EMERGENCY STOP chain.
DANGER
If you have bridged the handwheel contacts in the EMERGENCY STOP chain, you must
remove the bridge when you reconnect the handwheel to operate it.
You must absolutely check, whether the EMERGENCY STOP button on the
handwheel functions properly!
Dummy plug The dummy plug for the handwheel adapter can be purchased from the machine manufacturer
or from HEIDENHAIN (ID 271958-03).
X31 24 V
X1 S2 Achswahl (Option)
AXIS SELECTION (OPTIONAL)
S1 Unterteilungsfaktorwahl (Option)
X2
INTERPOLATION FACTOR (OPTIONAL)
max. 20 m max. 50 m
An additional switch enables you to select, for example, the interpolation factor for the
handwheel. The current position of the selection switch is evaluated by the PLC.
DANGER
When liquid cleaning agents have been used, the electrical units must dry completely before
they may be operated again.
Caution
EMERGENCY If the EMERGENCY STOP button is defective, replace the entire handwheel!
STOP button
Control If you have found that the HR interface on the MC 320 control is defective (connector X23),
replace the control. --> see “Exchanging MC 320” on page 25 – 264
24.1 Introduction
Touch probes serve to:
Align workpieces
Set reference points
Measure workpieces
Touch probe with infrared transmission of the trigger signal (e.g., TS 640, TS 440)
These touch probes are designed for use on machines with automatic tool changer.
The infrared transmission is established between the touch probe and the transmitter/receiver
unit.
It is tolerant to noise and can even be reflected.
The probes are battery-operated.
The TS 640 is equipped with an integrated cleaning blower.
Note
MC 320 features "polyfuses". These are electronic fuses that separate defective peripheral
devices from the low voltages in the control in the event of an error. This is also true for the
touch probes!
If a defective touch probe draws too much current, is "separated" from the control.
Corresponding error messages are displayed.
Caution
The video signal is switched off, if there is a short-circuit in the 15 V power supply of a touch
probe (not the 5 V supply). --> The screen goes blank!
Negative influence If there is suspicion that a damaged touch probe (or a touch probe into which humidity has
on control? penetrated) impairs the function of the control, disconnect the probe and observe the reaction.
Visual inspection Check, whether the stylus is broken or the touch probe or the cable are damaged, etc.
Functional test
DANGER
Contact the machine manufacturer and observe the machine manufacturers's safety
precautions (setup mode, etc.)!
The machine is on, the touch probe to be examined is in the spindle and no error message
related to the battery is generated.
Call the on-line monitor. --> see “Diagnosis with the Online Monitor (OLM)” on page 8 – 41
Successively press the soft keys LOGIN IPO / HW / NEXT / HW-PORTS II.
The following display appears:
Note
Please note that the signals for 3-D readiness and 3-D signal are low-active (broken wire
interlock)!
Check the 3-D ready display. If the touch probe is ready for operation, the signal is red.
Check the 3-D warng display. If no warning is pending, the signal is red.
Deflect the stylus by hand.
Check the LEDs on the touch probe (see “Checking the LEDs of TS 220” on page 24 – 255)
or at the transmitter/receiver unit (see “Checking the LEDs of TS 440 and TS 640” on page 24
– 256).
At the same time, check the display of the 3-D signal in the OLM. When the stylus is
deflected, the signal changes to red!
You can also connect the test adapter between the MC (X12) and the cable of the touch
probe and measure the voltages and signals. --> see “Test Adapter” on page 27 – 284!
Ready signal (X12/pin3) +15 V --> Touch probe ready
Negated trigger signal (X12/pin10) +5 V --> Touch probe ready, stylus at rest
Negated trigger signal (X12/pin10) 0 V --> Touch probe ready, stylus deflected
0 V (UN) are on pin 8 --> see “X12: Connection of the touch probe for workpiece
measurement” on page 14 – 136
Checking the Red LEDs on the TS 220 indicate that the stylus is deflected:
LEDs of TS 220
Note
If available, you can also connect an identical touch probe to test the functionality!
Checking the By means of two multicolor LEDs, a visual status check of SE 440, SE 640 and EA 632
LEDs of TS 440 transmitter/receiver units is possible:
and TS 640
Color Meaning
Red (blinking) Touch probe ready, but no infrared connection
available
Green Infrared connection available
Orange Stylus already in contact
Off Touch probe not ready
Note
A detailed description of the visual status check, of the beam direction, of battery
exchange, stylus exchange, centering, specifications, etc. can be found in the mounting
instructions of the touch probe!
TS 640 with
SE 640
Note
If available, you can also connect an identical touch probe to test the functionality!
Measuring the If available, you can connect the test adapter between MC 320 (X12) and the cable of the touch
voltages and probe to measure the voltages and signals. --> see “Test Adapter” on page 27 – 284!
signals with the
test adapter Voltage / signal Pin Voltage Meaning
+ 15 V X12/Pin5 + 15 V Power supply
+5V X12/Pin6 +5V Power supply
Ready signal X12/Pin3 +15 V Probe is ready
Negated trigger X12/Pin10 +5 V Probe is ready, stylus at rest
signal 0V Probe is ready, stylus deflected
The 0 V reference potential (UN) is on pin 8. --> see “X12: Connection of the touch probe for
workpiece measurement” on page 14 – 136
Exchange of If required, replace the battery, the broken stylus, the defective cable, etc.
components
Note
A detailed description of the visual status check, of the beam direction, of battery
exchange, stylus exchange, centering, specifications, etc. can be found in the mounting
instructions of the touch probe!
Recalibration After a collision, check the accuracy of the touch probe. Consult the machine operator, the
machine manufacturer or your HEIDENHAIN service agency!
Note
A detailed description of the visual status check, of the beam direction, of battery exchange,
stylus exchange, centering, specifications, etc. can be found in the mounting instructions
of the touch probe!
Returning the Return defective touch probes and those that impair the function of the control for examination.
touch probe
Returning the If the touch probe interface of MC 320 is defective, replace the entire control.
control --> see “Exchanging MC 320” on page 25 – 264
DANGER
Caution
Potentiometers
Stylus
HEIDENHAIN peripherals
(e.g., encoders, handwheels, touch probes, machine operating panels, etc.)
Cables and accessories
DANGER
The HEIDENHAIN NC software for TNC 320 must be released by the OEM!
Replacement units For replacement units and spare parts, ask your machine manufacturer!
and spare parts The same is true for NC software!
Please observe:
Always use original HEIDENHAIN components as replacements!
Replacement CFRs or new CFRs are normally equipped with the most recent NC software.
If you wish to keep the previously installed - older - NC software version, please contact your
OEM.
He can restore this version.
Please send the defective unit in its original packaging to your machine manufacturer or your
HEIDENHAIN agency.
Information on If possible, write the assumed error or circumstances that caused the failure of the device on
possible errors a piece of paper, which you attach to the device.
Note
Replacement controls arrive with a form that you should fill in to provide information on the
error of the defective control.
Repair Many HEIDENHAIN devices are not repaired on site but are exchanged or replaced.
These devices are exclusively repaired by HEIDENHAIN specialists. The devices are also
updated to the latest state-of-the-art and subjected to tests.
ID numbers When placing a service order, always indicate the ID number of the HEIDENHAIN device
concerned.
SIK
ESD protection
Caution
When you exchange HEIDENHAIN components, you might come into contact with
electronic components.
These ESD-sensitive components may also come into contact with a statically charged
object (tool, tool table, packaging, etc.)
Therefore observe the ESD protective measures, when you exchange the buffer battery
and all devices with accessible electronic components or contacts!
Grounding connection
(e.g. protective earth conductor socket)
MOS not required if protection mat is placed
protection mat on machine table
Bracelet
Removing the Switch off the main switch of the machine and take precautions that is cannot be switched
defective MC 320 B on. --> see “Safety Precautions” on page 1 – 7!
Label and remove all connectors from the MC.
Screw off the ground lead.
Dismount the MC from the console.
Remove the flash card (connector X600).
--> see “Exchanging the CFR Memory Card” on page 25 – 265
Remove the SIK (connector X125).
Mounting the new Insert the flash card into the new MC 320 and lock it.
MC 320 --> see “Exchanging the CFR Memory Card” on page 25 – 265
Insert the SIK into the new MC 320.
Mount the MC 320 in the console.
Screw on the ground lead.
If required, remove the protective caps from the MC connectors.
Re-connect and attach all lines and cables.
Caution
Restoring the Check the electrical offset and readjust it, if necessary.
original state of the --> see “Adjusting the Electrical Offset” on page 19 – 206
machine Check date and time and reset it, if necessary.
--> see “Setting the System Time” on page 11 – 90
Return shipment Replacement controls arrive with a form which you should use to provide information on the
error of the defective control.
Please fill in this form and attach it to the housing of the MC 320.
Use the original packaging of the new MC 320 to package the defective MC 320.
Return the defective MC 320 to the machine manufacturer or to your HEIDENHAIN service
agency.
Caution
For this reason a CFR may only be exchanged in consultation with the machine
manufacturer.
CFRs that you receive in exchange and new CFRs are already partitioned and formatted.
The NC software is installed and a basic configuration set.
CFRs are normally equipped with the most recent NC software.
This NC software must be released by the machine manufacturer!
Moreover, you require support by the machine manufacturer, if you must adapt the saved
data of your previous NC software version to the new NC software version (update rules).
If the machine manufacturer has not released the latest NC software, or if you wish to keep
the NC software version that was installed on your defective CFR, this version must be
installed. For this purpose you also require support from the machine manufacturer.
Removing the Switch off the main switch of the machine and take precautions that is cannot be switched
defective CFR on. --> see “Safety Precautions” on page 1 – 7!
Pull the support bracket of the CFR towards you to loosen the locking mechanism.
Defining the NC Check the currently active NC software version. --> see “Display of System Information” on
software version page 13 – 130
If you require a different software version, it must be loaded now. --> Please contact your
machine manufacturer!
Setting the data Either make the settings for Ethernet transmission on the control. --> see “Via Ethernet” on
interface page 12 – 100
Or define the settings for the RS 232 interface. --> see “Via serial interface RS 232/V.24” on
page 12 – 106
Note
If required, you can obtain PLC and machine data from the machine manufacturer.
Load the backup on the new CFR. --> see “Restoring Data” on page 12 – 117
Updating the The data of the old NC software version may have to be adapted to the new NC software version
machine (update rules). -- > Ask the machine manufacturer!
configuration data
Restoring the On machines with analog axes an offset fine adjustment with the HEIDENHAIN code number
default should be performed after the control was replaced.
settings of the -> see “Adjusting the Electrical Offset” on page 19 – 206
machine
Check the machine functions.
Depending on the machine features you have to ...
Recalibrate the touch probes.
Initialize the tool changer again.
Contact the machine manufacturer for information!
Check the reference points (preset table --> ask the machine operator).
Check date and time and reset it, if necessary.
--> see “Setting the System Time” on page 11 – 90.
Creating a machine If changes were made to the machine or control (e.g., new machine parameters added),
backup you should create a backup of the current machine data.
--> see “Data Backup on External Data Medium” on page 12 – 113!
Return shipment Attach a note with the error description to the CFR.
Use the original packaging of the new CFR to package the defective CFR.
Return the defective CFR to the machine manufacturer or to your HEIDENHAIN service
agency.
DANGER
Caution
If you open the housing at too much of an angle, there is the risk that you bend the upper
spacer bolts.
Caution
Handle the glass in the front panel and the monitor in the housing with great care.
Pay attention not to damage, scratch or contaminate the glass panel or the monitor.
In particular, when you dismount or remount the front panel, the monitor might
be scratched by the spacer bolts on the front panel!
Place the components on a clean surface.
Dismount the defective potentiometer. For this purpose, first remove the cover with a small
screwdriver or a knife.
Mount the new potentiometer such that the range of 0 to 150 % can be covered.
Note
Carefully remount the components. (Do not forget to connect the ribbon cable for the
keyboard!)
DANGER
Caution
If you open the housing at too much of an angle, there is the risk that you bend the upper
spacer bolts.
Caution
Handle the glass in the front panel and the monitor in the housing with great care.
Pay attention not to damage, scratch or contaminate the glass panel or the monitor.
In particular, when you dismount or remount the front panel, the monitor might
be scratched by the spacer bolts on the front panel!
Place the components on a clean surface.
Mark the spacer bolts (e.g. with a felt-tip pen or a sticker) before you unscrew them.
Note
DANGER
You must absolutely check, whether the EMERGENCY STOP button functions properly!
If you intend to replace keyboard components, we recommend that you dismount the MB 420
entirely. Please label the key elements and cables before doing so!
Note
DANGER
You must absolutely check, whether the EMERGENCY STOP button functions properly!
Many HEIDENHAIN products (encoders, scanning heads, etc.) are supplied with mounting
aids (metal forks, spacer plates, etc.)
The HEIDENHAIN inspection device PWM 9 or PWT is a good aid for adjusting scanning
heads.
--> see “PWM 9 Encoder Diagnostic Set” on page 27 – 289
When analog servo amplifiers and motors including the cables are replaced, the analog servo
amplifiers may have to be readjusted.--> Ask the manufacturer.
--> see “Adjusting the Electrical Offset” on page 19 – 206
--> see “Speed Adjustment at Servo Amplifier” on page 19 – 210
When exchanging mechanical components, readjustment of the control loops of axes and
spindle may be necessary. --> Contact the machine manufacturer!
Exchange cables only for original cables! Do not exceed any maximum lengths!
Note
If you have any questions, contact the machine manufacturer or a HEIDENHAIN service
agency.
26.1 Introduction
Errors in the current HEIDENHAIN NC software are corrected by means of service packs.
Service packs are loaded in addition to the NC software.
The service pack must match the released NC software version.
The latest service pack version includes all changes of the predecessor versions, i.e., only the
service pack with the highest version number must be loaded.
As per special prescriptions of the OEM, the PLC program, the machine configuration or the
data in the PLC partition may also be updated when a service pack is loaded.
Caution
Normally a service pack is loaded by the machine manufacturer or should be done at his
initiative and after prior consultation.
End users may receive the service packs from the machine manufacturer.
Machine manufacturers who have access rights to the protected section of the HEIDENHAIN
website (member area), can download the service pack from the HEIDENHAIN website after
having entered user name and password.
Display on If you press the MOD key while the machine is on, you can see whether a service pack is active.
the screen In this case you find the letters SP followed by the version number (e.g., 340551 01 SP3) behind
the ID number of the NC software.
Note
If a service pack has already been installed, it will not be possible to install a service pack
with a lower version number. This will be checked during the installation of a service pack
and a message will be displayed if an error is found.
Downloading the If you have access rights to the protected section of the HEIDENHAIN website (member area),
new service pack you can download the latest service packs.
For this purpose proceed as follows:
Go to www.heidenhain.de on the Internet.
Click on Services and Documentation/Member Area/FileBase.
Enter your user name and your password.
Click on NC Milling TNC320.
Click on Software.
Select the appropriate service pack with the highest version number for the NC software on
your machine (e.g., 34055102 - TNC320 service pack 3).
Download the service pack onto a USB stick or onto your service laptop/PC.
Note
Decompress the ZIP file (e.g., 34055102sp3.zip) to the USB stick or to a folder on the laptop.
A folder with the number of the NC software (e.g., 34055102) is created. This folder contains
a subdirectory (e.g., 340551_002_SP3) with the file setup.zip.
Copy or move the setup.zip file to the root directory of the USB stick.
Note
End users may receive the service packs from the machine manufacturer.
This means that the OEM decides whether the end user can or should load the service pack
himself.
Preparing the Move the machine to home position (axes, tool changer, etc.)
machine Ask the machine operator!
Press EMERGENCY STOP.
Note
HEIDENHAIN recommends backing up the control data, (e.g. with TNCremoNT) before
loading the service pack.
--> see “Data Backup on External Data Medium” on page 12 – 113
Loading the Shut down the control and switch off the machine.
service pack Connect the prepared USB stick to the USB interface provided by the machine manufacturer
(in most cases at the console or at the electrical cabinet) or directly to X141 or X142 of
MC 320. X141 and X142 are at the lower rear of the housing.
Switch on the machine and, as soon as the blue screen appears , press DEL until the booting
procedure is interrupted and the following message is displayed:
Enter 049866931 as user name. (If a USB keyboard is connected to the control, you can also
enter update as an alternative.)
Select the Update menu item and confirm your entry with the ENT key.
Select Source: USB stick. Confirm your selection with the ENT key.
The control then starts the boot updater. A new window opens, which displays the contents
of the update packet:
Caution
The following inspection, measuring and testing equipment is only intended for a test run
on machines!
DANGER
Caution
When using the test adapter or the universal measuring adapter, encoder cables, for
example, are no longer continuously shielded.
When using grounded measuring equipment (e.g., oscilloscope with power connection),
always the socket of the machine's electrical cabinet should be used for power supply.
Compensating currents caused by different earth potentials can thus be avoided!
For measuring voltages, the contact should first be established with 0 V and only then the
contact with the voltage to be measured!
Caution
Connecting cable,
ribbon type
26, 20, 16-pin
ID 375833-02
A new and an old version of the D-sub adapter cables are available.
The older version has disadvantages:
The oval-head screws on the D-sub connector reduce the insertion depth.
An adapter connector can/must be used.
More space is required as the adapter connector has a lateral cable outlet and the original
connector must be connected directly to the adapter connector.
New version
Older version
New version
Older version
New version
Older version
New version
Older version
Check-Ref function
Adjusting aid for mounting scanning heads of exposed encoders
Checking distance-coded reference marks
Note
General The PWT 10/17/18 phase angle testing unit is a mounting aid for scanning heads. The different
signal parameters are combined in one display.
For a detailed assessment of the signal quality, an inspection with PWM 9 is recommended.
Three different PWT versions are available:
PWT 10 encoder diagnostic set for 11 µApp scanning heads, ID 325411-xx
PWT 17 encoder diagnostic set for TTL scanning heads, ID 325412-xx
PWT 18 encoder diagnostic set for 1 Vpp scanning heads, ID 325413-xx
Note
Note
Each IK 215 Adjusting and Testing Package is delivered with detailed operating
instructions.
These instructions are also available on the Internet in German and English. They can be
downloaded from www.heidenhain.de/Services and Documentation/...
A detailed explanation of the IK 215 Adjusting and Testing Package is part of our training
courses on measuring systems.
We recommend that you participate in a HEIDENHAIN service training course so that you
can use the IK 215 Adjusting and Testing Package correctly and effectively.
Contact HEIDENHAIN Traunreut or your regional agency.
Note
28.1 Explanation
A contouring control must have access to specific data (e.g., traverse distances, acceleration)
before it can execute its programmed instructions. You define these data in what are known as
machine parameters.
The parameter values are entered in the configuration editor.
The configuration editor contains config objects in a tree structure. The name of a config object
starts with Cfg ....
These config objects contain machine parameters in which, for example, the properties of an
analog axis are defined.
Example:
Properties of an
analog axis in the
configuration editor
The machine settings are saved in parameter files with the extension *.cfg on the three
partitions of the control: TNC:\ , PLC:\ and SYS:\.
Assignments to The control partitions are usually assigned to the following system variables:
system variables
Partition System variable
SYS:\ %SYS%
PLC:\ %OEM%
TNC:\ %USR%
Caution
You should only make changes to the parameter files by using the configuration editor.
Do not edit *.cfg files directly!
System data (parameters that are valid for the entire system) only occur once.
The configuration editor does not require a key name for these config objects, nor is one
entered. These objects are identified with an “empty” key in the *.cfg files.
Important Notes For service purposes, the service technician must not only look up values set in the configuration
editor, but he must also be able to edit them, if required. The configuration editor is protected
against unauthorized editing with a code number.
Please note:
DANGER
Machine parameters may only be changed after consultation with the machine
manufacturer.
Only edit machine parameters while the control is in "power interrupted" status or if
EMERGENCY STOP is pressed.
Machine parameters that concern the control loops may only be edited when
EMERGENCY STOP is pressed!
Note
It is advisable to back up the configuration data (parameter files) before making any
changes in the configuration editor.
It is advisable to create a backup of the machine data on an external data medium, if you
intend to make comprehensive changes to the machine settings.
--> see “Data Backup on External Data Medium” on page 12 – 113
PLC options The PLC program from the machine manufacturer can read machine parameters and
overwrite them!
When the PLC overwrites machine parameters, the values are changed in the process memory.
The values of the original MP list (basic data) do not change!
Other configuration files can be selected by PLC (provided that such files exist on the memory
card).
MP subfiles (subgroups of the original MP file, sometimes with different values) can also be
activated by PLC. The MP subfile content is loaded into the process memory. All MP values that
are not in this file remain unchanged.
Note
So it is possible that the values in the original MP list (basic data) are not valid at any rate.
You may have edited values in the MP list for test purposes which, however, are
overwritten by the PLC when special machine functions are run!
If necessary, ask the machine manufacturer which values are active in which special mode
of the machine.
Note
When you call the configuration editor for the first time the basic data are displayed.
Press the OK soft key. --> A new window appears in which the name of a ZIP file is suggested,
e.g. BKUP2007-09-07_.ZIP.
You may change this file name, if required.
Press OK again to confirm the entries. Then press OK a third time to save the ZIP file in the
path PLC:\service\ ...
Note
If you want to enter longer search strings, it is advisable to connect a USB keyboard. The
USB interface of MC 320 features the "hot-plug capability." This means that you can connect
the USB keyboard while the control is operating. It is ready for operation immediately and can
be disconnected at any time.
Now select, whether you want to search in forward or in backward direction. --> Place the
cursor on Search forward and press the GOTO key.
Press the SEARCH soft key repeatedly until you have found the match you require.
Positioning the Within the tree, place the cursor on the requested config object or machine parameter.
cursor Either use the ...
the search function
or
the arrow keys.
To open a branch:
Press the + key, the ENT key or the ARROW RIGHT key.
To close a branch:
Press the – key, the ENT key or the ARROW LEFT key.
Branch is open
Note
If the help text does not fit on one page (1/2 is then displayed at the upper right, for example),
press the HELP PAGE soft key to scroll to the second page.
Additional information, such as the unit of measure, the initial value, or a selection list, is also
displayed.
To exit the help text, press the HELP key again.
Successively press the soft keys MORE FUNCTIONS / COMMENT / CREATE COPY.
--> A copy of the original value is made.
You can clear faulty inputs from left to right with the CE key.
If a USB keyboard is connected, you can also use the backspace key to delete from right to
left.
Note
Machine parameters with copied values and/or comments are displayed on the right side of
the tree and are identified with an . The subordinate config object also contains an .
Note
Units of measure can be defined for numeric machine parameters. The unit of measure
assigned to this parameter is displayed. Enter a value appropriate to this unit.
Limit values are displayed for numeric machine parameters. If you attempt to enter a value
outside of these limits, a message is issued and the entry is not accepted.
After you have edited one or several parameters, press the SAVE soft key to load the changed
values.
If the error message Data change without effect is generated while the changed config objects
or machine parameters are being saved, these machine parameters are superimposed in the
process memory. In most cases this happens by means of MP subfiles that are activated by the
PLC program of the machine.
How can you proceed?
Use the END soft key to exit the basic data.
Press the SELECT DATA RECORD soft key.
Press the GOTO key and place the cursor on Temporary data.
Press OK and then again the CONFIG DATA soft key.
Now edit the desired config objects and machine parameters in the temporary data.
--> These changes will have an effect on the machine!
Note
To check, whether the edited values were correctly processed by the control, press the
SELECT DATA RECORD soft key again, select effective data and call the configuration
editor.
Reaction to change The following reactions can occur when machine parameters are changed:
NOTHING
RUN
RESET
REF
Reaction NOTHING
Parameters with this reaction can be changed at any time, including during program run.
Reaction RUN
Changes are only possible during a PLC strobe or NC stop.
Reaction RESET
After a machine parameter to which this reaction is assigned has been changed, the error
message Machine parameters were changed. Shut down and restart the control.
is displayed.
This message cannot be cleared. The machine must be restarted. (However, further parameters
can be edited before the restart.)
Parameters with this reaction must not be changed during program run.
Reaction REF
After a machine parameter connected to this reaction has been changed, the affected axis is set
to "not referenced".
A new reference run must be made for this axis.
Parameters with this reaction must not be changed during program run.
Operating the If the machine manufacturer agrees that the machine should be operated with the new
machine with settings...
the new values
Back up the MP list in question, see “Backing up machine parameters” on page 28 – 299.
Possibly add your name (or the name of the responsible person) and the date of change.
Create a new backup of the machine data. --> see “Data Backup on External Data
Medium” on page 12 – 113!!!
Restoring the When you have finished error diagnosis or various tests at the machine, you will normally restore
original values the original settings.
For this purpose press the DATA BACKUP soft key in the main menu of the configuration
editor.
In the window that is displayed now, place the cursor on Activate parameter files from
backup.
1.1 Introduction
TNC 320 features comprehensive monitoring functions.
Values are defined for axis positions and dynamic response of the machine. If the specified
values are exceeded, the control displays an error message and stops the machine.
DANGER
In this chapter you can look up which monitoring functions exist and how they are defined.
EMERGENCY In the event of hazardous errors the control switches off the Control-is-ready output.
STOP test An EMERGENCY STOP must be generated. --> The EMERGENCY STOP chain must be
interrupted.
Since this is a function important for the safety on the machine, it is checked via the
EMERGENCY STOP test every time the line power is switched on.
Note
X41/34
X42/4
1 2 3 4 5 6 7 8 9
If the "Control is ready" signal output and the "Control is ready" signal acknowledgment input are
correctly connected to the emergency-stop loop, the control interrupts the loop via the "Control
is ready" signal output as soon as a hazardous error occurs.
Set
MNN_GenNcEmergencyStop
Control in “external emergency stop” state
0: Control is not in external emergency stop state
1: Control is in external emergency stop state
Axes
ParameterSets
Key for parameter set
CfgPosControl
servoLagMin1
servoLagMax1
servoLagMin2
servoLagMax2
CfgControllerAuxil
driveOffLagMonitor
CfgReferencing
endatDiff
The axis positions are monitored by the control as long as the control loop is closed.
The input values for position monitoring depend on the maximum possible following error (servo
lag). Therefore the input ranges for operation with following error and velocity feedforward are
separate.
For both modes of operation there are two range limits for position monitoring.
If the first limit (MP_servoLagMin1, MP_servoLagMax1) is exceeded, the warning Excessive
servo lag in [axis] appears. The machine stops.
This message can be cleared. An actual-to-nominal value transfer is then executed for the
respective axes.
If the second limit (MP_servoLagMin2, MP_servoLagMax2) is exceeded, the emergency-stop
error message Excessive servo lag in [axis] appears.
The control-is-ready signal output is reset. The machine stops. You cannot clear this message.
You must restart the control to correct the error.
With the attributes given below, the machine manufacturer defines two range limits for position
monitoring. He adjusts the input values to the machine dynamics.
Sa (V)
servoLagMax2
v
servoLagMax1
servoLagMin2
servoLagMin1
servoLagMin1/2 applies for constant feed rates, servoLagMax1/2 during changes in feed rate.
MPservoLagMax1
Maximum for following-error monitoring (clearable)
Format:
Input: 0.000 000 000 to 100 [mm] or [°]
5 [mm] or [°]
MPservoLagMin2
Minimum for following-error monitoring (emergency stop)
Format:
Input: 0.000 000 000 to 100 [mm] or [°]
1 [mm] or [°]
MPservoLagMax2
Maximum for following-error monitoring (emergency stop)
Format:
Input: 0.000 000 000 to 100 [mm] or [°]
5 [mm] or [°]
Clamped axes, Clamped axes or hanging axes are monitored when the drive motor is switched off if
hanging axes driveOffLagMonitor is activated. The value from servoLagMax2 is monitored.
MPdriveOffLagMonitor
Following-error monitoring with drive switched off
Format:
On
Monitoring of hanging axes is active
Off
Monitoring of hanging axes is not active
Off
Note
The monitoring functions for hanging axes cannot be switched off with
I32stopsMonitoring.
Difference between When the control is switched off, the actual position of the axes is saved with an absolute
position at switch- encoder. During switch-on it is compared with the position values read by the encoder.
on and shutdown
If the positions differ by more than the difference defined in MP_endatDiff, a pop-up window
appears with both positions. The new position must be confirmed with a soft key. If it is not
confirmed, the error message Check the position encoder <axis> appears.
Note
The cause for one of the above listed messages can also be a defect in the encoder or
control.
MPendatDiff
Permissible difference of EnDat encoders during switch-on
Format:
Input: -100 000.000 000 000 to +100 000 [mm] or [°]
0 = Off
Default: 0
Movement monitoring is possible during operation both with velocity feedforward and with
following error.
If the MP_movementThreshold parameter is set to a value greater than 0, the manipulated
value of the position controller is totaled in the IPO clock as soon as the threshold configured in
the parameter is exceeded. In MP_thresholdDistance you enter the distance at which the
comparison is to be performed, and so define the monitoring cycle.
The control now calculates a nominal path and compares it with the actual path traversed after
every 5 mm.
An error message is output if the actual path traversed is…
less than a quarter of the nominal path
or
four times greater than the nominal path.
If the encoder is defective, the axis moves no more than the distance defined in
MP_thresholdDistance.
Intentional movements smaller than indicated in MP_movementThreshold are ignored.
In MP_movementThreshold, enter the distance over time at which movement monitoring is
to start.
Enter in MP_thresholdDistance the distance at which the nominal and actual paths are to be
checked.
Caution
Axes
ParameterSets
Key for parameter set
CfgControllerAuxil
checkPosStandstill
Standstill monitoring is effective during operation both with velocity feedforward and with
following error, as soon as the axes have reached the positioning window.
If the position deviation is greater than the value defined in MP_checkPosStandstill, the blinking
error message Standstill monitoring in [axis] appears. The message also appears if, while
moving to a position, an overshoot occurs that is larger than the value entered in
checkPosStandstill, or if the axis moves in the opposite direction when beginning a positioning
movement:
In checkPosStandstill, enter a threshold from which the standstill monitoring should go into
effect.
MPcheckPosStandstill
Standstill monitoring
Format:
Input: 0.001 000 000 to 10 000 [mm]
10 000 [mm]
Axes
ParameterSets
Key for parameter set
CfgControllerTol
posTolerance
timePosOK
If the axes have reached the positioning window after a movement, the status is shown
in NN_AxInPosition. This also applies to the status after the machine control voltage is
switched on.
The NC resets NN_AxInPosition as soon as you start a positioning movement or traverse the
reference marks.
In the EL. HANDWHEEL mode of operation NN_AxInPosition for the current handwheel axis
is reset.
NN_AxInPosition is not set for contours that can be machined with constant surface speed.
DANGER
Axes in position The control reports that the axis is in position (NN_AxInPosition) when the axis has remained
within the positioning window MP_posTolerance for the period of time defined in
MP_timePosOK. After the position has been reached, the control begins running the next block.
The position controller can correct a disturbance inside this window without activating the
“Return to the Contour” function.
In MP_posTolerance, define the size of the positioning window.
In MP_timePosOK, define the period of time which the axis is to remain within the positioning
window.
MPtimePosOK
Hysteresis time reached for positioning window
Format:
Input: 0.000 000 000 to 20 [s]
0.01 [s]
Set
Set
Temperature The internal temperature of the MC is continuously monitored. At about 55 °C the early warning
of the MC Temperature warning appears. If the temperature does not fall below 55°C, the warning is
reactivated after two minutes. Beginning at about 60 °C the error message Temperature too
high <temperature> °C appears and an emergency stop is triggered. If the temperature does
not fall below 60 °C when the machine is switched on again, the error message reappears after
10 to 20 seconds.
January 2008 1 – 11
1 – 12 HEIDENHAIN Service Manual TNC 320
2 Annex: Principle of Function of the TNC 320 Control
2.1 Introduction
This chapter gives you brief explanations of the principle of function of the TNC 320 control.
Of course fundamental knowledge about controls, encoders, drives, electronics and mechanics
simplifies error diagnosis and is often indispensible for successful servicing.
Please ask your machine manufacturer for detailed or special explanations (e.g., machine
functions, circuit diagram of the machine)!
The control loop Machine tools normally function on the principle of cascade control. Here the position control
for analog axes / loop is prior to the speed and current control loops.
spindle
Benefits of cascade control:
Transparent structure of the individual control loops.
Disturbances can be compensated through the subsequent controllers.
This relieves the prior controller.
The respective outer control loop protects the inner control loop by limiting the command
variable.
The position controller is integrated in the control. The speed controller, current controller and
power module are located in the servo amplifier. The speed command signal is sent by the
control to the servo amplifier through an analog interface.
Nominal and actual The position controller receives its nominal value, e.g., from the NC program; the actual value
values for the is normally provided by a linear encoder (scale). In the machine parameters is set, at which
controllers position the machine table is after how many counting pulses.
The speed controller receives its nominal value from the position encoder. Thus the output
quantity of the position controller is the input quantity of the speed controller. This is why this
interface is also referred to as "nominal speed command interface". With analog axes, the control
leads the nominal speed command interface (±10 V) "to the outside" to the analog servo
amplifier.
The actual speed value is determined by means of a speed encoder (tachometer, motor encoder)
in or on the motor.
January 2008 8 – 13
The current controller receives its nominal value from the speed controller. The actual value is
provided, e.g., by current sensors in the power module.
The interpolator The interpolator operates at a prescribed clock rate. The axis-specific nominal position values are
calculated at this clock rate from the feed rate profiles transferred by look-ahead.
The position The position controller uses the axis-specific nominal position values transferred by the
controller interpolator. The nominal speed values are determined and transferred to the speed controller.
The control operates with following error (servo lag) or with velocity feedforward. The setting is
made in the config object CfgPosControl / attribute feedForwardFactor.
If feedForward=0, operation with 100% following error is in effect.
feedForward>0 activates velocity semifeedforward control (for analog axes).
If feedForward=0, operation with 100% velocity feedforward is in effect.
Position feedback Following error (also known as servo lag) is a gap that remains between the nominal position
control with commanded by the NC and the actual position of the axis.
following error
Simplified representation:
The nominal position value snoml for a given axis is compared with the actual position value sactl
and the resulting difference is the following error sa:
sa = snoml – sactl
sa = Following error
snoml = Nominal position value
sactl = Actual position value
The following error is multiplied by the kv factor and passed on as nominal velocity value:
v = kv · sa
vnoml = Nominal velocity value
kv factor during The loop gain, known as the kv factor, defines the amplification of the position control loop.
control with
The kV factor is defined by the machine tool builder.
following error
For axes that are interpolated with each other, the kv factors must be equal to prevent contour
deviations.
kv = kv factor [(mm/s)/mm]
ve = Rapid traverse [mm/sec]
sa = Following error [mm]
MPkvFactor
kv factor (proportional component of the position controller)
Format: Number
Input: 0.000 000 000 to 1000 [1/s]
Feedback control For feedback control with velocity feedforward, the nominal velocity value consists of an open-
with velocity loop and a closed-loop component.
feedforward
The machine-adjusted nominal velocity value is the open-loop controlled component. The
closed-loop velocity component is calculated through the following error. The following error is
small.
In most cases, machines are controlled with velocity feedforward, since it makes it possible to
machine exact contours even at high speeds.
From the value of feedForwardFactor you can see, whether the machine is operated with
feedforward control or with following error. --> For velocity feedforward control the value is
greater than zero.
Unlike operation with following error, the machine manufacturer sets the optimum kv factor for
each axis for operation with interpolating axes.
January 2008 8 – 15
2.3 Basic Circuit Diagrams
In preparation
Note
For details, constraints and specifics, see see “Encoder Interface” on page 16 – 171 and see
“Interface to the Analog Drives” on page 19 – 199.
Note
Always exchange both, the cable and the interface assignment by means of machine
parameter!
January 2008 8 – 17
2– 18 HEIDENHAIN Service Manual TNC 320
638142_00_a_01.pdf 2 11.12.2007 08:07:01