1.1Target Group .......................................................................................................................................................... 5
1.2About this Manual ................................................................................................................................................. 5
1.3Other Documentation on Data Interfaces ........................................................................................................... 5
1.4Meaning of the symbols used in this manual..................................................................................................... 6
6.7.2Description of the machine parameters................................................................................................. 64
7Ethernet Card (Option) in TNC 426/430 Controls
7.1Installing the Ethernet Card................................................................................................................................ 65
7.2Connecting the Ethernet Hardware ................................................................................................................... 66
7.3Ethernet Configuration in the TNC .................................................................................................................... 68
7.3.1Settings in DEFINE NET......................................................................................................................... 68
7.3.2Settings in DEFINE MOUNT.................................................................................................................. 72
7.4Checking the Connection to the Server............................................................................................................. 79
7.5Finding the Hardware Address of the Ethernet Card ....................................................................................... 80
7.6Working with the Ethernet Interface ................................................................................................................. 81
9.2Powers of 2........................................................................................................................................................... 97
HEIDENHAIN Service-Handbuch Datenschnittstellen
1How to Use this Service Manual
1.1Target Group
This Service Manual has been written for specialist electricians for service, maintenance and
commissioning as well as for end users of machine tools with HEIDENHAIN controls.
1.2About this Manual
This manual provides support for connecting, machine parameter setting and troubleshooting
the data interfaces RS-232-C, RS-422 and Ethernet of the following HEIDENHAIN controls.
For information on the data interfaces of the HEIDENHAIN controls as of iTNC 530, TNC 320,
TNC 620, etc., please refer to the respective Technical Manual, User's Manual and Service
Manual.
June 20111 – 5
1.4Meaning of the symbols used in this manual
DANGER
Attention
Note
Failure to comply with this information could result in most serious or fatal injuries, and/or
in substantial material damage.
Failure to comply with this information could result in injuries and interruptions of operation,
including material damage.
These boxes contain important and useful information.
1 – 6HEIDENHAIN Service Manual for Data Interfaces
2 General Information on the Data Interfaces
2.1 RS-232-C/V.24 Interface
RS-232-C is the designation of a serial interface for transfer rates of up to 19,200 bps based on
the American EIA standard of the same name. Data transfer is executed asynchronously, with a
start bit before each character and one or two stop bits after each character.
The interface is designed for transmission distances of up to 30 meters.
The RS-232-C interface has been adopted with slight modifications and introduced into Europe
as the V.24 interface. The relevant German standard is DIN 66020.
2.1.1 Hardware
The physical connection between two RS-232-C/V.24 interfaces is an asymmetrical line, i.e. the
common ground connection between transmitter and receiver is used as a return wire.
Physical connections:
2.1.2 Signal levels
With the RS-232-C/V.24 interface one must differentiate between two different signal lines and
their levels.
Data lines:
The data signals are defined as being logical one (MARK) over the range –3 V to +15 V and
logical zero (SPACE) over the range +3 V to +15 V.
Control and signal lines:
These signals are defined as being ON (High) over the range +3 V to +15 V and as OFF (Low)
over the range –3 V to –15 V.
For all of the signals, the voltage range from –3 V to +3 V is not defined as a logic level and can
therefore not be evaluated.
June 20112 – 7
2.1.3 HEIDENHAIN data transfer software
TNCremoNT is a software package for communication between PCs and HEIDENHAIN controls
or programming stations.
Data transfer is carried out over the Ethernet network or the serial interface.
TNCremoNT can be run on all common personal computers.
A version of Windows 2000, XP, Vista or 7 must be used as operating system.
Windows 2000, Windows XP, Windows Vista and Windows 7 are registered trademarks of
the Microsoft Corporation.
Functions of
TNCremoNT
The TNCremoNT software package includes:
TNCremoNT
Convenient data transfer and management functions that are operated from the PC
Screendump of the control’s screen
Read-out of the control’s log
Pallet management for creating, editing and transmitting pallet tables
Creating a service file
TNCserver
Transfer via the serial interface with operation on the control for all HEIDENHAIN controls
and many HEIDENHAIN position displays.
Support of all HEIDENHAIN protocols including simple data input/output.
TNCbackup
Features for data backup and restoration
TNCcmd
Command line tool for all transfer functions
TNClog
Log viewer to view and filter the control's log file
TNCremoPlus (available for a fee)
View control screen (live screen)
The selection of features you can use in TNCremoNT depends on your control. Refer to the
overview of features for more detailed information.
2 – 8HEIDENHAIN Service Manual for Data Interfaces
2.2 RS-422/V.11 Interface
As the features of the V.24/RS-232-C interface are limited, the V.11/RS-422 interface was
developed. This interface is also standardized, but operates symmetrically.
The RS-422/V.11 serial interface is suitable for data transfer rates up to 10 Mbps.
At a baud rate of 38,400 bauds, data can be transferred over 1 km cable.
2.2.1 Hardware
The V.11/RS-422 standard operates with differential voltages. This offers the advantage that
interferences act on both signal lines equally and simultaneously over the transmission distance.
As the receiver only evaluates the differential voltages of the two signal lines, interferences are
not relevant. By this means, considerably longer lines can be installed, and the transfer rate is
much higher, as interferences are limited.
Physical connections:
June 20112 – 9
2.2.2 Signal levels
With the V.11/RS-422 interface the signals are both transmitted and received as differential
voltage.
A positive differential voltage means a logical zero (OFF), a negative differential voltage means
a logical one (ON).
Differential voltages between
U
= 2 V and U
dmin
= 5 V are output; the control detects the differential voltages
dmax
between
U
= 0.2 V and U
dmin
= 6 V as logically defined levels.
dmax
2.2.3 HEIDENHAIN data transfer software
See chapter 2.1.3
2.3 Ethernet
Ethernet technology is most frequently used in local networks. It was developed by Digital
Equipment, Intel and Xerox in 1982. Ethernet operates at a data transfer rate of up to 100 Mbps
(Fast Ethernet); the hardware versions most frequently used - such as 10Base2 (Thin Ethernet,
Cheapernet), 10Base5 (Thick Ethernet, Yellow Cable) or 10BaseT (Twisted Pair) - operate at
10 Mbps. They differ in price, routing complexity or network topology, but not in the method of
accessing media.
The data transfer rate strongly depends on the amount of traffic at the time on the net.
Realistic values:NC program up to 200 Kbps
ASCII file up to 1 Mbps
2 – 10HEIDENHAIN Service Manual for Data Interfaces
2.3.1 Hardware
2.3.2 Signal structure
The integrated Ethernet expansion card provides you with both the 10Base2 (BNC) port and the
10BaseT (twisted pair). You can only use one of the two connections at one time. Both
connections are electrically isolated from the control electronics.
Connection and wiring diagrams see chapter 7.2, pin layouts see chapter 3.2.
The 10Base2 connection is also commonly known as ThinEthernet or CheaperNet.
You connect the TNC with your network via BNC-T connector. The maximum cable length is
185 m (coaxial cable). The network topology is a linear bus. The "open" ends of the bus must be
terminated with terminating resistors.
X25 Ethernet interface, RJ45 connection (10BaseT)
The twisted-pair cable of the 10BaseT connector may be either shielded or non-shielded.
Maximum cable length:non-shielded:100 m
shielded:400 m
The network topology is a star connection. This means a central node establishes the connection
to the other participants.
Ethernet frames are transferred in Manchester code which is a self-clocking code. The
synchronization or the transfer of a transmit clock pulse is executed such that each bit is
transmitted inverted in the first half of the transfer period, i.e. the bit rate is half the baud rate.
A data rate of 10 Mbps results in a bit time of 100 ns. Carrier detect (activity on the cable) is
indicated by the presence of signal level changes. If the signal level does not change in a bit time
interval between 0.75 and 1.25 after the last transition, no carrier is detected (see figure).
The network settings of the TNC are described in the Technical Manual and in chapter 7
(Ethernet) of this Service Manual.
June 20112 – 11
2.3.3 Connecting the TNC to data networks
Note
The HEIDENHAIN control models TNC 426/TNC 430 can optionally1) be equipped with an
Ethernet data interface. Via this interface, TNC 426/TNC 430 can be integrated into data
networks as client.
The TNC transfers data using the TCP/IP protocol (Transmission Control Protocol / Internet
Protocol) and with the aid of the NFS, version 2 (Network File System). Since TCP/IP and NFS
have been implemented in UNIX systems in the first place, you can usually connect the TNC in
the UNIX world without any additional software.
The PC world with Microsoft operating systems, however, also works with TCP/IP, but not with
NFS. For this reason, additional software is usually required for PC networks. HEIDENHAIN
recommends the following network software:
Operating systemNetwork Software
WIN 2000
WIN XP
CIMCO NFS
available from HEIDENHAIN under ID 339737-xx
WIN Vista
WIN 7
In principle, other NFS servers can be used as well.
However, due to the great variety of software providers, HEIDENHAIN is not a in position to
provide technical support in adapting other NFS servers.
1)
Control models that can be operated with the Ethernet card: see chapter 2.
The network settings of the TNC are described in the Technical Manual and in
chapter 7 (Ethernet) of this Service Manual.
2 – 12HEIDENHAIN Service Manual for Data Interfaces
3 Connector Designations and Layouts
3.1 Connector Designations and Layouts of TNC 125, 131, 135, 145, 150, 151/155
RS-232-C/V.24 data interface, 14-pin, Amphenol
Flange socket with female insert
Pin no.AssignmentDesignation
1GNDChassis ground
2Not assigned
3Not assigned
4Not assigned
5RTSRequest to Send
6DSRData Set Ready
7Not assigned
8Not assigned
9Not assigned
10Not assigned
11DTRData Terminal Ready
12TxDTransmit Data
13CTSClear to Send
14RXDReceive Data
ChassisExt. shield
June 20113 – 13
3.2 Connector Designations and Layouts of TNC 122, TNC 2xx, TNC 3xx,
TNC 4xx, CNC xxx
3.2.1 RS-232-C/V.24 data interface, 25-pin, D-sub
Flange socket with female insert
Pin no.AssignmentDesignation
1ShieldChassis Ground
2RxDReceive Data
3TxDTransmit Data
4CTSClear to Send
5RTSRequest to Send
6DTRData Terminal Ready
7GND (0 V *2)Signal Ground
8 to 19Not assigned
20DSRData Set Ready
21 to 25Not assigned
ChassisExternal shield = Chassis
Control modelRS-232-C/V.24 connector
X21X25X6X26
TNC 122x
TNC 246x
TNC 2500/B/Cx
TNC 306x
TNC 335x
TNC 351/355x
TNC 360x
TNC 406x
TNC 407x
TNC 410x
TNC 415/Bx
TNC 425x
TNC 426x
TNC 430x
CNC 232Bx
CNC 234.xxxx
CNC 332x
3 – 14HEIDENHAIN Service Manual for Data Interfaces
3.2.2 RS-232-C/V.24 data interface, 9-pin, D-sub
Flange socket with female insert
Pin no.AssignmentDesignation
1ShieldChassis Ground
2TxDTransmit Data
3RxDReceive Data
4DSRData Set Ready
5GNDSignal Ground
6DTRData Terminal Ready
7CTSClear to Send
8 RTSRequest to Send
9Not assigned
ChassisExternal shield = Chassis
Control modelRS-232-C/V.24 connector
X21
TNC 124x
TNC 310x
TNC 370x
June 20113 – 15
3.2.3 RS-422/V.11 data interface, 15-pin, D-sub
Flange socket with female insert
Pin no.AssignmentDesignation
1ShieldChassis Ground
2RxDReceive Data
3CTSClear to Send
4TxDTransmit Data
5RTSRequest to Send
6DSRData Set Ready
7DTRData Terminal Ready
8GNDSignal Ground
9RxDReceive Data
10CTSClear to Send
11TxDTransmit Data
12RTSRequest to Send
13DSRData Set Ready
14DTRData Terminal Ready
15Do not assign
Control modelRS-422/V.11 connector
X22
TNC 406x
TNC 407x
TNC 415/Bx
TNC 425x
TNC 426x
TNC 430x
3 – 16HEIDENHAIN Service Manual for Data Interfaces
HW: Wiring diagram for data transfer with hardware handshake
SW: Wiring diagram for data transfer with software handshake
June 20114 – 19
4.2 RS-422/V.11 Overview
Note
Control modelConnection diagram
TNC 40616
TNC 40716
TNC 415/B16
TNC 42516
TNC 42616
TNC 43016
V.11 -> V.24 converter17
4.3 Ethernet Overview
Control modelConnection diagram
TNC 426Chapter 7.2
TNC 430Chapter 7.2
4.4 RS-232-C/V.24 Diagrams
Diagram no. 1
RS-232-C/V.24 with adapter block for software handshake,
TNC 25-pin / peripheral 25-pin
This wiring only allows transfer stop with DC3 (software handshake).
4 – 20HEIDENHAIN Service Manual for Data Interfaces
The RS-232-C-/V.24 data interface has different pin layouts at the logic unit and the V.24 adapter
Note
block.
Diagram no. 2
RS-232-C/V.24 with adapter block for hardware handshake,
TNC 25-pin / peripheral 25-pin
If the pin layout of your peripheral unit differs from the above layout, the HEIDENHAIN
connecting cable cannot be used.
June 20114 – 21
Diagram no. 3
RS-232-C/V.24 with adapter block for hardware handshake,
TNC 25-pin / peripheral 9-pin
1)
Customer wiring or part available on market
4 – 22HEIDENHAIN Service Manual for Data Interfaces
Diagram no. 4
RS-232-C/V.24 with adapter block for software handshake,
TNC 25-pin / peripheral 9-pin
1)
Customer wiring or part available on market
June 20114 – 23
Diagram no. 5
RS-232-C/V.24 with adapter block for software handshake,
TNC 25-pin / peripheral 9-pin
1)
Customer wiring or part available on market
4 – 24HEIDENHAIN Service Manual for Data Interfaces
Attention
This modification applies for hardware handshake with TNC 145 to TNC 155. In these
control models, the RTS pin is not connected but tied high internally.
The following modification is required for hardware handshake:
Cut the line on both sides between DRS and DTR and short-circuit DSR with DTR
(at the PC: pin 6 with pin 20).
Without this modification, data transfer using hardware handshake is not only stopped but
aborted immediately (like "power off).
Do not use this configuration for TNC 335 with new hardware.
June 20114 – 25
Diagram no. 6
RS-232-C/V.24 with adapter block for software handshake,
TNC 14-pin / peripheral 9-pin
1)
Customer wiring or part available on market
4 – 26HEIDENHAIN Service Manual for Data Interfaces
Diagram no. 7
RS-232-C/V.24 with adapter block for hardware handshake,
TNC 14-pin / peripheral 25-pin
June 20114 – 27
Attention
This modification applies for hardware handshake with TNC 145 to TNC 155. In these
control models, the RTS pin is not connected but tied high internally.
The following modification is required for hardware handshake:
Cut the line on both sides between DRS and DTR and short-circuit DSR with DTR
(at the PC: pin 6 with pin 20).
Without this modification, data transfer using hardware handshake is not only stopped but
aborted immediately (like "power off).
Do not use this configuration for TNC 335 with new hardware.
4 – 28HEIDENHAIN Service Manual for Data Interfaces
Diagram no. 8
RS-232-C/V.24 with adapter block for software handshake,
TNC 14-pin / peripheral 25-pin
One or several operating modes are available, depending on the control model.
Control modelOperating mode
MEFEEXT
TNC 125x
TNC 131x
TNC 135x
TNC 145x
TNC 150x
TNC 151/155 B/Q
TNC 151/155 A/P
ME:
For connection of the HEIDENHAIN magnetic tape unit MP 101/102 or other peripheral units.
Data format (7 data bits, 1 stop bit, even parity) and baud rate (2400) are adapted to the FE.
FE:
For connection of the HEIDENHAIN floppy-disk unit FE 401 or other peripheral units. Data
transfer is executed with a special protocol (blockwise transfer) to back up data. Data format
(7 data bits, 1 stop bit, even parity), baud rate (9600) and transfer protocol are adapted to the FE.
EXT:
For adaptation of data transfer in standard data format and for blockwise transfer to peripheral
units. The interface for data transfer is adapted via machine parameters; any baud rate can be
selected.
1)
Selection via MOD
2)
Selection via machine parameter
1)
2)
xxx
xxx
April 20105 – 35
5.2 Operating Modes on TNC 122 to TNC 430
One or several operating modes are available, depending on the model.
Control modelOperating mode
MEFEEXTLSV2Screen
dump
Host
operation
TNC 122xxx
TNC 124xxx
TNC 131x
TNC 135x
TNC 145x
TNC 150x
TNC 151
TNC 155
CNC 232
CNC 232B
CNC 234
CNC 234.xxx
1)
1)
1)
1)
1)
1)
x
xx 5)x
5)
xxx
xxx
xxx
xxx
CNC 332xxx
TNC 246xxxx
TNC 2500/B/C x
1)
xxx
DNCLog
TNC 306xxx
TNC 310xxxxxx
TNC 320xxxx
TNC 335xxxx
TNC 351/355xxxx
TNC 360 x
CONTOUR 12
1)
1)
xxx
xx
TNC 370xxxx
TNC 406
TNC 407xxxx
2)
xxxxxxx
3)
3)
x
3)
x
x
TNC 410xxxxxx
TNC 415xxx
TNC 415Bxxxx
TNC 425xxxx
TNC 426 B / 430xxxx
3)
4) 6)
xx
6)
x
3)
x
6)
x
iTNC 530 7) xxxxxx
TNC 6xx
7)
xxxxxx
5 – 36HEIDENHAIN Service Manual for Data Interfaces
Control modelOperating mode
MANUALplus M
7)
MANUALplus 3110
CNC PILOT 3190
CNC PILOT 6xx
GrindPlusIT
MillPlus
7)
xx
MillPlusIT V600
7)
7)
xxxxx
7)
xx
7)
xxxxxx
MEFEEXTLSV2Screen
dump
Host
operation
DNCLog
x
7)
x
x
1)
The transfer rate must be set to 9600 baud.
2)
Change of directory is not possible.
3)
Machine must support LSV2/DNC operation.
4)
File server (LSV2) as of software versions 280 462 05, 280 470 01, 280 472 01 only
5)
TNC 155B
6)
Via Ethernet as of software 280476-xx
7)
For further information, refer to the respective Technical Manual, User's Manual and Service
Manual.
For internals settings please refer to the User's Manuals and Technical Manuals of the controls
and DROs.
FE 1:
For connection of HEIDENHAIN floppy-disk unit FE 401 B (or floppy-disk unit FE 401, software
230 626 03 and later) or other peripheral units.
Data format and protocol adapted to FE 401/B
Protocol:Blockwise transfer
Data format:7 data bits, 1 stop bit, even parity
Baud rate:110 - 115 200 bauds
(depending on the hardware of the HEIDENHAIN product)
Interface parameters:Fixed
Transfer stop:Software handshake with DC3
FE 2:
For connection of the HEIDENHAIN floppy-disk unit FE 401 or other peripheral units.
Data format and protocol adapted to FE 401/B
Protocol:Blockwise transfer
Data format:7 data bits, 1 stop bit, even parity
Baud rate:110 - 115 200 bauds
(depending on the hardware of the HEIDENHAIN product)
Interface parameters:Fixed
Transfer stop:Software handshake with DC3
April 20105 – 37
EXT:
For adaptation of data transfer in standard data format and for blockwise transfer to peripheral
units.
Protocol:Standard protocol or blockwise transfer
Adaptation via machine parameters (from MP 5000)
Data format:Adaptation via machine parameters (from MP 5000)
Baud rate:110 - 115 200 bauds
(depending on the hardware of the HEIDENHAIN product)
Interface parameters:Adaptation via machine parameters (from MP 5000)
Transfer stop:Software handshake with DC3 or hardware handshake with
RTS, selectable via machine parameters (from MP 5000)
LSV-2:
With the appropriate software (TNCremo V 3.0), the LSV-2 protocol allows various functions
such as file management, remote control, and diagnosis of the TNC to be executed from the PC.
Protocol:Bidirectional data transfer in accordance with DIN 66019
Data format:8 data bits, 1 stop bit, no parity
Baud rate:110 - 115 200 bauds
(depending on the hardware of the HEIDENHAIN product)
Interface parameters:Fixed
Transfer stop:Software handshake via protocol
5 – 38HEIDENHAIN Service Manual for Data Interfaces
As of TNC 151 B/Q the data format can be set in the machine parameter MP 222.
MP 222 (5020)Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 7, 6
Example:
For "Blockwise transfer" with the HEIDEHAIN data transfer software in the EXT mode, the data
format must be as follows:
7 data bits, 1 stop bit, even parity, software handshake
76543210Bit
10101000 Binary
0
1
0
1
1
1
0
1
1
00
01
10
11
7 data bits (ASCII code, bit 8 = parity)
8 data bits (ASCII code, bit 8 = 0,
bit 9 = parity)
no BCC check
BCC check
Transfer stop by hardware handshake
Transfer stop by software handshake
Even character parity
Odd character parity
Character parity desired
11/2 stop bits
2 stop bits
1 stop bit
1 stop bit
128+32+8=168
Decimal
In the "FE/ME" mode, the data format in MP 222 is not active; in this case the format is always
set to 7 data bits, 1 stop bit, even parity and software handshake.
6 – 40HEIDENHAIN Service Manual for Data Interfaces
Program end and program start
The control characters for "program end" and "program start" are defined in MP 71 (5010.0).
MP 71 (5010.0)LSB: Bit 0 - 7 = character for program end
MSB: Bit 8 - 15 = character for program start
In the example, the standard values "ETX" and "STX" are used, i.e. MP 71 = 515.
For serial data transfer only the character for program end is transmitted (in our example
"MP 71 = 3" would be sufficient for "ETX").
Both characters - program start and program end - are only sent with blockwise transfer.
(In our example "MP 17 = 515" would be required for "STX" and for "ETX".)
To select the characters for program start and program end via MP 71, the RS-232-C interface
must be set to "EXT" mode.
In the "FE" and "ME" modes the control characters "ETX" and "STX" are automatically set,
i.e. MP 71 must be 515.
In old control models (TNC 150; TNC 151 A/P; TNC 155 A/P) the machine parameter MP 71
is always active.
Machine parameters of TNC 145 C and TNC 150
MP 70:
Decimal point or commaON= decimal point
OFF= decimal comma
If numerical values in programs are to be output with decimal points, the parameter MP 70 must
be programmed ON; if output with decimal comma is required, it must be programmed OFF.
MP 71:
Character for end of program 1 - 126
MP 76:
By means of the parameter 71 (TNC 159) or 76 (TNC 145 C) an additional ASCII character for
"program end" can be selected for remote programming. The input depends on the significance
of the character and is derived from the pattern on the punched tape (without parity bit).
MP 92:
Decimal point or comma0 = decimal comma
1 = decimal point
If numerical values in programs are to be output with decimal points, the parameter MP 70 must
be programmed ON; if output with decimal comma is required, it must be programmed OFF.
Operating mode of the data interface
The operating mode of the data interface is defined in the machine parameter MP 223 (5030).
MP 223 (5030)0 = blockwise transfer inactive
1 = blockwise transfer active
April 20106 – 41
Machine parameters for blockwise transfer
With Blockwise Transfer in the "Program Run" operating mode, machine programs - in general
created on a remote computer-aided workstation - of any desired length can be downloaded and
machined via the serial interface.
Blocks already machined are deleted from the memory and the next program blocks requested
from the external memory.
With BLOCKWISE TRANSFER the data flow is not stopped by RTS or DC3, but only by the
control characters ACK (acknowledge = positive) and NAK (not acknowledge = negative).
Each transferred block is checked by means of a BCC (block check character), i.e. the received
data are checked for longitudinal parity. If both values are the same, positive acknowledgment
is transmitted; if they are not identical, negative acknowledgment is transmitted.
This block is repeated up to three times. If the result is negative in each case, data transfer is
aborted and an error message generated.
For MP 218 (5010.1) and MP 219 (5010.2)
H = HEIDENHAIN conversational program
D = ISO program
M = Machine parameter list
P = PLC program
S = Non-linear compensation list
X99999967 = For all programs stored in the ME mode
6 – 42HEIDENHAIN Service Manual for Data Interfaces
MP 218 (5010.1) = 17736
The LSB must correspond to the transfer program.
("Change identifier" in FDE program)
X(88)- User parameter (general) ME mode
H(72)- Programs in HEIDENHAIN plain language
D(68)- ISO programs
P(80)- PLC programs
M(77)- Machine parameters
S(83)- Non-linear compensation table
The MSB must correspond to the transfer program.
("E" is prescribed in the FDE/TNC program.)
MP 219 (5010.2) = 16712
The LSB can be selected as in the above example; however, it must be the same for both
machine parameter and identifier.
The MSB is "A" as in the FDE/TNC program.
MP 220 (5010.3) = 279
SOH and ETB are fixed for the FDE/TNC program. Otherwise a substitute character can be
selected which must match the data transfer software.
MP 221 (5010.4) = 5382
ACK/NAK is defined for the FDE/TNC program; otherwise a matching substitute character can
be selected in the data transfer software.
April 20106 – 43
MP 224 (5010.5) = 4
Note
Prescribed for the FDE/TNC program; otherwise selectable as above.
For our example the following values must be entered in the machine parameter list:
MP 71(5010.0)=515(STX, ETX)
MP 218(5010.1)=17736 (E, H)
MP 219(5010.2)=16712 (A, H)
MP 220(5010.3)=279(SOH, ETB)
MP 221(5010.4)=5382(NAK, ACK)
MP 222(5020)=168(7 data bits, 1 stop bit, even parity, xon/xoff)
MP 223(5030)=1(blockwise transfer active)
MP 224(5010.5)=4(EOT)
Printer adaptation
General information on graphic output
Your printer manual is absolutely required!
Proceeding:
Via the DIP switches the printer must be configured such that it matches the configuration of
the control.
Control settings:
1. At the control, the RS-232-C interface must be set to EXT. (The interface can be selected
with the MOD key; pressing ENT changes the setting.)
2. The baud rate must also be selected via MOD and a value entered.
(Observe the settings of the DIP switches at the printer.)
3. Data format: 8 data bits, 1 stop bit, even parity, software handshaking. The data format is set
in MP 222 (MP 5020): 169.
4. The EXT control character for end of program is set in the machine parameter
MP 71 (MP 5010.0): 3.
5. Blockwise transfer must be deactivated in MP 223 (MP 5030): 0.
6. Enter MP 226 (MP 5110.0) to MP 233 (MP 5120.3).
Machine parameter calculation is explained on the following pages.
The printer manual is required to define the escape sequences.
The values determined must be entered in the machine parameter list.
6 – 44HEIDENHAIN Service Manual for Data Interfaces
Machine parameter calculation for graphic output
In the graphics mode the display of the TNC 155/355 consists of 512 x 490 pixels. For graphic
data output, the data is output line by line in 8-bit format via the serial interface. A line consists
of 8 pixels and 512 bytes.
The parameters are subdivided into two blocks:
The first block (MP 226 (5110.0) to MP 229 (5110.3)) is sent once before each block.
It serves to initialize the printer and to set the general parameters for graphic output,
e.g. line spacing, carriage return, line feed and possibly form feed to reach the beginning of
the print paper.
The line feed must be specified such that the graphic lines are printed without blanks in
between. For this reason, the line spacing should be 72/216 inches.
The second parameter block (MP 230 (5120.0) to MP 233 (5120.3)) is output before each graphic
line to perform carriage return and line feed at the printer and to set it to the graphics mode.
The control outputs 512 data bytes per line, i.e. 512 bytes must be displayed as graphics on
paper before the printer automatically switches from the graphics mode to ASCII mode.
The commands for the printer are described in escape sequences which may vary from
printer to printer.
The EPSON command set for printers is a quasi-standard supported by most printer
manufacturers. Therefore, this manual refers to these EPSON ESCAPE SEQUENCES.
April 20106 – 45
The following escape sequences and ASCII characters must be transferred to the printer for
initialization:
The machine parameters MP 226 (5110.0) to MP 233 (5120.3) are present as 16-bit values and
are output in decimal format. The input value may be between 0 and 65535. These machine
parameters are subdivided into bytes.
The most significant byte from MP 226 (5110.0) and MP 230 (5120.0) defines the number of
bytes the control outputs via RS-232-C.
The entry values 0 to 7 are advisable, as up to 7 bytes can be transferred. The next bytes are
output individually in ascending order.
Example:
The escape sequences stated below are not generally valid; they must be defined individually
for each printer (with the help of the printer manual).
The following list contains the machine parameters for all software variants.
Since however, several machine parameters are not valid for certain controls or have been
introduced or eliminated as of a certain software version, there are columns with symbols
for differentiation.
Meaning of the symbols
= The parameter applies for all software versions of this control.
04= The parameter was introduced as of a certain software version (e.g. as of version 04).
I04= The parameter was eliminated as of a certain software version (e.g. as of version 04)
or replaced by a new parameter.
-= The parameter is not active with this software (control).
Explanation of the columns
TNC 124 = TNC 124 with NC software 246 16* --
122124
6 – 48HEIDENHAIN Service Manual for Data Interfaces
6.3 Machine Parameters for TNC 232/246
6.3.1 Overview
April 20106 – 49
6.3.2 Description of the machine parameters
6 – 50HEIDENHAIN Service Manual for Data Interfaces
6.4 Machine Parameters for TNC 306/335/360/2500/CNC 234/TNC 370
6.4.1 Overview
April 20106 – 51
6.4.2 Description of the machine parameters
* Accessible via code number 123
6 – 52HEIDENHAIN Service Manual for Data Interfaces
April 20106 – 53
6.5 Machine Parameters for TNC 310/410
6.5.1 Overview
6 – 54HEIDENHAIN Service Manual for Data Interfaces
6.5.2 Description of the machine parameters
April 20106 – 55
6.6 Machine Parameters for TNC 406/407/415/425
6.6.1 Overview
6 – 56HEIDENHAIN Service Manual for Data Interfaces
6.6.2 Description of the machine parameters of TNC 406/407/415
Machine parameters
The following list contains the machine parameters for all software variants.
Since however, several machine parameters are only valid for a certain software or have been
introduced or eliminated as of a certain software version, there are columns with symbols for
differentiation.
Meaning of the symbols
= The machine parameter or entry value applies for all software versions of this control.
04= The machine parameter has been introduced with a certain software version
(e.g. with version 04).
I04= The machine parameter is inactive.
-= The parameter does not exist on this control.
Explanation of the columns
A= TNC 407 with NC software 243 07* -- (without digitizing function)
B= TNC 415 with NC software 243 05* -- or 259 91* -- (without digitizing function)
C= TNC 407 with NC software 243 02* -- (with digitizing function)
D= TNC 415 with NC software 259 96* -- or 259 97* -- (with digitizing function)
E= TNC 407 with NC software 243 03* -- (software equivalent to TNC 415B/425)
F= TNC 407 with NC software 280 58* -- (special software)
April 20106 – 57
* Accessible via code number 123
6 – 58HEIDENHAIN Service Manual for Data Interfaces
* Accessible via code number 123
April 20106 – 59
6.6.3 Description of the machine parameters of TNC 415 B/425
Machine parameters
The following list contains the machine parameters for all software variants.
Since however, several machine parameters are only valid for a certain software or have been
introduced or eliminated as of a certain software version, there are columns with symbols for
differentiation.
Meaning of the symbols:
= The machine parameter applies for all software versions of this control.
04= The machine parameter has been introduced with a certain software version
(e.g. with version 04).
I04= The machine parameter is inactive.
-= The parameter does not exist on this control.
Explanation of the columns:
A= TNC 415/B/F/BR/FR and TNC 425/E with NC software 259 93* -- or 259 94* -B= TNC 415/B/F/BR/FR and TNC 425/E with NC software 280 54* -- or 280 56* --
(special software)
C= for future use
6 – 60HEIDENHAIN Service Manual for Data Interfaces
April 20106 – 61
* Accessible via code number 123
6 – 62HEIDENHAIN Service Manual for Data Interfaces
6.7 Machine Parameters for TNC 426/430
6.7.1 Overview
April 20106 – 63
6.7.2 Description of the machine parameters
* Accessible via code number 123
6 – 64HEIDENHAIN Service Manual for Data Interfaces
7 Ethernet Card (Option) in TNC 426/430 Controls
Attention
X37
X36
X35
X14 Id.-Nr. 311 647-xx
Id.-Nr. 293 890-xx
Id.-Nr. 294 130-xx
X38 Id.-Nr. 311 537-xx
X14 (X38)
X14
7.1 Installing the Ethernet Card
Danger to internal components!
When handling components that can be damaged by electrostatic discharge
(ESD), observe the safety recommendations in EN 100 015. Use only antistatic
packaging material. Be sure that the work station and the technician are properly
grounded during installation.
The Ethernet kit may only be mounted by trained personnel.
April 20107 – 65
Function of the green LEDs on the ETHERNET board
BS (D1), Bus Select:Access to the Ethernet controller by the CPU of the TNC
This LED must blink when the control is started!
LN (D2), Link:Link signal received from server
RX (D3), Received:Data are received
TX (D4), Transmitted:Data are transmitted
7.2 Connecting the Ethernet Hardware
X26, 10Base2
The maximum cable length is 185 m.
If longer cables are required, an additional amplifier must be used.
The minimum distance between two T-connectors is 0.5 m.
The number of T-connectors must not exceed 30.
Cable ends not in use must be terminated by 50 ohms resistors.
7 – 66HEIDENHAIN Service Manual for Data Interfaces
X25, 10BaseT
A transposed cable must be used to realize a direct connection from the computer to the
TNC via 10BaseT.
Pin layouts of 10Base2 and 10BaseT connections: see chapter 3.2
April 20107 – 67
7.3 Ethernet Configuration in the TNC
7.3.1 Settings in DEFINE NET
The following settings are made in DEFINE NET:
1)
1)
Information on the address of your TNC in the network (Internet).
1)
SUBNET MASK to "save" addresses in the network.
1)
ROUTER addresses only have to be specified, if a branch into another network
level is required to reach the SERVER.
Here the format for data transfer is specified (RFC in most cases).
ADDRESS:
MASK:
ROUTER:
PROT:
HW:Hardware configuration of the connection: 10BaseT (twisted pair)
10Base2 (COAX)
7 – 68HEIDENHAIN Service Manual for Data Interfaces
1)
HOST:
As of NC software 280 472 and 280 473!
Here the name is entered under which the control registers itself at the
SERVER.
The boxes represent for example TNC controls or personal computers. Please note that a TNC
can never be a ROUTER, since it does not feature the second connection for feeding signals
through.
1)
This information can be provided by your network specialist!
On the next pages, please find and example of the settings listed above.
ADDRESS:
1)
Information on the address of your TNC in the network (Internet).
April 20107 – 69
MASK:1) SUBNET MASK to "save" addresses in the network.
1)
This information can be provided by your network specialist!
7 – 70HEIDENHAIN Service Manual for Data Interfaces
PROT:1)Here the format for data transfer is specified (RFC in most cases).
HW:1)Hardware configuration of the connection :10BaseT (twisted pair)
10Base2 (COAX)
1)
This information can be provided by your network specialist!
April 20107 – 71
7.3.2 Settings in DEFINE MOUNT
The following settings can be made in DEFINE MOUNT:
ADDRESS:
2)
RS:
WS:
TIMEOUT:
1)
Address (Internet address) of the server
2)
Packet size for data input
Packet size for data output
1)
A Remote Procedure Call that is not answered by the NFS server is repeated
after expiration of the time defined here. 0 = 700 (standard)
HM:1=YES / 0=NO: With a hard mount, the Remote Procedure Call is repeated
until an answer is received from the NFS server. This has the
advantage that after a server crash you can continue normal operation as soon
as the server is up again. Use a soft mount (0) only, if the NFS server is not
always available.
DEVICENAME: This name (TNC device name) is displayed in the TNC program management
for the mounted network.
PATH:Directory path of the NFS server to be mounted,
e.g.: world / home / test (input depends on the server software).
DOMAIN:Name used by the TNC to log onto the server.
As of NC software 280 472 and 473 this information is not required.
USER ID; identifies the user
GROUP ID; identifies the group
UID:
GID:
1)
1)
DCMDirectory create mode to define access rights to the directory for
OWNER, GROUP and other USERS.
PROTAs of NC software 280 472 and 473.
The data transfer protocol is specified here, e.g. UDP.
7 – 72HEIDENHAIN Service Manual for Data Interfaces
FCM FileCreateMode; here you assign access rights to files for
OWNER, GROUP and other USERs.
AMHere you can set, whether AUTOMOUNT is possible.
1)
This information can be provided by your network specialist.
2)
An entry of zero (standard) means that the optimum transfer size as indicated
by the NFS server is used. Do not enter any other input values unless you have
encountered throughput problems. Input range: 512 - 4096 bytes
On the next pages, please find and example of the settings listed above.
April 20107 – 73
ADDRESS:1)Address (Internet address) of the server
HM:1=YES / 0=NO
1)
This information can be provided by your network specialist!
7 – 74HEIDENHAIN Service Manual for Data Interfaces
DEVICENAME:This name is displayed in the TNC program management
for the mounted network.
PATH:Directory path,
e.g.: world / home / test (input depends on the server software).
April 20107 – 75
DOMAIN:Name used by the TNC to log onto the server.
As of NC software 280 472 and 473 this information is not required.
1)
UID:
USER ID; identifies the user
1)
This information can be provided by your network specialist!
7 – 76HEIDENHAIN Service Manual for Data Interfaces
1)
GID:
GROUP ID; identifies the group
DCMDirectory create mode to define access rights to the directory for
OWNER, GROUP and other USERS.
1)
This information can be provided by your network specialist!
April 20107 – 77
FCMFile create mode to define access rights to the files for OWNER, GROUP and other
USERS.
AM:Here you can set, whether AUTOMOUNT is possible.
After configuring the interface, switch the control off and on again to activate the data in the
control.
7 – 78HEIDENHAIN Service Manual for Data Interfaces
7.4 Checking the Connection to the Server
April 20107 – 79
7.5 Finding the Hardware Address of the Ethernet Card
7 – 80HEIDENHAIN Service Manual for Data Interfaces
7.6 Working with the Ethernet Interface
7.6.1 Establish network connection (mount)
April 20107 – 81
The network line must be connected to the Ethernet card.
On the left half of the screen the mounted drive is displayed; in the example:
7 – 82HEIDENHAIN Service Manual for Data Interfaces
7.6.2 Unmounting a network connection
April 20107 – 83
7 – 84HEIDENHAIN Service Manual for Data Interfaces
8 Error Messages and their Causes
8.1 Error Messages Related to the RS-232C and RS-422 Interfaces
8.1.1 Error messages at the TNC in the ME mode
WRONG OPERATING MODE
No operating mode or wrong operating mode set on the
external data medium.
FAULTY PROGRAM DATA
Wrong or faulty program data have been detected during
data transfer. The control attempted three times to read from
the magnetic tape before aborting the process.
DATA MEDIUM MISSING
No cassette has been inserted into the drive.
DATA MEDIUM EMPTY
No programs are stored on the data medium (cassette).
DATA MEDIUM WRITE-PROTECTED
The write-enable plug in the cassette is missing.
PROGAM INCOMPLETE
Data transfer was aborted before the program was
completely loaded.
EXT. IN/OUTPUT NOT READY
The DSR signal is missing at the TNC.
- ME not connected
- Transmission cable defective or incorrect
- Wrong interface assignment
ME: TAPE END
The cassette is full. To continue data transfer, turn over or
exchange the cassette.
April 20108 – 85
8.1.2 Error messages at the ME
DEL
STOP
In the ME, the electronics is tested and the external operating conditions are checked. If an error
is detected, the lamps of the operating mode display start blinking. In the table below the error
types are listed:
LED off
LED blinks
Indicator lampsError message
Faulty data during transfer
No cassette inserted
Write-enable plug in cassette is missing
Wrong operating mode selected
Data of magnetic tape faulty
Magnetic tape empty
Error in ME electronics
End of tape
Peripheral unit is not connected
Data transfer between TNC and ME or peripheral interrupted by
Pressing clears the error messages.
8 – 86HEIDENHAIN Service Manual for Data Interfaces
8.1.3 Error messages at the FE in the ME mode
In the ME mode, errors are displayed by the indicator lamps (LEDs) of the control buttons
blinking.
LED off
LED on
LED blinks
Indicator lampsError message
Disk is missing or error in the electronics
Disk cannot be formatted, as it is currently being used
Disk is missing or not formatted
Disk cannot be copied, as a read/write process is active
External device not ready or not connected
Disk is missing or not formatted
Disk is missing or not formatted or no program is available
Program cannot be output, as data transfer via the TNC interface is in
process
Program cannot be output, as data transfer via the PRT interface is in
process
External device not ready or not connected
Disk is missing or not formatted
Disk is missing or not formatted
Program cannot be output, as data transfer via the TNC interface is in
process
Program cannot be output, as data transfer via the PRT interface is in
process
External device not ready or not connected
Disk is missing or error in the electronics
Table of contents cannot be output, as data transfer via the PRT interface
is in process.
April 20108 – 87
STOP
No interface coupling is possible, as data transfer via the TNC interface is
in process
No interface coupling is possible, as data transfer via the PRT interface is
in process
External device not ready or not connected
Pressing clears the error messages.
8 – 88HEIDENHAIN Service Manual for Data Interfaces
8.1.4 Error messages at the TNC in the FE mode
In this operating mode, the floppy disk unit outputs errors in the following format:
(SOH) ERR: (SP) (SP) (SP) [XXX] (ETB) (BCC)
XXX = Error number
The following errors may be displayed:
Input/Output Errors
ERR: 001 = Incorrect command code
ERR: 002 = Illegal program name
ERR: 003 = Faulty data transfer
ERR: 004 = Program incomplete
ERR: 005 = Receiving buffer overflow
ERR: 006 = Function currently disabled
ERR: 007 = Data-buffer overflow
Errors during Program Write or Read
ERR: 010 = Program not on disk
ERR: 011 = Program erase-protected
ERR: 012 = Program is being written to
ERR: 013 = Program directory is full
ERR: 014 = Disk is full
ERR: 015 = Text not found
ERR: 016 = Program name already exists
ERR: 017 = Disk access active
ERR: 018 = Program currently being read
Disk / Drive / Controller Errors
ERR: 100 = Disk not initialized
ERR: 101 = Sector number too large
ERR: 102 = Drive not ready 2)
ERR: 103 = Disk is write-protected
ERR: 104 = Faulty data on disk
ERR: 105 = Sector cannot be found 1)
ERR: 106 = Check sum is incorrect
ERR: 107 = Disk controller defective 3)
ERR: 108 = DMA error 3)
ERR: 109 = Disk exchanged during program loading
1)
These error messages indicate that the disk is defective; in most cases, they can only
be eliminated by reformatting the disk.
2)
If this error message comes up while the disk is inserted, the drive is probably defective.
3)
Hardware defect
1)
1)
1)
April 20108 – 89
8.1.5 Error messages during data transfer
TRANSFERRED VALUE INCORRECT X
X =A Faulty character frame
BCharacter overflow
CFaulty character frame or character
overflow
DParity error
EFaulty character frame or parity error
FCharacter overflow or parity error
GFaulty character frame or character
overflow or parity error
HReceiving buffer overflow
KIncorrect ESC sequence (only in "ME" mode)
L Incorrect ESC sequence (only in "ME" mode)
DATA TRANSFER ERRONEOUS X
X =A Faulty character frame
DParity error
MThe control has received the character for
"Negative Acknowledgement" (NAK) more
than 3 times
NThe control has transmitted the character for
"Negative Acknowledgement" (NAK) more
than 3 times
PTimeout ACK/NAK
BAUD RATE NOT POSSIBLE
If both data interfaces (RS 232/RS 422) are active
simultaneously, the baud rate of both data interfaces must
be the same.
INTERFACE ALREADY ASSIGNED
A data interface cannot be used for two operating modes at
a time (e.g. DNC mode and simultaneous programming is not
possible with one data interface).
EXT. IN/OUTPUT NOT READY
- DSR signal missing at the TNC
- Transmission cable defective or incorrect
- Wrong interface assignment
PROGAM INCOMPLETE
Data transfer was aborted before the program was
completely loaded.
8 – 90HEIDENHAIN Service Manual for Data Interfaces
8.2 Ethernet Error Messages
ErrInternetor messages or warnings that are generated when a device is mounted, are stored in
plain language in an ERROR file.
When the control is switched off and on, the contents of this file is deleted.
The entries in this file can be viewed by entering the code number "NET123" and pressing the
soft key "SHOW ERROR".
Structure of an Error Message
A message starts with the program part that detected the error; this element is terminated by a
colon. Then the name of the device to be mounted can follow in <> angle brackets. The software
differentiates between errors (E) and warnings (W). In the event of an error the network cannot
be activated and the device cannot be mounted. When a warning is generated, the network
could be activated or the device mounted, however, inappropriate entry values were corrected.
Errors reported by the link layer:
LL: (W) CONNECTION "error string" UNKNOWN USING DEFAULT 10BASE2
An unknown name was entered for the connection.
10BASE2 (Thin Ethernet) is used.
LL: (E) PROTOCOL "error string" UNKNOWN
An unknown name was entered for the protocol.
Errors detected by the network layer:
IP4: (E) INTERFACE NOT PRESENT
The Ethernet card could not be found.
IP4: (E) INTERNET ADDRESS NOT VALID
The control was assigned an invalid Internet address; e.g. a class D or E address,
a loop-back address or a broadcast address.
IP4: (E) SUBNETMASK NOT VALID
The specified subnet mask does not match the Internet address, or only 1 bit
was provided for the subnet ID or the host ID.
IP4: (E) SUBNETMASK OR HOST ID NOT VALID
Input of Internet address or subnet mask faulty, or all bits of the host ID are 0 or 1.
IP4: (E) SUBNET MASK OR SUBNET ID NOT VALID
All bits of the SUBNET ID are 0 or 1.
IP4: (E) DEFAULTROUTERADRESS NOT VALID
For the default router an invalid Internet address was entered; e.g. a class D or E address,
a loop-back address or a broadcast address.
IP4: (E) CANNOT USE DEFAULT ROUTER
The net ID and the subnet ID of the default router are not identical to those of the control.
IP4: (E) I AM NOT A ROUTER
The Internet address of the default router is identical to that of the control.
Errors detected by the mount system call:
MOUNT: <Device name> (E) DEVICENAME NOT VALID
The device name is either too long or it contains illegal characters.