Non-Contact Tool Setting System For Heidenhain TNC 620/640 Controllers
Non-Contact Tool Setting System For Heidenhain TNC 620/640 Controllers
H-2000-6681-0C-A
Disclaimer
Trade marks
RENISHAW and the probe symbol used in the RENISHAW logo are
registered trade marks of Renishaw plc in the United Kingdom and
other countries. apply innovation and names and designations
of other Renishaw products and technologies are trade marks of
Renishaw plc or its subsidiaries.
All other brand names and product names used in this document
are trade names, trade marks, or registered trade marks of their
respective owners.
Issued: 12.2017
Cautions i
Refer to the installation and user guide supplied with the product for the detailed laser
safety warnings.
Renishaw has no control over the exact program configuration of the controller with which
the software is to be used, nor of the mechanical layout of the machine tool. Therefore, it
is the responsibility of the person putting the software into operation to:
ensure that all machine tool safety guards are in position and are correctly working
before commencement of operation;
ensure that any manual overrides are disabled before commencement of operation;
verify that the program steps invoked by this software are compatible with the
controller for which they are intended;
ensure that any moves which the machine tool will be instructed to make under
program control would not cause the machine tool to inflict damage upon itself or
upon any person in the vicinity;
be thoroughly familiar with the machine tool and its controller, understand the
operation of work co-ordinate systems, tool offsets, program communication
(uploading and downloading) and the location of all emergency stop switches.
IMPORTANT: This software makes use of controller variables in its operation. During its
execution, adjustment of these variables, including those listed within this manual, or of
tool offsets and work offsets, may lead to malfunction.
Related publications
This guide must be read in conjunction with the following publications:
Installation and user’s guide: NCi-5 non-contact tool setting interface (Renishaw part
no. H-5259-8500).
Installation and maintenance guide: NC4 non-contact tool setting system (Renishaw
part no. H-2000-5230).
Programming guide: Non-contact tool setting system for Heidenhain TNC 620/640
and iTNC 530 controllers (Renishaw part no. H-2000-6680).
Designations
Throughout this manual, the following designations are used:
Soft keys are referenced in FULL CAPS and bold font, for example, INSERT.
Screen names and selectable menu options are referenced in oblique font, for
example, Input status screen; Local Area Connection.
Folders, paths and file names are referenced in bold Courier font, for example,
PLC:\OEMCYC\TREE1\RENISHAW\NC\INSTAL.h.
Code and commands are referenced in Courier font, for example, TOOL CALL.
Contents
Introduction ......................................................................................................................... 2
System requirements .......................................................................................................... 2
PC system requirements ............................................................................................. 2
Controller requirements ............................................................................................... 2
Controller tool table requirements ............................................................................... 3
Setting up TNCremo (version 2) ......................................................................................... 4
Ethernet connection set-up .......................................................................................... 4
Transferring binary files ............................................................................................... 4
Configuring a PC for USB network interface connection .................................................... 4
Obtaining the controller’s IP address for Ethernet connection .................................... 5
Folders and files found on the software media ................................................................... 6
Loading the software with TNCremo if the wizard fails....................................................... 6
Editing the PLC configuration files ............................................................................... 7
Setting the maximum feed for probing .............................................................................. 11
Marker numbers ................................................................................................................ 11
Using the Renishaw set-up tables (files TAB_*.REN) ...................................................... 11
Adding extra tables .................................................................................................... 12
Editing the Renishaw set-up table ............................................................................. 12
Defining the M-codes for latch mode (M-code 2) ............................................................. 21
Defining the M-codes for broken tool mode (M-code 1) ................................................... 21
Defining the MT_start.h and MT_end.h programs ............................................................ 22
Defining the BLAST_ON.h and BLAST_OFF.h programs ................................................ 23
Two calibration/measuring positions................................................................................. 24
Simple system checks (for installations that include extended cycles) ............................ 25
Checking the status of the input signal to the controller ............................................ 25
Checking the operation of broken tool mode (M-code 1) .......................................... 26
Fault diagnosis .................................................................................................................. 27
Programming FN17 commands ................................................................................. 28
Running the test program .......................................................................................... 28
Standard installation schematic for an NC system to an NCi-5 interface ......................... 29
Introduction
CAUTION: Changes to the TAB_*.REN files, or to any other file in the machine tool
program logic control (TNC and PLC) area, can have a detrimental effect on the
functioning of the machine tool and can be dangerous. This guide is intended for use by
equipment manufacturers only, who are qualified and familiar with the operation of the
machine tool. A back-up of the CNC should be made before starting the software
installation.
This guide assumes a working knowledge of the Heidenhain TNC 620/640 controllers,
including access to the PLC area and TNCremo (version 2 or later) PC packages. The
NCTS software installation requires the PC and the machine tool controller to be
connected via TNCremo. The software is installed by moving files from the PC onto the
controller using the ‘drag-and-drop’ method.
System requirements
PC system requirements
486-based PC, or better.
Minimum 16 MB of RAM.
Ethernet port.
Controller requirements
Option #17 (probing).
Heidenhain monitor (for screen size and type, see Note 1 on the next page).
Serial interface RS232 or Ethernet connection (see Note 2 on the next page).
NOTES:
1. The help graphics supplied with this package are only suitable for the following
monitor:
• Visual display unit BF 150 15.1-inch colour flat panel display (1024 × 768 pixels).
The following monitor is NOT currently supported:
• Visual display unit BF 120 10.4-inch colour flat panel display (640 × 480 pixels).
2. The RS232 port data transfer rate will be too slow for uploading the large help
graphics supplied with this software. Therefore, it is recommended that the data
transfer is made via the Ethernet connection (for settings, see the Heidenhain
manual).
• You can connect the Ethernet card in your TNC to your network through the
RJ45 connection (X26, for a 100BaseTx or 10BaseT), using a twisted pair
cable.
• If you connect the TNC directly with a PC, you must use a crossed cable.
For further details, see “Ethernet interface/13.2 Pin Layout and Connecting Cable for
the Data Interfaces” in the Heidenhain user’s manual.
3. If your controller supports USB, this may be used for uploading the software.
Input 0 No display.
Inputs 1 to 99 Represent the position (L to R) in the tool table.
NOTE: When the Heidenhain ‘Replacement tool’ option is to be used, the optional tool
table element RT is also required.
T L DL R DR R2 DR2 TL
3. Select the SETTING tab, then enter the controller’s IP address (for example,
160.1.254.1). Press APPLY then OK. See “Obtaining the controller’s IP address for
Ethernet connection” below or reference the Heidenhain manuals.
2. Select the MODE tab (press the > key for extra tabs).
3. Select With following filename extensions. Ensure the following file types are in the
select box: .cyc, .he, .sk, .bmx, .bck.
You should also refer to the Heidenhain documentation (see also “12.5 Ethernet
interface” in the Heidenhain user’s manual for PC compatibility and networking software).
If your PC does not already have suitable network software, for Windows operating
systems Heidenhain recommends the network software CIMCO NFS server which you
can order separately or together with the Ethernet card for the TNC.
2. Select Local Area Connection from the list of installed network components and
then click Properties.
5. Enter an IP address for the PC. This is the same as the controller’s IP address
except that the last digit must be different from the controller’s IP address and must
be in the range 1 to 256 (see “Obtaining the controller’s IP address for Ethernet
connection” below).
Example: Controller’s IP address 160.1.254.1, enter PC IP address 160.1.254.2
NOTE: It may be necessary to reboot the PC to make the new setting active.
2. Using the arrow key, find the NET soft key along the bottom of the screen.
3. Select NET, then NETWORK INFO. A list of network set-ups will now be displayed.
The IP address of the controller can be found in the Local area connection section.
Folder Files
Select the REN_INSTAL folder in the top section of TNCremo using the folder symbol and
the double dots to move up and down the directories.
Select the grey bar (halfway down the screen) with TNC:\[*.*] and double-click to
open the Change folder box. Change the Name (absolute or relative) to PLC:\ then click
OK. A code box now appears. Type in 807667 and click OK twice. This is the standard
Heidenhain code to open the PLC. If the machine tool builder has changed the code,
please ask them for it.
Select the RENISHAW folder from the PC section (top) and drag and drop it into the PLC
root directory (bottom).
Now open the PLC:\OEMCYC folder and check if any TREE* folders exist. If there are no
TREE* folders in this folder, drag and drop TREE1 from the PC side. If TREE* folders do
exist, drag and drop the next TREE number into this folder.
Delete the incorrect machine type .CDF file and rename the correct one Renishaw.CDF.
Open the TREE* folder you have just loaded to the PLC and then open the RENISHAW
folder. Go back to the PC and open the folder CYCLE_PROGRAMS. Drag and drop the
three folders HLP, NC and SK into the PLC:\OEMCYC\TREE*\RENISHAW folder.
1. Press the MOD key, type in code number 95148 then press OK.
2. Press the MOD key again, then select the CONFIG EDIT option.
4. Open the SYSTEM directory, followed by the PATHS directory, then the CfgOemPath
directory, then the cycleSubTreeFiles directory. If cycleSubTreeFiles is
‘greyed-out’, continue to step 5. If it is not ‘greyed-out’, open it and select the final
cycle tree listed, then insert the Renishaw tree. Set the view key to Tree, not Table.
6. Select the TREE* folder from the OEMCYC directory, click on the Renishaw directory,
then select Renishaw.CDF and press OK.
13. Arrow down to the last file and select MORE FUNCTIONS, then INSERT.
14. From the open dialog box, select Config_ren.cfg and then OK.
15. Press the back arrow key, then END and STORE.
17. Power the machine off and on again to install the changes.
Using the folder and double dot, set the PC to the REN_INSTAL\PLC_FILES folder and
the PLC to the PLC:\CONFIG folder. Drag and drop the Config_ren.cfg file from the
PC to the PLC side.
From the PLC side, drag and drop the configfiles.cfg and oem.cfg files to the PC
side. Power down TNCremo to allow these files to be edited. Using a PC editor, make a
back-up of the two files so that if anything goes wrong they can be reloaded to the
controller.
Using the folder and double dot, set the PC to the REN_INSTAL\TABLE folder. On the
TNC, use the grey bar halfway down the screen to select the TNC:\TABLE folder.
NOTE: Before uploading the set-up table, if you wish to have a German-language set-up
table, you must find the file TAB_1_de.REN in the folder REN_INSTAL\TABLE and
rename it TAB_1.REN.
Drag and drop the TAB_1.REN file from the PC to the TNC:\TABLE folder.
Set the PC to the REN_INSTAL\REN_TNC folder and the TNC to the TNC:\ folder. Drag
and drop the REN_TNC folder from the PC to the TNC:\ folder.
NOTE: The software is now loaded. Please refer to the “Editing the PLC configuration
files” section. The controller needs to be powered down and then powered up again to
activate the software.
When the controller is rebooting, if it stops and asks for a key code, this indicates that
there are errors in the config files. Key in 95148 to show the error. This will then allow the
use of TNCremo to upload the back-up files and allow the files to be corrected. If the
software is not to be loaded, reload the back-up of the configfiles.cfg and oem.cfg
files.
Edit
MOD
Code 95148
CONFIG
SYSTEM
Cfg Hardware
MaxTouchFeed Change to 5000
Marker numbers
M4050 Touch Ready
M4052 Trigger Signal
M4054 Low Battery
M4060 0=X112 1=X113
During installation of the NC tool setting system, the Renishaw set-up table parameters
will have been completed to define the specific system setting appropriate to the machine
tool.
Under instruction from the equipment supplier, it may be necessary to alter some of these
parameters for specific tasks in order to optimise system performance, for example,
altering the maximum and minimum tool lengths, sample size, scatter tolerance and the
first back-off factor.
CAUTION: Changing a *.REN file or any other file in that area can have a detrimental
effect on the machine tool’s function and can be dangerous. Always consult the
equipment supplier before making changes.
5 X112 SWITCHING If the tool will not retract out of the beam, set this to 1.
6 SINGLE SIDED To maximise measurement accuracy and repeatability, calibration
CALIBRATION on both sides of the laser beam is recommended as default.
0 = NO, 1 = YES If this is not possible, due to a lack of access for the calibration
tool to both sides of the beam, calibration from the Radial
measuring direction is possible (see item 7).
Default = 0
7 RADIAL MEASURING The direction in which radial measuring moves are made.
DIRECTION 1 = probing in positive axis direction
−1 = probing in negative axis direction
0 = probing in both directions (both sides of the beam)
Default = 0
8 SIGNAL PULSE TIME The hardware signal pulse time (in ms).
This is the time that any trigger signal is held on, and is dependent
on the hardware set-up. This may be ascertained by the LED flash
sequence on power-up (for details, see the installation guide).
Default = 100 ms
Compulsory – enter before operation.
9 MAXIMUM TOOL LENGTH The maximum and minimum tooling dimensions (see item 14 –
10 MINIMUM TOOL LENGTH Approach method).
11 MAXIMUM RADIUS These values define the rapid approach move positions and
therefore have an effect on cycle time. They are usually
dependent on the machine tool’s architecture and intended use.
The minimum tool length is usually limited by the relative position
of the laser beam and the tool holder.
Compulsory – enter before operation.
12 INITIAL SAFE POSITION The spindle axis (Sp) safe position from which all cycles begin
(excluding the alignment cycles 500 and 501). This is normally set
to the tool change position.
TIP: To find this position, make a tool change so that the spindle
is at the correct height (or move the tool to a safe height position).
Change the display registers to REF values then enter the
position displayed.
13 APPROACH DISTANCE The distance from the beam at which the reduced feedrate
probing moves begin (see item 14 – Approach method).
Default = 10 mm
Compulsory – enter before operation.
14 APPROACH METHOD The sequence of operation for measuring cycles. Two approach
0 = TT, 1 = RENISHAW methods are available:
Rapid approach, using tool data (0)
Search approach, without use of tool data (1)
0 = The tool moves rapidly to the Approach distance (default
10 mm) from the beam, based on the approximate tool length and
radius data (L, R) that has been entered into the active tool table.
From there, the tool moves into the beam and is triggered.
1 = The system sets tools without any prior tool measurement, i.e.
no tool length or radius data is required to be present in the tool
table. The tool moves rapidly to the Maximum tool length position.
From there, the tool moves into the beam and is triggered. This
method offers the flexibility of length and radius setting without the
need for approximate tool data in the tool table. However, it incurs
an increased cycle time compared with the alternative method.
Default = 1
Compulsory – enter before operation.
15 NUMBER OF FINAL The sample size of final probing touches.
TOUCHES – SAMPLE SIZE This number of final touches is made and their difference is
compared with the Scatter tolerance. If outside the tolerance, the
measurements are repeated. The number of retries that are made
is twice this value.
Default = 2
Compulsory – enter before operation.
16 SCATTER TOLERANCE The scatter tolerance of probing results.
If results from the set number of measuring touches fall outside
this value, the measuring moves are repeated, up to the number
of retries (twice the number of final touches).
Default = 0.01 mm
Compulsory – enter before operation.
17 MEASUREMENT The feed-per-revolution during measurement moves.
RESOLUTION Increasing this value decreases measurement accuracy, but
increases the speed at which measurements are made.
Default = 0.002 mm
Compulsory – enter before operation.
18 FIRST BACK OFF FACTOR The distance by which the tool is backed off after the first trigger,
before returning for the second trigger.
Default = 1.5 mm
Compulsory – enter before operation.
19 SECOND BACK OFF The distance by which the tool is backed off after the second
FACTOR trigger move.
This value is also used for all subsequent probing moves – the
number of which is defined by the Number of final touches (see
item 15).
Default = 0.2 mm
Compulsory – enter before operation.
20 REPOSITIONING FEED The feedrate at which movements between length measurement
RATE and radius measurement positions are made.
Default = 10000 mm/min
Compulsory – enter before operation.
21 FEED RATE TO MAXIMUM The feedrate at which the tool is positioned to the Maximum tool
TOOL POSITION length prior to a probing move.
Default = 5000 mm/min
Compulsory – enter before operation.
22 FEED RATE TO MINIMUM The feedrate at which the tool is moved towards the Minimum tool
TOOL POSITION length and into the beam. A trigger would be expected during this
move.
Default = 2000 mm/min
Compulsory – enter before operation.
23 LINE NO. OF FIRST REN Leave this set to 0 to use the print-to-screen method for error
ERROR messages.
Default = 0
24 TOOL CHECK ALARM? The cycles with tool checking options or broken tool detection
0 = NO, 1 = YES measure a tool and compare the result against a given tolerance.
If outside this tolerance, the tool is classified as broken and the
Tool Lock (TL) flag is applied to that tool in the active tool table.
With TOOL CHECK ALARM? = 1, the machine tool stops
automatically with an alarm.
However, if the machine tool is required to continue operating and
call a sister tool (where defined), setting TOOL CHECK ALARM?
= 0 sets the (TL) flag only, without stopping the machine tool.
Default = 1
Compulsory – enter before operation.
25 INPUT STATUS ADDRESS All installations require an additional controller input. The value is
The status input must be usually within the available range I 0 to I 83.
connected, typically to the X9 The numerical address to which this input has been connected is
connector. entered here (omitting the letter I).
Default = 1
26 MT_START / END VERSION Used to check the version numbers of MT_START and MT_END.
NUMBER
27 TAB_*.REN VERSION Used to check the version number of TAB_*.REN.
NUMBER
28 ALIGNMENT ERROR – The beam alignment error along the radial measuring (Ra) axis.
BEAM Ra AXIS The beam axis error calculated by the alignment cycle (501) is
stored in Q279. For reference, it is duplicated in this parameter.
For reference only – do not edit manually.
29 ALIGNMENT ERROR – The beam alignment error along the spindle axis (Sp).
SPINDLE Sp AXIS The spindle axis error calculated by the alignment cycle (500 or
501) is stored in Q280. For reference, it is duplicated in this
parameter.
For reference only – do not edit manually.
30 CYCLES SUPPORTED This parameter defines the cycles that are supported by the
1 = ALL, 0 = LIMITED hardware installation.
Where only the standard cycles are to be used, requiring the
minimum of installation wiring, enter 0 (limited).
Where a full wiring installation has been carried out, including
M-code configuration, enter 1 (All).
It is important that this parameter is set correctly, as it prevents
the extended cycles, which are dependent on additional wiring,
from being run inappropriately.
Default = 1
Compulsory – enter before operation.
31 FIRST AXIS OVERRIDE See “NC traverse limit switch override feature” in the programming
FLAG guide.
According to the protocol below, select the axis and direction for
the first of the limit switch overrides.
0 = feature not active, no override
1 = apply an override to the X positive traverse limit
2 = apply an override to the Y positive traverse limit
3 = apply an override to the Z positive traverse limit
−1 = apply an override to the X negative traverse limit
−2 = apply an override to the Y negative traverse limit
−3 = apply an override to the Z negative traverse limit
Default = 0
Compulsory – enter before operation.
32 FIRST AXIS OVERRIDE The value (position) of the new override traverse limit switch. This
POSITION value is referenced to the machine tool datum.
Default = 0
Compulsory – enter before operation.
33 FIRST AXIS OVERRIDE The value (position) of the original resumed traverse limit switch.
RESUME POSITION The limit switch positions are always reset to this after the probing
cycle is finished. This value is referenced to the machine tool
datum.
Default = 0
Compulsory – enter before operation.
34 SECOND AXIS OVERRIDE See “NC traverse limit switch override feature” in the programming
FLAG guide.
According to the protocol below, select the axis and direction for
the second of the limit switch overrides.
0 = feature not active, no override
1 = apply an override to the X positive traverse limit
2 = apply an override to the Y positive traverse limit
3 = apply an override to the Z positive traverse limit
−1 = apply an override to the X negative traverse limit
−2 = apply an override to the Y negative traverse limit
−3 = apply an override to the Z negative traverse limit
Default = 0
Compulsory – enter before operation.
35 SECOND AXIS OVERRIDE The value (position) of the new override traverse limit switch. This
POSITION value is referenced to the machine tool datum.
Default = 0
Compulsory – enter before operation.
36 SECOND AXIS OVERRIDE The value (position) of the original resumed traverse limit switch.
RESUME POSITION The limit switch positions are always reset to this after the probing
cycle is finished. This value is referenced to the machine tool
datum.
Default = 0
Compulsory – enter before operation.
37 RUN SERVICE CYCLE If this is set to 1, it allows the alignment cycle (either 500 or 501)
(ALLOW SERVICE CYCLES to be used for setting up and aligning the beam (service mode
500/501 = 1 NO = 0) only).
After completion of this cycle, set the value to 0. This prevents
unauthorised use of the service cycle.
Default = 1
Compulsory – after running the beam alignment cycle (500 or
501), remember to run cycle 502 to establish new calibration
data. Finally, reset this value to 0.
38 MAXIMUM TOOL HEIGHT Cycle 512 – the value entered in this item is a safe maximum tool
(Q371) AND SEARCH height from the bottom of the tool so that the bottom of the tool
does not collide when positioning and measuring the top cutting
edge of the tool. This is particularly important for fixed-laser
systems where minimal Z clearance is available. This value
safeguards against entering and running with excessive values in
Q371.
Cycles 503, 504 and 505 – in these cycles the value defines the
search distance in the spindle direction.
Default = 25 mm
39 DRIP REJECT Set the value to match the interface setting, otherwise set to 0 (Off).
(0 = OFF/500/1000) RPM Default = 1000
40 LASER AXIS NO. 1/2/3 This is automatically set by the beam alignment cycle (500 or
(-? LOCK) 501).
It sets the laser beam axis parallel to one of the machine tool
axes, as follows:
1 = X axis (−1 = X axis locked)
2 = Y axis (−2 = Y axis locked)
3 = Z axis (−3 = Z axis locked)
41 RADIAL AXIS NO. 1/2/3 This is used by the beam alignment cycle (500 or 501).
It sets the radial axis parallel to one of the machine tool axes, as
follows:
1 = X axis
2 = Y axis
3 = Z axis
42 SPINDLE AXIS NO. 1/2/3 This is used by the beam alignment cycle (500 or 501).
It sets the spindle axis parallel to one of the machine tool axes, as
follows:
1 = X axis
2 = Y axis
3 = Z axis
With the parameters set to a positive value, the software works in
the minus direction. To make the software work in the plus
direction, change to a negative value.
43 RADIUS ABOVE SINGLE Use this entry to set a radius limit. Tools above this radius will be
SIDE SET set on one side of the beam only. This overrides other settings in
this table for large tools.
Enter a positive value to approach from the negative side.
Enter a negative value to approach from the positive side.
Default = 100
44 FEED RATE FOR BROKEN This is used to set the positioning feedrate into the beam in the
TOOL CYCLES (506, 507) broken tool cycles. It may be set to the maximum feedrate of the
machine tool.
Default = 2000
45 TIME IN THE BEAM IN This is the length of time the tool is checked in the beam for
CYCLE 507 (SOLID BROKEN breakage and the system check. This may be increased or
TOOL) decreased depending on the amount of coolant around the tool
when the checks are taking place.
Default = 0.2 s
46 TIME IN THE BEAM IN This is the length of time the tool is checked in the beam for
CYCLE 506 (BROKEN TOOL) breakage and the system check. This may be increased or
decreased depending on the amount of coolant around the tool
when the checks are taking place.
Default = 2.0 s
47 FLAG – POSITION ON BEAM This can be used for enabling a second measuring position along
2 the laser beam, but its use depends on how and if software
ON = 1 OFF = 0 customisation has been done (see the explanation and use of
parameter Q329 in the section “Two calibration/measuring
positions”).
For options for measuring position 2, see items 48 to 51.
This is normally reserved for machine tool builder integration.
48 LA AXIS BEAM POSITION 2 The machine tool axis positions (REF) of the measuring point
49 RA AXIS BEAM POSITION 2 along the laser beam. This is defined during installation.
50 SP AXIS BEAM POSITION 2 La = laser axis
Ra = radial measuring axis
Sp = spindle axis
Usually this point is equidistant from the laser transmitter and
receiver units. The preliminary values are captured by the
alignment cycles (500 or 501). They are then used and are
accurately updated by the calibration cycle (502).
Automatic – do not edit manually.
51 BEAM RADIUS 2 The effective radius of the laser beam.
This is captured during the calibration cycle (502).
Automatic – do not edit manually.
52 PROBE MONITORING FLAG At the end of the cycle, probe monitoring is switched on or off
ON = 1, OFF = 0 (ID990 NR2).
Default = 0 (Off)
53 M20 OR M19 USED IN This is used to select the M-code that is used by cycle def. 13.0.
CYCLE 500 M20 = 0
M19 = 1
Default = 1 (M19)
54 TIME FOR ACCEPTING A The time the tool waits with no laser light reaching the receiver
GOOD TRIGGER before accepting the trigger as good (20 = 0.3 seconds).
55 DWELL TIME BEFORE The dwell time between cycle retries (200 = 3 seconds).
CYCLE RETRY
56 NUMBER OF ATTEMPTS TO The number of attempts to find the beam in the long tool to short
REACH THE BEAM tool search.
57 NUMBER OF CYCLE The number of cycle retries after the number of attempts in item
RETRIES 56 has been reached.
58 MIN DISTANCE FROM This is used when tool diameters are larger than the distance from
MEASURING POINT TO THE the measuring point to the edge of the laser. The software will not
NC UNIT measure the first point on the centre line, but will step off so the
tool will not hit the laser. Item 43 MUST be smaller than the
setting here.
59 ERROR LANGUAGE 0 = English 6 = Swedish
1 = German 7 = Danish
2 = French 8 = Dutch
3 = Italian 9 = Czech
4 = Spanish 20 = Simplified Chinese
5 = Portuguese
These will be found either on the software media or on the TNC (machine tool controller)
in the PLC:\OEMCYC\TREE*\RENISHAW\NC directory when loaded onto the TNC. Use
TNCremo to download these files to make the edits off the machine tool and then reload
them.
These will be found either on the software media or on the TNC (machine tool controller)
in the PLC:\OEMCYC\TREE*\RENISHAW\NC directory when loaded onto the TNC. Use
TNCremo to download these files to make the edits off the machine tool and then reload
them.
NOTE: These files are supplied as empty files and really have no function unless
customisation code has been added to them by either the machine tool builder or the
commissioning engineer.
The programs will automatically be installed in the controller in the correct place by the
installation wizard. Otherwise you can use TNCremo.
They will be found on the software media in the CYCLE_PROGRAMS directory and must be
loaded into the PLC:\OEMCYC\TREE*\RENISHAW\NC directory.
To edit these files, use TNCremo to download the files and subsequently reload them
after making the changes. Custom code can be added for things like additional
positioning moves or M-codes before the core cycles run. An example of this is when
using a tilting head – you may want to first send the Z axis to a safe position before
indexing the head to the correct position.
Parameter Q277 is always set to the active program number. For example, if the
alignment cycle is running, then Q277 will be set to 501. This can then be used in the MT
start or MT_end programs to jump over the custom code for cycle 501 when other cycles
are running.
Custom code
End
The programs will automatically be installed in the controller in the correct place by the
installation wizard. Otherwise you can use TNCremo. They will be found on the software
media in the CYCLE_PROGRAMS directory and must be loaded into the
PLC:\OEMCYC\TREE*\RENISHAW\NC directory.
To edit these files, use TNCremo to download these files, before making the edits off the
machine tool, and then subsequently reloading them.
Refer to the schematic diagrams below to see where the air blast is switched on and off.
Typically, the machine tool builder may provide a marker flag that specifies which setting
position (1 or 2) to use. Alternatively, it might be OK to read an axis position to decide
which setting position to use.
1. Using markers
BEGIN PGM MT_start MM
FN 18: SYSREAD Q90 = ID2000 NR10 IDXxxxx ; marker number
FN 9: IF +Q90 EQU +0 GOTO LBL 1
Q329 = 1
LBL 1
END PGM MT_start MM
3. Using the machine tool position for a broken tool detection cycle only
BEGIN PGM MT_start MM
FN 9 IF +Q277 EQ 506 GOTO LBL1; check if broken tool cycle
FN 9 IF +Q277 EQ 507 GOTO LBL1; check if broken tool cycle
FN 9 IF +Q277 EQ 501 GOTO LBL1; check if align cycle
FN 9 IF +Q277 EQ 502 GOTO LBL1; check if calibration cycle
FN 9 IF +0 EQ +0 GOTO LBL2
LBL 1
FN 18: SYSREAD Q90 = ID240 NR1 IDX1; read X axis position
;
; if Q90 < 1000 use position 1, else use position 2
FN 12: IF +Q90 LT 1000 GOTO LBL 1
Q329 = 1; use setting position 2
LBL 2
END PGM MT_start MM
After the MT_start program has been changed, upload it back to the PLC. Now run the
alignment and calibration cycles for the first position, then align and calibrate in the
second position. Should the system be moved or a new setting position be required in the
future, the above procedure must be repeated.
1. To view the Inputs diagnostics page, enter the PROGRAMMING AND EDITING
area.
4. When the password is accepted, select the TABLE soft key, then the M/I/O/T/C soft
key from the bottom of the screen. Now press Input.
5. Press GOTO and enter the input number (address) that is used for the extended
cycles. This is specified in item 25 – Input Status address in the Renishaw set-up
table (TAB_*.REN).
M-code method
2. Select the M-code that is assigned to activate latch, i.e. program Actlatch.h (see
“Defining the M-codes for latch mode (M-code 2)”).
When the laser beam is clear of obstruction, the input status (as described above)
should be 0.
After the beam is broken, the input status should change to 1 and stay at 1 when
the beam is cleared (i.e. latched).
3. Select the M-code that is used to switch latch off, i.e. program Dislatch.h (see
“Defining the M-codes for latch mode (M-code 2)”.
The input status should return to 0.
2. Type in the following test code to enable the marker and execute to the M0:
FN 17: SYSWRITE ID2000 NR10 IDXxxxx = +1 (where xxxx is the marker number)
M0
When the laser beam is clear of obstruction, the input status (as described above)
should be 0.
After the beam is broken, the input status should change to 1 and stay at 1 when
the beam is cleared (i.e. latched).
3. Type in the following test code to reset the marker and execute to the M0:
FN 17: SYSWRITE ID2000 NR10 IDXxxxx = +0 (where xxxx is the marker number)
M0
M-code method
2. Make sure the laser beam path is not obstructed then select the M-code that is
assigned to activate broken tool mode, i.e. program Actbroken.h (see “Defining
the M-codes for broken tool mode (M-code 1)”.
View the Input status screen. The input status should be 1.
3. Reset the unit by switching off broken tool mode. Now place an obstruction in the
laser beam and reactivate broken tool mode.
View the Input status screen. The input status should be 0 (note that this should
change to 1 when the obstruction is removed).
2. Type in the following test code to enable the marker and execute to the M0:
FN 17: SYSWRITE ID2000 NR10 IDXxxxx = +1 (where xxxx is the marker number)
M0
When the laser beam is clear of obstruction, the input status (as described above)
should be 0.
After the beam is broken, the input status should change to 1 and stay at 1 when
the beam is cleared (i.e. latched).
3. Type in the following test code to reset the marker and execute to the M0:
FN 17: SYSWRITE ID2000 NR10 IDXxxxx = +0 (where xxxx is the marker number)
M0
Fault diagnosis
NOTE: Custom software packages may use a different system test program. These
programs may require editing to suit the system set-up.
A sample system test program is supplied with this software and described below. It is
recommended that it is copied into a suitable sub-directory on the controller.
Example: TNC:\REN_TNC\SYS_TEST.h
If the NCTS system and software do not operate correctly after the installation is
completed, as described in this publication, it is suggested that a test program is used to
test the major software functions before running the cycles.
Do this as follows:
4. Select FN17 via a soft key. This may be reached by pressing Q on the numerical
keypad then selecting the DIVERSE FUNCTIONS soft key.
2. Use the JOG buttons to position the tip of the calibration tool approximately 10 mm
above the laser beam.
3. Turn the controller to RUN FULL SEQUENCE mode and select the test program.
5. During the test program, the spindle should move down 20 mm. If the calibration
tool has been positioned correctly, it should block the laser beam during this move.
6. After the beam is blocked, the machine tool should stop moving.
7 8 9 10 11 12 13 14 15 4 5 6 7 8 9 10
BKT LATCH
M-code1 M-code2
Supply Input
+24 V Status
Heidenhain, typically X9
NC UNIT
11 10 8/9 2
Ready +24V NC 0V Trigger
Heidenhain X113
SWITCH SETTING
Only required for extended cycles. NCi-5 interface switch settings – see Installation and user’s guide: NCi-5 non-contact tool setting interface
(Renishaw part no. H-5259-8500)
*H-2000-6681-0C*