V-24 Serial Interface
V-24 Serial Interface
Contents
General information
Procedure
TNCremo transmission software
ME transfer protocol
FE transfer protocol
LSV-2 transfer protocol
Special cases
General information
Procedure
1. Determine the exact variant of your control, for example TNC 155A/P or TNC 155B/Q.
2. Download the TNCremo transmission software from our website.
3. Determine what type of port connection you have on your machine (9-pin or 25-pin) and on your PC
(9-pin or 25-pin), and then use an appropriate cable to connect them.
4. Select the most powerful protocol that is possible for your control: if you want to operate from the
control, choose FE(1) if available; if transmission is to be handled by the PC, use LSV-2.
5. Continue as per the description for the protocol you selected.
There you will find information about the preparations necessary on the TNC and the PC, for data transfer,
and for running the program. Transfer a Klartext program in both directions.
6. Only attempt special cases, such as blockwise execution or reloading mode, once the complete transfer
works in both directions.
1
1 Control variants
In order to clarify which possibilities are available for any given control, it must first be clarified exactly
which variant the present TNC is:
TNC 151 / TNC 155A/P: There is no CR key
TNC 151 / TNC 155B/Q: There is a CR key
The variants of the NC software of the TNC 415 can be seen after pressing the MOD key.
The associated data transfer software is TNCremo (previously known as TNC.exe and TNCremo, then
TNCremo).
You can download this data transfer software from http://www.heidenhain.de at no charge. You will find
it under Documentation / Information -> Software -> Download area -> PC Software -> TNCremo.
Information you can find in this data transfer software includes, for example, cabling information under
Help / Contents / Technical Information / Cable Assembly.
2
3 Cabling
On PCs with
9-pin COM port
you connect the adapter shown above
between them.
PCs with
9-pin COM port
with the customer wiring shown at right
can be connected directly to the
interface connection of the machine.
3
3
Fully wired, 9 pins on the machine side
permits hardware handshaking
The cable necessary for the connection to the PC depends on whether the connection within the machine
is transposed.
You can determine this by checking which machine cable is connected to X27 of the control:
4 Communications protocols
ME Simple protocol, requires operation of the control and the PC
(ME = suitable for earlier JH magnetic tape unit), available for
TNC 124, TNC 125, TNC 131, TNC 135, TNC 145, TNC 150, TNC 151, TNC 155, TNC 246, TNC 310,
TNC 355, TNC 360, TNC 370, TNC 407, TNC 410, TNC 415 / 425
FE Powerful protocol with operation of the control, parity checking, (FE = suitable
for earlier JH floppy disk unit), available for
TNC 124, TNC 151B/Q, TNC 155B/Q, TNC 246, TNC 310, TNC 355, TNC 360, TNC 370, TNC 407,
TNC 410, TNC 415 / 425, TNC 426 / 430, iTNC 530
FE1 After being selected, the control automatically gets the table of contents from the PC.
Available as of TNC 415.
FE2 The operator must call the directory.
LSV-2 Powerful protocol with operation of the PC, parity checking, (for connection to Windows PCs),
available for TNC 415 as of software 259930, TNC 425, TNC 426 /430, iTNC 530
Note: Controls with LSV-2 also have the FE protocol.
4
5 ME protocol using the TNC 150 as an example
On controls up to the TNC155A/P only this protocol is available.
Preparations for transmission must be made on the TNC as well as the PC.
Preparing the PC
Or start TNCremo,
make sure that the Standard setting is entered,
5
Please note:
You must set the transmission direction and the baud rate on the PC and the control so that they correlate
to one another.
The “Protocol” display refers to the PC. This means: in order to transfer a program from the TNC to the
PC, you must enter “Data output” on the control and “Receive ME” on the PC. Under “Status” you should
now see: “Waiting for request”. This means that the connection is OK.
6
5 FE protocol using the TNC 155B as an example
This protocol is available on controls starting with the TNC 155B/Q.
Only the TNC is needed to control the transfer.
Preparing the PC
Start TNCserver directly
or TNCremo with the Standard setting,
and open the pull-down menu “TNCserver...”.
Under “Status” you should now see: “Ready (waiting for request)”. This means that the connection is OK.
9600 baud is permitted for cable lengths up to 20 m. For longer cables you must reduce the baud rate at both
ends.
7
Starting transmission
In the Programming and Editing mode of operation, press the EXT key.
With the vertical arrow keys select the transmission direction and the rest, press ENTER, then use the arrow
keys to select the program, and press ENTER again. See the control’s User’s Manual for more details.
This way you also select the FE1 protocol and ensure blockwise transfer with data checking. An
appropriate machine-parameter set is the activated automatically.
Starting transmission
Press PGM MGT and open the double window. Go to the new window, use the arrow keys to select
RS232, and show files.
Copy the programs from the control window to the PC window and vice versa.
8
5 LSV-2 protocol using the TNC 426 as an example
This protocol is available starting with the TNC 415B.
This way the transfer can be controlled by the PC.
Preparing the PC
Select “Standard” and click
to create a new LSV-2 connection type with NEW.
LSV-2 can determine the baud rate
automatically.
9
6 Messages/Special Cases
Cable lengths
For cable lengths greater than 20 m, start with 9600 baud and test each next higher speed.
Use MOD and the code number to set the following data set for reloading mode:
M V Meanin
7 5 STX,
2 1 E, H (input as plain-language
2 1 A, H (output as plain-language
2 2 SOH,
2 5 NAK,
2 1 7 data bits, 1 stop bit, even parity, Xon/Xoff
2 1 Blockwise transfer active
2 4 EOT
2
In order to avoid problems with transmission, clearing the NC memory and setting a lower data transfer
rate (e.g. 2400 baud) is recommended.
10
Please contact your machine tool builder for details. Machine manufacturers can find a comprehensive
description of our V-24 data interface on our website under “Service Manual.”
Preparing the PC
Start TNCserver as described under the FE protocol
Please note: Nothing is stored permanently!
For example, calling of labels and programs is not permitted.
See the User’s Manual for details on programming and operation.
Execution with TNC 155, TNC 355, TNC 360, TNC 310, TNC 370, TNC 407,
TNC 415, TNC 425…
In the AUTOMATIC mode of operation, select the program to be run with the EXT key, ENTER,
START.
11