Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
TNC 416
TNC 406
TNC 306
March 2000
286 18x
280 62x
260 03x
260 05x
208 829-21 2.1 3/2000 S Printed in Germany Subject to change without notice
(208 829-E8)
Preface
This Technical Manual is intended for manufacturers and distributors of machine tools. It contains all
necessary information for assembly, electrical installation, commissioning and PLC-programming for
the HEIDENHAIN TNC 406 and TNC 306 contouring controls.
Whenever HEIDENHAIN improves the hardware or software in these controls you will receive a free
delivery of updated information. Please insert this updated information into your manual without
delay. This will ensure that your manual always reflects the current revision level.
You can use excerpts from this manual for your machine documentation. Enlarging the manual
format (17 cm x 24 cm) by a factor of 1.225 will produce pages in A4 format.
No documentation can be perfect. This manual undergoes continual change and will benefit from
your impulses and suggestions for improvement. Please help us by letting us know your ideas.
3/97
1
2
3
4
5
6
7
8
9
10
11
Introduction Contents
1 Hardware concept
2-2
2-3
3 Software
3.1 NC Software
2-8
2-8
2-8
2-9
2-9
3.2
PLC Software
2-10
3.3.
EPROM sockets
2-11
3/2000
Hardware concept
2-1
1 Hardware concept
The HEIDENHAIN TNC 416/TNC 406/TNC 306 controls are designed for ram-type electrical
discharge machines.
The TNCs consists of several different assemblies. The main component is the logic unit.
The logic unit is connected to the other assemblies and to peripheral equipment by means of
connecting cables.
Encoders
Nominal value
outputs
Short circuit/
touch probe
Electronic handwheel
Common
data area
NC
PLC
Data interfaces
PLC inputs
PLC outputs
Analogue input
for gap control
The logic unit contains the circuitry for both the NC and the PLC sections of the control. The
common data area contains the machine parameters, PLC markers and words. The machine
parameters define the machine hardware configuration (traverse ranges, acceleration, number of
axes, etc.). The PLC markers and words are used for the exchange of information between the NC
and the PLC.
2-2
Hardware concept
3/2000
Components
TNC 306
LE 406:
LE 406 logic unit
TE 400 keyboard unit
BC 110 14 color CRT
640 x 400 pixels
LE 416:
LE 416 logic unit
TE 420 keyboard unit
BF120 color flat screen 10,4
or
BC 120 15 color CRT
640 x 480 pixels
Control type
Program memory
3/2000
2-3
Program input
Manual
Electronic handwheel
Jog positioning
Positioning with MDI
Program run, single block
Program run, full sequence
Programming and editing
Test run (logical and graphical)
Input resolution
1 m
display resolution
0,1 m
Programmable functions
2-4
TNC 306
1 m
3/2000
TNC 306
cos,
Mathematical functions (=, +, , , , sin,______
angle from r * sin and r * cos , , a + b;
variable parameter comparison (=,,>,<)
indexed data assignment
output of parameter values over RS-232-C data interface
Data interface
RS-232-C./.V.24
Baud rate 38 000; 19 200; 9600; 4800; 2400; 1200; 600; 300; 150; 110
RS-422 / V.11 (assigned to PLC)
Cycle times
Block processing time
15 ms
60 ms
4 ms
40 ms
3/2000
2-5
TNC 306
Encoders
HEIDENHAIN incremental linear encoders, optionally with distancecoded reference marks, grating period 0.01/0.02/0.1 mm (or rotary
encoders)
Control inputs
LE 406:
6 encoder inputs (4 sinusoidal,
2 square-wave inputs)
LE 416:
5 sinusoidal encoder inputs
1 analog input for eroding gap
signal
Control outputs
31 PLC outputs
Additional 31 PLC outputs on PLC board PL 410 B (optional)
Integral PLC
24 Vdc
2-6
3/2000
Power consumption
Ambient temperature
Weight
3/2000
TNC 306
NC:
6W
PLC:
6W
BC110: 70W
BC120: 80W
BF 120: 15W
PL 410 B: 25 W (approx.)
NC:
Operation:
0 to 45 C
Storage:
30 to 70 C
LE 416
LE 406
TE 400
BC 110
BC 120
BF 120
PL 410 B
6 kg
8.5 kg
2.4 kg
11 kg
14 kg
3 kg
1.5 kg
27 W (approx.) with
BE 212
BF 110: 33 W
PLC:
2 4 W (approx.)
(BF 110: 0 to 40 C)
LE 360C
TE 355
BF 110
BE 212
PL 410 B
8 kg
1.6 kg
1.7 kg
11 kg
1.5 kg
2-7
3 Software
The logic unit contains separate software for the NC section and the PLC section.
The software is identified by an 8-digit number. After the control is switched on, the NC and
PLC software numbers are displayed on the screen. The software number can also be directly requested
with the aid of the MOD function.
3.1 NC Software
3.1.1 NC Software number
The 8-digit NC software number identifies the control model, the dialog language
(language of the country) and the software version.
2 8 6 1 8 x -01
Software type
TNC 416
National language
0= English
1= English 2= English
German
German
German
French
Swedish
Czech
talian
Finnish
res.
Software version
2 8 0 6 2 x -01
Software type
TNC 406
National language
0= English
1= English 2= English
German
German
German
French
Swedish
Czech
Italian
Finnish
res.
Software version
2 6 0 0 3 x -01
Software type
TNC 306
National language
0= English
1= Czech
2= French
3= Italian
Software version
In addition to the above languages the TNC 306 can always use German, which may be
selected via machine parameter MP7230.
2-8
Software
3/2000
Hardware Id.-Nr.
Software type
TNC 416
286 18x
TNC 406
288 513 15
280 62x
264 085 96
270 641 25
270 642 25
260 03x
260 03x
260 05x
Release date
TNC 416
286 18x-01
286 18x-02
286 18x-03
286 18x-04
3/99
4/99
4/99
2/2000
Software version
Release date
TNC 406
280 62x-01
280 62x-02
280 62x-03
280 62x-04
280 62x-05
280 62x-06
280 62x-07
280 62x-08
280 62x-09
280 62x-10
3/94
10/94
11/95
11/96
2/97
10/98
12/98
3/99
12/99
2/2000
3/2000
Software
2-9
Software version
TNC 306
260 03x-03
260 03x-04
260 03x-05
260 03x-06
260 03x-07
260 03x-08
260 03x-09
260 03x-10
260 03x-11
260 03x-12
260 03x-13
260 03x-14
260 03x-15
260 03x-16
Release date
2/92
3/93
8/93
11/93
3/94
6/94
6/94
11/94
2/95
6/95
11/95
2/96
11/96
1/97
Software version
TNC 306
260 05x-03
260 05x-04
260 05x-05
260 05x-06
260 05x-07
260 05x-08
260 05x-09
260 05x-10
260 05x-11
260 05x-12
260 05x-13
260 05x-14
260 05x-15
260 05x-16
Release date
2/92
3/93
8/93
11/93
3/94
6/94
6/94
11/94
2/95
6/95
11/95
2/96
11/96
1/97
2-10
Software
3/2000
3/2000
Software
2-11
2-12
Software
3/2000
34
34
34
34
1.4 Options
34
2 Installation
2.1 Electrical noise immunity
36
36
37
2.3 Humidity
38
38
38
2.5.1
Logic unit
2.5.2
2.5.3
39
312
312
312
3 Overview of connections
313
4 Power supply
4.1 Overview
317
317
4.1.1
NC power supply
318
4.1.2
319
4.1.3
Buffer battery
321
322
324
4.3.1
324
4.3.2
325
4.3.3
326
5 Measuring systems
5.1 Linear measuring systems
329
329
329
330
5.3.1
Connector assignments
330
332
5.4.1
Connector assignments
332
333
334
337
337
3/99
Hardware components
31
340
341
341
9 Data interface
9.1 RS-232-C/V.24 data interface
343
343
344
10 Handwheel input
10.1 Portable handwheel HR 410
345
345
348
11 PLC inputs/outputs
11.1 Technical data
350
350
351
11.2.1
PLC output
352
354
11.3.1
355
358
13 TNC keyboard
360
14 Cable overview
14.1 Cable overview TNC 416
362
362
363
364
32
Hardware components
3/99
15 Mounting dimensions
15.1 LE 416
366
366
15.2 LE 406
367
15.3 TE 420
368
15.4 TE 400
369
15.5 BC 120
370
15.6 BF 120
371
15.7 BC 110 B
372
15.7.1
373
LE 360 C
374
15.8.1
TE 355 A
374
15.8.2
TE 355 B
375
376
15.9.1
BE 212
376
15.9.2
BF 110
377
15.10
378
15.11
Handwheel HR
379
379
383
383
15.12
384
3/99
Cable adapter
Hardware components
33
1 Hardware components
1.1 Components of the TNC 416
LE 416 Logic Unit for BC 120
for BF 120
1.4 Options
PL 410 B PLC I/O board
Handwheel HR 410
Touch Probe System TS 220
34
Hardware components
3/99
3/99
Hardware components
35
2 Installatio n
2.1 Electrical noise immunity
Please note that the vulnerability of electronic equipment to noise increases with faster signal
processing rates and higher sensitivity. Please protect your equipment by observing the following
rules and recommendations.
Noise voltages are mainly produced and transmitted by capacitive and inductive coupling. Electrical
noise can be picked up by the inputs and outputs to the equipment, and by the cabling.
A minimum distance between the logic unit (and its leads) and interfering equipment > 20 cm.
A minimum distance between the logic unit (and its leads) and cables carrying interference
signals > 10 cm.
(Where signal cables and cables which carry interference signals are laid together in metallic
ducting, adequate decoupling can be achieved by using a grounded separation shield)
Screening according to DIN VDE 0160.
Potential compensating lines 6 mm (see grounding plan).
Use of original HEIDENHAIN cables, connectors and couplings.
36
Installation
3/99
Forced-air cooling by blowing external air through the control cabinet to replace the internal air. In
this case the ventilator fan must be mounted so that the warm air is extracted from the control
cabinet and only filtered air can be drawn in. HEIDENHAIN advises against this method of
cooling, since the functioning and reliability of electronic assemblies are adversely affected by
contaminated air (fine dust, vapors, etc.). In addition to these disadvantages, an inadequately
serviced filter can lead to a loss in cooling efficiency. Regular servicing is therefore essential.
Correct
Incorrect
LE
Obstructive
elements
LE
Heat generating
elements
3/99
Installation
37
2.3 Humidity
Permissible humidity:
In tropical areas it is recommended that the TNC remain permanently switched on to prevent
condensation on the circuit boards.
38
Installation
3/99
5.91"
>3.54"
Air outlet
>4.72"
Air inlet
>3.54"
7.87"
3/99
Installation
39
80
40
40
C Air outlet
100
Minimum clearance
for servicing!
recommended: =
approx. 250 mm
*
30
*
Maintain clearance
for screwdriver
C
Air inlet
100
Connecting cables
must not hinder
swivel movement
of the control
30
160
246
160
C
30
60
83
C
40
*
PL
C
32
Illustration of
max. swivel range.
The minimum angle of
swivel for exchange
of subassembly should
be at least 90.
145
40
270
40
310
40
Installation
3/99
>577
>110
80
80
40
40
C
Air
outlet
*
30
100
Minimum clearance
for servicing!
recommended:=
approx. 250 mm
Maintain clearance
for screwdriver
Air
inlet
30
Connecting cables
must not hinder
swivel movement
of the control
218.5
100
160
132.5
C
30
60
83
40
*
PL
C
32
Illustration of
max. swivel range.
The minimum angle of
swivel for exchange
of subassembly should
be at least 90.
145
40
270
40
3/99
40
Installation
311
max. 45 C
max. 40 C
The VDU must be installed with a minimum clearance of 25 mm to the housing. It is particularly
recommended that a large area is left free above the unit for heat escape.
Temperature is measured at a distance of 25 mm to the housing. The above mentioned
temperatures must not be exceeded.
When installing the BC 120/BC 110/BE 212, remember that this VDU is very sensitive
to magnetic interference. The image position and geometry can be disturbed by stray
magnetic fields; alternating fields can cause periodic movement or image distortion.
For this reason, keep a minimum distance of 0.5 m between the VDU housing and sources of
interference (permanent magnets, motors, transformers, etc.)
312
Installation
3/99
3 Overview of connections
LE 416
X1
X2
X3
X4
X6
X8
X12
X13
X21
X22
X23
Handwheel interface
X41
X42
X43
X44
X45
X46
X47
X48
X49
120)
X31
PLC output
PLC input
BC 120 VDU (alternative to BF 120)
PLC power supply
TNC keyboard
Machine operating panel
PLC expansion
PLC analog input
BF 120 flat panel (alternative to BC
NC power supply
Interfaces X1, X2, X3, X4, X6, X8, X12, X21, X22, X23, X41, X42, X43, X45, X46, X47, X49
comply with the recommendations in VDE 0160, 5. 88 for separation from line power.
Danger to internal components!
Do not engage or disengage any connections while the unit is under power.
The outputs at connection X.... (indicate pin number if appropriate) are metallically isolated
from the device electronics by means of optocouplers.
3/99
Overview of connections
313
LE 406
X1
X2
X3
X4
X5
X6
X8
X12
X21
X22
X22
X23
X23
X41
X42
X43
X45
X46
X47
PLC output
PLC input
VDU BC 110
TNC keyboard TE 400
Machine operating panel
PLC I/O board PL 410 B
X31
X44
Signal ground
X1
X12
24V
X2
X44
X41 X45
X8
X31
X3
X21
X4
X42 X46
X5
X6
X47
X43
Interfaces X1, X2, X3, X4, X5, X6, X8, X12, X21, X22, X23, X41, X42, X43, X45, X46 and X47
comply with the recommendations in VDE 0160, 5. 88 for separation from line power.
Danger to internal components!
Do not engage or disengage any connections while the unit is under power.
The outputs at connection X.... (indicate pin number if appropriate) are metallically isolated
from the device electronics by means of optocouplers.
314
Overview of connections
3/99
LE 306
X21 X24
X1
X2
X3
X4
X6
X25
X8
X9
VDU BE212/BF110
X11
X12
X1
X11
24V
X2
X12
X31
X3
X4
X22
X8
X26
X23 X27
X9
X21
X22
X23
X25
X26
X27
PLC output
PLC input
TNC keyboard TE355
Data interface RS-232-C/V.24
PLC I/O board PL 410 B
Machine operating panel
X31
X24
Signal ground
Interfaces X1, X2, X3, X4, X6, X8, X9, X11, X12, X21, X22, X23, X25, X26, and X27 comply
with the recommendations in VDE 0160, 5. 88 for separation from line power.
Danger to internal components!
Do not engage or disengage any connections while the unit is under power.
The outputs at connection X.... (indicate pin number if appropriate) are metallically isolated
from the device electronics by means of optocouplers.
3/99
Overview of connections
315
316
Overview of connections
3/99
4 Power supp ly
4.1 Overview
The supply voltages must meet the following specifications:
Unit
Supply
voltage
Voltage range
LE 416
400 Vac
24 V DC
(VDE 0551)
lower limit
LE 406
LE 306
NC
Max. current
consumption
Power
consumption
35 W
LE 406 1.3 A
LE 306 1.5 A
24 W
28.8 to 36 W
(the BE 212 is
also supplied)
1.8 A
when half of the
inputs/ outputs
are switched on
simultaneously
Approx. 6 W
when approx. 1/3 of
inputs/ outputs are
switched on
simultaneously
PL 410 B
21 A
when half of the
inputs/ outputs
are switched on
simultaneously
Approx. 25 W
when approx. 1/3 of
inputs/ outputs are
switched on
simultaneously
BF 110
24 W typical
Approx. 1 A
with full display 32 W max.
BF 120
24 W typical
Approx. 1 A
with full display
20.4 V - - -
upper limit
PLC
BC 110
BC 120
BE 212
24 V DC
31 V - - - 1)
Base
insulation acc.
to VDE 0160)
70 W
80 W
3/99
Power supply
317
Assignment
Protective ground (YL/GN)
U1
Phase 1
U2
Phase 2
50 to 60 Hz
UZ
Do not use
+UZ
Do not use
LE 406/LE 306
Pin number
X 31
Assignment
1
2
+ 24 V DC
0V
U
1.5 Vpp
24 V
318
Power supply
3/99
X44
X24
Assignment
+ 24 V DC, switched off by EMERGENCY STOP
+ 24 V DC, not switched off by EMERGENCY STOP
0V
Assignment
0V
+24 V power for logic and for "Control is operational"
+24 V power for outputs
+24 V power for outputs
+24 V power for outputs
+24 V power for outputs
PLC output
O32 to O39
O40 to O47
O48 to O55
O56 to O62
The PLC inputs and outputs on the LE and PL 410 B are powered by the 24 V machine control voltage
supply.
Danger to internal components!
Voltage sources for external circuitry must conform to the recommendations in VDE
0160, 5. 88 for low-voltage electrical separation.
Superimposed AC components, such as those caused by a three-phase bridge rectifier without smoothing,
are permissible up to a ripple factor of 5% (see DIN 40110/10.75, Section 1.2). This means an absolute
upper voltage limit of 32.6 V and an absolute lower voltage limit of 18.5 V:
U
32.6 V
31 V
20.4 V
18.5 V
The 0 V line of the PLC power supply must be grounded with a ground lead ( 6 mm2) to the main
signal ground of the machine.
3/99
Power supply
319
320
Power supply
3/99
LE 416
Battery type:
Three AA-size batteries, leak-proof
IEC designation: LR6
LE 406/LE306
Battery type:
Three AA-size batteries, leak-proof
IEC designation: LR6
3/99
Power supply
321
F 3.15 A
Frequency range
50 to 60 Hz
Power consumption
80 W
BC 110
X3 = Mains supply connection
Mains supply voltage 110 V
220 V
170V to 264 V
Fuse rating
F 3.15 A
F 3.15 A
Frequency range
50 to 60 Hz
Power consumption
70 W
Connection
L1
N
Assignment
Live (BK)
Neutral (BL)
Protective earth (GN/YL)
Assignment
Do not use
Do not use
BE 212
The BE 212 visual display unit is powered through the LE 306 (connector X9).
Danger of electrical shock!
The BE 212 and BC 110 generate high voltages.
Unplug the power cord before opening the housing.
322
Power supply
3/99
BF 120/BF 110
X1 power supply
Pin number
1
2
Assignment
+ 24 V
0V
3/99
Power supply
323
3/99
Grounding plans
324
3/99
Grounding plans
325
3/99
Grounding plans
326
3/99
Power supply
327
328
Power supply
3/99
5 Measuring systems
HEIDENHAIN contouring controls are designed for the installation of incremental linear and angular
measuring systems.
The control measures the actual position with a measuring step of 0.001 mm or 0.001. Measuring
systems with a graduation period of 0.001 mm or 0.001 to 1 mm or 1 may be used.
It does not matter whether the measuring system has one or several reference marks. However,
HEIDENHAIN recommends measuring systems with distance-coded reference marks, since this
reduces the traversing distance when homing on the reference marks to a minimum. See chapter
"Machine Integration."
3/99
Measuring systems
329
%xxxxx
0 = 1VPP
1 = 11A
Assignment
I1+
I1
I2+
I2
I0+
I0
+ 5 V (UP)
0 V (UN)
Inner shield
Housing
330
Measuring systems
3/99
LE 416
X1, X2, X3, X4 and X6 Encoder (1 VPP/11A)
Logic unit
Encoder cable
D-sub
terminal
(male) 15-pin
Assignment
1 VPP
Assignment
11A
D-sub
connector
(female) 15pin
1 VPP
11A
+ 5 V (UP)
+5V
Brown/Green
Brown
0 V (UN)
0V
White/Green
White
A+
I1+
Brown
Green
I1
Green
Yellow
0V
0V
B+
I2+
Gray
Blue
I2
Pink
Red
0V
0V
+5V
+5V
Blue
10
R+
I0+
10
Red
11
0V
0V
11
White
12
I0
12
Black
13
0V
0V
13
14
Do not use
Do not use
14
15
Do not use
Do not use
15
Housing
External
shield
3/99
White/Brown
(internal shield)
Gray
Pink
Violet
External shield
Measuring systems
External shield
331
Assignment
Ua1
Ua1
Ua2
Ua2
Ua0
Ua0
UaS
+ 5 V (UP)
12
+ 5 V (UP)
11
0 V (UN)
10
0 V (UN)
9 (contact spring)
shield = housing
332
Measuring systems
3/99
X8 Pin 2 220
0V
Pin 10
100 nF
Time constant:
T = 22 s (220 100 F)
5T = 110 s
Since the output impedance Ra of the driver stage affects the entire time constant, a low output
impedance is necessary (for example 33 ).
3/99
Connecting Cable
D-sub terminal
(female) 15-pin
Assignment
D-sub
connector
(male) 15-pin
Color
BN
BN/GN
YL
RD/BL
PK
GY/PK
RD
VI
WH
10
0V Analog input
10
WH/GY
11
11
GN
12
Not used
12
13
13
GY
14
14
BL
15
15
BK
Housing
External shield
Housing
External shield
No more than one intermediate terminal clamp is allowed on the connecting cable to the nominal
value outputs. The clamp must be made in a grounded connection box. This is necessary when the
cable must branch to physically separate servo inputs. It is only possible to ground the shielding of
the servo leads in this way. If required, suitable connection boxes are available from HEIDENHAIN
with the Id.-Nr. 251 249 01.
Connection box
The casing of the connection box must be electrically connected with the frame of the machine.
The 0 V of the nominal value differential input must be joined to signal ground, (cable cross-section
6 mm, see also under "Grounding plan").
334
Suggested solution for connecting and wiring the shielding in the connection box:
Insulated against housing
LE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
IV
S
GAP
SERVO
Pin number
Assignment
1
2
3
4
5
6
7
8
11
12
13
14
15
16
Analog output
Analog output 0V
Analog output
Analog output 0V
Analog output
Analog output 0V
Analog output
Analog output 0V
Analog input
Analog input 0V
Screen connection
Screen connection
Screen connection
Screen connection
3/99
X-axis
X-axis
Y-axis
Y-axis
Z-axis
Z-axis
IVth axis
IVth axis
Gap signal
Gap signal
336
BE 212
0 V power supply
BF 110
BC 110
GND
Not used
Not used
Not used
Not used
4
5
6
7
8
9
10
11
12
13
14
15
Housing
0 V power supply
V SYNC
H SYNC1
0 V Signal
Video
3/99
Not used
Not used
Video
V SYNC
0 V Signal
H SYNC 2
CLOCK
Outer shield = Unit housing
Not used
Not used
Not used
R
GND
V SYNC
H SYNC1
GND
Not used
Not used
G
B
BC 120
R
Do not use
Do not use
GND
GND
GND
Do not use
GND
GND
Do not use
HSYNC
VSYNC
Do not use
337
BF 120
D-sub connector
(female) 62-pin
(male) 62-pin
(female) 62-pin
3-row
3-row
3-row
D-sub terminal
Assignment
D-sub connector
Assignment
0 volt
CLK.P
HSYNC
BLANK
VSYNC
0 volt
R0
R1
R2
10
R3
10
10
10
11
0 volt
11
11
11
12
G0
12
12
12
13
G1
13
13
13
14
G2
14
14
14
15
G3
15
15
15
16
0 volt
16
16
16
17
B0
17
17
17
18
B1
18
18
18
19
B2
19
19
19
20
B3
20
20
20
21
0 volt
21
21
21
22
0 volt
22
22
22
23
CLK.P
23
23
23
24
HSYNC
24
24
24
25
BLANK
25
25
25
26
VSYNC
26
26
26
27
0 volt
27
27
27
28
R0
28
28
28
29
R1
29
29
29
30
R2
30
30
30
31
R3
31
31
31
32
0 volt
32
32
32
33
G0
33
33
33
34
G1
34
34
34
35
G2
35
35
35
338
3/99
D-sub terminal
D-sub connector
D-sub connector
(female) 62-pin
Assignment
D-sub connector
(male) 62-pin
Assignment
(female) 62-pin
3-row
3-row
3-row
36
G3
36
36
36
37
0 volt
37
37
37
38
B0
38
38
38
39
B1
39
39
39
40
B2
40
40
40
41
B3
41
41
41
42
0 volt
42
42
42
43
DISP.LOW
43
43
43
44
DISP.LOW
44
44
44
45
DISP.ON
45
45
45
46
DISP.ON
46
46
46
47
C0
47
47
47
48
C1
48
48
48
49
C2
49
49
49
50
C3
50
50
50
51
C4
51
51
51
52
C5
52
52
52
Do not use
Housing
Housing
3/99
External shield
Housing
External shield
339
Signal designation
Inner shield (0 V)
Ready/standby
Start
+15 V 10 % (UP)
+ 5 V 5 % (UP)
Battery warning
0 V (UN)
Trigger signal
10
Trigger signal
2, 11 to 15
not used
340
3/99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Short-circuit-signal1)
2.2 k
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Standby
+15V 10% (U P)
+ 5V 5% (U P)
Battery warning
0V (UN)
Trigger signal
1)
Trigger signal
D-sub
connector
(male) 15-pin
Coupling on
mounting base
6-pin
Quick
disconnect
6-pin
Gray
Pink
Gray
Brown/Green
Brown
Gray
Gray
White/Green
White
Green
Green
10
Yellow
Yellow
Housing
Housing
External shield
3/99
341
342
3/99
X25
Connecting cable
Adapter block
Connecting cable
Id. Nr. 274 545 01
D-sub
D-sub
D-sub
D-sub
D-sub
D-sub
terminal
connector
connector
terminal
terminal
connector
connector
(female)
(male)
(female) 25-
(male)
(female)
(male)
(female)
25-pin
25-pin
pin
25-pin
25-pin
25-pin
25-pin
Assignment
GND
WH/BN
WH/BN
External
External
shield
shield
RXD
Green
Yellow
TXD
Yellow
Green
CTS
Gray
Pink
RTS
Pink
Gray
DTR
Blue
20
20
20
20
Brown
Signal GND
Red
Red
20
DSR
20
Brown
Blue
20
8 to 19,
Do not use
Housing
Housing
Housing
Housing
21 to 25
Housing External
shield
Housing
External
shield
External
shield
Housing
The interface complies with the recommendations in IEC 742 EN 50 178 for separation from
line power.
If your peripheral unit has a connector layout that differs from the above, the HEIDENHAIN
connecting cable cannot be used.
3/99
Data interface
343
D-sub
Adapter Block
D-sub
D-sub
D-sub
D-sub
terminal
connector
connector
terminal
terminal
(female)
(male)
(female)
(male)
(female)
15-pin
15-pin
15-pin
15-pin
15-pin
Assignment
Connecting Cable
Chassis GND
Black
External
shield
RXD
Blue
CTS
Gray
TXD
White
RTS
Green
DSR
White/Green
DTR
Green/Pink
Signal GND
Black
RXD
Red
10
CTS
10
Pink
10
10
10
11
TXD
11
Brown
11
11
11
12
RTS
12
Yellow
12
12
12
13
DSR
13
Brown/Green 13
13
13
14
DTR
14
Red/Blue
14
14
14
15
Do not assign
15
Violet
15
15
15
Housing
External
Housing
Housing
Housing
Housing
shield
The interfaces complies with the recommendations in IEC 742 EN 50 178 for separation
from line power.
The following cable type must be used for the connection to the peripheral unit:
LIYCY 7 x 2 x 0.14 Cu
344
Data interface
3/99
10 Handwhee l input
The HR 130, HR 410 handwheels can be connected to the TNC 416/TNC 406 and
TNC 306. See also chapter "Machine Integration."
LE 416/LE 406 connector X23
LE 306 connector X11
Pin number
LE X23 or X11
CTS
0 V (UN)
RTS
+ 12 V (UP)
DTR
TxD
RxD
DSR
Housing
Outer shield
3/99
Handwheel input
345
Extension cable
Adapter cable
Connecting cable
HR 410
D-sub
D-sub
D-sub
Coupling
Connec-
Connec-
Connec-
connec-
connec-
connec-
on mount-
tor
tor
tor
tor
tor
tor
ing base
(male)
(female)
(male)
(male)
(female)
(male)
(female)
18-pin
18-pin
18-pin
9-pin
9-pin
9-pin
18-pin
Housing
Shield
Housing
Housing
Shield
Housing
Housing
Shield
Housing
Housing
White
White
White
Brown
Brown
Brown
Yellow
Yellow
Yellow
Gray
Gray
Gray
Green
Green
Green
WH/BK
YL/BK
WH/RD 5
WH/BL
WH/GN 2
WH/YL
WH/BN 1
WH/BN 3
Contact 1 + 2
WH/YL
Contact 2 (left)
WH/GN 1
Contact 1 (right)
WH/BL
Contact 1
WH/RD 2
Contact 1
YL/BK
Contact 2
WH/BK
Contact 2
Shield
Permissive button
EMERGENCY STOP
The adapter includes plug-in terminal strips for the contacts of the EMERGENCY STOP button and
permissive button (maximum load 1.2 A, 24 V).
346
Handwheel input
3/99
Internal wiring of contacts to permissive buttons and EMERGENCY STOP button of the HR 410:
Right
Left
The plug-in terminal strips are included in delivery with the adapter cable. If you have an immediate
need for these terminal strips before the adapter cable, they can be ordered separately:
Plug-in terminal strip, 3-pin
Id. Nr. 266 364 06
Plug-in terminal strip, 4-pin
Id. Nr. 266 364 12
3/99
Handwheel input
347
D-sub connector
(female) 9-pin
D-sub connector
(male) 9-pin
Housing
Shield
Housing
Housing
Shield
White
White
Brown
Brown
Yellow
Yellow
Green
Green
Gray
348
Handwheel input
3/99
3/99
Handwheel input
349
13 V to 30.2 V
20 V to 3.2 V
3.8 mA to 8.9 mA
1.0 mA at Ue = 3.2 V
PLC outputs
Open-collector outputs with current limiting
Logic unit
Min. output potential
for 1-signal
Nominal operating
current per output
PL 410B
1.2 A
350
PLC inputs/outputs
3/99
D-sub connector
(female) 37-pin
Assignment
D-sub connector
(male) 37-pin
I0
Gray/Red
I1
Brown/Black
I2
White/Black
Green/Black
I4
Brown/Red
I5
White/Red
I6
White/Green
I7
Red/Blue
I8
Yellow/Red
10
I9
10
Gray/Pink
11
I10
11
Black
12
I11
12
Pink/Brown
13
I12
13
Yellow/Blue
14
I13
14
Green/Blue
15
I14
15
Yellow
16
I15
16
Red
17
I16
17
Gray
18
I17
18
Blue
19
I18
19
Pink
20
I19
20
White/Gray
21
I20
21
Yellow/Gray
22
I21
22
Green/Red
23
I22
23
White/Pink
24
I23
24
Gray/Green
25
I24
25
Yellow/Brown
26
I25
26
Gray/Brown
27
I26
27
Yellow/Black
28
I27
28
White/Yellow
29
I28
29
Gray/Blue
30
I29
30
Pink/Blue
31
I30
31
Pink/Red
32
I31
32
Brown/Blue
33
Do not use
33
Pink/Green
34
Do not use
34
Brown
35
Do not use
35
Yellow/Pink
36
Do not use
36
Violet
37
Do not use
37
White
Housing
External shield
Housing
External shield
3/99
PLC inputs/outputs
351
Connecting cable
Id. Nr 244 005 .. / Id. Nr. 263 954 ..
D-sub terminal
(female) 37-pin
Assignment
D-sub connector
(male) 37-pin
O0
O1
Brown/Black
O2
White/Black
O3
Green/Black
O4
Brown/Red
O5
White/Red
O6
White/Green
O7
Red/Blue
O8
Yellow/Red
Gray/Red
10
O9
10
Gray/Pink
11
O10
11
Black
12
O11
12
Pink/Brown
13
O12
13
Yellow/Blue
14
O13
14
Green/Blue
15
O14
15
Yellow
16
O15
16
Red
17
O16
17
Gray
18
O17
18
Blue
19
O18
19
Pink
20
O19
20
White/Gray
21
O20
21
Yellow/Gray
22
O21
22
Green/Red
23
O22
23
White/Pink
24
O23
24
Gray/Green
25
O24
25
Yellow/Brown
26
O25
26
Gray/Brown
27
O26
27
Yellow/Black
28
O27
28
White/Yellow
29
O28
29
Gray/Blue
30
O29
30
Pink/Blue
31
O30
31
Pink/Red
32
Do not use
32
Brown/Blue
33
Do not use
33
Pink/Green
34
Control-is-ready signal
34
Brown
35
35
Yellow/Pink
36
36
Violet
37
37
White
Housing
External shield
Housing
External shield
352
PLC inputs/outputs
3/99
3/99
PLC inputs/outputs
353
1st PL 410 B
D-sub
D-sub
X1 D-sub
terminal
connector
connector
terminal
(male)
(female)
(male)
(female)
25-pin
25-pin
25-pin
25-pin
0V
0V
0V
Serial IN 2
Address 6
Assignment
0V
Assignment
Violet
2
0V
Red/Blue, Brown/Green,
Yellow/Brown, Gray/Brown,
Pink/Brown
0V
Brown/Blue, Brown/Red,
Brown /Black, Yellow/Gray,
Yellow/Pink
Do not use
Address 6
White/Green
INTERRUPT
Pink/Green
INTERRUPT
RESET
Green/Blue
RESET
WRITE EXTERNAL
White/Blue
Gray/Green
WRITE
EXTERNAL
WRITE EXTERNAL
White/Red
WRITE EXTERNAL
10
Address 5
10
Gray/Pink
10
10
Address 5
11
Address 3
11
Blue
11
11
Address 3
12
Address 1
12
Green
12
12
Address 1
13
Do not use
13
13
13
Do not use
14
PCB identifier 4
14
14
14
+ 12 V
15
15
+ 12 V
Yellow/Blue, Pink/Blue,
Yellow/Black
15
PCB identifier 3
15
Yellow/Red, Gray/Red,
Pink/Red
16
Do not use
16
Gray/Blue
16
16
PCB identifier 2
17
Do not use
17
Green/Black
17
17
PCB identifier 1
18
Address 7
18
White/Yellow
18
18
Address 7
19
Serial IN 1
19
White/Black
19
19
Serial IN 1
20
EMERGENCY STOP
20
Green/Red
20
20
EMERGENCY STOP
21
Serial OUT
21
White/Gray
21
21
Serial OUT
22
Serial OUT
22
White/Pink
22
22
Serial OUT
23
Address 4
23
Black
23
23
Address 4
24
Address 2
24
Gray
24
24
Address 2
25
Address 0
25
White
25
25
Address 0
Housing
External shield
Housing
External shield
Housing
Housing
External shield
354
PLC inputs/outputs
3/99
X4
Pin number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Assignment
I64
I65
I66
I67
I68
I69
I70
I71
I72
I73
I74
I75
I76
I77
I78
I79
X5
Assignment
I80
I81
I82
I83
I84
I85
I86
I87
I88
I89
I90
I91
I92
I93
I94
I95
X6
Pin number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
3/99
Pin number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Assignment
I96
I97
I98
I99
I100
I101
I102
I103
I104
I105
I106
I107
I108
I109
I110
I111
Pin number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Assignment
I112
I113
I114
I115
I116
I117
I118
I119
I120
I121
I122
I123
I124
I125
I126
I127
PLC inputs/outputs
355
PLC outputs
Assignment of the grouped power supply:
Terminal
X9
X10
X11
X12
X13
X14
Assignment
0V
+24V PL supply and "Control is operational"
+24 V Supply
O32 - O39
+24 V Supply
O40 - O47
+24 V Supply
O48 - O55
+24 V Supply
O56 - O62
X7
X8
Pin number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Assignment
O32
O33
O34
O35
O36
O37
O38
O39
O40
O41
O42
O43
O44
O45
O46
O47
Pin number
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Assignment
O48
O49
O50
O51
O52
O53
O54
O55
O56
O57
O58
O59
O60
O61
O62
"Control is operational"
The analog inputs (X15 to X22) of the PL 410 cannot be evaluated in the LE 360 C! The PLC outputs
are powered in groups and are therefore switched off via EMERGENCY STOP in groups.
Danger to internal components!
Connect inductive loads only with a quenching diode parallel to the inductance.
356
PLC inputs/outputs
3/99
3/99
PLC inputs/outputs
357
Assignment
D-sub connector
(male) 37-pin
I128
I129
Brown/Black
I130
White/Black
I131
Green/Black
I132
Brown/Red
I133
White/Red
I134
White/Green
I135
Red/Blue
I136
Yellow/Red
Gray/Red
10
I137
10
Gray/Pink
11
I138
11
Black
12
I139
12
Pink/Brown
13
I140
13
Yellow/Blue
14
I141
14
Green/Blue
15
I142
15
Yellow
16
I143
16
Red
17
I144
17
Gray
18
I145
18
Blue
19
I146
19
Pink
20
I147
20
White/Gray
21
I148
21
Yellow/Gray
22
I149
22
Green/Red
23
I150
23
White/Pink
24
I151
24
Gray/Green
25
I152
25
Yellow/Brown
26
O0
26
Gray/Brown
27
O1
27
Yellow/Black
28
O2
28
White/Yellow
29
O3
29
Gray/Blue
30
O4
30
Pink/Blue
31
O5
31
Pink/Red
32
O6
32
Brown/Blue
33
O7
33
Pink/Green
34
0 V (PLC)
34
Brown
35
0 V (PLC)
35
Yellow/Pink
36
+24 V (PLC)
36
Violet
37
+24 V (PLC)
37
White
Housing
External shield
Housing
External shield
358
3/99
3/99
359
TE 420/TE 400
TE 355
RL0
RL0
Gray/Red
RL1
RL1
Brown/Black
RL2
RL2
White/Black
RL3
RL3
Green/Black
RL4
RL4
Brown/Red
RL5
RL5
White/Red
RL6
RL6
White/Green
RL7
RL7
Red/Blue
RL8
Do not use
Yellow/Red
10
RL9
Do not use
10
Gray/Pink
10
10
11
RL10
Do not use
11
Black
11
11
12
RL11
Do not use
12
Pink/Brown
12
12
13
RL12
Do not use
13
Yellow/Blue
13
13
14
RL13
Do not use
14
Green/Blue
14
14
15
RL14
Do not use
15
Yellow
15
15
16
RL15
Do not use
16
Red
16
16
17
RL16
Do not use
17
Gray
17
17
18
RL17
Do not use
18
Blue
18
18
19
RL18
Do not use
19
Pink
19
19
20
SL0
SL0
20
White/Gray
20
20
21
SL1
SL1
21
Yellow/Gray
21
21
22
SL2
SL2
22
Green/Red
22
22
23
SL3
SL3
23
White/Pink
23
23
24
SL4
SL4
24
Gray/Green
24
24
25
SL5
SL5
25
Yellow/Brown
25
25
26
SL6
SL6
26
Gray/Brown
26
26
27
SL7
SL7
27
Yellow/Black
27
27
28
RL19
Do not use
28
White/Yellow
28
28
29
RL20
Do not use
29
Gray/Blue
29
29
30
Not used
Do not use
30
Pink/Blue
30
30
31
RL21
Do not use
31
Pink/Red
31
31
32
RL22
Do not use
32
Brown/Blue
32
32
33
RL23
Do not use
33
Pink/Green
33
33
34
34
Brown
34
34
35
35
Yellow/Pink
35
35
36
+5 V override potentiometer
36
Violet
36
36
37
0 V override potentiometer
37
White
37
37
Housing
External shield
Housing
External shield
Housing
Housing
D-sub
connector
(male) 37-pin
X2 D-sub terminal
(male) 37-pin
Assignment
X45
360
Assignment
X23
D-sub connector
(female) 37-pin
D-sub terminal
(female) 37-pin
TNC keyboard
3/99
X1 on the TNC keyboard TE 420/TE 400 for the connecting the soft keys on the VDU
Pin Number
1
2
3
4
5
6
7
8
9
3/99
Assignment
SL0
SL1
SL2
SL3
Do not use
RL15
RL14
RL13
RL12
TNC keyboard
361
14 Cable overview
14.1 Cable overview TNC 416
3/99
Cable overview
362
TNC 406
TE 420
313 038-01
BC 120
313 037-01
40m
MB 420
293 757-12
PL 410 B
263 371-12
20m
23.02.99
263 954-xx
1m
Included with
visual display unit
Encoders
244 005-xx
60m
VL
312 878-xx
11 APP
310 125-xx
310 130-xx
VL
263 955-xx
Accessories
289 111-xx
296 466-xx
HR 410
50m 296 469-01
312 879-01 3 m
VL
309 774-xx
11 APP
HR 130
254 040-xx
VL
281 429-xx
4 inputs
LE 406
60m
11 APP VL
309 774-xx
289 208-xx
PC
274 545-xx
239 760-xx
2 inputs
RS-232-C Adapter
310 085-01
11 APP
20m
VL
298 400-xx
290 109-xx
244 005-xx
290 110-xx
263 954-xx
3/99
TS 220
293 488-xx
40m
20m
TTL
50m
TS 120
265 348-xx
274 543-xx
Terminal box
251 249-01
309 773-xx
TTL
20m
RS-422-C Adapter
310 086-01
PLC I / 0
Cable overview
363
TNC 306
BF 110
267 209-01
TE 355 A
255 015-06
or BE 212
or 242 370-03
PL 410 B
263 371-12
or TE 355 B
255 016 04
25m
20m
311 533-xx
311 531-xx
Encoders
23.02.99
263 954-xx
60m
Accessories
289 111-xx
11 APP
310 125-xx
310 130-xx
VL
311 534-xx
VL
311 532-xx
VL
263 955-xx
296 466-xx
312 879-01 3m
HR 410
50m 296 469-01
VL
281 429-xx
HR 130
254 040-xx
11 APP
VL
309 774-xx
20m
PC
239 760-xx
4 inputs
LE 306
60m
11 APP
VL
309 774-xx
274 545-01
RS-232-C Adapter
310 085 01
1 input
50m
VL
263 955-xx
263 954-xx
11 APP
TS 120
265 348-xx
274 543-xx
309 773-xx
244 005-xx
TS 220
293 488-xx
25m
TTL
VL
298 400-xx
Terminal box
251 249-01
TTL
20m
298 399-xx
20m
3/99
Machine
operating
panel
37-pin male connector
243 937-ZY
290 109-xx
244 005-xx
290 110-xx
263 954-xx
Cable overview
25m
364
3/99
Cable overview
365
15 Mounting dimensions
15.1 LE 416
366
Mounting dimensions
3/99
135.5+2
5.3"+.08"
132.5+2
5.2"+.08"
15
.6"
13
.51"
2670.2
10.5".008"
Mounting dimensions
392
15.43"
12.5
.5"
10,5
.41"
83.5
3.29"
9
.35"
367
25
1"
328
12.9"
Befestigungsmglichkeit
PL 400
MOUNTING POSSIBILITY
PL 400
2800.3
11.024".012"
7
.28"
20
.79"
10
.4"
3260.5
12.83.02"
456+2
17.95"+.08"
M3 (Einschraublnge max.3)
M3 (LENGTH OF ENGAGEMENT .12")
427
16.8"
15.2 LE 406
3/99
476+5
18.7"+.2"
15.3 TE 420
368
Mounting dimensions
3/99
371
14.6"
18
.7"
18
.7"
3880.2
15.276".008"
196
7.7"
232
9.1"
274
10.8"
2620.2
10.315".008"
105
4.1"
369
9.5
.37"
Montageflche
MOUNTING SURFACE
242+0.5
9.53"+.02"
10
DIA.4"
2620.2
10.315"0.2"
36+5
1.4"+.2"
8+1
DIA.3+.04"
25
1"
Mounting dimensions
47
1.8"
5.5
.217"
2
.08"
60.2
.236".008"
400
15.75"
0.5
.02"
M5
Frontplattenausschnitt
FRONT PANEL OPENING
380+0.5
14.96"+.02"
388+0.2
15.276"+.008"
15.4 TE 400
3/99
60.2
.236".008"
15.5 BC 120
370
Mounting dimensions
3/99
BF 120
12
.47"
5.6
DIA .22"
25
.98"
2460.3
9.685.012"
264
10.39"
10
.39"
400
15.75"
3760.3
14.803.012"
20
.79"
15.6
M5
80
3.15"
252
9.92"
367
14.45"
34
1.34"
11.5
.45"
12x45
.47"x45
248+1
9.763+.039"
8
.315"
3/99
70 6"
7
2.
R
2
.08"
380+1
14.96+.039"
3760.2
14.803.008"
5
.18"
238
9.37"
0.5
.02"
2460.2
9.685.008"
M5
Mounting dimensions
371
375
14.76"
10
DIA.4"
8.6
DIA.34"
max.275
MAX. 10.83"
60.2
.236".008"
15
.59"
2-0.5
.08"-.02"
19
.75"
Ansicht A
VIEW A
8-1"
.31"-.04"
372+2"
14.65"+.08"
M5
292+2"
11.50"+.08"
365
14.37"
Frontplattenausschnitt
FRONT PANEL OPENING
8-1"
.31"-.04"
20
.79"
Mounting dimensions
16
.63"
1
.04"
2
.08"
14
.55"
3880.2
15.275".008"
3080.2
12.162".008"
320
12.6"
60.2 1120.2
2760.2
.236".008" 4.41".008" 10.866".008"
15.7 BC 110 B
372
0
400
15.75"
X4
X3
X1
X2
3/99
456+2
18"+.08"
311.5
12.26"
411.5
16.2"
132.50,2
5.2".08"
.78"
DI
15
.6"
36
20
45
1.77"
13
.51"
100.5
3.95"
.32
7
.28"
R 50
R 2.4"
36
1.42"
10
4"
800.2
3.15".008"
392
15.43"
3400.2
13.39".008"
M3 (Einschraublnge max. 3)
12.5
.5"
10.5
.41"
Mounting dimensions
2100.2
8.26".008"
9
.35"
25
1"
427
16.8"
272.5
10.73"
Schutzerde M5
PROTECTION EARTH M5
Betriebserde M6
SYSTEM EARTH M6
83.5
3.3"
145
5.7"
328
12.9"
DI 10,
A 3
.4
"
2350,2
9.25".008"
280o.2
9.25".008"
134
5.3"
6.34"
160
3260.5
12.93".02"
Befestigungsmglichkeit PL 400
(Befestigungsschrauben M3x5)
MOUNTING POSSIBILITY PL 400
(FIXING SCREWS M3x5)
2670,2
10.5".008"
"
R 40
R 1.5
8"
140.50.2
5.53".08"
R 32
5
R12.8
"
8
.31"
560
22"
7.30.3
.29.012"
476+5
18.8"+.02"
15.7.1 LE 360 C
3/99
84
3.3" 10
.4"
373
60.2
.236".008"
2690.2
10.591".008"
5.5
.217"
281
11.063"
262
10.315"
274
10.787"
60.2
.236".008"
15.8.1 TE 355 A
55
2.165"
112
4.409"
8+1
25
.98"
1
.039"
31+5
1.16"+.19"
25
.98"
4
.157"
2
.079"
DIA.315"+.039"
10
DIA.394"
23.5
0.925"
224+0.5
8.819"+.020"
222+2
8.740"+.079"
18
.708"
X2
R60
R2.36
236+0.5
9.291"+.020"
374
Massenanschlu M5
GROUND CONNECTION M5
Frontplattenausschnitt
FRONT PANEL OPENING
Mounting dimensions
3/99
350
13.78"
3380.2
13.307".008"
205
8.07"
66.5
2.62"
1930.2
7.598".008"
96.5
3.80"
5.5
.217"
60.2
.236".008"
60.2
.236".008"
15.8.2 TE 355 B
51
2.01"
25
.98"
10
DIA .394"
3380.2
13.307".008"
187.5+1
7.38"+.04"
1910.5
752".020"
1930.2
7.598".008"
.040"
750.4
2.95".016"
248+1
9.76"+.040"
8.50.4
.335".016"
2
.079"
1
.40"
4
.157"
31+5
1.16+.19"
8+1
DIA.351"+.04"
50+5
1.97"+.20"
X2
X1
R60
R2.36
"
3000.5
11.81".020"
19
.748"
Montageflche
MOUNTING SURFACE
3/99
0.5
.02"
Frontplattenausschnitt
FRONT PANEL OPENING
Mounting dimensions
375
5.5
.217"
Freiraum fr Belftung
FREESPACE FOR AIR VENTILATION
94
3.20"
30
1.18"
.236"
3380.2
13.307".008"
min. 12
MIN. .47"
328+0.5
12.91"+.020"
max. 303
MAX. 11.93"
322.5
12.70"
Montageflche
0.5
MOUNTING SURFACE
.02"
40
1.58"
20.5
.08".02"
1
.040"
5
.197"
280
11.02"
10
DIA .394"
max. 300
MAX. 11.80"
26
1.02"
Frontplattenausschnitt
FRONT PANEL OPENING
7.8
DIA .307"+.008"
5
.197"
min. 20
MIN. .79"
30
1.18"
max. 242
MAX. 9.53"
max. 160
MAX. 6.30"
196
7.72"
2440.5
9.61".020"
2620.2
10.315".008"
274
10.79"
60.2
.236".008"
350
13.78"
60.2
.236".008"
Dichtung 3 dick
im eingebauten Zustand 2 dick
GASKET .118" THICK
INCORPORATED CONDITION .079" THICK
20
.79"
20
.79"
Freiraum fr Belftung
FREESPACE FOR AIR VENTILATION
47.5
1.87"
max. 326
MAX. 12.83"
376
Mounting dimensions
3/99
11,50.5
.45".02"
Mounting dimensions
141
.55".04"
6.50.5
.26".02"
170+1
6.7"+.04"
60.2
.236".008"
1930.2
7.598".008"
M5
205
8.07"
.22"
5.5
2531
9.96".04"
256+1
10.03"+.04"
2690.2
10.59".008"
R40
R 1.6"
8
DIA
.32"
Masseanschlu M5
GROUND CONNECTION M5
Frontplattenausschnitt
FRONT PANEL OPENING
MOUNTING SURFACE
Montageflche
201
.79".04"
1651
6.5".04"
3/99
55+5
2.2"+.2"
4
.16"
8+1
.32"+.04"
60.2
.236".008"
281
11.06"
0,5
.02"
10
Dichtung 3 dick
GASKET .12" THICK
1
.04"
15.9.2 BF 110
377
23.5
.93"
8
.315"
52.5
2.07"
9
.35"
180.5
.7.02"
3.6
.14"
PL-Eingnge
PL INPUTS
10.5
.04+.02"
47.5
1.87"
2100.2
8.268.008"
228
8.98"
9.3
DIA.37"
PL-Ausgnge
PL OUTPUTS
33+2
1.3"+.08"
Masseanschlu M5
GROUND CONNECTION M5
378
Mounting dimensions
3/99
15.11 Handwheel HR
15.11.1 Panel-mounted handwheel HR 130
100.01
100.02
DIA .3937.0004"
DIA .3937.0008"
361.5
1.417.06"
48
16
1.890"
.630"
12.5
.492"
3 x 120
120
14
.551"
36 f8
DIA 1.4173.0010"
DIA 1.4173.0025"
58
DIA 2.283"
Befestigungsgewinde M3 x 5
0.2
DIA .008"
3x
30
4.4
DIA .173
19.5+1
.768+.04"
10
.394"
3/99
Mounting dimensions
379
Handwheel knobs
Knob, small
M3
M3
SW 5.5
18
.709"
3x
max. 10
7
.276"
MAX .394"
6
.236"
61
DIA 2.402"
.0394"
HR ...
10
DIA .394"
SW 14
18
.709"
(18)
(.709")
Frontplatte (2)
FRONT PANEL (.079")
380
Mounting dimensions
3/99
Knob, large
M3
M3
SW 5.5
12
.472"
3x
7
.276"
max. 15.5
MAX .610"
6
.236"
HR ...
SW 1.5
27
1.063"
48
1.89"
(12)
(.472")
Frontplatte (2)
FRONT PANEL (.079")
3/99
90
3.543"
10 F7
DIA .3937 +.0011"
DIA .3937 +.0005"
Mounting dimensions
381
Knob, ergonomic
M3
17.7
.697"
M3
SW 5.5
12
.472"
3x
10
.394"
7
.276"
6
.236"
4
.158"
HR ...
SW 2
(12)
(.472")
6
.236"
70
2.756"
22
.866"
Frontplatte (2)
FRONT PANEL (.079")
382
10 H7
DIA .3937 +.0006"
Mounting dimensions
3/99
FCT
C
FCT
A
IV
FCT
B
70
2.756"
2.5
.984"
83
3.27"
50
1.969"
15.11.2
311
12.244"
331
13.031"
15.11.3
3/99
Mounting dimensions
383
384
Mounting dimensions
3/99
92
3.62"
780.2
3.071.008"
7
.28"
780.2
3.071.008"
60+1
2.36+.04"
38
1.5"
M4
21+0.5
.83"+.02"
57
2.24"
R
4
1.5 0
7"
5
.2"
3
.12"
M5
3/99
Mounting dimensions
385
Machine axes
Measuring systems
4-5
4-5
4-5
4-7
Axis designation
4-8
4-10
1.2.1 Assignment
4-11
4-12
1.3
VDU display
4-12
1.4
4-13
1.5
Lubrication pulse
4-16
1.6
4-18
4-18
4-19
4-22
1.7
PLC positioning
4-24
2
2.1
Reference marks
Passing over the reference marks
4-27
4-28
4-29
4-31
2.2
Machine datum
4-34
3
3.1
4-37
4-37
3.2
4-39
3.3
Offset adjustment
4-44
4-44
4-44
3.4
4-45
4-45
4-45
3.5
4-46
Monitoring functions
4-46
4-47
4-47
4-48
4-48
3.6
4-50
Controlled axes
3/97
4-50
4-1
4-51
4-52
4-53
4-53
4-54
3.7
4-54
4
4.1
Gap control
Input characteristics of the gap signal
4-56
4-56
4.2
4-59
4.3
4-59
4.4
Arc recognition
4-60
4.5
4-61
4.6
4-61
4.7
Eroding parameters
4-62
4-63
4-63
4-64
4-66
4.8
4-67
4.9
4-68
4-68
4-70
5
5.1
4-71
4-72
5.2
Flow diagram
4-73
6
6.1
4-76
4-76
6.2
Graphics
4-79
6.3
Status window
4-80
4-80
4-82
4-83
4-83
4-84
4-84
6.4
4-84
6.5
4-84
6.6
Error messages
4-85
6.7
Cycles
4-86
4-86
4-87
4-2
3/97
6.8
User-parameters
4-88
6.9
Code-numbers
4-89
6.10
Programming station
4-89
6.11
Decimal sign
4-89
6.12
Memory test
4-90
6.13
4-90
6.14
Restore position
4-90
6.15
Overwrite Q-parameters
4-91
6.16
Color adjustment
4-91
7
7.1
M-functions
Generator ON/OFF (M36/M37)
4-93
4-96
7.2
Program-halt on M-functions
4-98
7.3
Program-halt on M06
4-99
7.4
M-function M89
4-99
8
8.1
Key simulation
TNC-keyboard
4-101
4-101
8.2
4-110
9
9.1
Short circuit/probing
Interfacing the probing function
4-112
4-112
9.2
Successive probing
4-114
9.3
Manual probing
4-114
10
Handwheel
4-117
11
Analog inputs
4-120
12
4-122
13
Datum correction
4-125
14
14.1
Electrode changer
Controlling an electrode changer
4-127
4-127
14.2
4-128
4-131
4-132
4-133
4-134
4-135
4-136
4-137
4-137
3/97
4-3
15
15.1
4-138
4-138
15.2
4-138
15.3
4-142
4-142
4-142
4-142
4-142
4-144
4-144
4-147
4-147
4-4
3/97
1 Machine axes
The TNC 406 and TNC 306 contouring controls from HEIDENHAIN permits the control of up to four
machine axes.
The 5th axis cannot interpolate with other axes. This axis can only be started in manual mode or in
the NC-program with a M-function (PLC-positioning)
Machine parameter MP10 can be set to define which axes should be operational on the machine.
If necessary, MP10 can be used to select all the axes functions (control, display, pass over
reference marks etc.).
MP10
Active axes
Entry range: 1 to 31
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+0 = not active
+1 = active
+0 = not active
+2 = active
+0 = not active
+4 = active
+0 = not active
+8 = active
+0 = not active
+16 = active
1 Machine axes
4-5
The TNC always does a 4-fold evaluation of the signals at the square-wave inputs.
If a counting step of < 1 m or 0.001 is desired, the signal period (
than 4 m or 0.004.
360
1000
line count
Signal period (
)=
or
360
1
1000
line count interpolation factor
If angular measurement is made by gearing up or down, this must be taken into account when
calculating the signal period.
MP330
Signal period
Entry range 1 to 360 in [m] or
MP330.0
MP330.1
MP330.2
MP330.3
MP330.4 *
1
[1000
]
X axis
Y axis
Z axis
Axis 4
Axis 5
4-6
1 Machine axes
3/97
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+0 = positive
+1 = negative
+0 = positive
+2 = negative
+0 = positive
+4 = negative
+0 = positive
+8 = negative
+0 = positive
+16 = negative
Machine parameter MP1040 determines the polarity of the nominal value voltage during the positive
direction of traverse.
MP1040
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+0 = positive
+1 = negative
+0 = positive
+2 = negative
+0 = positive
+4 = negative
+0 = positive
+8 = negative
+0 = positive
+16 = negative
3/97
1 Machine axes
4-7
The NC uses markers to tell the PLC in which direction the axes are to travel (only active in the
operating mode "Manual"):
0 = positive
1 = negative
M2160
Set
NC
Direction of traverse
X axis
Y axis
Z axis
Axis 4
Axis 5
M2161
M2162
M2163
M2164 *
Reset
NC
A
B
If one of these conditions is not fulfilled, the error message "Encoder <axis> defect A/B" will appear.
MP31
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+0 = not active
+1 = active
+0 = not active
+2 = active
+0 = not active
+4 = active
+0 = not active
+8 = active
+0 = positive
+16 = negative
4-8
1 Machine axes
3/97
MP32
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+0 = not active
+1 = active
+0 = not active
+2 = active
+0 = not active
+4 = active
+0 = not active
+8 = active
+0 = positive
+16 = negative
3/97
1 Machine axes
4-9
+X
+X
+C
+B
+A
4-10
+X
1 Machine axes
3/97
An extra linear axis is designated by the letter U, V or W. The correlation with the principle axes
and the direction of travel are also standardized in ISO 841.
+Z
+Y
+W
+V
+U
MP410
+X
Designation of axis 4
Entry:
MP411 *
0=A
1=B
2=C
Designation of axis 5
Entry:
0=A
1=B
2=C
3=U
4=V
5=W
1.2.1 Assignment
The encoder inputs X1 to X6 and the analog outputs, Output 1 to Output 4 (on connector X8) can be
assigned to the individual axes. The assignment is determined by the machine parameters MP110
and MP120.
MP110
MP110.0
MP110.1
MP110.2
MP110.3
MP110.4 *
0 = encoder input X1
1 = encoder input X2
2 = encoder input X3
3 = encoder input X4
4 = encoder input X5 *
5 = encoder input X6
X axis
Y axis
Z axis
Axis 4
Axis 5
3/97
1 Machine axes
4-11
MP120
MP120.0
MP120.1
MP120.2
MP120.3
MP110.4 *
0 = output 1
1 = output 2
2 = output 3
3 = output 4
4 = output 5 *
X axis
Y axis
Z axis
Axis 4
Axis 5
M2100
M2101
M2102
M2103
Set
NC
Reset
NC
VDU display
Entry range: 1 to 31
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+0 = not active
+1 = active
+0 = not active
+2 = active
+0 = not active
+4 = active
+0 = not active
+8 = active
+0 = positive
+16 = negative
4-12
1 Machine axes
3/97
MP920.0
MP920.1
MP920.2
MP920.3
MP920.4 *
MP911.0
MP911.1
MP911.2
MP911.3
MP911.4 *
MP921.0
MP921.1
MP921.2
MP921.3
MP921.4 *
3/97
1 Machine axes
4-13
MP922.0
MP922.1
MP922.2
MP922.3
MP922.4 *
The markers M2816 and M2817 are used to define the software limit switch range.
M2816
M2817
The change-over to the selected software limit switch range must be activated by the strobe-marker
M2824 by the PLC. This strobe-marker is reset by the NC after the change-over has been carried
out.
M2824
Set
PLC
Reset
NC
If one of the software limit switches is reached, the error message "LIMIT SWITCH ..." appears and
the appropriate marker (M2624 to M2633) is set.
Marker
Function
Set
Reset
M2624
M2625
M2626
M2627
M2628
M2629
M2630
M2631
M2632*
M2633*
Limit switch X+
Limit switch X
Limit switch Y+
Limit switch Y
Limit switch Z+
Limit switch Z
Limit switch 4+
Limit switch 4
Limit switch 5+
Limit switch 5
NC
NC
4-14
1 Machine axes
3/97
Example:
PLC program example for changing the software limit switch ranges. PLC-input I10 is used as a
condition for change.
I10 = 0
I10 = 1
127
128
129
130
131
132
133
134
135
136
137
138
139
140
LN I10
AN M555
R M2816
R M2817
S M2824
S M555
R M556
L I10
AN M556
S M2816
R M2817
S M2824
S M556
R M555
;Range 1
;already done?
;select range 1
;select range 1
;activate change
;edge recognition range 1
;reset edge recognition range 2
;Range 2
;already done?
;select range 2
;select range 2
;activate change
;edge recognition range 2
;reset edge recognition range 1
I10
M2816
M2817
M2824
M555
M556
3/97
1 Machine axes
4-15
Example:
Desired traversing distance: 100 m
Value entered =
If the stored path limit for an axis is exceeded, the NC sets a marker (M2012 to M2015) to 1.
After carrying out the lubrication the PLC is able reset the accumulated traverse distance (M2548 to
M2551).
MP4060
Path-dependent lubrication
Entry range: 0 to 65 535 (units of 65 536 m)
MP4060.0
MP4060.1
MP4060.2
MP4060.3
MP4060.4 *
X axis
Y axis
Z axis
Axis 4
Axis 5
M2012
M2013
M2014
M2015
M2016 *
Set
NC
Reset
NC
4-16
1 Machine axes
3/97
M2548
M2549
M2550
M2551
M2576*
PLC
NC
Example:
Example of PLC program for activating the lubrication for the X-axis.
The traverse distance after which the X-axis is to be lubricated is entered in machine parameter
MP4060.0. The duration of lubrication is defined by timer T0 (MP4110.0).
The PLC-output O24 is to be set for the duration of the X-axis lubrication.
In our example, lubrication is activated as soon as the marker M2012 is set. If the lubrication is only
to be activated when the axis is at rest, then this must be taken into account in the PLC-program.
MP4060.0 = 1 000 (approx. 60 m)
MP4110.0 = 100 (approx. 4 sec.).
.
.
45
46
47
48
49
.
L M2012
= T0
= M2548
L T48
= O24
M2012
M2548
T0
T48
024
3/97
1 Machine axes
4-17
Error
[mm]
0.02
0.01
0
Ref. mark
-0.01
-0.02
500
1000
Measuring system
[mm]
MP720
MP720.0
MP720.1
MP720.2
MP720.3
MP720.4 *
X axis
Y axis
Z axis
Axis 4
Axis 5
4-18
1 Machine axes
3/97
For example, the lead-screw pitch error for the Z axis (Z=F(Z)) or the sag as a function of the Y axis
(Z=F(Y)) could be measured.
In the HEIDENHAIN contouring control, an axis can only be corrected as a function of one errorrelated axis. So in our example either the lead-screw pitch or the sag can be compensated. For each
of the four axes one table of corrections with 64 correction values per table can be entered. The
following definitions must be fixed for this purpose:
Correlation:
Datum point:
Distance:
When determining the error curve with the aid of a comparator measuring instrument, the above
definitions must be already taken into account.
3/97
1 Machine axes
4-19
Example:
Y = F(Z)
Measurement length on Z axis = 1 000 mm
Desired distance between correction points = 1 000 mm : 64 = 15.62 mm
Possible exponent (base 2) = 214 = 16.384 mm
Datum point: 990
Error in Y
[mm]
0.1
0.08
Datum
0.06
0.04
0.02
940.848
875.312
973.616
908.08
924.464
990
957.232
891.696
Machine
datum
0
56.112
23.344
39.728
6,96
-0.02
Z
[mm]
+9.424
+25.808
-0.04
-0.06
-0.08
-0.1
-0.12
The errors which have thus been determined can be entered in the form of a table directly into the
control unit. However, axis error compensation is only effective when it is enabled for a specific axis
by the machine parameter MP730.
Before entering the correction table the code number 105 296 must be entered and the function
"COMPENSATION VALUE LIST" must be selected. The control will initially show the correction table
for the X axis, whereby "SETUP" is the interval between correction points:
X = F(X)
DATUM POINT +0.000
SETUP 1
0 X+0.000 X+0.000
1 X+0.001 X+0.000
2 X+0.002 X+0.000
.
.
.
The orange axis key can be used to select a different fault-causing axis for the X axis. After pressing
the GOTO key, the axis keys can be used to select a correction table for one of the other axes. The
correction value which is entered may not exceed the maximum correction-value difference.
4-20
1 Machine axes
3/97
990
14
Y+0
Y0.06
Y0.09
Y0.12
Y0.12
Y0.1
Y0.09
No entry is necessary in lines 3 and 4 (press the NO ENT key). The individual lines of the correction
table are selected either by the arrow keys or with the GOTO key. Press the END
key twice to
leave the correction table.
Input and output of the correction table via the data interface
After entering the code number 105296 and selecting the function "COMPENSATION VALUE LIST"
the correction table can be entered or read out via the data interface.
As usual, data transfer is initiated with the EXT key.
3/97
1 Machine axes
4-21
MP730
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+ 0 = not active
+ 1 = active
+ 0 = not active
+ 2 = active
+ 0 = not active
+ 4 = active
+ 0 = not active
+ 8 = active
+ 0 = not active
+ 16 = active
4-22
1 Machine axes
3/97
3/97
1 Machine axes
4-23
Function
D528
D532
D536
D540
D544 *
M2704
M2705
M2706
M2707
M2708 *
Set
PLC
Reset
NC
Note:
4-24
1 Machine axes
3/97
Example:
PLC positioning of the Z-axis
A PLC positioning in the Z-axis is to be initiated with the M-function M70. The target position is
stored in the machine parameter MP4210.2. The feed for the PLC positioning is defined in machine
parameter MP4220.2
.
.
L M0
ON M0
S M2719
;word processing
.
CASE B260
;M-code
.
CM 70
.
ENDC
LBL 70
CM 110
S M2706
;activate PLC positioning Z axis
LN 2706
;PLC positioning Z axis done
S M2482
;acknowledgment M-function done
LN M2045
;no M-function?
R M2482
;acknowledgment reset
EM
LBL 110
;load Z position and feed rate
L D776
;load target position from MP4210.2
= D536
;target position PLC positioning Z axis
L W964
;load feed from MP4220.2
= W564;feed PLC positioning Z axis
EM
M1970
M2045
M4
M2706
M2482
3/97
1 Machine axes
4-25
4-26
1 Machine axes
3/97
2 Reference marks
When a datum point is set, a definite position value (coordinate) is assigned to each axis position for
workpiece machining. Since the actual position value is established incrementally by the encoder,
this correlation between axis positions and position values must be re-established after every power
interruption.
HEIDENHAIN linear encoders are therefore equipped with one or more reference marks. When the
scanning head of the encoder passes over a reference mark, a signal is generated which identifies
that particular position as a reference point. Passing over the reference marks after a power
interruption re-establishes the relationship between axis positions and display values (and, at the
same time, the fixed machine relationships) last defined by datum setting.
+Z REF Value REF Value
0
44.985
Workpiece
datum
0
10 20 30 40
+X
Workpiece
Machine table
Measuring system
Reference mark
Machine datum
Since it is often inconvenient to re-establish the reference points by traversing large distances after
switch-on, HEIDENHAIN recommends the use of encoders with distance-coded reference marks.
With this kind of encoder the absolute position is available after crossing two reference marks.
The scale graduation consists of the line grating and a reference mark track which runs parallel to it.
The distances between any two consecutive reference marks are defined differently, so that the
absolute position of the machine slide can be determined from this distance.
3/97
2 Reference marks
4-27
pressing the external START key. The axis sequence is determined by machine parameter
MP1340.X (automatic passing of the reference marks),
pressing the external axis direction keys. The sequence is determined by the operator.
For encoders with distance-coded reference marks, the software limit switches, PLC positioning and
positioning by M91 and M92 are referenced to the Zero reference mark. In linear encoders the Zero
reference mark is the first reference mark after the start of the measuring length; in angular
encoders the Zero reference mark is marked.
The direction of traverse and the velocity on passing the reference marks is defined by machine
parameters (MP1320, MP1330.X).
The functional sequence for passing the reference marks can be fixed specifically for the axes by
machine parameters (MP1350.X).
The operating condition "PASS OVER REFERENCE MARKS" is sent to the PLC by the NC (M2057 or
W272).
In order to avoid exceeding the traverse range when passing over the reference marks a trip dog
(reference end-position) is necessary. This trip dog must be fixed at the end of the traverse range by
the machine manufacturer. The trigger signal from the trip dog is connected to an available PLC
input. In the PLC program this PLC input is combined with the markers for "Reference end position"
(M2556 to M2560).
4-28
2 Reference marks
3/97
Reference marks
Trip dog
"Reference end position"
Closed
Open
3/97
2 Reference marks
4-29
Sequence "Automatic passing over reference marks" (press the external START key).
MP1350.x = 0
Press external START key
Trip dog
"Reference end position"
closed?
No
Yes
Is the machine
outside the software
limit switch range?
Yes
Machine moves to
software limit switch range
No
Machine stops
4-30
2 Reference marks
3/97
Reference marks
Trip dog
"Reference end position"
Closed
Open
For linear measurement using a rotary encoder a reference pulse is produced on each revolution of
the encoder. It must be ensured that, after switching on the machine, always the same reference
pulse is evaluated. This can also be achieved by using the trip dog "Reference end-position."
Measuring length
Reference pulse
Desired reference pulse
Trip dog
"Reference end position"
Closed
Open
Traverse direction MP1320
3/97
2 Reference marks
4-31
Sequence "Automatic passing over reference marks" (Press the external START key).
MP 1350.x = 1
No
Trip dog
"Reference end position"
closed?
Yes
Is the
machine outside
the software limit
switch range?
Yes
Machine moves to
software limit switch
No
Machine stops
4-32
2 Reference marks
3/97
MP1320
Bit 0
X axis:
Bit 1
Y axis:
Bit 2
Z axis:
Bit 3
Axis 4:
Bit 4 *
Axis 5:
+ 0 = positive
+ 1 = negative
+ 0 = positive
+ 2 = negative
+ 0 = positive
+ 4 = negative
+ 0 = positive
+ 8 = negative
+ 0 = positive
+ 16 = negative
MP1330
MP1330.0
MP1330.1
MP1330.2
MP1330.3
MP1330.4 *
X axis
Y axis
Z axis
Axis 4
Axis 5
MP1331
MP1331.0
MP1331.1
MP1331.2
MP1331.3
MP1331.4 *
X axis
Y axis
Z axis
Axis 4
Axis 5
MP1340
MP1340.0
MP1340.1
MP1340.2
MP1340.3
MP1340.4 *
1st axis
2nd axis
3rd axis
4th axis
5th axis
3/97
2 Reference marks
4-33
MP1350
MP1350.0
MP1550.1
MP1350.2
MP1350.3
MP1350.4*
X axis
Y axis
Z axis
Axis 4
Axis 5
M2556
M2557
M2558
M2559
M2560
W272
Operating mode
0 = Edit
1 = Manual operation
2 = Handwheel
3 = Positioning with manual entry
4 = Program run/single block
5 = Program run/full sequence
6 = Program test
7 = Pass over reference points
Set
PLC
Reset
PLC
NC
4-34
2 Reference marks
3/97
3/97
2 Reference marks
4-35
4-36
2 Reference marks
3/97
3/97
4-37
Machine
Motor
Linear/
Rotary
encoder
Tacho
Actual position
Current
regulator
Actual
current
rpm
Nominal
Nominal
regulator current
rpm
Actual
rpm
Servo amplifier
Actual
rpm
4-38
CNC Control
3/97
v=
at
ax
sax
X Actl
vx Noml+ +
v s
Vx
XNoml+ sax
vx Actl
Servo
amplifier
XS
MP1810
s=s0+vt
Acceleration:
MP1060
YS
3/97
4-39
The control calculates a nominal velocity value every 4 ms from the feed programmed in the NC
program and the final position (X-, Y-, Z-, C-axis), allowing for the acceleration which has been
stored (MP1060). The stored acceleration is valid for the rising as well as the falling slope. If two
or more axes are traversed simultaneously, the smallest value for acceleration will be effective.
Every 4 ms a nominal path value is calculated from the velocity nominal value.
s = so + v t
s
so
v
t
=
=
=
=
The nominal path value is resolved into the individual axis components, depending on which axes
have been programmed.
The axis-dependent nominal path value is compared with the actual value of the positions and
the lag sa is calculated.
sax = xNoml - xActl
The lag is multiplied by the kv factor MP1810 and passed on to the drive amplifier as a nominal
velocity value (analog voltage).
vx= kv sax
vx
The kv factor (position loop gain) determines the control loop response of the machine, and it must
be matched to the machine.
If a very high kv factor is chosen, the lag is very small; however, this can lead to an overshoot when
approaching a new position. On the other hand, if the kv factor is too small then the new position will
be reached too slowly.
The optimal kv factor must be determined by trial and error (see the section "Commissioning and
start-up procedure").
The following diagram shows the response for various kv factors:
U [V]
MP1810
kv correct
kv too large
kv too small
MP1060
MP1810
t [s]
The acceleration can be programmed with machine parameter MP1060. The acceleration
determines the slope of the ramp on the rising and falling edges.
4-40
3/97
For axes which are mutually interpolated the kv factor must be the same, in order to avoid contour
distortion.
MP1060
Acceleration
Entry value 0.001 to 3.0 [m/s2]
MP1060.0
MP1060.1
MP1060.2
MP1060.3
MP1060.4 *
Acceleration X axis
Acceleration Y axis
Acceleration Z axis
Acceleration axis 4
Acceleration axis 5
The Kv factor in MP1810 is, in general, determined by the rapid traverse (MP1010) of the machine
and the lag, using the following formula:
m/min
kv = Ve
sa [ mm ] kv = position loop gain
ve = rapid traverse
sa = lag
or
sa = Ve
kv [mm]
Rapid traverse
[m/min]
10
kv = 2
kv = 1
6
kv = 0.5
4
2
10
12
sa [mm]
The rapid traverse (maximum traversing speed) must be adjusted by the desired analog voltage (e.g.
9 V) on the servo-amplifier (see section "Commissioning and start-up procedure"). For each axisspecific rapid traverse there is an analog voltage which is stored in machine parameter MP1050.
3/97
4-41
10
12
sa [mm]
A special feed rate for manual operation (manual feed) is stored in machine parameter MP1020. In
general, it is significantly lower than the rapid traverse. Unlike the rapid traverse, this special feed
rate has no effect on the servo behavior.
MP1810
MP1810.0
MP1810.1
MP1810.2
MP1810.3
MP1810.4 *
kv factor X axis
kv factor Y axis
kv factor Z axis
kv factor axis 4
kv factor axis 5
MP1010
Rapid traverse
Entry range 80 to 30 000 [mm/min]
MP1010.0
MP1010.1
MP1010.2
MP1010.3
MP1010.4 *
MP1050
MP1050.0
MP1050.1
MP1050.2
MP1050.3
MP1050.4 *
4-42
3/97
MP1020
Manual feed
Entry range 80 to 30 000 [mm/min]
MP1020.0
MP1020.1
MP1020.2
MP1020.3
MP1020.4 *
Servo accuracy
The internal servo accuracy and the display step of the control is always 1 m.
The control must be able to generate at least one voltage step per 1 m position deviation.
Potential steps per m position deviation. As described above, moving with rapid traverse (MP1010)
results in a certain lag distance sa. The rapid traverse rate is reached at a definite voltage (MP1050).
So it is possible to calculate a definite potential U per m of position deviation (lag).
U = MP1050 [mV] / sa [m]
If U is divided by the smallest voltage step which can be produced (0.6 mV), the result is the
number of voltage steps which are produced per m position deviation.
sa =
5 000 [m]
= 2 500 [m]
2
U =
9 000 [mV]
= 3.6 [mV/m]
2 500 [m]
n=
3.6 [mV/m]
= 6 steps/m position deviation
0.6 [mV]
3/97
4-43
4-44
3/97
It is recommended that a value is entered which is 50100% of that in MP1060 (Acceleration). If the
programmed feed is lower than that above, then the programmed feed will be used.
MP1070
Radial acceleration
Entry value: 0.001 to 3.0 [m/s2]
MP7460
The permissible size of the angle depends on the drives in the machine.
Realistic values are 5 to 20.
The resulting path is as follows:
Axis standstill
= Change of axis movement direction
sa = Servo lag
sa
MP7460
3/97
4-45
M2688
M2689
M2690
M2691
M2692 *
Set
PLC
No monitoring X axis
No monitoring Y axis
No monitoring Z axis
No monitoring axis 4
No monitoring axis 5
Reset
PLC
MP1710
MP1720
4-46
3/97
MP1140
3/97
Movement monitoring
Entry value 0.03 to 10 [V]
4-47
Standstill monitoring
Entry value: 0.001 to 30 [mm]
Positioning window
Entry value: 0.001 to 2 [mm] or []
MP1030.0
MP1030.1
MP1030.2
MP1030.3
MP1030.4 *
X axis
Y axis
Z axis
Axis 4
Axis 5
4-48
3/97
3/97
4-49
Controlled axes
Entry value: 0 to 31
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+0 = not controlled
+1 = controlled
+0 = not controlled
+2 = controlled
+0 = not controlled
+4 = controlled
+0 = not controlled
+8 = controlled
+0 = not controlled
+16 = controlled
Further parameters for the NC-axes may be found in the section "machine axes."
The PLC functions which are described in the following sections are only effective for controlled
axes.
Bit 0
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
Axis 4
Bit 4 *
Axis 5
+0 no POSITIP function
+1 with POSITIP function
+0 no POSITIP function
+2 with POSITIP function
+0 no POSITIP function
+4 with POSITIP function
+0 no POSITIP function
+8 with POSITIP function
+0 no POSITIP function
+16 with POSITIP function
4-50
3/97
M2000
M2001
M2002
M2003
M2004*
Axis enable X
Axis enable Y
Axis enable Z
Axis enable 4
Axis enable 5
Set
NC
Reset
NC
3/97
4-51
M2008
M2009
M2010
M2011
M2032 *
X axis in position
Y axis in position
Z axis in position
Axis 4 in position
Axis 5 in position
Set
NC
Reset
NC
4-52
3/97
M2544
M2545
M2546
M2547
M2572 *
M2492
M2493
M2494
M2495
M2568 *
Set
PLC
Reset
PLC
PLC
PLC
M2552
M2553
M2554
M2555
M2564*
Set
PLC
Reset
PLC
3/97
4-53
MP2090
M2485
M2486
M2487
D752
W492
W764
4-54
Set
PLC
Reset
PLC
PLC
PLC
PLC
PLC
3/97
3/97
4-55
4 Gap control
The gap control is switched on with M36 and switched off with M37 (see Chapter 7 M-Functions).
The control responds to the analog gap signal (0 to 5V), and the input of the gap signal as described
in the following, by sending an analog voltage to the nominal value outputs. If the gap is too small
and there is a tendency towards short-circuiting or arcing, the electrode is retracted along the
programmed contour. If the gap is too largeor at the start of the eroding processthe electrode
advances along the programmed contour. When the eroding process is stable, the gap is only
controlled to within a few m.
Feed forward control allows the control to react extremely quickly to the gap signal, resulting in very
low servo lag at low speeds. In particular this improves the gap control behavior when eroding with
graphite.
Machine parameter MP2130 defines the maximum speed at which feed forward control is to be
maintained during the eroding process. If the value is exceeded, the control switches to servo lag
mode. During an active eroding process marker M2785 is set.
MP2130
M2785
Set
NC
Reset
NC
MP2010
MP2010.0
MP2010.1
MP2020
MP2020.0
MP2020.1
4-56
Characteristic gradient
Entry range: 0.1 to 10.000
Input characteristic range 2.5 to 5V
Input characteristic range 0 to 2.5V
Multiplication factor
Entry range: 1,000 to 10,000
Input characteristic range 2.5 to 5V
Input characteristic range 0 to 2.5V
4 Gap control
3/97
MP2030
Characteristic kink
Entry range: 0 to 100 (%)
MP2030.0
MP2030.1
MP2070
MP2080
Gap signal
Entry range: 0 to 2
0 = not inverted
1 = inverted
2 = analog input from spindle potentiometer
(for test purposes)
MP2131
Feed rate limited for switching to new eroding feed rate from MP2132
Entry range: 0 to 500 (mm/min)
MP2132
W392
3/97
4 Gap control
(100% = 5V)
(0% = 2.5V)
(100% = 0V)
(0% = 2.5V)
4-57
Example:
F
[mm/min]
60
50
9
40
30
20
7
3
10
0
2.5
0
5V
10
Ugap [V]
20
30
6
40
50
60
70
Electrode
moves towards
workpiece
Electrode
retracts
80
90
10
Short circuit
0V
Standstill
2.5 V
Freerun
5 V (MP 2080 = 0)
MP2030.0 = 30
MP2030.1 = 30
MP2010.0 = 1
MP2010.1 = 1
MP2020.0 = 2
4-58
4 Gap control
3/97
Reset
M2782
NC
NC
M2622
PLC
PLC
M2623
PLC
PLC
3/97
4 Gap control
4-59
Machine parameter MP2050 defines a distance to the last eroded position for traverse at the feed
rate from MP1090 or MP2060, or from the NC program. From this point on the characteristic curve
is active again.
MP1090
MP2060
MP2050
Reset
M2617
PLC
PLC
M2620
PLC
PLC
M2780
NC
NC
M2781
NC
NC
M2784
Electrode is reapproaching
NC
NC
MP2120
Reset
M2642
PLC
PLC
M2788
NC
NC
4-60
4 Gap control
3/97
MP2060
MP2110
M2616
Set
PLC
Reset
PLC
M2783
NC
NC
M2620
PLC
PLC
D388
M2621
D756
3/97
4 Gap control
Set
Reset
PLC
PLC
4-61
The following examples for TNC 306 show how the flushing timer may be written in the PLC
program:
L
X
=
L
X
=
L
R
L
A[
L
>
]
CMT
EM
LBL
L
>
JPT
L
=
LBL
L
=
<=
S
EM
W676
K + 100
D730
W678
K + 100
D734
M2621
M2621
M910
D734
K+0
; Eroding time
; Request flushing
; Flushing on buffer marker
31
31
D212
K+0
32
D734
D212
32
D212
K + 40
D212
K+0
M2621
;Timer Module
; Timer Buffer
; Eroding Timer
; Request Flushing
4-62
4 Gap control
3/97
Q-parameter
Q-parameter
Q-parameter
Q-parameter
Q-parameter
Q-parameter
Q-parameter
Q-parameter
Q-parameter
Q-parameter
(NC PLC)
Q90
Q91
Q92
Q93
Q94
Q95
Q96
Q97
Q98
Q99
D412
D416
D420
Q-parameter
Q-parameter
Q-parameter
B666
B667
B668
NR
B669
B670
B671
W672
B674
B675
W676
W678
B680
B681
W682
W684
W686
D688
W692
W694
B696
B697
B698
B699
LV 2)
HV 2)
GV 2)
TON 2)
TOF 2)
SV 2)
AJD 2)
ET 2)
AR
P
HS
WR
RA
SR
2G
UNS
AUX1
AUX2
AUX3
AUX4
3/97
Q96
Q97
Q98
1)
4 Gap control
4-63
W700
W702
Auxiliary parameter 5
Auxiliary parameter 6
AUX5
AUX6
For further calculations various eroding parameters are also assigned to extra Q-parameters:
Q96 to Q98
Q99
Q150
Q151
Q152
Q154
Q155
Q156
Q157
Q161
Q201 to Q225
Q231 to Q255
MP2040
In order to be able to enter the code words EROTAB, TXT0, TXT1, TXT2, TXT3, NAME, ELEM,
ENDTAB for the creation of the erosion table in the instruction list, the cursor field must be opened
with the SPACE key (see example below).
Each column of the erosion parameter table requires the following information:
TXT0 ..... TXT3
NAME
ELEM
4-64
4 Gap control
3/97
SENS
LAST
Q154
Q155
Q201
Q231
Type of number
Integer (I)
I1-9999 1...9999
I1-2000
I1-255
I1-150
I1-99
I1-31
I1-25
I1-20
I1-15
I1-9
I1-3
W
1...2000 W
1...255 B
1...150 B
1...99 B
1...31 B
1...25 B
1...20 B
1...15 B
1...9
B
1...3
B
Integer (I)
I9999
I999
I255
I180
I150
I120
I100
I99
I90
I60
I31
I30
I25
I21
I20
I15
I9
I3
I2
I1
0...9999
0...999
0...255
0...180
0...150
0...120
0...100
0...99
0...90
0...60
0...31
0...30
0...25
0...21
0...20
0...15
0...9
0...3
0/1/2
0/1
W
W
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
B
Real (R)
R1D200
R1D200I
R1D99
R1D99I
W
W
W
W
R3D9
R3D9I
0.000 ...
9.999 W
R3D1
R3D1I
0.000 ...
1.000 W
3/97
4 Gap control
4-65
4-66
SV = 60 5 Ugap [V]
4 Gap control
3/97
Reset
PLC
If MP2199 = 2:
Values have been changed in editing mode in the
currently active Stage Number of the erosion table
during program run.
Acknowledgment is by a reset from the PLC.
NC
PLC
M2796
PLC
NC
M2798
NC
PLC
M2799
PLC
NC
M2794
If MP2199 = 0:
a Q-parameter in the range Q90Q99 has been
changed and the values transferred to the
appropriate addresses in the PLC.
Acknowledgment is by a reset from the PLC.
If MP2199 = 2:
a Q-parameter in the range Q96Q98 has been
changed and the values transferred to the
appropriate addresses in the PLC.
Acknowledgment is by a reset from the PLC.
M2795
3/97
4 Gap control
4-67
<Hi-byte no.>
<Low-byte no.>
<Byte 1>
<......>
<Byte n>
<BCC>
If the PLC has received a data block, checked the BCC and acknowledged with ACK, it then
evaluates the command byte (ID character) and executes it. A new transmission must not be started
until the old transmission has been concluded with ACK.
4-68
4 Gap control
3/97
Generator transmits:
PLC transmits:
ACK or NAK
PLC protocol:
PLC transmits:
Generator transmits:
ACK or NAK
Generator protocol:
Generator transmits:
PLC transmits:
ACK or NAK
Generator protocol:
Generator transmits:
PLC transmits:
ACK or NAK
PLC protocol:
PLC transmits:
Generator transmits:
ACK or NAK
Generator protocol:
Generator transmits:
PLC transmits:
ACK or NAK
Generator protocol:
3/97
4 Gap control
4-69
Generator transmits:
ACK/NAK
If the NC recognizes an error during data transmission, it sets one of the markers from Marker
M2924 to M2928. These markers from the memory area of the PLC error messages are
permanently reserved for displaying the transmission error and must not be used for any other
purpose. Markers M2930 to M3023 can be changed as desired.
If the generator control transmits NAK (faulty transmission) to the PLC, the data will be transmitted
two more times. If the generator control transmits NAK three times, the transmission is aborted and
Marker M2924 for "transmission error" is set.
Marker
Function
Set
Reset
M2799
PLC
NC
M2924
M2925
M2926
M2927
M2928
NC
NC
NC
NC
NC
NC
NC
NC
NC
NC
W760
W762
PLC
PLC
PLC
PLC
4-70
4 Gap control
3/97
Set
Reset
M2190
NC
NC
M2191
NC
NC
3/97
4-71
This diagram represents a proposal for circuitry. The machine tool builder is responsible for
complying with applicable safety regulations.
Logic unit
Switch opens briefly when the control voltage
of each microprocessor is switched on
LE406
LE360
X41/34
X21/34
X44/2
X24/2
X44/1
X24/1
"Control is
ready"
24V not
24V
interruptible interruptible
EMERGENCY
STOP
buttons
Control
voltage
on
4-72
X42/4
X22/4
"Control ready"
feedback
k1
k1
K1
24 V
PLC
3/97
X22/4
X42/4
1
4 5
VDU-display
1.
2.
3.
4.
5.
6.
7.
8.
9.
3/97
4-73
4-74
3/97
3/97
4-75
RM
RM
Workpiece datum
Scale datum
4-76
RM
Machine datum
RM = Reference mark
3/97
MP950
MP950.0
MP950.1
MP950.2
MP950.3
MP950.4 1)
MP960
MP960.0
MP960.1
MP960.2
MP960.3
MP960.4
X axis
Y axis
Z axis
Axis 4
Axis 5
1) only
3/97
1)
TNC 406
4-77
4-78
3/97
6.2 Graphics
Three different graphics display modes are available.
With the aid of a menu the operator can select fast image data processing instead of graphics (see
User's Manual). The graphics display on the VDU-screen can be altered by machine parameters.
The following choices are available:
The view in 3 planes mode can be generated according to either European or American convention.
Preferred European
Preferred American
Example:
X
Rotation by +90
No rotation
MP 7310
Graphics display
Entry range: 0 to 3
Bit 0
Changeover of
view in 3 planes
+ 0 = European convention
+ 1 = American convention
Bit 1
+ 0 = no rotation
+ 2 = coordinate system rotated by +90
3/97
4-79
M2096
M2097
M2098
M2099
M2095
1) only
4-80
Set
Reset
NC
NC
TNC 406
3/97
3/97
4-81
MP7271
4-82
3/97
M2485
M2486
M2487
M2508
Status-display M08
0 = No status-display M08
1 = Status-display M08
M2609
Set
PLC
Reset
3/97
4-83
Reset
M2183
NC
NC
M2184
NC
NC
MP7300
4-84
3/97
Set
Reset
M2815
PLC
PLC
M2190
NC
NC
PLC
PLC
is displayed
M2924
M2925
M2926
M2927
M2928
M3122
M3123
1) only
3/97
TNC 406
4-85
6.7 Cycles
The HEIDENHAIN contouring controls permit calling HEIDENHAIN standard-cycles within the NC
program (e.g. pecking, tapping, pocket milling etc.).
In addition, the manufacturer of the machine can program manufacturer-cycles and store them in
the control (see "OEM-cycles"). The sequence of some cycles can be altered by machine parameters
and PLC-markers.
Inhibit Cycles 1 to 15
Input range: 0 to 65 535
MP7245.1
Inhibit cycles 16 to 30
Input range: 0 to 65 535
Cycle 1
+ 0 = enable
+ 2 = inhibit
+ 0 = enable
+ 4 = inhibit
+ 0 = enable
+ 8 = inhibit
+ 0 = enable
+ 16 = inhibit
+ 0 = enable
+ 32 = inhibit
+ 0 = enable
+ 64 = inhibit
+ 0 = enable
+ 128 = inhibit
+ 0 = enable
+ 256 = inhibit
+ 0 = enable
+ 512 = inhibit
+ 0 = enable
+ 1024 = inhibit
+ 0 = enable
+ 2048 = inhibit
+ 0 = enable
+ 4096 = inhibit
+ 0 = enable
+ 8192 = inhibit
+ 0 = enable
+ 16 384 = inhibit
+ 0 = enable
+ 32 768 = inhibit
Cycle 16
+ 0 = enable
+ 2 = inhibit
+ 0 = enable
+ 4 = inhibit
+ 0 = enable
+ 8 = inhibit
+ 0 = enable
+ 16 = inhibit
+ 0 = enable
+ 32 = inhibit
+ 0 = enable
+ 64 = inhibit
+ 0 = enable
+ 128 = inhibit
+ 0 = enable
+ 256 = inhibit
+ 0 = enable
+ 512 = inhibit
+ 0 = enable
+ 1024 = inhibit
+ 0 = enable
+ 2048 = inhibit
+ 0 = enable
+ 4096 = inhibit
+ 0 = enable
+ 8192 = inhibit
+ 0 = enable
+ 16 384 = inhibit
+ 0 = enable
+ 32 768 = inhibit
Cycle 2
Cycle 3
Cycle 4
Cycle 5
Cycle 6
Cycle 7
Cycle 8
Cycle 9
Cycle 10
Cycle 11
Cycle 12
Cycle 13
Cycle 14
Cycle 15
4-86
Cycle 17
Cycle 18
Cycle 19
Cycle 20
Cycle 21
Cycle 22
Cycle 23
Cycle 24
Cycle 25
Cycle 26
Cycle 27
Cycle 28
Cycle 29
Cycle 30
3/97
3/97
4-87
MP1092
to
MP1097
MP1092
MP1093
MP1094
MP1095
MP1096
MP1097
M2616
Set
PLC
Reset
PLC
M2640
PLC
PLC
M2783
NC
NC
M2787
NC
NC
M2620
PLC
PLC
M2790
NC
PLC
M2791
NC
PLC
W394
NC
NC
6.8 User-parameters
With the MOD-function up to 16 different machine parameters can be made accessible to the
machine operator as User-parameters.
The machine manufacturer determines in machine parameter MP7330.x which machine parameters
are to be defined as User-parameters.
The dialogs for the user-parameters are defined in the PLC dialogs.
MP7330
MP7330.0
MP7330.1
.
.
.
.
MP7330.14
MP7330.15
User-parameter 0
User-parameter 1
4-88
User-parameter 14
User-parameter 15
3/97
6.9 Code-numbers
The MOD functions can be used to enter code-numbers for the control. These code numbers can be
used to activate certain control functions.
Code-number
Function
95 148
807 667
105 296
86 357
75 368
123
531 210
The value of the code-number which is entered is stored in Doubleword D276, except the code
numbers above The machine manufacturer can evaluate this code with the aid of the PLC and define
his own functions for code numbers or disable the preset code numbers.
D276
Programming station
Entry: 0, 1, 2
0 = Control and programming
1 = Programming station, "PLC active"
2 = Programming station, "PLC inactive"
3/97
Decimal sign
Entry: 0 or 1
0 = Decimal comma
1 = Decimal point
4-89
EPROM-test
M2060
M2061
Set
NC
NC
Reset
PLC
NC
M2019
M2059
4-90
Set
NC
NC
Reset
NC
NC
3/97
M2713
Set
PLC
W516
D528
Reset
NC
Red
Green
Blue
0 to 3
Coarse
0 to F
Fine
0 to 3
Coarse
0 to F
Fine
0 to 3
Coarse
0 to F
Fine
Since it is possible to make mistakes when setting the colors (e.g., red error messages on red
background), HEIDENHAIN recommends a standard color adjustment. This standard color setting is
the setting generally used by HEIDENHAIN and is prompted by the control system when creating
the MP list.
The new soft key "SETUP COLORS" (code number 98148) enables you to adjust the colors red,
green, and blue in the machine parameter for the respective color. You can mix the colors for
foreground and background separately and accepted the change with ENT. Pressing END terminates
without changing the color.
The standard color-adjustment is given in the following list.
Machine
parameter
MP7350
MP7351
3/97
Window frame
Error messages
$30200C
$3F0000
4-91
MP 7352
MP7352.0
MP7352.1
MP7352.2
Operating-mode "Machine"
Window Background
Operating mode display
Dialog
$000000
$342008
$3F3828
MP7353
MP7353.0
MP7353.1
MP7353.2
Operating-mode "Programming"
Window Background
Operating mode display
Dialog
$000000
$342008
$3F3828
MP7354
MP7354.0
MP7354.1
MP7354.2
MP7354.3
$080400
$38240C
$38341C
$302410
MP7355
MP7355.0
MP7355.1
MP7355.2
MP7355.3
$080400
$38240C
$38341C
$302410
MP7356
MP7356.0
MP7356.1
MP7356.2
$0C0800
$3F2C18
$3F280C
MP7357
MP7357.0
MP7357.1
$000000
$3F3828
MP7358
MP7358.0
MP7358.1
$000000
$3F3828
MP7360
MP7360.0
MP7360.1
MP7360.2
MP7360.3
MP7360.4
Graphics: 3D-depiction
Background
Surface
Front face
Text-display in graphics window
Side face
$000000
$203038
$0C1820
$3F3F3F
$102028
MP7361
MP7361.0
MP7361.1
MP7361.2
MP7361.3
MP7361.4
$000000
$203038
$203038
$3F3F3F
$3F0000
MP7362
MP7362.0
MP7362.1
MP7362.2
MP7362.3
$080400
$0C0800
$38240C
$3F2C18
4-92
3/97
7 M-functions
Up to 100 miscellaneous functions (M-functions) can be programmed. The code for these Mfunctions is transferred to the PLC either before or after execution of the NC-block. A number of
these M-functions have a fixed meaning for the NC. Such M-functions are marked with * in the
following table. The other M-functions are freely available.
*
*
*
*
*
*
*
*
MEffective at:
Function Start of End of
block
block
O
M 00
O
M 01
O
M 02
O
M 03
O
M 04
O
M 05
O
M 06
O
M 07
O
M 08
O
M 09
O
M 10
O
M 11
O
M 12
O
M 13
O
M 14
O
M 15
O
M 16
O
M 17
O
M 18
O
M 19
O
M 20
O
M 21
O
M 22
O
M 23
O
M 24
O
M 25
O
M 26
O
M 27
O
M 28
O
M 29
O
M 30
O
M 31
O
M 32
O
M 33
*
*
*
*
MEffective at:
Function Start of End of
block
block
O
M 34
O
M 35
O
M 36
O
M 37
O
M 38
O
M 39
O
M 40
O
M 41
O
M 42
O
M 43
O
M 44
O
M 45
O
M 46
O
M 47
O
M 48
O
M 49
O
M 50
O
M 51
O
M 52
O
M 53
O
M 54
O
M 55
O
M 56
O
M 57
O
M 58
O
M 59
O
M 60
O
M 61
O
M 62
O
M 63
O
M 64
O
M 65
O
M 66
O
M 67
*
*
*
*
*
*
*
*
*
MEffective at:
Function Start of End of
block
block
O
M 68
O
M 69
O
M 70
O
M 71
O
M 72
O
M 73
O
M 74
O
M 75
O
M 76
O
M 77
O
M 78
O
M 79
O
M 80
O
M 81
O
M 82
O
M 83
O
M 84
O
M 85
O
M 86
O
M 87
O
M 88
O
M 89
O
M 90
O
M 91
O
M 92
O
M 93
O
M 94
O
M 95
O
M 96
O
M 97
O
M 98
O
M 99
3/97
7 M-functions
4-93
Evaluation of the M-function must be programmed in the PLC. When transferring an M-function to
the PLC the code for the M-function is stored in Word W260 and the strobe-marker M2045 is set.
The execution of the M-function must be signaled to the NC by setting the markers M2482. The
next NC-block is only processed when the signal is acknowledged and the marker M2045 (strobe
signal for M-function) is reset by the NC.
Marker
Function
Set
Reset
M2045
M2482
NC
NC
NC
W260
4-94
7 M-functions
2/97
Example:
Evaluation of the miscellaneous function M03 in the PLC.
PLC-output:
PLC-input:
199
200
201
.
.
.
901
902
903
904
905
906
907
908
.
.
.
930
931
.
.
.
1170
1171
1172
1173
1174
1175
1176
1177
1178
EM
LBL 77
CASE W260
CM0
CM1
CM2
CM3
CM4
ENDC
EM
LBL 3
L M1
S M2485
R M2486
R M2487
S O10
L I10
S M2482
EM
;M-code
;End of module
M-function M03
Status display M03, sign of C-axis analog
Reset M04
Reset M05
C-axis enable/disable
Acknowledgment of M-function?
Acknowledgment of M-function
M2045
M2485
O10
I10
M2482
2/97
7 M-functions
4-95
4-96
7 M-functions
Set
PLC
Reset
PLC
PLC
PLC
NC
NC
2/97
PLC example:
400
.
.
436
437
.
.
500
501
.
.
1020
1021
1022
1023
.
.
1050
1051
1052
1053
.
.
1211
1212
1213
1214
.
.
1412
1413
1414
1415
1416
1417
.
.
1476
1477
1478
1479
1480
1481
1482
2/97
CASE W260
;M-code
CM 36
CM 37
;Generator ON
;Generator OFF
ENDC
EM
LBL36
CM361
CM101
EM
;Generator ON
;M36
;Acknowledgment for M-function
LBL37
CM371
CM101
EM
;Generator OFF
;M37
;Acknowledgment for M-function
LBL101
LN M2482
S M2482
EM
LBL361
LN M2618
S M2618
R M2619
S O10
EM
;M36
;If gap control is off
;Switch on gap control
;Complementary marker for switch on gap control
;Generator ON
LBL371
L M0
ON M0
R M2618
S M2619
R O10
EM
;M37
;Set Accu to "1"
;Set Accu to "1"
;Switch off gap control
;Complementary marker for switch off gap control
;Generator OFF
7 M-functions
4-97
4-98
7 M-functions
2/97
If M89 is not defined as a modal cycle-call by machine parameters, then M89 will be transferred to
the PLC as a normal M-function at the beginning of the block.
MP7440
Output of M-functions
Entry range: 0 to 7
Bit 0
Program-halt on M06
Bit 1
Bit 2
Program-halt on
M-functions
2/97
+ 0 = Program-halt on M06
+ 1 = No program-halt on M06
+ 0 = Normal code-transfer of
M89 at beginning of block
+ 2 = Modal cycle-call M89 at end of block
+ 0 = Program-halt until acknowledgment
of M-function
+ 4 = No program-halt,
do not wait for acknowledgment
7 M-functions
4-99
4-100
7 M-functions
2/97
8 Key simulation
Data entry on the HEIDENHAIN contouring controls are made with the TNC keyboard and the
manufacturer's own machine control panel. The two control panels are joined to connectors X23 and
X27 (LE 306) or X45 and X46 (LE406) on the logic unit by a connecting cable (see "Mounting and
Electrical Installation").
The key-code from the TNC-keyboard is directly evaluated by the NC. PLC inputs and outputs for the
machine-control panel are available on connector X27 or X46. These PLC inputs and outputs must be
evaluated by the PLC and the appropriate information passed to the NC.
8.1 TNC-keyboard
The key-code from the TNC-keyboard is directly evaluated by the NC.
The keys on the TNC-keyboard and the soft keys on the BC 110 B can be inhibited by the PLC. With
M2876 the entire alphabetic keyboard can be inhibited. M2877 inhibits the soft-key row and M2878
inhibits the changeover keys to the right of the screen. All other keys can be inhibited selectively
with M2854 to M2923. If an inhibited key is pressed, the NC sets the marker M2182 and deposits
the key-code for the key which was operated in word W274. If a not inhibited key is pressed, the NC
sets the marker M2181 and deposits the key-code for the key which was operated in word W274.
The PLC must reset the markers M2182 or M2181 after evaluating this information.
The keys on the TNC-keyboard and the soft keys on screen can also be simulated by the PLC. To
achieve this the appropriate key-code is entered in Word W516 and activated by the strobe-marker
M2813. After execution of the key-code the NC resets the strobe-marker M2813.
A fixed code has been introduced for certain soft key functions. As with key simulation, this function
is executed by entering the required code in W516 and activating with M2813. The appropriate soft
key function must be displayed in the foreground or background mode for this. With the trailing edge
of M2813 the PLC is told whether the function was properly executed.
Address
Function
Set
Reset
W272
Operating mode
1 = Manual operation
2 = Electronic handwheel
3 = Positioning with manual entry
4 = Program run/single block
5 = Program run/full sequence
7 = Pass over reference point
Key-code for the operated, inhibited key or
not inhibited key
Word with multiple-function
Key-code for simulating TNC-key
activated by M2813
not inhibited key was operated
Inhibited key was operated
Soft key function not executed
Activate the key from W516
Inhibit the alpha keyboard
Inhibit the soft-key row below the screen
Inhibit the changeover keys at right of screen
NC
NC
NC
NC
PLC
PLC
NC
NC
NC
PLC
PLC
PLC
PLC
PLC
PLC
NC
NC
PLC
PLC
PLC
W274
W516
M2181
M2182
M2187
M2813
M2876
M2877
M2878
2/97
8 Key simulation
4-101
Marker
Function
inhibit
M2854
CHF
M2855
PGM
NAME
Keycode
Keycode
Set
Reset
M2871
75
PLC
PLC
59
M2872
76
PLC
PLC
77
PLC
PLC
58
Marker
Function
inhibit
M2856
60
M2873
M2857
RND
61
M2874
TOUCH
PROBE
78
PLC
PLC
CT
M2858
CC
62
M2880
TOOL
DEF
84
PLC
PLC
M2859
63
M2881
TOOL
CALL
85
PLC
PLC
M2860
64
M2882
R-L
86
PLC
PLC
M2861
65
M2883
R+R
87
PLC
PLC
M2862
MOD
66
M2884
88
PLC
PLC
M2863
67
M2885
89
PLC
PLC
68
M2886
90
PLC
PLC
M2864
M2865
PGM
CALL
69
M2887
CYCL
DEF
91
PLC
PLC
M2867
CR
71
M2888
CYCL
CALL
92
PLC
PLC
M2868
72
M2889
LBL
SET
93
PLC
PLC
M2869
73
M2890
LBL
CALL
94
PLC
PLC
M2870
74
4-102
8 Key simulation
2/97
Marker
Function
inhibit
Keycode
Marker
Function
inhibit
Keycode
Set
Reset
M2891
NO
ENT
95
M2907
111
PLC
PLC
M2892
STOP
96
M2908
112
PLC
PLC
M2893
EXT
97
M2909
113
PLC
PLC
114
PLC
PLC
115
PLC
PLC
M2894
CL
PGM
98
M2910
M2895
DEL
99
M2911
100
M2912
116
PLC
PLC
101
M2913
117
PLC
PLC
102
M2914
118
PLC
PLC
103
M2915
END
119
PLC
PLC
PLC
PLC
M2896
M2897
M2898
ENT
GOTO
M2899
M2901
CE
105
M2920
+/
124
M2902
IV
106
M2921
125
PLC
PLC
M2903
107
M2922
126
PLC
PLC
M2904
108
M2923
127
PLC
PLC
M2905
109
PLC
PLC
M2906
110
PLC
PLC
2/97
8 Key simulation
4-103
08
00
01
02
03
04
05
06
07
09
01
Special codes:
0080 (Hex): NC-Start
0081 (Hex): NC-Stop
4-104
8 Key simulation
2/97
Example:
If the "Position-transfer" key is pressed in the operating mode "Positioning with manual entry", a
linear NC-block with all three principal coordinates (X, Y, Z) is to be generated.
66
.
70
.
75
.
1102
CASE W272
.
CM 3
.
ENDC
.
EM
1103
1104
1105
1106
1107
1108
LBL 3
L M10
SN M2896
L M2182
CMT 31
EM
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
LBL 31
L M10
R M2896
SN M10
CASE B200
CM 130
CM 131
CM 132
CM 133
CM 132
CM 134
CM 132
CM 135
CM 141
ENDC
EM
;Key simulation
;Key simulation active?
;Yes, then enable "Position-transfer" key
;Otherwise set key simulation active
;Perform single-step
;Key L(line)
;Key X
;Key "Position-transfer"
;Key Y
;Key "Position-transfer"
;Key Z
;Key "Position-transfer"
;Key "END-BLOCK"
;Reset key simulation
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
LBL 130
L K60
= W102
CM 136
EM
LBL 131
L K109
= W102
CM 136
EM
;L(ine)
;Key-code for L(ine)
1135
1136
1137
1138
1139
LBL 132
L K100
= W102
CM 136
EM
2/97
.
;End main program
;Simulate key
;X
;Key-code for X
;Simulate key
;"Position-transfer"
;Key-code for "Position-transfer"
;Simulate key
8 Key simulation
4-105
1140
1141
1142
1143
1144
LBL 133
L K108
= W 102
CM 136
EM
1145
1146
1147
1148
1149
LBL 134
L K107
= W102
CM 136
EM
1150
1151
1152
1153
1154
LBL 135
L K119
= W102
CM 136
EM
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
LBL 136
L M2813
JPT 137
L B200
+ K+1
= B200
L W102
= W516
LN M2813
S M2813
EM
1166
1167
LBL 137
EM
;Return marker
1168
1169
1170
1171
1172
1173
1174
1175
1176
LBL 141
L M2813
JPT 137
L K+0
= B200
L M10
R M10
R M2182
EM
4-106
;Y
;Key-code for Y
;Simulate key
;Z
;Key-code for Z
;Simulate key
;"END BLOCK"
;Key-code for "END BLOCK"
;Simulate key
;Key simulation
;Strobe - key transfer from W516
;Still set, then wait
;Case byte
;Increment case byte
;Buffered key-code
;To NC
;Set strobe (activate simulation)
8 Key simulation
2/97
2/97
8 Key simulation
4-107
4-108
8 Key simulation
2/97
2/97
8 Key simulation
4-109
Marker
Function
Error
message
Set
Reset
M2448
M2464
1A
PLC
PLC
M2449
M2465
Rapid traverse
Complement rapid traverse
1B
M2488
M2450
M2466
M2451
M2467
Feed enable
Complement feed enable
1D
M2456
M2472
Manual traverse X+
Complement manual traverse X+
1I
M2457
M2473
Manual traverse X
Complement manual traverse X
1J
M2458
M2474
Manual traverse Y+
Complement manual traverse Y+
1K
M2459
M2475
Manual traverse Y
Complement manual traverse Y
1L
4-110
1C
8 Key simulation
2/97
Marker
Function
Error
message
Set
Reset
M2460
M2476
Manual traverse Z+
Complement manual traverse Z+
1M
PLC
PLC
M2461
M2477
Manual traverse Z
Complement - manual traverse Z
1N
M2462
M2478
Manual traverse 4+
Complement manual traverse 4+
1O
M2463
M2479
Manual traverse 4
Complement manual traverse 4
1P
M2452
M2468
Manual traverse 5+
Complement manual traverse 5+
2M
M2453
M2469
Manual traverse 5
Complement manual traverse 5
2N
Example:
NC-start key with two contacts I128 and I129
axis-direction key X+ with one contact I130
71
72
73
74
100
101
102
103
2/97
.
L I128
= M2448
LN I129
= M2464
.
L I130
= M2456
LN I130
= M2472
8 Key simulation
4-111
9 Short circuit/probing
The TNC normally uses input X12 as the short-circuit input (see also section "Short circuit, CYCL
STOP and arcing"). If the TNC probing functions are to be utilized, either the electrode or a probe
system from HEIDENHAIN (such as the TS 120) can be used to perform the probing.
Marker M2028 indicates whether the control is currently in one of the probing functions, for
example so that a test voltage can be turned on between the electrode and the workpiece.
The chapter "Installation and electrical connection" contains instructions for connecting the short
circuit input X12.
F2
4-112
9 Short circuit/probing
2/97
The error message "Touch point inaccessible" appears if the maximum measuring range (MP6130) is
exceeded.
The probing sequence must be enabled by the PLC with marker M2503. This marker is set by the
NC after a probing cycle starts and the NC waits until the PLC resets marker M2503 before
executing the probing function. A number of conditions are transferred to the PLC with markers
M2022 to M2072. This information can be processed further in the PLC program. The probing
function is controlled entirely from the NC.
In all modes when the stylus is deflected and marker M2502 is set, the controller stops the
machine. If M2502 is not set, the controller only detects stylus deflection if the probing function has
started. This is why HEIDENHAIN recommend setting marker M2502 as soon as the touch probe is
in the spindle.
MP6120
MP6130
MP6150
M2502
Set
PLC
Reset
PLC
M2503
PLC
PLC
M2022
NC
NC
M2023
NC
NC
M2025
NC
PLC
M2026
NC
NC
M2027
NC
NC
M2028
NC
NC
2/97
9 Short circuit/probing
4-113
MP6110
MP6140
MP6130
M2617
4-114
9 Short circuit/probing
Set
PLC
Reset
PLC
2/97
2/97
9 Short circuit/probing
4-115
4-116
9 Short circuit/probing
2/97
10 Handwheel
Either an integral handwheel (HR 130) or a portable handwheel (HR 330 or HR 410) can be
connected to HEIDENHAIN contouring controls TNC406 and TNC306 (see also chapter "Mounting
and Electrical Installation"). The operation of the electronic handwheel is described in the TNC User's
Manuals.
If electronic handwheel operation is chosen but no handwheel is connected, the error message
"HANDWHEEL NOT READY" will appear.
Shock and vibration can cause a slight movement of the handwheel and thus lead to an unwanted
traverse movement. To avoid this, a threshold sensitivity for the electronic handwheel can be
entered in machine parameter MP7660 .
The count direction for the encoder signals from the handwheel is entered in machine parameter
MP7650.
MP7640
Handwheel
Entry: 0 to 3
0 = no handwheel
1 = HR 330
2 = HR 130
3 = HR 410
MP7650
MP 7660
HR 330
A subdivision factor can be selected in the "Handwheel" operating mode (only HR330). This
subdivision factor determines the traverse distance per turn. In order to ensure that the rapid
traverse rate fixed by the machine parameter MP1010.x is not exceeded, the NC determines the
minimum entry value for the interpolation factor. The NC goes by the smallest value which was
entered, i.e. according to the slowest axis.
Machine parameter MP7670.0 can be used to select a higher limit than that calculated by the NC.
Interpolation factor
0
1
2
3
4
5
6
7
8
9
10
2/97
20
10
5
2.5
1.25
0.625
0.312
0.156
0.078
0.039
0.019
10 Handwheel
4-117
MP7670.0
M2789
Set
PLC
Reset
PLC
HR 410
Machine parameter MP7640=2 activates the functions for the HR410 handwheel.
When the control transfers the initializing parameters, it transmits to the handwheel a code that
depends on the value entered in MP7640. After initialization is completed, the handwheel must
answer with a corresponding code. If the code is incorrect, the error message "HANDWHEEL NOT
READY appears.
All keys of the handwheel except for the function keys A, B, and C are evaluated by the NC. All
outputs except O109 to O111 are driven by the NC. The function keys A, B, and C, and the outputs
O109 to O111 must therefore still be evaluated or controlled by the PLC.
Machine parameters MP7670.0 to MP7670.2 determine which subdivision factors are in effect for
low, medium and high speed.
The machine parameters MP7671.0 to MP7671.2 define the speed of the speed levels (low,
medium, high) with the percentage factor from MP1020. The last adjusted speed level (the key last
pressed) remains stored even if power is interrupted.
If the handwheel is active, that is, it the handwheel symbol is shown for one of the axes, the NC will
use the value entered in MP7671.x to calculate the feed rate when the HR 410 axis keys are
pressed. For this reason the axis direction keys on the machine control panel are inhibited whenever
the handwheel axis direction keys are being used.
Assignment of handwheel inputs/outputs for PLC evaluation:
Function key A
Function key B
Function key C
I173
I174
I175
O109
O110
O111
4-118
10 Handwheel
2/97
MP7670.0
MP7670.1
MP7670.2
MP7671.0
% Factor from MP1020.x for feed rate with smallest speed range for HR410
Input range: 0 to 1000%
MP7671.1
% Factor from MP1020.x for feed rate with medium speed range for HR410
Input range: 0 to 1000%
MP7671.2
% Factor from MP1020.x for feed rate with greatest speed range for HR410
Input range: 0 to 1000%
2/97
10 Handwheel
4-119
11 Analog inputs
The analog input of the LE360 and LE406 is connected to the gap signal to effect gap control. The
gap signal is a voltage in the range of 0 to +5 V and should never exceed this.
A detailed description can be found in the chapter "Gap Control" and the chapter "Mounting and
Electrical Installation."
4-120
11 Analog inputs
2/97
2/97
11 Analog inputs
4-121
Function
M2052
Set
Reset
NC
NC
M2497
PLC
PLC
M2498
PLC
PLC
M2512
M2528
M2513
M2529
Increment positioning X+
Complement increment positioning X+
Increment positioning X
Complement increment positioning X
2A
PLC
PLC
2B
PLC
PLC
M2514
M2530
M2515
M2531
Increment positioning Y+
Complement increment positioning Y+
Increment positioning Y
Complement increment positioning Y
2C
PLC
PLC
2D
PLC
PLC
M2516
M2532
M2517
M2533
Increment positioning Z+
Complement increment positioning Z+
Increment positioning Z
Complement increment positioning Z
2E
PLC
PLC
2F
PLC
PLC
M2518
M2534
M2519
M2535
2G
PLC
PLC
2H
PLC
PLC
M2520
M2536
M2521
M2537
Increment positioning V+
Complement increment positioning V+
Increment positioning V
Complement increment positioning V
2I
PLC
PLC
2J
PLC
PLC
4-122
Error Message
2/97
Example:
Axis direction button X+ (I138)
Axis direction button X (I133)
L
L
L
CMT
.
.
EM
.
.
LBL 10
L
M2052
M2052
M2052
10
M2498
M2512
R
S
S
M2513
M2528
M2529
L
AN
S
R
M1638
I133
M2512
M2528
Increment positioning X+
L
AN
S
R
M1633
I138
M2513
M2529
Increment positioning X
M2052
EM
.
.
.
2/97
4-123
4-124
2/97
13 Datum correction
The PLC datum correction function is used to shift the zero or datum point with the PLC program.
Datum corrections are required for machines that have swivel heads.
Each axis (X, Y, Z, 4) is assigned a double word (D528 to D540) for the correction value. If a value for
the appropriate axis is entered via the PLC program, strobe marker M2716 is to be set during a
M/S/T strobe to active datum correction. The correction is computed in the actual position display.
The display then indicates the shifted coordinate system.
Example:
Actual position display for X axis without correction = 50
Correction in D528 = +20
Strobe marker M2716 set, i.e. correction is active
New actual position display X= +70
The corrections can be transferred to double words, D528 to D540 as follows:
Enter values in MP4210.0 to MP4210.47 and they will also be in D768 to D956; now copy values via
PLC program into D528 to D544.
Marker
Function
Set
Reset
M2716
PLC
NC
D528
D532
D536
D540
D544
1) only
2/97
TNC 406
13 Datum correction
4-125
PLC example:
Datum correction in Z axis with M20 activated, with M21 deactivated
.
.
L
W260
==
K+20
;M20 activated
A
M2045
S
M10
;buffered marker for strobe marker 2716
CMT 200
;datum correction call
R
M10
L
W260
==
K+21
;M21 activated
A
M2045
S
M10
;buffered marker for strobe marker 2716
CMT 201
;deactivate datum correction call
R
M10
EM
;end of main program
LBL 200
L
=
...
...
L
S
EM
LBL 201
L
=
L
S
EM
.
.
4-126
D896
D536
M10
M2716
D900
D536
M10
M2716
13 Datum correction
2/97
14 Electrode changer
The PLC enables implementation of a simple electrode changer with fixed tool positions, such as a
pick-and-place rack type.
For electrode changers that function with proximity switches, reference should be made to the
description in the technical manual TNC360 / TNC335.
The geometric information of the electrodes is defined by the TOOL DEF or the "TOOL DEFINITION"
cycle in the NC program.
2/97
DEF 1
DEF 3.0
DEF 3.1
DEF 3.2
DEF 3.3
L+2.73 R+5
TOOL DEFINITION
T2
R+2.7
X+10.3 Y15.02
Z+18.15 C+1.23
CALL 1
U+0.42
CALL 2
U+2.24
14 Electrode changer
4-127
Each electrode change should be commenced with a TOOL CALL command. The TOOL DEF
command has no function within the PLC. In this example each rack position in the electrode
changer is defined by two machine parameters (X coordinate and Y coordinate). In the following flow
charts variable names are used to aid understanding of the logic. In the PLC program these variable
names would be replaced by the word addresses.
In program run a TOOL CALL block is executed by the NC in accordance with the value in machine
parameter MP7480.0. If MP7480.0 = 1, the NC only loads the new tool number into the PLC word
W262 if it is different from the current tool number. If MP7480.0 = 2, PLC word W262 is loaded with
the new tool number at every TOOL CALL. When a value is loaded into W262, the NC sets strobe
marker M2046 to inform the PLC program which should then take appropriate action, i.e. change the
electrode. With the change sequence completed the PLC program should set marker M2483 to
indicate to the NC the end of the TOOL CALL block thus allowing the NC run to continue.
MP7480.0
W262
4-128
14 Electrode changer
2/97
Function
Set
Reset
M2046
NC
NC
M2483
PLC
PLC
MP4210.24
MP4210.30
to
MP4210.34
MP4210.40
MP4210.41
MP4210.42
MP4210.43
2/97
14 Electrode changer
4-129
The flowchart for this Electrode Changer example is written in the form of modules which are listed
below:
TOOL CALL
POC. REG
PLC POS. Z UP
T-code = SPIREG
=> No T-code is sent from the NC to the PLC or direct acknowledgment sent from
the PLC
Note:
4-130
14 Electrode changer
2/97
ERROR
"INCORRECT
TOOL
NUMBER"
YES
T-code = SPIREG
NO
T-code
=
SPIREG
YES
Module:
PLC POS.
NEUTRAL
SPIREG
=
0
SPIREG = 0
NO
YES
Module:
Replace Old
Tool
T code
=
0
NO
Module
SELECT
NEW TOOL
YES
Module
PLC POS.
NEUTRAL
NO
Axis X and 4
in Position
?
Update necessary
operands &
acknowledge
TOOL CALL
Return to
NC program
YES
2/97
14 Electrode changer
4-131
Push
SPIREG - 1
To Stack
Module:
POC. REG.
No
TOOL RACK
POS. REACHED
?
Yes
Module:
PLC. POS.
Z DOWN
Tool Unclamped
and set
SPRIEG to 0
Module:
PLC. POS.
Z UP
TOOL CLAMP
END
4-132
14 Electrode changer
2/97
PLC position
To Z UP
position
No
Achse Z
in position
Yes
PLC pos. in X and Y
to neutral pos.
X and Y
No
Axes X und Y
in position
Yes
END
2/97
14 Electrode changer
4-133
Module:
POC. REG.
No
RACK
POSITION
REACHED
?
Yes
UNCLAMP
TOOL
Module:
PLC. POS.
Z DOWN
Module:
PLC. POS.
NEUTRAL
END
4-134
14 Electrode changer
2/97
POSREG
=0
NO
POSREG = 0
Module:
PLC. POS. RACK
POSITION 1
YES
POSREG
=1
NO
POSREG = 1
Module:
PLC. POS. RACK
POSITION 2
YES
POSREG
=2
NO
POSREG = 2
Module:
PLC POS. RACK
POSITION 3
YES
POSREG
=3
NO
POSREG = 3
NO
POSREG = 4
Module:
PLC. POS. RACK
POSITION 4
YES
POSREG
=4
Module:
PLC. POS. RACK
POSITION 5
YES
END
(DEPENDENT ON Tmax)
2/97
14 Electrode changer
4-135
Marker
Mpocpos
no set
No
Yes
Mpocpos = 0
Mpocpos = 1
Axes X
and Y not
in pos.
No
Axes X and Y
in position
Yes
END
4-136
14 Electrode changer
2/97
No
Axis Z
in Position
Yes
END
No
Axis Z
in Position
Yes
END
2/97
14 Electrode changer
4-137
Function
List of machine parameters (see "Machine parameters")
PLC-operation (see "PLC-programming")
Erasing the entire physical RAM memory (not NC-programs, erosion tables
and datum shift table)
Automatic offset adjustment (see section "Servo positioning")
Non-linear axis error compensation (see "Machine integration")
Disconnect and short together the nominal value inputs of the drive amplifiers.
0 V must be applied to the input!
Connect the servo-enable input to 24 V (normally) and thus activate the servo.
Rough offset adjustment. If the axis moves even though the nominal value input is clamped to
0 V, the offset potentiometer must be so adjusted that the axis comes to a stop. After the offset
adjustment remove the short-circuit link on the nominal value!
Rough velocity adjustment. Connect battery supply to the nominal value input. Adjust the battery
supply to 9 V and adjust the drive motor with the tacho-potentiometer to the desired speed
(which equals the maximum rapid traverse rate). The rated speed can be read from the drive
motor with a tachometer.
Tuning of the drive amplifier. As far as the control is concerned, the actual servo-loop consists of
the drive amplifier, motor and axis slide (see section "Servo positioning"). Before the position
control loop in the control can be optimized, the servo-loop must be tuned.
To achieve this, a battery supply is used to apply a (9 V) step function to the nominal value input
of the drive amplifier. The step response of the tachometer signal can be recorded by an
oscilloscope. The axis should be loaded with the permissible workpiece weight while the step
response is being recorded. The subordinate control loop (current control, spindle speed control)
must be so optimized that the step response shows an overshoot.
4-138
2/97
The following curve represents the ideal response of the tachometer signal:
U [V]
Given step
function
1 Overshoot
Umax
Tacho-signal
t [ms]
Several overshoots
U [V]
Umax
Incorrect!
t [ms]
P-component of the subordinate control loop too
high or I-component too low
U [V]
Umax
Too flat
Incorrect!
t [ms]
P-component of the subordinate control loop too
low or I-component too high
2/97
4-139
t [ms]
----------
T1.1
a = acceleration
4-140
2/97
2/97
4-141
Test the Function "Control operational" according to the section "EMERGENCY STOP routine."
Test the EMERGENCY STOP-circuit by pressing the EMERGENCY STOP keys and by traversing
past the EMERGENCY STOP limit switches.
4-142
2/97
START
Line voltage on
Yes
Change
MP210
MP1040
MP1320
No
Erase POWER INTERRUPTED error message with CE
Line
voltage
off
Yes
No
Reference traverse with
machine START button
No
Traverse
direction correct?
(as defined
in MP1320)
No
Start reference
traverse with
axis direction keys
?
Yes
Axis traverse
direction correct?
(defined in MP1040
and MP210)
(Both types of
referencing must
be performed!)
No
Yes
Test the traverse direction of
referencing in each axis
2/97
4-143
In "Manual operation" mode select the REFdisplay with the MOD key.
Function
MP1050
9V
MP1060
MP1810
kv factor
4-144
2/97
Kv factor
Adjust the Kv factor (MP1810) so that the voltage characteristic is as described in the section "Servo
positioning." If a different Kv factor is required for rapid traverse to that for the machining feed rate, it
must be optimized separately.
Optimize Kv factor for the machining feed rate (X axis)
Connect storage oscilloscope to tachometer
of the servo-amplifier of X axis.
t [s]
Machining feed
MP1810 (kv factor): Reduce entry value until no oscillations are detectable.
U [V]
t [s]
Program the traverse paths for the axis concerned as large as possible.
Enter the max. feed rate for machining.
For axes which are mutually interpolated the Kv factors must be the same.
In this case the worst axis determines the entry value.
2/97
4-145
4-146
2/97
Function
Entry value
MP1710
MP1720
Position monitoring
Position monitoring (EMERGENCY
STOP)
MP1140
MP1030
MP1110
Movement monitoring
Positioning window
Standstill monitoring
0.5 [V]
0.005 [mm]
0.1 [mm]
If the drives of the machine permit narrower limits, these may be entered.
2/97
4-147
4-148
2/97
52
52
2
2.1
53
53
2.2
54
2.3
54
3
3.1
55
55
3.2
Positioning
511
3.3
513
3.4
Eroding
514
3.5
Integral PLC
517
3.6
518
3.7
Probing
519
3.8
519
3.9
522
3.10
Color adjustment
524
3.11
525
3.12
Hardware
527
3/2000
5-1
A contouring control must have access to specific data (e.g., paths of traverse, acceleration) before
it can execute its programmed instructions.
The machine tool builder provides these data in so-called machine parameters. In addition, machine
parameters can be used to activate functions that are possible with HEIDENHAIN contouring
controls but are required only on certain types of machines (such as automatic tool changers).
The machine parameters are grouped according to function:
Machine parameters
Functional group
0
1000
1700
2000
4000
5000
6000
7200
7400
7600
to
to
to
to
to
to
to
to
to
to
999
1399
1999
2999
4999
5999
6199
7399
7599
7699
If there is more than one input value for a single function (e.g., a separate input for each axis), the
parameter number is provided with indices.
Example:
MP330 Grating period
MP330.0 Grating period for axis X
MP330.1 Grating period for axis Y
MP330.2 Grating period for axis Z
MP330.3 Grating period for axis 4
MP330.4 Grating period for axis 5
The indices are assigned to the corresponding axes according to a fixed pattern. For example, if
entry is only possible in axis 4, then only index 3 will appear.
5-2
3/2000
If the machine parameters have not yet been entered into the control (e.g., during commissioning),
the TNC presents the list of machine parameters after performing the memory test. The input values
must now be entered either by hand on the keyboard or through the data interface. The data
interface is activated by pressing EXT. It is pre-set to FE mode. This default setting can be changed
through the MOD functions (see Chapter "Data Interface").
X axis
Bit 1
Y axis
Bit 2
Z axis
Bit 3
4th Axis
Bit 4
5th Axis
+ 0 = Not active
+ 1 = Active
+ 0 = Not active
+ 2 = Active
+ 0 = Not active
+ 4 = Active
+ 0 = Not active
+ 8 = Active
+ 0 = Not active
+ 16 = Active
Example: If you wish to activate axes X, Y and Z, the decimal entry value for MP10 is 1 + 2 + 4=7,
the binary value is % 00111, the hexadecimal value is $ 07.
3/2000
5-3
5-4
3/2000
MP10
Active axes
Entry range:
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4 *
MP31
Y
Z
IV
V*
Y
Z
IV
V*
Page
RESET
4-5
RESET
4-8
RESET
4-9
Frequency monitoring
Entry range:
1 to 15 (TNC 306)
% xxxxx (TNC 416/406)
X
Reaction
1 to 15 (TNC 306)
% xxxxx (TNC 416/406)
X axis +0 = Not active
+1 = Active
Y axis +0 = Not active
+2 = Active
Z axis +0 = Not active
+4 = Active
4th axis +0 = Not active
+8 = Active
5th axis +0 = Not active
+16 = Active
MP32
Change
via
3/2000
5-5
Machine
parameter
Reaction
Page
MP40
Display on screen
Entry range:
1 to 15 (TNC 306)
% xxxxx (TNC 416/406)
Bit 0
X axis +0 = Not active
+1 = Active
Bit 1
Y axis +0 = Not active
+2 = Active
Bit 2
Z axis +0 = Not active
+4 = Active
Bit 3
4th axis +0 = Not active
+8 = Active
Bit 4 * 5th axis +0 = Not active
+16 = Active
RESET
4-12
MP50
Controlled axes
Entry range:
1 to 15 (TNC 306)
% xxxxx (TNC 416/406)
Bit 0
X axis +0 = Not controlled
+1 = Controlled
Bit 1
Y axis +0 = Not controlled
+2 = Controlled
Bit 2
Z axis +0 = Not controlled
+4 = Controlled
Bit 3
4th axis +0 = Not controlled
+8 = Controlled
Bit 4 * 5th axis +0 = Not controlled
+16 = Controlled
RESET
4-50
MP60
RESET
4-50
MP110.0-4
RESET
4-11
Change
via
5-6
3/2000
Machine
parameter
MP115.0
MP115.1
Reserved
Input: %00000
Change
via
Reaction
Page
RESET
RESET
RESET
4-12
RESET
4-7
MP 120.0-4
MP210
MP330.0-4
Grating period
Entry range: 1 to 360 [m] or [1/1000 ]
4-6
MP330.0
X axis
MP330.1
Y axis
MP330.2
Z axis
MP330.3
4th axis
MP330.4
5th axis
Canceled in TNC 416 software 286 180-01
Canceled in TNC 406 software 280 620-08
3/2000
5-7
Machine
parameter
MP331.0-4
Change
via
Reaction
Page
Reset
Reset
Reset
Designation of axis 4
Entry value: 0 to 2
RESET
4-11
0=A
1=B
2=C
MP411 *
Designation of axis 5
Entry value: 0 to 5
4-11
0=A
1=B
2=C
3=U
4=V
5=W
MP720.0-4
4-18
MP710
MP711
5-8
3/2000
Machine
parameter
MP720.0-4
MP730
4-22
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4 *
Change
via
Page
X axis
+0 = Not active
+1 = Active
Y axis +0 = Not active
+2 = Active
Z axis +0 = Not active
+4 = Active
4th axis +0 = Not active
+8 = Active
5th axis +0 = Not active
+16 = Active
MP910
MP920
MP910.0
MP910.1
MP910.2
MP910.3
MP910.4 *
MP920.0
MP920.1
MP920.2
MP920.3
MP920.4 *
X+
Y+
Z+
IV+
V+
X
Y
Z
IV
V
MP911
MP921
MP911.0
MP911.1
MP911.2
MP911.3
MP911.4 *
MP921.0
MP921.1
MP921.2
MP921.3
MP921.4 *
X+
Y+
Z+
IV+
V+
X
Y
Z
IV
V
3/2000
Reaction
4-13
4-13
5-9
Machine
parameter
MP912
MP922
MP912.0
MP912.1
MP912.2
MP912.3
MP912.4 *
MP922.0
MP922.1
MP922.2
MP922.3
MP922.4 *
X+
Y+
Z+
IV+
V+
X
Y
Z
IV
V
MP950.04
Change
via
Reaction
Page
414
477
Machine datum
Entry range:
30 000.000 to +30 000.000 [mm] or []
477
5-10
3/2000
3.2 Positioning
Machine
parameter
Change
via
Reaction
Page
442
443
448
MP1040
47
442
MP1060.04 Acceleration
Entry range: 0.001 to 9.0 [m/s2]
441
MP1070
Radial acceleration
Entry range: 0.001 to 3.0 [m/s2]
445
MP1090
123
460
123
488
MP1092
MP1093
MP1094
MP1095
MP1096
MP1097
3/2000
5-11
Machine
parameter
MP1110
448
MP1140
447
MP1141
447
Change
via
Reaction
Page
MP1320
444
0 = No automatic adjustment
433
433
433
433
5-12
3/2000
Machine
parameter
Change
via
Reaction
+1 =
Page
434
MP1530
MP1540
MP1550
MP1700
3/2000
Change
via
Reaction
Page
5-13
Machine
parameter
Change
via
Reaction
Page
446
446
442
3.4 Eroding
Machine
parameter
MP2010
Characteristic gradient
Entry range: 0.001 to 60 . 000
MP2010.0
MP2010.1
MP2020
Multiplication factor
Entry range: 1.000 to 10 . 000
MP2020.0
MP2020.1
MP2030
Characteristic kink
Entry range: 0 to 100 [%]
MP2030.0
MP2030.1
MP2040
123
464
MP2050
123
460
MP2051
123
461
5-14
Change
via
Reaction
Page
456
456
457
3/2000
Machine
parameter
MP2052
MP2060
Change
via
Reaction
Page
123
460
457
MP2080
456
MP2081
MP2090
MP2100
MP2110
3/2000
123
4-54
123
4-61
5-15
Machine
parameter
Change
via
MP2120
Arc detection
(electrode retraction time)
Entry range: 1 to 99.9 [s]
123
MP2130
4-56
MP2131
4-57
MP2132
4-57
MP2133
4-59
MP2141
MP2142
MP2190
123
Reaction
Page
4-60
5-16
4-62
3/2000
MP4010
Change
via
Reaction
Page
7-21
EPROM
RAM
MP4020
4-64
MP4030
MP4060.0-4
Path-dependent lubrication
Entry range: 0 to 65 535 (in units of 65 536 m)
4-16
MP4110.0-47
7-17
7-19
MP4210.0-47
7-16
MP4220.0-7
7-16
MP4310.0-15
7-16
MP4320.0-7
7-16
3/2000
5-17
Change
via
MP5010
EXT mode:
ASCII character for end of data
Entry range: 0 to 127
123
8-26
MP5011
EXT mode:
ASCII character for end of transmission
Entry range: 0 to 127
123
8-26
MP5020
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
MP5100
123
Reaction
Page
8-27
0 = no parity
1 = even parity
2 = odd parity
MP5200
MP5990
123
8-26
5-18
3/2000
3.7 Probing
Machine
parameter
MP6100
Successive probing
Entry range: 1 to 5
4-114
MP6110
4-114
MP6120
123
4-113
MP6130
123
4-114
MP6140
Retraction path
Entry range: 0 to 30 000 [mm]
MP6150
Change
via
Reaction
Page
4-114
123
4-113
Change
via
Reaction
Page
MP7210
Programming station
Entry values: 0, 1, 2
0 = Control
1 = Programming station: PLC active
2 = Programming station: PLC inactive
123
RESET
4-89
MP7212 *)
MP7230
Dialog language
Entry values: 0 to 3
Software Nr.:
286 180/
286 181/
280 620
280 621
0 = English
English
1 = German
German
2 = French
Swedish
3 = Italian
Finnish
MP7231
3/2000
123
286 182/
280 622
English
German
Czech
Reserved
OEM label
Entry values: 0 to 99
0 = standard label
1 to 99 = number of PLC error message,
displayed as OEM label
5-19
Machine
parameter
MP7232
MP7240
MP7241
MP7245.0
4-86
MP7245.1
4-86
MP7250
9-3
MP7251
9-4
5-20
Change
via
Reaction
Page
123
9-3
3/2000
Machine
parameter
Change
via
MP7271
123
4-82
MP7272 *)
123
4-84
MP7273
123
MP7274.0
MP7274.1
MP7280
Decimal character
Entry values: 0 or 1
123
Reaction
Page
4-89
0 = Comma
1 = Point
*) only TNC 306
3/2000
5-21
Machine
parameter
MP7290.0-5
Change
via
Reaction
Page
Reaction
Page
Resolution of display
m
inch
0.1 m
0.00001
0.5 m
0.00002
1 m
0.0001
5 m
0.0002
10 m
0.001
50 m
0.002
100 m
0.01
Change
via
MP7300
123
4-84
5-22
3/2000
Machine
parameter
Change
via
MP7310
Graphics display
Entry range: 0 to 3
Bit 0
Projection type for "Projection in 3
planes" display
+ 0 = European preferred
+ 1 = American preferred
Bit 1
Rotation of coordinate system in the
working plane by +90
+ 0 = No rotation
+ 2 = Rotation
123
MP7315
Reaction
Page
4-79
4-88
3/2000
5-23
MP7350 *
MP7351*
Window frame
Error messages
$30200C
$3F0000
MP7352 *
MP7352.0
MP7352.1
MP7352.2
$000000
$342008
$3F3828
MP7353 *
MP7353.0
MP7353.1
MP7353.2
Operating-mode Programming
Window background
Operating-mode display
Dialog
$000000
$342008
$3F3828
MP7354 *
MP7354.0
MP7354.1
MP7354.2
MP7354.3
$080400
$38240C
$38341C
$302410
MP7355 *
MP7355.0
MP7355.1
MP7355.2
MP7355.3
Program-text-display Programming
Background
$080400
General program text
$38240C
Current block
$38341C
Background of active window
$302410
MP7356 *
MP7356.0
MP7356.1
MP7356.2
Status-window
Background
$0C0800
Axis positions in the status-display $3F2C18
Status-display, except axis position $3F280C
MP7357 *
MP7357.0
MP7357.1
$000000
$3F3828
MP7358 *
MP7358.0
MP7358.1
$000000
$3F3828
MP7360 *
MP7360.0
MP7360.1
MP7360.2
MP7360.3
MP7360.4
$000000
$203038
$0C1820
$3F3F3F
$102028
Change
via
Reaction
Page
4-91
5-24
3/2000
Machine
parameter
MP7361 *
MP7361.0
MP7361.1
MP7361.2
MP7361.3
MP7361.4
MP7362 *
MP7362.0
MP7362.1
MP7362.2
MP7362.3
MP7365 *
MP7365.0
MP7365.1
MP7365.2
MP7365.3
MP7365.4
MP7365.5
MP7365.6
MP7365.7
Background
Channel 1
Channel 2
Channel 3
Channel 4
Reserved
Grating
Cursor and text
Change
via
Reaction
Page
4-92
$000000
$203038
$203038
$3F3F3F
$3F0000
$000000
$003F3F
$3F3F00
$003F00
$3F1230
$000000
$30200C
$3F3F3F
Change
via
Reaction
Page
MP7410
123
4-87
123
3/2000
5-25
Machine
parameter
Change
via
Reaction
Page
MP7412
123
MP7440
Output of M-functions
Entry range: 0 to 7
123
4-99
123
4-45
MP7470.0
MP7470.1
MP7480
5-26
0=
No output
1=
2=
4-128
3/2000
Machine
parameter
MP7481
MP7490
MP7491
Change
via
Reaction
Page
Entry values: 0 or 2
0 = software limit switch active
1 = software limit switch not active
3.12 Hardware
Machine
parameter
Change
via
MP7620
123
Reaction
Page
3/2000
Handwheel definition
Entry values: 0 or 1
0 = No handwheel is active
1 = HR 330
2 = HR 130
3 = HR 410
4-117
5-27
Machine
parameter
MP7645
MP7650
4-117
Change
via
Reaction
Page
MP7655
MP7660
4-117
MP7670.0
4-118
MP7670.0
MP7670.1
MP7670.2
MP7671
MP 7671.0
MP 7671.1
MP 7671.2
4-119
4-110
0 = Not stored
1 = stored
5-28
3/2000
Machine
parameter
MP7690
Change
via
Reaction
Page
4-90
RAM test
Bit 0
+ 0 = Test performed
+ 1 = Test not performed
EPROM test
Bit 1
+ 0 = Test performed
+ 2 = Test not performed
3/2000
5-29
1 List of Markers
Marker
Function
Set
Reset
Page
M2000
Axis enable X
NC
NC
4-51
M2001
Axis enable Y
NC
NC
4-51
M2002
Axis enable Z
NC
NC
4-51
M2003
Axis enable 4
NC
NC
4-51
M2004
Axis enable 5
NC
NC
4-51
M2008
Axis X in position
NC
NC
4-52
M2009
Axis Y in position
NC
NC
4-52
M2010
Axis Z in position
NC
NC
4-52
M2011
Axis 4 in position
NC
NC
4-52
M2012
NC
NC
4-16
M2013
NC
NC
4-16
M2014
NC
NC
4-16
M2015
NC
NC
4-16
M2016
NC
NC
4-16
M2019
NC
NC
4-90
M2022
NC
NC
4-113
M2023
NC
NC
4-113
M2024
NC
NC
M2025
NC
PLC
4-113
M2026
NC
NC
4-113
M2027
NC
NC
4-113
M2028
NC
NC
4-113
M2032
Axis 5 in position
NC
NC
4-52
M2039
NC
NC
M2040
NC
NC
M2044
NC
NC
M2045
M Strobe
NC
NC
4-94
M2046
NC
NC
4-129
M2049
NC
NC
M2050
NC
NC
M2051
NC
NC
3/2000
List of Markers
61
Marker
Function
Set
Reset
Page
M2052
NC
NC
M2053
NC
NC
M2054
NC
NC
M2055
NC
NC
M2056
NC
NC
M2057
NC
NC
M2059
NC
NC
4-90
M2060
NC
PLC
4-90
M2061
NC
NC
4-90
M2070
PLC
PLC
M2095
NC
NC
4-80
M2096
NC
NC
4-80
M2097
NC
NC
4-80
M2098
NC
NC
4-80
M2099
NC
NC
4-80
M2100
NC
NC
4-12
M2101
NC
NC
4-12
M2102
NC
NC
4-12
M2103
NC
NC
4-12
M2136
NC
NC
M2137
NC
NC
M2138
NC
NC
M2139
NC
NC
M2140
NC
NC
M2149
NC
NC
M2160
0 = positive, 1 = negative
NC
NC
4-8
M2161
0 = positive, 1 = negative
NC
NC
4-8
M2162
0 = positive, 1 = negative
NC
NC
4-8
M2163
0 = positive, 1 = negative
NC
NC
4-8
M2164
0 = positive, 1 = negative
NC
NC
4-8
M2180
NC
NC
M2181
NC
PLC
4-101
M2182
NC
PLC
4-101
M2183
NC
NC
4-84
M2184
NC
NC
4-84
M2185
NC
NC
M2187
NC
NC
62
List of Markers
3/2000
Marker
Function
Set
Reset
Page
M2188
NC
NC
M2189
NC
NC
M2190
NC
NC
4-85
M2191
NC
NC
4-71
M2192
to
M2239
NC
NC
M2240
PLC
PLC
9-5
M2241
PLC
PLC
9-5
M2242
PLC
PLC
9-5
M2243
PLC
PLC
9-5
M2244
PLC
PLC
9-5
M2245
PLC
PLC
9-5
M2246
PLC
PLC
9-5
M2247
PLC
PLC
9-5
M2248
PLC
PLC
9-5
M2249
PLC
PLC
9-5
M2250
PLC
PLC
9-5
M2251
PLC
PLC
9-5
M2252
PLC
PLC
9-5
M2253
PLC
PLC
9-5
M2254
PLC
PLC
9-5
M2255
PLC
PLC
9-5
M2256
PLC
PLC
9-5
M2257
PLC
PLC
9-5
M2258
PLC
PLC
9-5
M2259
PLC
PLC
9-5
M2260
PLC
PLC
9-5
M2261
PLC
PLC
9-5
M2262
PLC
PLC
9-5
M2263
PLC
PLC
9-5
M2264
PLC
PLC
9-5
M2265
PLC
PLC
9-5
M2266
PLC
PLC
9-5
M2267
PLC
PLC
9-5
M2268
PLC
PLC
9-5
M2269
PLC
PLC
9-5
M2270
PLC
PLC
9-5
M2271
PLC
PLC
9-5
3/2000
List of Markers
63
Marker
Function
Set
Reset
Page
M2448
PLC
PLC
4-110
M2449
Rapid traverse
PLC
PLC
4-110
M2450
PLC
PLC
4-110
M2451
Feed enable
PLC
PLC
4-110
M2452
Manual traverse 5+
PLC
PLC
4-111
M2453
Manual traverse 5
PLC
PLC
4-111
M2456
Manual traverse X+
PLC
PLC
4-110
M2457
Manual traverse X
PLC
PLC
4-110
M2458
Manual traverse Y+
PLC
PLC
4-110
M2459
Manual traverse Y
PLC
PLC
4-110
M2460
Manual traverse Z+
PLC
PLC
4-111
M2461
Manual traverse Z
PLC
PLC
4-111
M2462
Manual traverse 4+
PLC
PLC
4-111
M2463
Manual traverse 4
PLC
PLC
4-111
M2481
Acknowledgment of S-strobe
PLC
PLC
M2482
Acknowledgment of M-strobe
PLC
PLC
4-94
M2483
Acknowledgment of T strobe
PLC
PLC
4-129
M2485
PLC
PLC
4-54
M2486
PLC
PLC
4-54
M2487
PLC
PLC
4-54
M2488
PLC
PLC
4-110
M2492
PLC
PLC
4-53
M2493
PLC
PLC
4-53
M2494
PLC
PLC
4-53
M2495
PLC
PLC
4-53
M2497
PLC
PLC
7-20
M2498
PLC
PLC
4-122
M2503
NC
PLC
4-113
M2504
NC
NC
M2507
NC
NC
M2508
NC
NC
4-83
M2510
PLC
PLC
M2511
F-Override = 100%
PLC
PLC
M2512
PLC
PLC
4-122
M2513
PLC
PLC
4-122
M2514
PLC
PLC
4-122
M2515
PLC
PLC
4-122
64
List of Markers
3/2000
Marker
Function
Set
Reset
Page
M2516
PLC
PLC
4-122
M2517
PLC
PLC
4-122
M2518
PLC
PLC
4-122
M2519
PLC
PLC
4-122
M2520
PLC
PLC
4-122
M2521
PLC
PLC
4-122
M2544
PLC
PLC
4-53
M2545
PLC
PLC
4-53
M2546
PLC
PLC
4-53
M2547
PLC
PLC
4-53
M2548
PLC
PLC
4-17
M2549
PLC
PLC
4-17
M2550
PLC
PLC
4-17
M2551
PLC
PLC
4-17
M2552
PLC
PLC
4-53
M2553
PLC
PLC
4-53
M2554
PLC
PLC
4-53
M2555
PLC
PLC
4-53
M2556
PLC
PLC
4-34
M2557
PLC
PLC
4-34
M2558
PLC
PLC
4-34
M2559
PLC
PLC
4-34
M2560
PLC
PLC
4-34
M2564
PLC
PLC
4-53
M2568
PLC
PLC
4-53
M2572
PLC
PLC
4-53
M2576
PLC
PLC
4-17
M2609
PLC
PLC
4-83
M2611
Acknowledgment FN19
PLC
PLC
M2616
PLC
PLC
4-61
M2617
PLC
PLC
4-60
4-114
M2618
PLC
PLC
4-96
M2619
PLC
PLC
4-96
M2620
PLC
PLC
4-88
3/2000
List of Markers
65
Marker
Function
Set
Reset
Page
M2621
PLC
PLC
4-61
M2622
PLC
PLC
4-59
M2623
PLC
PLC
4-59
M2624
Limit switch X+
NC
NC
4-14
M2625
Limit switch X
NC
NC
4-14
M2626
Limit switch Y+
NC
NC
4-14
M2627
Limit switch Y
NC
NC
4-14
M2628
Limit switch Z+
NC
NC
4-14
M2629
Limit switch Z
NC
NC
4-14
M2630
Limit switch 4+
NC
NC
4-14
M2631
Limit switch 4
NC
NC
4-14
M2632
Limit switch 5+
NC
NC
4-14
M2633
Limit switch 5
NC
NC
4-14
M2640
PLC
PLC
4-88
M2642
PLC
PLC
4-60
M2704
PLC
NC
4-24
M2705
PLC
NC
4-24
M2706
PLC
NC
4-24
M2707
PLC
NC
4-24
M2708
PLC
NC
4-24
M2713
PLC
NC
4-90
M2716
PLC
NC
4-125
M2718
PLC
NC
M2719
M2780
Electrode is retracting
NC
NC
4-60
M2781
NC
NC
4-60
M2782
NC
NC
4-59
M2783
NC
NC
4-61
M2784
NC
NC
4-60
M2785
Erosion process on
NC
NC
4-56
M2786
Eroding a disk
NC
NC
4-88
M2787
NC
NC
4-88
M2788
Erosion error
NC
NC
4-60
M2789
NC
NC
4-118
M2790
NC
PLC
4-88
M2791
NC
PLC
4-88
66
List of Markers
3/2000
Marker
Function
Set
Reset
Page
M2794
NC
PLC
4-67
M27951)
NC
PLC
4-67
M27961)
PLC
NC
4-67
M2797
M27981)
PLC
4-67
M27992)
PLC
NC
4-70
3/2000
List of Markers
67
Marker
Function
Set
Reset
Page
M2800
NC
NC
M2801
NC
NC
M2802
NC
NC
M2803
NC
NC
M2804
NC
NC
M2805
NC
NC
M2806
NC
NC
M2807
NC
NC
M2808
NC
PLC
M2813
PLC
NC
4-101
M2815
PLC
PLC
4-85
M2816
PLC
PLC
4-14
M2817
PLC
PLC
4-14
M2824
PLC
NC
4-14
M2826
PLC
PLC
M2832
NC
NC
M2833
NC
NC
M2834
NC
NC
M2835
NC
NC
M2836
NC
NC
M2837
NC
NC
M2838
NC
NC
M2839
NC
NC
M2855
to M2923
PLC
PLC
4-102
M2924
to M3123
NC;
PLC
PLC
4-85
M3168
NC
PLC
7-58
M3169
Division by 0
NC
PLC
7-59
M3170
NC
PLC
7-60
M3171
M3172
NC
NC
M3200
to M3263
NC
NC
68
List of Markers
3/2000
Function
Transmission
Page
W258
W260
NC PLC
4-94
W262
NC PLC
4-128
W266
NC PLC
D268
T-Code, 32 bit
W272
Operating mode:
0 = Programming and editing
1 = Manual operation
2 = Electronic handwheel
3 = Positioning with manual entry
4 = Program run/single block
5 = Program run/full sequence
6 = Program test
7 = Pass over reference point
NC PLC
NC PLC
4-101
W274
Code number for the pressed disabled key, signal via M2182
Code number which is not evaluate from the NC
NC PLC
NC PLC
4-101
D276
D280
NC PLC
D284
NC PLC
D288
Actual position X
NC PLC
D292
Actual position Y
NC PLC
D296
Actual position Z
NC PLC
D300
Actual position 4
NC PLC
D304
Actual position 5
NC PLC
D308
NC PLC
D312
NC PLC
D316
NC PLC
D324
Nominal position X
NC PLC
D328
Nominal position Y
NC PLC
D332
Nominal position Z
NC PLC
D336
Nominal position 4
NC PLC
D340
Nominal position 5
NC PLC
D360
NC PLC
D364
Ref position X
NC PLC
D368
Ref position Y
NC PLC
D372
Ref position Z
NC PLC
D376
Ref position 4
NC PLC
D380
Ref position 5
NC PLC
D384
NC PLC
D388
NC PLC
4-61
3/2000
69
Word
Function
Transmission
Page
W392
NC PLC
4-57
W394
NC PLC
4-88
B396
B397
B398
D400
NC PLC
D412
Q parameter Q96*
NC PLC
4-63
D416
Q parameter Q97*
NC PLC
4-63
D420
Q parameter Q98*
NC PLC
4-63
W490
W492
NC PLC
4-54
W494
NC PLC
4-54
W498
NC PLC
D512
NC PLC
W516
PLC NC
4-101
W520
PLC NC
W522
PLC NC
W524
PLC NC
W526
PLC NC
D528
PLC NC
4-125
D532
PLC NC
4-125
D536
PLC NC
4-125
D540
PLC NC
4-125
D544
PLC NC
4-125
W560
PLC NC
4-24
W562
PLC NC
PLC NC
4-24
W564
W566
PLC NC
4-24
W568
PLC NC
4-24
W576
PLC NC
4-22
W578
PLC NC
PLC NC
4-22
W580
W582
PLC NC
4-22
610
4-24
4-22
3/2000
Word
Function
Transmission
Page
W584
PLC NC
4-22
W586
PLC NC
W588
MP2010.0 (100...10000)
W590
MP2010.1 (100...10000)
W592
MP2020.0 (100...10000)
W594
MP2020.1 (100...10000)
B596
MP2030.0 (0...100%)
B597
MP2030.1 (0...100%)
B600
NC PLC
B601.... Vacant
.B603
NC PLC
B604...
B619
NC PLC
B620.... Vacant
B623
NC PLC
B624.... Vacant
B627
PLC NC
PLC NC
D628
D632
D636
D640
D644
D648
Identifier 1, EL CALL
Compensation in X
Compensation in Y
Compensation in Z
Compensation in C
Undersize
Radius
B666
NC PLC
B667
NC PLC
B668
NR*
E-table PLC
4-63
B669
LV*
E-table PLC
4-63
B670
HV*
E-table PLC
4-63
B671
Gap voltage
GV*
E-table PLC
4-63
W672
Pulse ON duration
TON*
E-table PLC
4-63
B674
TOF*
E-table PLC
4-63
B675
Servo sensitivity
SV*
E-table NC
4-63
W676
AJD*
E-table PLC
4-63
W678
Erosion time
ET*
E-table PLC
4-63
B680
Arc sensitivity
AR*
E-table PLC
4-63
B681
P*
E-table PLC
4-63
W682
HS*
E-table PLC
4-63
W684
WR*
E-table PLC
4-63
W686
Surface finish
RA*
E-table PLC
4-63
D688
Stock removal
SR*
E-table PLC
4-63
3/2000
Identifier 2, WP CALL
Shift in X
Shift in Y
Shift in Z
Rotation in C
611
Word
Function
Transmission
Page
W692
Two-times gap
2G*
E-table PLC
4-63
W694
Minimum undersize
UNS*
E-table PLC
4-63
B696
Auxiliary parameter 1
AUX1*
E-table PLC
4-63
B697
Auxiliary parameter 2
AUX2*
E-table PLC
4-63
B698
Auxiliary parameter 3
AUX3*
E-table PLC
4-63
B699
Auxiliary parameter 4
AUX4*
E-table PLC
4-63
W700
Auxiliary parameter 5
AUX5*
E-table PLC
4-63
W702
Auxiliary parameter 6
AUX6*
E-table PLC
4-63
B703 B747
W748
W750
Reserved
W752
PLC NC
4-54
W756
PLC NC
4-62
W760
PLC NC
4-70
W762
PLC NC
4-70
W764
PLC NC
4-54
W766
PLC NC
4-54
D768
to
D956
NC PLC
7-14
W960
to
W974
NC PLC
7-16
W976
to
W1006
NC PLC
7-16
W1008
to
W1022
NC PLC
7-16
W1024
NC PLC
W1026
NC PLC
W1028
Reserved
W1030
W1032
612
NC PLC
3/2000
Word
Function
Transmission
W1034
NC PLC
W1036
NC PLC
W1038
NC PLC
W1040
NC PLC
W1042
Reserved
W1044
NC PLC
W1046
NC PLC
W1048
NC PLC
W1050
NC PLC
W1052
NC PLC
W1054
NC PLC
W1056
NC PLC
W1058
NC PLC
W1060
Reserved
W1062
W1064
to
W1098
Reserved
3/2000
Page
613
1
1.1
PLC-functions
Selecting PLC-operation
7-5
7-5
1.2
7-6
7-6
7-8
7-8
7-8
1.2.5 Utilization
7-8
1.3
7-9
7-9
7-10
7-10
7-11
2
2.1
7-12
7-12
Program creation
Program structure
2.1.1 Command
7-12
7-13
2.2
Address allocation
7-14
7-14
7-14
2.3
2.4
7-15
7-18
2.4.1 Timers
7-18
2.4.2 Counters
7-20
2.5
7-21
2.6
EPROM-creation
7-21
2.7
Error-messages
7-23
7-23
7-23
7-24
3
3.1
7-26
7-26
Commands
Load and Assign Commands
7-26
7-28
7-30
7-31
7-31
7-31
7-33
7-35
3/2000
PLC-functions
7-1
7-35
7-35
7-36
7-36
3.2
Set-commands
7-38
7-38
7-39
7-40
7-41
3.3
Logic Gates
7-43
7-43
7-45
3.3.3 OR (O)
7-47
7-49
7-51
7-53
3.4
7-56
Arithmetic commands
7-56
3.4.2 SUBTRACTION ()
7-57
7-58
7-59
7-60
3.5
Comparisons
7-62
7-62
7-63
7-64
7-65
7-66
>
7-67
7-69
7-69
7-69
3.6.3 OR [ ] (O[ ]) O[ ]
7-69
7-69
7-70
7-70
3.7
7-73
7-73
3.7.2 SUBTRACTION [ ] ([ ]) [ ]
7-73
7-73
7-73
7-74
7-76
7-76
7-2
PLC-functions
3/2000
3.8
7-77
7-77
7-77
7-77
7-77
7-78
7-78
3.9
Shift Commands
7-81
7-81
7-82
3.10
Bit commands
7-84
7-84
7-85
7-86
3.11
Stack operations
7-88
7-88
7-89
7-89
SW
7-90
7-90
7-90
3.12
Jump commands
7-93
7-93
7-93
PF
7-93
7-95
7-95
7-95
7-97
7-97
7-97
7-97
3.13
CASE statement
7-99
7-99
7-99
7-100
7-101
7-102
7-102
7-103
3.15
7-104
Submit Programs
7-104
7-105
7-105
3/2000
PLC-functions
7-3
3.16
INDEX-Register
7-108
3.17
Program Structures
7-109
7-109
7-110
7-110
4
4.1
7-111
7-111
4.2
7-112
4.3
7-113
4.4
7-114
4.5
7-115
4.6
7-115
4.7
7-116
4.8
7-117
4.9
7-117
4.10
7-117
4.11
7-118
4.12
7-120
4.13
7-121
4.14
7-122
7-4
PLC-functions
3/2000
1 PLC-functions
The integrated PLC in the TNC 406 and TNC 306 contains its own text editor for creating the list of
instructions for the PLC-program. Commands and comments are entered via the ASCII-keyboard on
the control panel of the TNC 406 or the keyboard of the TNC 306 (see Section "Programming and
editing-files").
The functions TRACE and TABLE, as well as a syntax check on entering the PLC commands and a
logical test with the Function COMPILE can make it easier to find faults in the PLC-program (see
section "Test functions").
8 ms are available for a PLC-run. Up to 4000 logic commands, equivalent to 32 Kbytes, can be
processed within this period (executable memory). A new PLC-run commences every 40 ms/20 ms
(depending on MP1700), i.e. every 40 ms/20 ms the inputs are read and outputs are set.
The following section shows how to start PLC-operation.
1.1
Selecting PLC-operation
PLC-operation covers all functions for creating and testing the PLC-programs.
It can be selected as follows, using code number 807 667.
Select NC operating-mode
"Programming and editing"
Press MOD
key
PLC-operation is selected
(Main menu)
3/2000
PLC-functions
7-5
1.2
TNC 406
PROCESSING TIME
MAXIMUM:
CURRENT:
TOTAL MEMORY
VACANT MEMORY
:
:
XX KBYTE
XX KBYTE
CODE LENGTH
XX KBYTE
Select PLC
editing
mode
Select
tables
M/I/O/T/C
/B/W/D
Select TRACE
mode
Compile PLC
program
XXX%
XXX%
Copy from
EPROM to
RAM
Erase PLC
Program
Quit PLC
Mode
TNC 306
ERASE PLC PROGRAM
TRANSFER PROGRAM FROM EPROM
PLC EDITING MODE
PLC PROGRAM TRACE MODE
TABLES M/I/O/C/T/B/W/D
TRANSLATE PLC PROGRAM
UTILIZATION/MEMORY
Select the desired mode with the cursor keys and and activate by pressing ENT.
To exit the menu and return to the previous NC mode, press END again.
EM"
"0" stands for program line 0 and "EM" for End of Module.
When entering an instruction, "EM" automatically moves downward by one line.
The PLC editing mode can be exited by pressing the END key/ soft key.
7-6
PLC-functions
3/2000
+
_
*
/
[
]
DEL
EXT
<
=
MOD
>
ENT
GOTO
NO
ENT
+/
CE
W
<
=
>
END
DEL
EXT
MOD
ENT
+/
CE
END
GOTO
J
O
K
P
L
Q
M
R
TE 355A
3/2000
A
NO
ENT
TE 355B
PLC-functions
7-7
1.2.5 Utilization
In the main menu (TNC 406) or in the mode UTILIZATION (TNC 306) the occupied PLC processing
time and the vacant PLC memory are displayed.
The vacant memory is derived from the total (reserved) memory and the occupied memory.
The vacant PLC memory is displayed in bytes.
100% processing time corresponds to 5 ms (TNC 406) or 4 ms (TNC 306). The maximum possible
processing time is 10 ms (TNC 406) or 8 ms (TNC 306). The current processing time indicates the
duration of the last PLC scan. If the current processing time exceeds the maximum, the blinking
error message ERROR IN PLC PROGRAM 53 will appear.
TNC 306:
Please note that the processing time increases by 20% during RS-232 data transfer and by 5%
during handwheel operation. A PLC program should therefore be tested during data transfer or
handwheel operation.
7-8
PLC-functions
3/2000
1.3
TNC 306
SELECT I/O/C/T/M
DISPLAY TRACE BUFFER
START TRACE
END TRACE
SELECT I/O/C/T/M
Those inputs (I), outputs (O), counters (C), timers (T) or markers (M) whose logical states are to be
checked can be entered into a table in the SELECT I/O/C/T/M function. A maximum of 16 markers,
timers etc. can be simultaneously verified. Each position is interrogated via dialog. Erroneous entries
can be deleted by pressing DEL.
The memory for the trace mode (TRACE BUFFER) has space for 1024 individual states per operand,
i.e. 1024 PLC processes are recorded. In order to record the required time duration of the user, a
TRIGGER condition can be entered for each operand:
"1" = Recording when operand is logically "1"
"0" = Recording when operand is logically "0"
If the trigger position is verified with the NOENT key, it means that a trigger condition is not
required. 512 states are recorded before and after a trigger event. The trigger event is regarded as
fulfilled only when the conditions for all operands are simultaneously fulfilled with TRIGGER.
Example:
M2618 1
M2780 0
M2781 1
I5
Trigger event:
If no trigger condition is entered for the operands, the states of the operands are continually
recorded and, after ending the trace mode, the last 1024 states are displayed.
To exit the SELECT I/O/C/T/M function, press END.
3/2000
PLC-functions
7-9
START TRACE
With this mode, TRACE is started. Until the trigger event occurs, the display PCTR blinks in the
status field. When the trigger event occurs, PCTR is on, and after the trace is stored, the display
goes out.
If marker M2622 is set the display COLL (TNC 306) or a symbol for a electrode (TNC 406) blinks.
END TRACE / STOP TRACE
If the trigger event does not occur, the trace can be aborted with the END TRACE or STOP TRACE
function. In this case, the last 1024 states of the selected operands are stored.
7-10
PLC-functions
3/2000
-37888
-34608
($FFFF6C00)
-33888
-33792
3/2000
PLC-functions
7-11
2 Program creation
The PLC program can be created directly on HEIDENHAIN contouring controls. For this purpose, the
PLC editor must be called with code number 807 667 (see Section "PLC-functions").
The PLC program can also be written with a special HEIDENHAIN compiler software (PLC.EXE).
2.1
Program structure
2.1.1 Command
A command is the smallest unit in a PLC-program. It consists of the operation and the operand.
A
Operation
Operand
designation
(I, O, M, T, C,
B, W, D, K)
(A, AN...)
28
;Comment
Operand
address;
constant value
Operand
7-12
Program creation
3/2000
L M2719
SN M2719
L M2497
SN M2497
L M2496
SN M2496
.
.
20
21
22
23
.
.
.
95
122
.
.
125
.
.
.
151
152
153
154
.
.
.
220
.
.
.225
.
.
.
.
L M1936
A M2045
AN M2618
CMT 36
.
.
.
EM
LBL 101
.
.
EM
.
.
.
LBL 36
CM 361
CM 101
EM
.
.
.
LBL 361
.
.
EM
.
.
Error conditions in the machine should be interrogated in the PLC-program and a plain language error
message should be displayed on the screen. See Chapter "Machine integration", Section "Display
and operation" and Chapter "PLC-programming", Section "Modules".
3/2000
Program creation
7-13
2.2
Address allocation
Abbreviation
Address range
Marker
Input
M (Marker)
I (Input)
Output
O (Output)
Counter
C (Counter)
Timer
T (Timer)
Byte
Word
Double word
Constant
B (Byte)
W (Word)
D (Double word)
K
0 to 3263
I0 to I31; I128 to I151;
I64 to I126 (PL 400) or up to I127 (PL 410)
O0 to O30;
O32 to O62(PL 400/PL 410)
Set counter : C0 to C31
Counter-contents: C48 to C79
Release count pulse: C96 to C127
Timer-start: T0 to T47
Timer running: T48 to T95
0 to 1023 (8 Bit)
0 to 1022 (16 Bit)
0 to 1020 (32 Bit)
2 147 483 647 to + 2 147 483 647
W0
W2
D4
W4
..
.
..
.
D1020
W1020
..
.
W1022
B0
B1
B2
B3
B4
B5
..
.
B1020
B1021
B1022
B1023
In byte addressing every address from 0 to 1023 is accessible. In word addressing, every second
address from 0 to 1022 is accessible and in double word addressing every fourth from 0 to 1020.
The address parameter gives the High byte for a word Address (W) , or the Highest byte for a double
word address (D).
Markers M1000 to M2000 and bytes B0 to B127 are non-volatile, i.e. the contents of this memory
are not lost when the power supply is switched off.
7-14
Program creation
3/2000
B0 to B127
B128 to B255
B256 to B511
B512 to B767
B768 to B1023
2.3
PLC NC
The Q parameters Q100 to Q107 transfer numbers from the PLC to the part program. This means
that Q100 to Q107 can be overwritten by the PLC. The numerical value is registered in Double word
D528 and the Q parameter numbers 0 to 7 are defined in Word W516. The numbers 0 to 7
correspond to parameters Q100 to Q107. The transfer is activated with the strobe marker M2713,
which must be set with the next M/S/T strobe.
Marker
Function
Set
Reset
M2713
PLC
NC
Address
Function
Double word with multiple function, here data for transfer from the
PLC to the NC
Q-Parameter No. for numerical transfer from PLC to NC
(0 7 = Q100 Q107)
D 528
W516
NC PLC
Various machine parameters are reserved for data transfer in the PLC. These machine parameters
are kept in the Double words D768 to D956 and the Words W960 to W974 and W976 to W1006.
PLC-positioning, datum-shifts, feed rates for PLC-positioning or coding for the release of certain
PLC-functions etc. can be filed in these machine parameters. The eroding parameters are still
available, which, depending on whether they are defined as Q parameters in the NC program or with
a table, are transferred by the NC or E-table into the PLC. The evaluation of all numerical values
transferred to the PLC takes place in the PLC program. (See chapter "Machine integration", section
"Eroding parameters.")
Address
D768
D772
D776
D780
D784
D788
3/2000
Function
Value from MP4210.0
Value from MP4210.1
Value from MP4210.2
Value from MP4210.3
Value from MP4210.4
Value from MP4210.5
Program creation
7-15
Address
D792
D796
D800
D804
D808
Function
Value from MP4210.6
Value from MP4210.7
Value from MP4210.8
Value from MP4210.9
Value from MP4210.10
D812
D816
D820
D824
D828
D832
D836
D840
D844
D848
D852
D856
D860
D864
D868
D872
D876
D880
D884
D888
D892
D896
D900
D904
D908
D912
D916
D920
D924
D928
D932
D936
D940
D944
D948
D952
D956
7-16
Program creation
3/2000
Address
W960
W962
W964
W966
W968
Function
Value from MP 4220.0
Value from MP 4220.1
Value from MP 4220.2
Value from MP 4220.3
Value from MP 4220.4
W970
W972
W974
W976
W978
W980
W982
W984
W986
W988
W990
W992
W994
W996
W998
W1000
W1002
W1004
W1006
W1008
W1010
W1012
W1014
W1016
W1018
W1020
W1022
MP4210.0
to MP4210.47
MP4220
to MP4220.7
MP4310.0
to MP4310.15
and
MP4320.0
to
MP4320.7
3/2000
Program creation
7-17
2.4
2.4.1 Timers
There are 48 timers available in the PLC. These timers are controlled by special markers with the
symbol T. The time period for the timers is defined in the machine parameter MP4110.X. The time
unit corresponds to the PLC cycle time.
The timers are started by setting markers T0 to T47 which also sets them to the value from
MP4110.X. This activation may only be performed for a single PLC run, as otherwise the timers will
be restarted upon every succeeding run.
The markers T48 to T95 (timer running) will remain set for the period defined in the machine
parameters.
Example:
Start of Timer 1
Period in MP4110.1 = 9 (PLC-cycles)
T1
T49
7-18
Program creation
3/2000
Timer start
T0
T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
T17
T18
T19
T20
T21
T22
T23
T24
T25
T26
T27
T28
T29
T30
T31
T32
T33
T34
T35
T36
T37
T38
T39
T40
T41
T42
T43
T44
T45
T46
T47
Timer running
T48
T49
T50
T51
T52
T53
T54
T55
T56
T57
T58
T59
T60
T61
T62
T63
T64
T65
T66
T67
T68
T69
T70
T71
T72
T73
T74
T75
T76
T77
T78
T79
T80
T81
T82
T83
T84
T85
T86
T87
T88
T89
T90
T91
T92
T93
T94
T95
MP4110.x
3/2000
Machine parameter
MP4110.0
MP4110.1
MP4110.2
MP4110.3
MP4110.4
MP4110.5
MP4110.6
MP4110.7
MP4110.8
MP4110.9
MP4110.10
MP4110.11
MP4110.12
MP4110.13
MP4110.14
MP4110.15
MP4110.16
MP4110.17
MP4110.18
MP4110.19
MP4110.20
MP4110.21
MP4110.22
MP4110.23
MP4110.24
MP4110.25
MP4110.26
MP4110.27
MP4110.28
MP4110.29
MP4110.30
MP4110.31
MP4110.32
MP4110.33
MP4110.34
MP4110.35
MP4110.36
MP4110.37
MP4110.38
MP4110.39
MP4110.40
MP4110.41
MP4110.42
MP4110.43
MP4110.44
MP4110.45
MP4110.46
MP4110.47
Program creation
7-19
2.4.2 Counters
There are 32 counters available in the PLC. Each of these counters is controlled by special markers
with the symbol C. After setting a marker from the range C0 to C31 the counter is loaded with the
value from machine parameter MP4120.X. The marker range C48 to C79 indicates whether the
count has been completed or not. The marker range C96 to C127 is used to start the counter
(counter release pulse).
Example:
C1
C49
C97
C0
C1
C2
C3
C4
C5
C6
C7
C8
C9
C10
C11
C12
C13
C14
C15
C16
C17
C18
C19
C20
C21
C22
C23
C24
C25
C26
C27
C28
C29
C30
C31
7-20
C48
C49
C50
C51
C52
C53
C54
C55
C56
C57
C58
C59
C60
C61
C62
C63
C64
C65
C66
C67
C68
C69
C70
C71
C72
C73
C74
C75
C76
C77
C78
C79
C96
C97
C98
C99
C100
C101
C102
C103
C104
C105
C106
C107
C108
C109
C110
C111
C112
C113
C114
C115
C116
C117
C118
C119
C120
C121
C122
C123
C124
C125
C126
C127
Program creation
MP4120.0
MP4120.1
MP4120.2
MP4120.3
MP4120.4
MP4120.5
MP4120.6
MP4120.7
MP4120.8
MP4120.9
MP4120.10
MP4120.11
MP4120.12
MP4120.13
MP4120.14
MP4120.15
MP4120.16
MP4120.17
MP4120.18
MP4120.19
MP4120.20
MP4120.21
MP4120.22
MP4120.23
MP4120.24
MP4120.25
MP4120.26
MP4120.27
MP4120.28
MP4120.29
MP4120.30
MP4120.31
3/2000
MP4120.x
2.5
The edge evaluation for the PLC-inputs can be activated by marker M2497. Edge evaluation means
that if the signal at the PLC-input changes, a certain marker will be set for the duration of one PLCrun. If marker M2497 is set, the following markers will be set if the signals change at the PLCinputs.
Marker for rising edges at the PLC-inputs:
Marker
M1500 to M1531
M1564 to M1626
M1628 to M1651
PLC-inputs
I0 to I31
I64 to I126 (PL 400) or I127 (PL410)
I128 to I151
Marker
M2497
2.6
PLC-inputs
I0 to I31
I64 to I126 (PL 400) or I127 (PL410)
I128 to I151
Function
Activate the edge evaluation for PLC-inputs
Rising-edge marker M1500 to M1651
Falling-edge marker M1700 to M1851
Set
PLC
Reset
PLC
EPROM-creation
Once the PLC program has been written and tested in the TNC 406 or TNC 306 it can then be
transferred in binary code to the PC via RS-232-C serial port (Motorola EXORMAX S3 Record
format).
This binary code is needed to create EPROMs with the MEGA-PROMMER software (version 2.12 or
higher). The TNC 306 must be equipped with 1-MB EPROMs, and the TNC 406 (beginning with
version 280 62x 03) with 2-MB EPROMs.
Starting with software version 280 62x 03 (code number for PLC chip is $0002, previously $0000 as
on the TNC 306) the output of the TNC 406 will be in a new binary format. This format cannot be
read by older software versions.
With binary output from the TNC 406, the machine parameters and the compensation value table
will be automatically transferred. The erosion parameter tables and OEM cycles must be confirmed
individually with the ENT key. A transfer in progress can be interrupted with the END
key.
3/2000
Program creation
7-21
During commissioning of the control the machine parameters and the compensation table can be
transferred to the RAM memory with the COPY ROMRAM soft key (only with TNC 406). They
become active the next time the control is started.
The PLC program can also be transferred to the RAM memory with the COPY ROMRAM soft key
(on TNC 406) or the TRANSFER PROGRAM FROM EPROM soft key (on TNC 306).
Machine parameter MP4010 selects whether the PLC program is run from the RAM area of the
control or the EPROM area.
During the creation and test of the PLC program the control should operate from the RAM area.
HEIDENHAIN recommends that an EPROM is created for the PLC-program before delivering the
machine to the customer (see also Chapter "Introduction").
MP4010
Please contact your HEIDENHAIN customer service representative if you have any questions.
7-22
Program creation
3/2000
2.7
Error-messages
Error messages aid the programmer in creating the instruction list and testing of the program.
No valid command.
Operand for jump is not a Label. (Can only happen when reading in via the interface.
For a Jump command a type abbreviation is available for the Operand).
Invalid Operand-type (the command cannot be combined with this Operand).
Operand outside the permissible range (the stated number is too high, or odd address for
Word or Double word).
No limiter after command. (Can only happen when reading in via the interface. The comment
after the command was not designated by ";" or "*").
Line end not found (Can only happen when reading in via the interface. Comment too long).
3/2000
Program creation
7-23
20
21
22
23
24
25
26
27
28
29
30
31
32
Logic Assign missing (a Word-instruction has been programmed, although the previous Logicgating was not closed with an Assign)
Word Accumulator not loaded (a Word Assign or gating has been programmed, although the
Word Accumulator does not contain a definite value).
Logic-Accumulator not loaded (a Logic Assign has been programmed, although the Logic
Accumulator does not contain a definite value).
Accumulators not loaded on "open-parentheses" (an A[, AN[, O[, ON[, or XON[ command has
been programmed, although neither the Word- nor the Logic Accumulator has been gated or
loaded).
Incorrect type of the parentheses result (a different type has been calculated in the
parentheses from that which was defined at the "open-parentheses" command, i.e. Logic
instead of Word or vice versa).
Conditional jump with incorrect Logic Accumulator (a conditional jump has been programmed,
although the Logic Accumulator does not contain a definite value).
Empty CASE-instruction.
"END-CASE" missing.
Too many table entries in CASE
A CASE table with more than 128 entries has been programmed
Blank CASE instruction
A CASE instruction has been programmed followed immediately by an ENDC label
String accumulator not loaded
A command has been programmed which gates, assigns or manipulates the already loaded
string accumulator even though the accumulator was not previously loaded.
String instruction within parentheses
A string instruction has been programmed within parentheses even though string gates
cannot be nested with parentheses
No string assignment
A new gating chain has started without assigning the gating result previously formed in the
string accumulator
7-24
Program creation
3/2000
3/2000
Program creation
7-25
3 Commands
3.1
L (LOAD)
Logic
1.2
4
Byte/Word
2.0/1.6
6
Double
1.6
4
Constant
1.2
6
Input
Input
Output
Line Instruction
I4 = 1
I5 = 0
O2 = ?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x X x x x x x x x
L I4
... x x x x x x 1 x x x x x x x
A I5
... x x x x x x 0 x x x x x x x
= O2
... x x x x x x 0 x x x x x x x
Line 1: The operand contents are loaded into the Logic Accumulator.
Line 2: The contents of the Logic Accumulator and input I5 are gated with AND.
Line 3: The gating result is assigned to output O2.
7-26
Commands
3/2000
Byte
Constant:
Byte
Line Instruction
B5 = 2A (hex)
54 = 36 (hex)
B8 = ?
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
7
L K+54
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0
A B5
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00101010
= B8
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00100010
3/2000
Commands
7-27
LN
LN (LOAD NOT)
Logic
1.6
6
Byte/Word
2.4/2.0
8
Double
2.2
6
Constant
1.8
8
Input
Input
Output
Line Instruction
I4 = 0
I5 = 1
O2 = ?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x X x x x x x x x
LN I4
... x x x x x x 1 x x x x x x x
A I5
... x x x x x x 1 x x x x x x x
= O2
... x x x x x x 1 x x x x x x x
Line 1: The inverted operand contents are loaded into the Logic Accumulator.
Line 2: The contents of the Logic Accumulator and Input I5 are gated with AND.
Line 3: The gating result is assigned to Output O2.
7-28
Commands
3/2000
Byte B5 = 2A (hex)
Byte B6 = B6 (hex)
Byte B8 = ?
Line Instruction
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
7
LN B6
... 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1
10110110
A B5
... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
00101010
= B8
... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
00001000
Line 1: The inverted contents of Byte B6 are loaded into the Word Accumulator.
Line 2: The contents of the Word Accumulator and Byte B5 are gated with AND.
Line 3: The gating result is assigned to Byte B8.
3/2000
Commands
7-29
L (LOAD MINUS)
Logic
-------
Byte/Word
2.4/2.0
8
Double
2.2
6
Constant
1.8
8
Operands: B, W, D, K
Operation:
The contents of the addressed Operand (B, W, D) or a Constant (K) are loaded into the Word
Accumulator as a two's complement. In addition, the Accumulator is filled, if necessary, according to
the sign bit. The two's complement allows negative numbers to be stored. i.e. a number loaded with
the L command appears in the Accumulator with an inverted sign.
This command may only be used with Word execution.
Example:
The contents of Byte B5 is to be negated, added to Byte B6 and the result assigned to Byte B8.
Initial state:
Byte B5 = 15 (dec)
Byte B6 = 20 (dec)
Byte B8 = ?
Line Instruction
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
7
L B5
... 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 1 (15)
(+15) 00001111
+ B6
... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 (+ 5)
(+20) 00010100
= B8
... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 (+ 5)
(+5) 00000101
To aid understanding of this example, the contents of the Accumulator and operands are shown as
decimal values in parentheses.
Line 1: The contents of Byte B5 are loaded into the Accumulator and the sign of the value is
inverted.
Line 2: The contents of the Word Accumulator and Byte B6 are added.
Line 3: The result is assigned to Byte B8.
7-30
Commands
3/2000
LB (LOAD BYTE)
30.0
18
Operands: M, I, O, T, C
Operation:
With the command LB, 8 Markers, Inputs, Outputs, Timers or Counters with ascending numbering
are loaded into the Word Accumulator. Each operand occupies 1 bit in the Accumulator. The
designated operand address occupies the LSB in the Accumulator, the designated address + 1 the
LSB + 1 and so on. In this way, the last affected operand occupies the MSB!
If necessary, the Accumulator is filled according to the sign bit.
LW
LW (LOAD WORD)
57.2
18
Operands: M, I, O, T, C
Operation:
With the command LW, 16 Markers, Inputs, Outputs, Timers or Counters with ascending numbering
are loaded into the Word Accumulator. Each operand occupies 1 bit in the Accumulator. The
designated operand address occupies the LSB in the Accumulator, the designated address + 1 the
LSB + 1 and so on. In this way, the last affected operand occupies the MSB!
If necessary, the Accumulator is filled according to the sign bit.
LD
Operands: M, I, O, T, C
Operation:
With the command LD, 32 Markers, Inputs, Outputs, Timers or Counters with ascending numbering
are loaded into the Word Accumulator. Each operand occupies 1 bit in the Accumulator. The
designated operand address occupies the LSB in the Accumulator, the designated address + 1 the
LSB + 1 and so on. In this way, the last affected operand occupies the MSB!
If necessary, the Accumulator is filled according to the sign bit.
3/2000
Commands
7-31
Input
Input
Input
Input
Line Instruction
LB I3
=
=
=
=
1
1
1
0
Input
Input
Input
Input
I7 =
I8 =
I9 =
I10 =
0
1
1
0
Accumulator contents
Bit
I3
I4
I5
I6
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
... 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1
Operand contents
I10
01100111
7
= B8
... 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1
I3
01100111
Line 1: Inputs I3 to I10 are loaded into the Word Accumulator (Bit 0 to Bit 7).
Line 2: The Accumulator contents are assigned to Byte 8.
The commands LW and LD are processed in the same way except that 16 or 32 operands are used
accordingly.
7-32
Commands
3/2000
= (ASSIGN)
Logic
1.2
4
Byte/Word
1.2/1.2
4
Double
1.6
4
Constant
----
Initial state:
Input
Input
Output
Output
Line Instruction
I4 = 1
I5 = 0
O2 = ?
O5 = ?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x X x x x x x x x
L I4
... x x x x x x 1 x x x x x x x
A I5
... x x x x x x 0 x x x x x x x
= O2
... x x x x x x 0 x x x x x x x
= O5
... x x x x x x 0 x x x x x x x
Line 1:
Line 2:
Line 3:
Line 4:
3/2000
Commands
7-33
Byte
Constant
Byte
Byte
Line Instruction
B5 = 2A
54 = 36
B8 = ?
B10 = ?
(hex)
(hex)
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
7
L K+54
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0
A B5
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00101010
= B8
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00100010
= B10
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00100010
Line 1:
Line 2:
Line 3:
Line 4:
7-34
Commands
3/2000
B=
B= (ASSIGN BYTE)
26.0
14
Operands: M, I, O, T, C
Operation:
With the command B=, 8 bits are copied from the Word Accumulator to Markers, Inputs, Outputs,
Timers or Counters with ascending numbering. Each bit corresponds to 1 operand. The LSB in the
Accumulator is copied to the designated operand address, the LSB + 1 to the designated address +
1 and so on. The last affected operand is occupied by the MSB.
W=
W= (ASSIGN WORD)
50
14
Operands: M, I, O, T, C
Operation:
With the command W=, 16 bits are copied from the Word Accumulator to Markers, Inputs,
Outputs, Timers or Counters with ascending numbering. Each bit corresponds to 1 operand. The
LSB in the Accumulator is copied to the designated operand address, the LSB + 1 to the designated
address + 1 and so on. The last affected operand is occupied by the MSB.
D= (ASSIGN DOUBLE)
104.4
14
Operands: M, I, O, T, C
Operation:
With the command D=, 32 bits are copied from the Word Accumulator to Markers, Inputs, Outputs,
Timers or Counters with ascending numbering. Each bit corresponds to 1 operand. The LSB in the
Accumulator is copied to the designated operand address, the LSB + 1 to the designated address +
1 and so on. The last affected operand is occupied by the MSB.
3/2000
Commands
7-35
Example:
A bit pattern, as defined in Word W8 , is to be assigned to Outputs O5 to O20.
Initial state:
Word W8: 36 FF
Line Instruction
Accumulator contents
Bit
(hex)
L W8
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
... 0 0 0 0 1 1 0 1 1 0 1 1 1 1 1 1 1 1
Operand contents
15
W= O5
... 0 0 0 0 1 1 0 1 1 0 1 1 1 1 1 1 1 1
00110110 11111111
O20
87
... ...
O5
00110110 11111111
Commands
3/2000
3/2000
Commands
7-37
3.2
Set-commands
S (SET)
Operand changed
2.0 to 2.40
8 (6)
Operand unchanged
1.0 to 1.4
Input
Input
Output
Marker
Line Instruction
I4
I5
O2
M500
=1
=0
=?
=?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x X x x x x x x x
L I4
... x x x x x x 1 x x x x x x x
O I5
... x x x x x x 1 x x x x x x x
S O2
... x x x x x x 1 x x x x x x x
S M500
... x x x x x x 1 x x x x x x x
Line 1:
Line 2:
Line 3:
Line 4:
7-38
Commands
3/2000
R (RESET)
Operand changed
2.0 to 2.4
8 (6)
Operand unchanged
1.0 to 1.4
Input
Input
Output
Marker
Line Instruction
I4
I5
O2
M500
=1
=0
=?
=?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x X x x x x x x x
L I4
... x x x x x x 1 x x x x x x x
O I5
... x x x x x x 1 x x x x x x x
R O2
... x x x x x x 1 x x x x x x x
R M500
... x x x x x x 1 x x x x x x x
Line 1:
Line 2:
Line 3:
Line 4:
3/2000
Commands
7-39
SN
SN (SET NOT)
Operand changed
2.0 to 2.4
8 (6)
Operand unchanged
1.0 to 1.4
Input
Input
Output
Marker
Line Instruction
I4
I5
O2
M500
=0
=0
=?
=?
Accumulator Contents
Bit
31
Operand Contents
. . .
7
0
... x x x x x x X x x x x x x x
L I4
... x x x x x x 0 x x x x x x x
O I5
... x x x x x x 0 x x x x x x x
SN O2
... x x x x x x 0 x x x x x x x
SN M500
... x x x x x x 0 x x x x x x x
Line 1:
Line 2:
Line 3:
Line 4:
7-40
Commands
3/2000
RN (RESET NOT)
Operand changed
2.0 to 2.4
8 (6)
Operand unchanged
1.0 to 1.4
Input
Input
Output
Marker
Line Instruction
I4
I5
O2
M500
=0
=0
=?
=?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x X x x x x x x x
L I4
... x x x x x x 0 x x x x x x x
O I5
... x x x x x x 0 x x x x x x x
RN O2
... x x x x x x 0 x x x x x x x
RN M500
... x x x x x x 0 x x x x x x x
Line 1:
Line 2:
Line 3:
Line 4:
3/2000
Commands
7-41
7-42
Commands
3/2000
3.3
Logic Gates
A (AND)
Logic
1.2
4
Byte/Word
1.2/1.2
4
Double
1.8
4
Constant
1.6
6
Input
Input
Output
Line Instruction
I4
I5
O2
=1
=0
=?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x x x x x x x x x
L I4
... x x x x x x 1 x x x x x x x
A I5
... x x x x x x 0 x x x x x x x
= O2
... x x x x x x 0 x x x x x x x
3/2000
Commands
7-43
Byte B5 = 2A
Byte B6 = 36
Byte B8 = ?
Line Instruction
(hex)
(hex)
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
15
87
L B6
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0
00110110
A B5
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00101010
= B8
... 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0
00100010
7-44
Commands
3/2000
AN
AN (AND NOT)
Logic
2.0
8
Byte/Word
2.0/2.0
8
Double
3.0
8
Constant
2.6
10
Input
I4
Input
I5
Output O2
Line Instruction
=1
=1
=?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x x x x x x x x x
L I4
... x x x x x x 1 x x x x x x x
AN I5
... x x x x x x 0 x x x x x x x
= O2
... x x x x x x 0 x x x x x x x
3/2000
Commands
7-45
Word W4 = 36 AA (hex)
Word W6 = 3C 36
(hex)
Word W8 = ?
Line Instruction
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
15
87
L W6
... 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 1 0
00111100 00110110
AN W4
... 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0
00110110 10101010
= W8
... 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0
00001000 00010100
7-46
Commands
3/2000
3.3.3 OR (O)
Abbreviation for the PLC-Editor:
O (OR)
Logic
1.2
4
Byte/Word
1.2/1.2
4
Double
1.8
4
Constant
1.6
6
Input
Input
Output
Line Instruction
I4 = 0
I5 = 1
O2 = ?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x x x x x x x x x
L I4
... x x x x x x 0 x x x x x x x
O I5
... x x x x x x 1 x x x x x x x
= O2
... x x x x x x 1 x x x x x x x
3/2000
Commands
7-47
Byte B5 = 2A (hex)
Byte B6 = 36 (hex)
Word W8 = ?
Line Instruction
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
15
87
L B6
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0
00110110
O B5
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
00101010
= W8
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0
00000000 00111110
7-48
Commands
3/2000
ON (OR NOT)
Logic
2.0
8
Byte/Word
2.0/2.0
8
Double
3.0
8
Constant
2.6
10
Input
Input
Output
Line Instruction
I4
I5
O2
=0
=0
=?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x x x x x x x x x
L I4
... x x x x x x 0 x x x x x x x
ON I5
... x x x x x x 1 x x x x x x x
= O2
... x x x x x x 1 x x x x x x x
3/2000
Commands
7-49
Word W4 = 36 AA (hex)
Word W6 = 3C 36 (hex)
Word W8 = ?
Line Instruction
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
15
87
L W6
... 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 1 0
00111100 00110110
ON W4
... 1 1 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1
00110110 10101010
= W8
... 1 1 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1
11111101 01110111
7-50
Commands
3/2000
XO (EXCLUSIVE OR)
Logic
1.6
6
Byte/Word
1.6/1.6
6
Double
2.4
6
Constant
2.0
8
Input
Input
Output
Line Instruction
I4 = 1
I5 = 1
O2 = ?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x X x x x x x x x
L I4
... x x x x x x 1 x x x x x x x
XO I5
... x x x x x x 0 x x x x x x x
= O2
... x x x x x x 0 x x x x x x x
3/2000
Commands
7-51
Byte
Byte
Word
Line Instruction
B5 = 2A
B6 = 36
W8 = ?
(hex)
(hex)
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
15
87
L B6
... 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 1 0
00110110
XO B5
... 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0
00101010
= W8
... 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0
00000000 00011100
7-52
Commands
3/2000
XON
Byte/Word
2.0
8
Double
3.0
8
Constant
2.6
10
Input
Marker
Output
Line Instruction
I4
=0
M500 = 0
O2
=?
Accumulator contents
Bit
31
Operand contents
. . .
7
0
... x x x x x x X x x x x x x x
L M500
... x x x x x x 0 x x x x x x x
XON I4
... x x x x x x 1 x x x x x x x
= O2
... x x x x x x 1 x x x x x x x
3/2000
Commands
7-53
Word W4 = 36 AA (hex)
Word W6 = 3C 36 (hex)
Word W8 = ?
Line Instruction
Accumulator contents
Bit
31 . . . 15
7
0
... x x x x x x x x x x x x x x x x x x
Operand contents
15
87
L W6
... 0 0 0 0 1 1 1 1 0 0 0 0 1 1 0 1 1 0
00111100 00110110
XON W4
... 1 1 1 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1
00110110 10101010
= W8
... 1 1 1 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1
11110101 01100011
7-54
Commands
3/2000
3/2000
Commands
7-55
3.4
Arithmetic commands
+ (PLUS)
Logic
-------
Byte/Word
2.8/2.4
8
Double
1.8
4
Constant
1.6
6
Operands: B, W, D, K
Operation:
With arithmetic functions the operand is firstly expanded to the size of the Accumulator (32 bits).
Then the contents of the operand are added to the Word Accumulator. The result of the operation is
stored in the Word Accumulator and may be processed further.
Example:
A constant and a stored value in Word W6 are to be added. The result is then stored in Double word
D8.
Initial state:
Constant
= 100 000 (dec)
Word
W6 = 200
(dec)
Double word D8 = ?
In the interests of clarity the contents of the Accumulator and operand are shown in decimal
notation.
The 10 bit wide Accumulator allows the entry of the highest possible Accumulator contents
(2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
Operand contents
x x x
x x x
L K100000
1 0 0
0 0 0
+ W6
1 0 0
2 0 0
= D8
1 0 0
2 0 0
2 0 0
1 0 0
2 0 0
7-56
Commands
3/2000
3.4.2 SUBTRACTION ()
Abbreviation for the PLC-Editor:
(MINUS)
Logic
-------
Byte/Word
2.8/2.4
8
Double
1.8
4
Constant
1.6
6
Operands: B, W, D, K
Operation:
With arithmetic functions the operand is firstly expanded to the size of the Accumulator (32 bits).
Then the contents of the operand are subtracted from the contents of the Word Accumulator. The
result of the operation is stored in the Word Accumulator and may be processed further.
Example:
A stored value in Word W6 is to be subtracted from a Constant. The result is then stored in Double
word D8.
Initial state:
Constant
= 100 000 (dec)
Word
W6 = 200
(dec)
Double word D8 = ?
In the interests of clarity the contents of the Accumulator and the operand are shown in decimal
notation. The 10 bit wide Accumulator allows the entry of the highest possible Accumulator
contents (2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
Operand contents
x x x
x x x
1 0 0
0 0 0
L K100000
W6
9 9
8 0 0
= D8
9 9
8 0 0
2 0 0
9 9
8 0 0
3/2000
Commands
7-57
x (MULTIPLY)
Logic
-------
Byte/Word
10.2/9.4
14
Double
--10
Constant
9.8
14
* Only a maximum processing time can be entered with the arithmetic operations X, / and MOD.
The processing time may be shorter, depending on the operands.
Operands: B, W, D, K
Operation:
With arithmetic functions the operand is firstly expanded to the size of the Accumulator (32 bits).
Then the contents of the operand are multiplied with the contents of the Word Accumulator. The
result of the operation is stored in the Word Accumulator and may be processed further. If the result
of multiplication causes an overflow, Marker M3168 is set, otherwise it is reset.
Example:
A Constant and a value stored in Word W6 are to be multiplied. The result is then stored in Double
word D8.
Initial state
Constant
= 100
Word
W6 = 20
Double word D8 = ?
(dec)
(dec)
In the interests of clarity the contents of the Accumulator and the operand are shown in decimal
notation. The 10 bit wide Accumulator allows the entry of the highest possible Accumulator
contents (2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
Operand contents
x x x
x x x
L K100
1 0 0
x W6
0 0 0
= D8
0 0 0
2 0
2
0 0 0
7-58
Commands
3/2000
/ (DIVIDE)
Logic
-------
Byte/Word
20.2/19.8
16
Double
--14
Constant
19.8
16
*) see Multiplication
**) An error in division and modulo (divisor = 0) results in a execution time of 3.8 s.
An error condition (Divisor = 0) results in an execution time of 1.0 to 1.8 s.
Operands: B, W, D, K
Operation:
With arithmetic functions the operand is firstly expanded to the size of the Accumulator (32 bits) .
Then the contents of the Word Accumulator are divided by the contents of the operand. The result
of the operation is stored in the Word Accumulator and may be processed further. If division by 0 is
attempted, the Marker M3169 is set, otherwise it is reset.
Example:
A Constant is to be divided by the value stored in Word W6 . The result is then assigned to Double
word D8.
Initial state:
Constant
= 100 (dec)
Word
W6 = 20
(dec)
Double word D8 = ?
In the interests of clarity the contents of the Accumulator and the operand are shown in decimal
notation. The 10 bit wide Accumulator allows the entry of the highest possible Accumulator
contents (2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
x x x
Operand contents
x x x
L K100
1 0 0
/ W6
2 0
= D8
3/2000
Commands
7-59
MOD
MOD (MODULO)
Logic
-------
Byte/Word
20.6 to 20.2
18
Double
16
Constant
20.2
12
*) see Multiplication
**) see Division
An error condition (Divisor = 0) results in an execution time of 1.0 to 1.8 s.
Operands: B, W, D, K
Operation:
With arithmetic functions the operand is firstly expanded to the size of the Accumulator (32 bits).
Then the REMAINDER is determined from a division of the contents of the Word Accumulator by
the contents of the operand. The REMAINDER is stored in the Word Accumulator and may be
processed further. If the MOD command is not correctly executed then the Marker M3170 is set,
otherwise it is reset.
Example:
The REMAINDER of a division of the value stored in Word W6 by a constant is to be determined.
The REMAINDER is then stored in Double word D8.
Initial state:
Word
W6 = 50
Constant
K
= 15
Double word D8 = ?
(dec)
(dec)
In the interests of clarity the contents of the Accumulator and the operand are shown in decimal
notation. The 10 bit wide Accumulator allows the entry of the highest possible Accumulator
contents (2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
x x x
Operand contents
x x x
L W6
5 0
MOD K15
5 0
= D8
7-60
Commands
3/2000
3/2000
Commands
7-61
3.5
Comparisons
==
== (EQUAL)
Byte/Word/Double
1.8 to 2.4
6
Constant
2.0
8
Operands: B, W, D, K
Operation:
With this command, a direct transfer from Word to Logic processing occurs. The contents of the
Word Accumulator and the contents of the addressed operand are compared. If the Word
Accumulator and the operand are equal, the condition is true and the Logic Accumulator is set to 1.
If they are not equal the Logic Accumulator is set to 0. The comparison takes place over the number
of bits corresponding to the operand, i.e. B = 8 bit, W = 16 bit and D = K = 32 bit.
Example:
A constant is to be compared with the contents of Double word D8. The result is then assigned to
Marker M500.
Initial state:
Constant
= 16 000
Double word D8 = 15 000
The Accumulator and operand contents are shown in decimal notation. The 10 bit wide Accumulator
allows the entry of the highest possible Accumulator contents (2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
Operand contents
x x x
x x x
1 6
0 0 0
L K16000
== D8
. . .
7
0
... x x x x x x 0 x x x x x x x
= M500
... x x x x x x 0 x x x x x x x
Bit
31
1 5
0 0 0
0
7-62
Commands
3/2000
<
Byte/Word/Double
1.8 to 2.4
6
Constant
2.0
8
Operands: B, W, D, K
Operation:
With this command, a direct transfer from Word to Logic processing occurs. The contents of the
Word Accumulator are compared with the contents of the addressed operand. If the Word
Accumulator is smaller than the operand, the condition is true and the Logic Accumulator is set to 1.
If the Word Accumulator is smaller or equal to the operand, the Logic Accumulator is set to 0. The
comparison takes place over the number of bits in the operand, i.e. B = 8 bit, W = 16 bit and
D = K = 32 bit.
Example:
A constant is to be compared with the contents of Double word D8. The result is then assigned to
Marker M500.
Initial state:
Constant
= 16 000
Double word D8 = 15 000
The Accumulator and operand contents are shown in decimal notation. The 10 bit wide Accumulator
allows the entry of the highest possible Accumulator contents (2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
Operand contents
x x x
x x x
1 6
0 0 0
L K16000
< D8
. . .
7
0
... x x x x x x 0 x x x x x x x
= M500
... x x x x x x 0 x x x x x x x
Bit
31
1 5
0 0 0
0
3/2000
Commands
7-63
>
Byte/Word/Double
1.8 to 2.4
6
Constant
2.0
8
Operands: B, W, D, K
Operation:
With this command, a direct transfer from Word to Logic processing occurs. The contents of the
Word Accumulator are compared with the contents of the addressed operand. If the Word
Accumulator is greater than the operand, the condition is true and the Logic Accumulator is set to 1.
If the Word Accumulator is less than or equal to the operand, the Logic Accumulator is set to 0. The
comparison takes place over the number of bits in the operand, i.e. B = 8 bit, W = 16 bit and D = K
= 32 bit.
Example:
A constant is to be compared with the contents of Double word D8. The result is then assigned to
Marker M500.
Initial state:
Constant
= 16 000
Double word D8 = 15 000
The Accumulator and operand contents are shown in decimal notation. The 10 bit wide Accumulator
allows the entry of the highest possible Accumulator contents (2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
Operand contents
x x x
x x x
1 6
0 0 0
L K16000
> D8
. . .
7
0
... x x x x x x 1 x x x x x x x
= M500
... x x x x x x 1 x x x x x x x
Bit
31
1 5
0 0 0
1
7-64
Commands
3/2000
<=
Byte/Word/Double
1.8 to 2.4
6
Constant
1.8 to 2.0
8
Operands: B, W, D, K
Operation:
With this command, a direct transfer from Word to Logic processing occurs. The contents of the
Word Accumulator are compared with the contents of the addressed operand. If the Word
Accumulator is less than or equal to the operand, the condition is true and the Logic Accumulator is
set to 1. If the Word Accumulator is greater than the operand, the Logic Accumulator is set to 0. The
comparison takes place over the number of bits in the operand, i.e. B = 8 bit, W = 16 bit and D = K
= 32 bit.
Example:
A constant is to be compared with the contents of Double word D8. The result is then assigned to
Marker M500.
Initial state:
Constant
= 16 000
Double word D8 = 15 000
The Accumulator and operand contents are shown in decimal notation. The 10 bit wide Accumulator
allows the entry of the highest possible Accumulator contents (2 147 483 647).
Line Instruction
Accumulator contents
x
x x x
Operand contents
x x x
x x x
1 6
0 0 0
L K16000
<= D8
. . .
7
0
... x x x x x x 0 x x x x x x x
= M500
... x x x x x x 0 x x x x x x x
Bit
31
1 5
0 0 0
0
3/2000
Commands
7-65
Byte/Word/Double
1.8 to 2.4
6
Constant
1.8 to 2.0
8
Operands: B, W, D, K
Operation:
With this command, a direct transfer from Word to Logic execution occurs. The content of the Word
Accumulator is compared with the content of the addressed operand. If the Word Accumulator is
greater than or equal to the operand, the condition is true and the Logic Accumulator is set to 1. If
the Word Accumulator is smaller than the operand, the Logic Accumulator is set to 0. The
comparison takes place over the number of bits corresponding to the operand i.e. B=8 bit, W=16 bit
and D=K=32 bit.
Example:
A constant is to be compared with the content of Double word D8. The result is then assigned to
marker M500.
Initial state:
Constant
= 16 000
Double word D8 = 15 000
Accumulator and operand contents are entered here in decimal notation. The ten-position
Accumulator thus permits the maximum possible Accumulator content (2 147 483 647).
Line Instruction
Accumulator content
x
x x x
Operand content
x x x
x x x
1 6
0 0 0
L K16000
>= D8
. . .
7
0
... x x x x x x 1 x x x x x x x
= M500
... x x x x x x 1 x x x x x x x
Bit
31
1 5
0 0 0
1
7-66
Commands
3/2000
Byte/Word/Double
1.8 to 2.4
6
Constant
1.8 to 2.0
8
Operands: B, W, D, K
Operation:
With this command, a direct transfer from Word to Logic execution occurs. The content of the Word
Accumulator is compared with the content of the addressed operand. If the Word Accumulator and
the operand are not equal, the condition is true and the Logic Accumulator is set to 1. If the Word
Accumulator is equal to the operand, the Logic Accumulator is set to 0. The comparison takes place
over the number of bits corresponding to the operand i.e. B=8 bit,W=16 bit and D=K=32 bit.
Example:
A constant is to be compared with the contents of Double word D8. The result is then assigned to
marker M500.
Output state
Constant
= 16 000
Double word D8 = 15 000
Accumulator and operand contents are entered here in decimal notation. The ten position
Accumulator thus permits the maximum possible Accumulator content (2 147 483 647).
Line Instruction
Accumulator content
x
x x x
Operand content
x x x
x x x
1 6
0 0 0
L K16000
<> D8
. . .
7
0
... x x x x x x 1 x x x x x x x
= M500
... x x x x x x 1 x x x x x x x
Bit
31
1 5
0 0 0
1
3/2000
Commands
7-67
7-68
Commands
3/2000
3.6
Execution time and code length are summarized respectively for the "open-parentheses" and
corresponding "close-parentheses" commands.
A[ ]
A[ ] (AND [ ])
Logic
1.6
6
Byte/Word/Double
2.6
6
Operands: none
AN[ ]
Byte/Word/Double
3.2
6
Operands: none
3.6.3 OR [ ] (O[ ]) O[ ]
Abbreviation for PLC Editor:
O[ ] (OR [ ])
Logic
1.6
6
Byte/Word/Double
2.6
6
Operands: none
ON[ ]
Byte/Word/Double
3.2
6
Operands: none
3/2000
Commands
7-69
XO[ ]
XO[ ] (EXCL: OR [ ])
Logic
2.0
6
Byte/Word/Double
3.2
6
Operands: none
XON[ ]
Byte/Word/Double
3.8
8
Operands: none
7-70
Commands
3/2000
O12
I0
OR
I1
Initial state:
Line
Instruction
bit
Output O12 = ?
Accumulator Contents
31
Operand Contents
0
... x x x x x x
x x x x x x x x
L M500
... x x x x x x
0 x x x x x x x
O M501
... x x x x x x
1 x x x x x x x
A [
... x x x x x x
1 x x x x x x x
L I0
... x x x x x x
0 x x x x x x x
O I1
... x x x x x x
1 x x x x x x x
... x x x x x x
1 x x x x x x x
= O12
... x x x x x x
1 x x x x x x x
1
Program-stack:
xxxxxxxx
1 xxxxxxx
bit
15
7
0
Marker state M500 is loaded into the Logic Accumulator.
The Logic Accumulator is gated with Marker M501.
Open parentheses: the Accumulator contents are buffered on the Program Stack.
Input state I0 is loaded into the Logic Accumulator.
The Logic Accumulator is gated with Input I1.
Close parentheses: Accumulator content is gated with the content of the Program Stack,
according to the command (A[, O[, NO[ ...).
Line 7: The result of the complete logical process is assigned to Output O12.
Note:
The functional sequence is in principle the same for word execution, with the exception that the
whole Accumulator is written onto the Stack.
Line 1:
Line 2:
Line 3:
Line 4:
Line 5:
Line 6:
3/2000
Commands
7-71
7-72
Commands
3/2000
3.7
Execution time and code length are summarized respectively for the "open-parentheses" and
corresponding "close-parentheses" commands.
+[]
+ [ ] (PLUS [ ])
Logic
---------
Byte/Word/Double
2.6
6
Operands: none
3.7.2 SUBTRACTION [ ] ([ ]) [ ]
Abbreviation for PLC Editor:
[ ] (MINUS [ ])
Logic
---------
Byte/Word/Double
3.2
6
Operands: none
X[]
x [ ] (MULTIPLY [ ])
Logic
---------
Byte/Word/Double
11.0
12
Operands: none
/ [ ] (DIVIDE [ ])
Logic
---------
Byte/Word/Double
20.2
16
In the event of an error (Divisor = 0) in the Division and MODULO functions, the execution time will
be in the range 0.9 to 1.3 s.
Operands: none
*) See Multiplication
**) See Division
3/2000
Commands
7-73
MOD [ ]
MOD [ ] (MODULO [ ])
Logic
---------
Byte/Word/Double
20.6
14
*) See Multiplication
**) See Division
In the event of an error (Divisor = 0) in the Division and MODULO functions, the execution time will
be in the range 0.9 to 1.3 s.
Operands: none
Function of Parentheses with Arithmetic Commands:
With arithmetic commands, only word execution comes into question. The execution sequence in a
ladder may be altered by the use of parentheses. The "open-parentheses" command loads the
content of the Word Accumulator onto the Program Stack. Then the Accumulator is available for the
calculation of intermediate results. The "close-parentheses" instruction initiates the gating of the
buffered value from the Program Stack with the content of the Word Accumulator. The result is
again loaded into the Accumulator. The maximum nesting level is 16 parentheses.
Example for the commands ADD [ ], SUBTRACT [ ], MULTIPLY [ ], DIVIDE [ ], DIVISION
REMAINDER [ ]
The following example demonstrates how parentheses influence the result of the operation.
Initial state:
Constant
Double word
Double word
Double word
D12
D36
D100
= 1000
= 15000
= 100
=?
(decimal)
(decimal)
(decimal)
The specification of Accumulator and operand contents is given in decimal notation. The ten-place
Accumulator thus permits the maximum possible Accumulator content of (2 147 483 647).
7-74
Commands
3/2000
Accumulator content
x
x x x
Operand content
x x x
x x x
L D12
1 5
0 0 0
1 5
0 0 0
+ K1000
1 6
0 0 0
/ D36
1 6 0
1 0 0
= D100
1 6 0
1 0 0
Instruction
Accumulator Contents
x
x x x
Operand Contents
x x x
x x x
L D12
1 5
0 0 0
+ [
1 5
0 0 0
L K1000
0 0 0
/ D36
1 5
0 1 0
= D100
1 5
0 1 0
1 5
1 0
0 0 0
1 0 0
1 5
0 1 0
1 5
0 0 0
Program-stack:
Line 1:
Line 2:
Line 3:
Line 4:
Line 5:
The content of Double word D12 is loaded into the Word Accumulator.
Open parentheses: buffer the Accumulator content in the Program Stack.
A constant is loaded into the Word Accumulator.
The content of the Word Accumulator is divided by the content of Double word D12.
Close parentheses: Accumulator content is gated, corresponding to the command (+[, -[, x[
...) with the content of the Program Stack.
Line 6: The result of the complete logical process is assigned to Double word D100.
3/2000
Commands
7-75
7-76
Commands
3/2000
3.8
Execution time and code length are summarized respectively for the "open-parenthesis" and the
corresponding "close-parenthesis" commands.
(== [ ]
== [ ] (EQUAL [ ])
Logic
-------
Byte/Word/Double
3.0 to 3.2
6
Operands: none
<[]
Byte/Word/Double
3.0 to 3.2
6
Operands: none
Byte/Word/Double
3.0 to 3.2
6
Operands: none
Byte/Word/Double
3.0 to 3.2
6
Operands: none
3/2000
Commands
7-77
Byte/Word/Double
3.0 to 3.2
6
Operands: none
<> [ ]
Byte/Word/Double
3.0 to 3.2
6
Operands: none
Function of parentheses with comparison commands:
The execution sequence in a ladder may be altered by the use of parentheses. The "openparentheses" command loads the contents of the Word Accumulator onto the Program Stack. The
Accumulator is now available for the calculation of intermediate results.
The "close-parentheses" instruction initiates the gating of the buffered value from the Program Stack
with the content of the complete Word Accumulator. The result is loaded again into the
Accumulator. The maximum nesting depth is 16 parentheses.
A direct transition from Word to Logic execution takes place with comparison commands. If the
comparison condition is "true", the Logic Accumulator is set to "1". If the condition is not fulfilled, the
Logic Accumulator is set to "0".
7-78
Commands
3/2000
Example:
Initial state:
Constant
Double word D12= 15000
Double word D36= 10
Output
O15 = ?
= 1000
(decimal)
(decimal)
(decimal)
The Accumulator contents and operand contents are shown in decimal notation. The ten-position
Accumulator thus permits the maximum possible Accumulator content of 2 147 483 647.
The Accumulator is again represented in binary notation after program line 5, as the transition to
logic execution occurs here.
Line
Instruction
Accumulator Contents
x
x x x
Operand Contents
x x x
x x x
L D12
1 5
0 0 0
>= [
1 5
0 0 0
L K1000
0 0 0
x D36
1 0
0 0 0
bit 31
. . .
1 5
0 0 0
1 0
x x x x
1 x x x x x x x
= O15
x x x x
1 x x x x x x x
1
Program-stack:
1 5
0 0 0
Line 1:
Line 2:
Line 3:
Line 4:
Line 5:
The content of Double word D12 is loaded into the Word Accumulator.
Open parentheses: buffering of the Accumulator content in the Program Stack.
Loading of a Constant into the Word Accumulator.
The content of the Word Accumulator is multiplied by the content of Double word D12.
Close parentheses: Word Accumulator content is gated, corresponding to the
command(==[, >=[, <=[ ...) with the content of the Program Stack . The transition from
Word to Logic processing occurs in this program line. The Logic Accumulator is set or
reset, depending on the result of the comparison.
Line 6: The result of the complete logical process is assigned to output O15.
3/2000
Commands
7-79
7-80
Commands
3/2000
3.9
Shift Commands
Byte/Word/Double
Constant
2.0 + 0.2 x n
2.0 + 0.2 x n
6
8
Operands: B, W, D, K
Operation:
Since the sign bit (MSB) is included with this command, it is grouped in with arithmetic commands.
For this reason and out of time considerations, this command should not be used for the isolation of bits.
A SHIFT LEFT instruction causes the contents of the Word Accumulator to be multiplied by two. For this
purpose, the bits in the Accumulator are simply shifted by one place to the left. The number of the shift
operations is determined via the operand. Thus the set bits, which are shifted beyond the Accumulator to
the left, are lost; the Accumulator is filled with nulls from the right-hand side. With operand contents
greater than 32, the operand value Modulo 32 is used, i.e. the integer remainder from the division (operand
value)/32.
Example:
The content of the Double word D8 is to be shifted four times to the left and then stored in D12.
Initial state:
The Accumulator content is shown here in binary notation, and the operand content in hexadecimal
notation.
Line Instruction
Accumulator content
Operand content
xxxxxxxx
xxxxxxxx
xxxxxxxxx
xxxxxxxxx
L D8
00000000
00000000 00111110
10000000
<< K+1
00000000
00000000 01111101
00000000
<< K+1
00000000
00000000 11111010
00000000
<< K+1
00000000
00000001 11110100
00000000
<< K+1
00000000
00000011 11101000
00000000
= D12
00000000
00000011 11101000
00000000
Line 1:
Line 2 to 5:
Line 6:
3/2000
00
00
3E
80
00
03
E8
00
Commands
7-81
Byte/Word/Double
Constant
2.0 + 0.2 x n
2.0 + 0.2 x n
6
8
Operands: B, W, D, K
Operation:
Since the sign bit (MSB) is included with this command, it is grouped in with arithmetic commands.
For this reason and out of time considerations, this command should not be used for the isolation of bits.
A SHIFT RIGHT instruction causes the contents of the Word Accumulator to be divided by two. For this
purpose, the bits in the Accumulator are simply shifted by one place to the right. The number of the shift
operations is determined via the operand. Thus the set bits, which are shifted beyond the Accumulator to
the right, are lost; the Accumulator is filled according to the sign, from the left-hand side. With operand
contents greater than 32, the operand value Modulo 32 is used, i.e. the integer remainder from the division
(operand value)/32.
Example:
The content of the Double word D8 is to be shifted four times to the right and then stored in D12.
Initial state:
The Accumulator content is shown here in binary notation and the operand content in hexadecimal
notation.
Line Instruction
Accumulator content
Operand
content
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
L D8
00000000
00000000 00111110
10000000
>> K1
00000000
00000000 00011111
01000000
>> K1
00000000
00000000 00001111
10100000
>> K1
00000000
00000000 00000111
11010000
>> K1
00000000
00000000 00000011
11101000
= D12
00000000
00000000 00000011
11101000
Line 1:
Line 2 to 5:
Line 6:
7-82
00
00
3E
80
00
00
03
E8
Commands
3/2000
3/2000
Commands
7-83
3.10
Bit commands
BS
BS (BIT SET)
Byte/Word/Double
2.0 to 2.4
6
Constant
2.0
8
Operands: B, W, D, K, X
Operation:
With this command, each bit in the Accumulator can be acted on. The addressed bit is set to "1"
through the use of the BS command. The selection (addressing) of the corresponding bit is derived
from the content of the specified Operand or a Constant. In the bit-numbering, bit 0 corresponds to
the LSB and bit 31 the MSB. For operand contents larger than 32, the operand value Modulo 32 is
used, i.e. the integer remainder from the division (operand value)/32.
Example:
Load Double word D8 in the Accumulator, set the bit 0 of the Accumulator to "1" and store the result
in Double word D12.
Initial state:
Double word D8 = 3E 80
Double word D12 = ?
(hex)
Accumulator content
xx
xx
xx
xx
L D8
00
00
3E
80
BS K+0
00
00
3E
81
= D12
00
00
3E
81
Operand content
00
00
3E
80
00
00
3E
81
7-84
Commands
3/2000
BC (BIT CLEAR)
Byte/Word/Double
2.2 to 2.6
6
Constant
2.2
8
Operands: B, W, D, K, X
Operation:
With this command, each bit in the Accumulator can be acted on. The addressed bit is set to "0"
through the use of the BC command. The selection (addressing) of the corresponding bit is derived
from the content of the specified Operand or a Constant. In the bit-numbering, bit 0 corresponds to
the LSB and bit 31 the MSB. For operand contents larger than 32, the operand value Modulo 32 is
used, i.e. the integer remainder from the division (operand value)/32.
Example:
Load Double word D8 in the Accumulator, set bit 0 of the Accumulator to "0" and store the result in
Double word D12.
Initial state:
Double word D8 = 3E
Double word D12 = ?
81 (hex)
Accumulator content
xx
xx
xx
xx
L D8
00
00
3E
81
BC K+0
00
00
3E
80
= D12
00
00
3E
80
Operand content
00
00
3E
81
00
00
3E
80
3/2000
Commands
7-85
BT
BT (BIT TEST)
Byte/Word/Double
2.2 to 2.8
8
Constant
2.2 to 2.4
0
Operands: B, W, D, K, X
Operation:
With this command, the status of each individual bit in the Accumulator may be interrogated. Direct
transition from Word to Logic execution takes place. The BIT TEST tests the status of a bit from the
Word Accumulator and then acts correspondingly on the Logic Accumulator. If the tested bit is "1",
then the Logic Accumulator is also set to "1"; if it is "0" ,it is set to "0". The program continues in logic
execution. The selection (addressing) of the corresponding bit is derived from the content of the
specified Operand or a Constant. In the bit-numbering, bit 0 corresponds to the LSB and bit 31 the
MSB. For operand contents larger than 32, the operand value Modulo 32 is used, i.e. the integer
remainder from the division (operand value)/32.
Example:
Load Double word D8 in the Accumulator, and assign the logic state of bit 0 to an Output.
Initial state:
Double word D8 = 3E 81
Output
O12 = ?
(hex)
Word Accumulator and operand contents are shown here in hexadecimal notation, the Logic
Accumulator in binary representation.
Line Instruction
Accumulator content
xx
xx
xx
xx
L D8
00
00
3E
81
BT K+0
00
00
3E
81
= O12
Operand content
00
x x x x x x 1 x x x x x x x
00
3E
81
7-86
Commands
3/2000
3/2000
Commands
7-87
3.11
Stack operations
It should be noted that with Stack operations all read/write operations on the Data Stack take place
according to the LIFO principle (Last In First Out).
PS (PUSH)
Logic
4.2
24
Byte/Word
5.4/5.0
26
Double
5.5
22
Constant
4.2
24
Byte
Bit 31
X X X X X X X X X X X X X X X X
15
7
0
X X X X X X X X B B B B B B B B
Word
X X X X X X X X X X X X X X X X
W WW WW WW W W W W WW WW W
Double word
DDDDDDDDDDDDDDDD
DDDDDDDDDDDDDDDD
Constant
K K K K K K K K K K K K K K K K
K K K K K K K K K K K K K K K K
7-88
Commands
3/2000
PL (PULL)
Logic
3.4
20
Byte/Word
3.8
20
Double
4.2
18
Constant
-------
Operands: none
Operation:
The Logic Accumulator can be buffered with the PSL command. For this purpose, the Logic
Accumulator is loaded onto the Data Stack. Since the Data Stack is organized as 16 bits, it must be
written to with a minimum width of one Word. During this the content of the Logic Accumulator is
copied into the current address of the Data Stack. The free bits of the reserved memory are
undefined or unused. In the event of a Stack overflow, an error message will be issued.
Memory allocation in the Data Stack:
Bit 15
7
0
x x x x x x x x L x x x x x x x
3/2000
Commands
7-89
Operands: none
Operation:
The content of the Word Accumulator can be buffered with the PSW command. For this purpose,
the Word Accumulator is copied into the Data Stack. The content of the Word Accumulator (32 bit)
reserves two Words on the Data Stack. In the event of a stack overflow, an error message will be
issued.
PLL
Operands: none
Operation:
The PLL command complements the PSL command. With a PLL instruction, bit 7 from the current
address of the Data Stack is copied into the Logic Accumulator. If the stack is empty, an error
message will be issued.
Operands: none
Operation:
The PLW command complements the PSW command. With a PLW instruction, two Words are
copied from the Data Stack into the Word Accumulator. If the stack is empty, an error message will
be issued.
7-90
Commands
3/2000
Examples for the commands PS, PL, PSL, PSW, PLL, PLW
The Module 15 is to be called at a specific point in the program. After the return into the main
program, the original Accumulator content is again required for further program run.
Accumulator contents prior to the Call Module:
Line
1A 44 3E 18
49
Instruction
.
.
.
Accumulator Contents
1 A
4 4
3 E
1 8
50
PSW
1 A
4 4
3 E
1 8
52
CM 15
54
PLW
1 A
4 4
3 E
1 8
55
.
.
.
Data stack:
1 A
3 E
4 4
1 8
Line 50: Save the Word Accumulator onto the Data Stack.
Line 52: Subprogram 15 is called up.
Line 54: The original Accumulator contents are transferred back from the Data Stack and
is available for further program run.
Note:
The sequence for stack operations is the same for all commands. Only the data width varies.
3/2000
Commands
7-91
7-92
Commands
3/2000
3.12
Jump commands
JP
JP (JUMP)
Jump processed
2.2
8
Jump processed
Jump not processed
Execution time [s]
3.0 to 3.4
1.0 to 1.4
Number of bytes
12 (10)
Byte information in brackets:
A shorter command is employed in certain high-priority program sequences.
Operands: jump address (LBL)
Operation:
A JPT command is a conditional jump command. If the Logic Accumulator is "1", the program is
continued from the specified jump address (Label). If the Logic Accumulator is "0" the jump is not
processed. This command interrupts a logic sequence.
JPF
Jump processed
Jump not processed
Execution time [s]
3.0 to 3.4
1.0 to 1.4
Number of bytes
12 (10)
Byte information in brackets:
A shorter command is employed in certain high-priority program sequences.
Operands: jump address (LBL)
Operation:
A JPF command is a conditional jump command. If the Logic Accumulator is "0", the program is
continued from the specified jump address (Label). If the Logic Accumulator is "1", the jump is not
processed. This command interrupts a logic sequence.
3/2000
Commands
7-93
Input I5 = 1
Line Instruction
Accumulator content
Bit
31
. . .
7
0
... x x x x x x X x x x x x x x
L I5
... x x x x x x 1 x x x x x x x
JPT 10
... x x x x x x 1 x x x x x x x
L I3
O M500
= O20
LBL 10
L M100
Line 1:
Line 2:
Line 3:
Line 4:
Line 5:
Line 6:
7-94
Operand content
... x x x x x x 0 x x x x x x x
Commands
3/2000
CM
CM (CALL MODULE)
Jump processed
5.0
----
Number of bytes
22
6.2
24
----
CMT
Jump processed
6.8 to 7.2
26 (24)
1.0 to 1.4
7.4
28
1.4
Jump processed
6.8 to 7.2
26 (24)
7.4
28
1.4
3/2000
CMF
Commands
7-95
Input I5 = 0
Line Instruction
Accumulator content
Bit
31
Operand content
. . .
7
0
... x x x x x x X x x x x x x x
L I5
... x x x x x x 0 x x x x x x x
CMF 10
... x x x x x x 0 x x x x x x x
L M100
499 EM
... x x x x x x 1 x x x x x x x
501 L I3
... x x x x x x 0 x x x x x x x
502 OM 500
... x x x x x x 1 x x x x x x x
503 = O20
... x x x x x x 1 x x x x x x x
500 LBL 10
504 EM
Line 1:
Line 2:
Line 499:
Line 500:
Line 501:
Line 502:
Line 503:
Line 504:
Line 3:
7-96
Commands
3/2000
EM (END OF MODULE)
2.0
4
Operands: none
Operation:
Every program and/or every subprogram (Module) is terminated with an EM command. An EM
command in a Module initiates the return jump to the Call Module (CM, CMT, CMF). The program is
continued with the instruction following the Call Module. The command EM is handled as program
end criterion; thus subsequent program instructions can be reached using a jump address.
LBL
LBL (LABEL)
0
0
Operands: 0 to 1023
Operation:
The jump label defines a program position as an entry point for the CM and JP commands. Jump
labels may be allocated addresses in the range 0 to 1023.
3/2000
Commands
7-97
7-98
Commands
3/2000
3.13
CASE statement
Word
12.0
44
4 Bytes must be added to the length for each entry in the table (CM).
Operands: B, W
Operation:
With the CASE command, a specific subprogram may be selected from a list of Call Modules (CM).
These CM commands immediately follow the CASE command and are internally numbered in an
ascending sequence from 0 to a maximum of 127. The content of the operands (B, W) addresses
the required Module.
ENDC
ENDC (ENDCASE)
Byte
0
0
Word
0
0
Operands: none
Operation:
The ENDC command is used in conjunction with the CASE command. It must immediately follow
the list of CM commands.
3/2000
Commands
7-99
1
2
3
4
5
6
7
8
9
Line 1: Command + operand; The internal address of the required Module must be loaded into the
operand
Line 2: Call Module for operand contents 0
Line 3: Call Module for operand contents 1
Line 4: Call Module for operand contents 2
Line 5: Call Module for operand contents 3
Line 6: Call Module for operand contents 4
Line 7: Call Module for operand contents 5
Line 8: Call Module for operand contents 6
Line 9: End of the CASE statement
3.14
128 Characters
128
STRING memory:
128 Characters
128
S0
S1
S2
S3
Example:
1
C O O L A N T
7-100
128
1
O N
Commands
3/2000
STRING Accumulator and STRING memory are volatile, and so are again deleted upon powering off.
For STRING execution, the new operand "S" has been introduced. The operand "S" may be used with
various arguments.
Explanation of the Operand:
The operand "S" is only used in STRING execution. The following locations may be addressed with
the various arguments:
STRING memory: Should a STRING memory be addressed, the number of the required memory
(S0-S3) must be specified after the Operand-Designation.
Immediate STRING: A STRING can also be entered directly into the PLC program. The Text
STRING, which may contain 0 37 characters, must be identified by quotation marks.
Example: S "COOLANT 1 ON"
Text from the PLC error messages and/or from the PLC dialogs: Text from the active error
message or dialog files may be read by the input of the line number.
PLC-ERROR:
PLC-DIALOG:
S#Exx
S#Dxx
The character sequence #Exx or #Dxx is entered in the Argument <arg> for the STRING-Command.
A 5 Byte long character train <SUB> E0xx or <SUB> D0xx is loaded into the Accumulator ( <SUB>
= ASCII <SUB> ). Instead of this character train, the line xx of the active error message or dialog file
is read for display on the screen.
Note:
The execution times depend on the length of the STRINGS. The specified times indicate maximum
values. For the Immediate STRINGS, the length "n" of the STRINGS must respectively be added to
the command length; should this be odd, the next larger even length must be added.
L (LOAD)
STRING memory:
Immediate STRING:
STRING from error message or dialog files
< 80
10
18 + n
24
Operands: S <arg>
Operation:
The STRING Accumulator is loaded with this L command. The selection of the STRINGS to be
loaded, proceeds using the Argument <arg> after the operand designation.
Refer also to operand explanation.
3/2000
Commands
7-101
STRING memory:
Immediate STRING:
STRING from error message or dialog files
< 80
10
18 + n
24
Operands: S <arg>
Operation:
With this command another STRING is added to the STRING in the STRING Accumulator. The
selection of the STRINGS, which should be added, proceeds using the Argument <arg> after the
operand designation. Refer also to operand explanation. The resultant STRING must not be longer
than 128 characters.
STRING memory
Immediate STRING
STRING from error message or dialog files
< 80
10
Operands: S <arg>
Operation:
With the = command a STRING from the STRING Accumulator is stored in a STRING memory. The
selection of the memory, into which the STRING should be copied, proceeds using the Argument
<arg> after the operand designation. Whereby only the Arguments 0 3, which address a STRING
memory (S0 S3) are valid here.
7-102
Commands
3/2000
OVWR (OVERWRITE)
STRING memory
Immediate STRING
STRING from error message or dialog files
< 80
10
Operands: S <arg>
Operation:
With the OVWR command a STRING from the STRING Accumulator is stored in a STRING memory.
This command functions in a similar manner to the = command, with the difference that the
character "STRING-End" is not transferred alongside. By this means, the beginning of a STRING
which is already in the STRING memory, can be overwritten.
The selection of the memory, into which the STRING should be copied, proceeds using the
Argument <arg> after the operand designation. Whereby only the Arguments 0 3, which address a
STRING memory (S0 S3) are valid here.
Example for storing a string:
Initial condition:
128
S0
S1
S2
S3
Instructions
Line
STRING Accumulator
Instruction
1
128
L S#E10
H Y D R A U L I C
O I L
= S0
H Y D R A U L I C
O I L
Final condition:
S0
S1
S2
S3
128
H Y D R A U L I C
O I L
Line 1: Load the STRING from PLC ERROR MESSAGE line 10 into the STRING accumulator.
Line 2: The contents of the STRING accumulator is loaded into the STRING memory S0
3/2000
Commands
7-103
3.15
Submit Programs
Submit programs are subprograms which the PLC submits to the NC for processing. This allows
tasks to be performed which are very processor-intensive, require program loops or must wait for
external results. It is assumed, however, that these programs are not bound by a particular time
frame. Depending on processor loading, each Submit program is allocated a certain computing
power, but always at least 5% of the total power. Submit programs are started from the PLC
program and can access all the same data memories (M/B/W/D) as can the main program. This can
lead to problems in certain circumstances. Such problems can be avoided if the data processed by
the PLC program are clearly separated from the data processed by the Submit program.
Up to eight Submit programs can be entered in a queue (Submit Queue). Each receives an
"Identifier", a number between 1 and 255 allocated by the NC, which is transferred into the Word
Accumulator. With this "Identifier" and the REPLY function, it can be interrogated whether or not the
program is in the queue, is being processed or is already complete. The Submit programs are
executed in the order of their placement in the queue. Should an error occur during the execution of
the Submit programs, the following Markers are set:
M3168:
M3169:
M3170:
M3171:
M3172:
These markers are listed separately in the submit job. This means that the same markers can be
edited as those in the PLC run program without changing the original markers.
Exact times cannot be given for the commands for the management of the Submit queue. The
execution times denote maximum values.
SUBM (SUBMIT)
< 30
10
7-104
Commands
3/2000
RPLY (REPLY)
<5
10
Operands: B
Operation:
With the RPLY command the Status of the Submit program is interrogated with the specified
Identifier. This Identifier must already be stored in a Byte prior to the calling up of the Submit
program. With the RPLY command and the memory address specified above, which contains the
Identifier, one of the following messages about the status is transferred to the Word Accumulator:
Word Accumulator 0: Program complete/not in the queue
Word Accumulator 1: Program running
Word Accumulator 2: Program in the queue
CAN (CANCEL)
< 40
10
Operands: B
Operation:
With the CAN command the Submit-Program with the specified Identifier is canceled during
execution or removed from the queue. This Identifier must already be stored in a Byte prior to the
calling up of the Submit-Program. After the cancellation of the Program, the next Submit program in
the queue will immediately be processed.
The PLC modules 908x cannot be canceled with CAN at any desired point.
In these cases, the RPLY command must be used to check whether or not the CAN command may
be used.
3/2000
Commands
7-105
Line
Instruction
Program Comments:
1
2
L
JPF
I10
100
3
4
RPLY
<>
B 128
K+0
JPT
100
6
7
8
9
10
SUBM 300
=
B 128
LBL 100
L
I 11
JPF
110
11
CAN
12
XX
LBL 110
EM
XX
XX
XX
XX
XX
LBL
EM
B 128
300
In this case, the contents of the Submit program could, for example, be a display in the PLC
window, which can be done via a fixed PLC Module.
7-106
Commands
3/2000
3/2000
Commands
7-107
3.16
INDEX-Register
Under the control of the PLC programmer this register can be used for data transfer, intermediate
storage of results and for indexed addressing of operands. The register is 32 bits wide but only the
lower 16 bits are used for index addressing. The X register can be used anywhere in the program
there is no contents validity check however there is a check for address space overflow with
indexed write accesses.
Example: =
B100[X]
If the address space is overshot the error message PLC: index range incorrect flashes in the
display. Reset with END to display the error line in the PLC Editor.
Before using a command with the index-register it must be assigned a defined value. At the
beginning of each PLC cycle the index register is set to 0.
Bn[X]
Wn[X]
Dn[X]
BTX
BCX
BSX
7-108
Commands
3/2000
3.17
Program Structures
A program is split up into program sequences so as to make it clearer. To do this the programmer
uses jump labels (LBL) and conditional and unconditional jumps.
When structured instructions are used, the jump labels and jump commands are created by the
Compiler. Remember that internal jump labels are generated to implement these structured
commands, so the total number of available jump labels will be reduced accordingly. Structured
instructions can be nested to up to 16 levels but there must be no "interleaving".
Right:
IFT
...
WHILEF
...
ENDW
...
ENDI
Wrong: IFT
...
WHILEF
...
END
...
ENDW
Instructions IFT, IFF, WHILET, WHILEF, ENDW, UNTILT and UNTILF require a valid gating result in
the Logic Accumulator. They terminate the gating chain. Instructions ELSE, ENDI and REPEAT
require all gating chains to be terminated first.
IFT
IFF
ELSE
ENDI
Example:
L
IFT
....
ELSE
....
ENDI
3/2000
I0
;If Logic Accu=1
;Program code for I0 = 1
;
;Program code for I0 = 0
;end of conditional processing
Commands
can be omitted
can be omitted
7-109
REPEAT
UNTILT
UNTILF
(Repeat)
(Until True)
(Until False)
M100
K100
WHILET
WHILEF
ENDW
(While True)
(While False)
(End While)
A WHILE ... ENDW loop is only run when the WHILE condition is fulfilled at the beginning. The
execution condition must be repeated before the ENDW instruction. The condition can also be
repeated differently than before the WHILE instruction!
Example:
.....
L
WHILET
.....
L
A
ENDW
M100
M101
M102
Two internal jump labels are generated for the WHILE ... ENDW structure.
7-110
Commands
3/2000
4.1
Modules 9000 (Marker) and 9001 (Byte/Word/Double) copy a block with a certain number of markers
or bytes beginning from the start address to the specified target address.
For module 9001 the length should always be defined in bytes.
Constraints:
- Copying is sequential, starting with the first memory cell. This means that the function is not
guaranteed when the source and destination blocks overlap and the source block begins at a lower
address than the destination block. In this case the overlapping part of the source block is
overwritten before copying takes place.
Possible errors:
- A block of the defined length cannot be read from the defined address in the marker or word RAM
(address is too high or block is too long).
- A block of the defined length cannot be written to the defined address in the marker or word RAM
(address is too high or block is too long).
Call:
PS
PS
PS
CM
B/W/D/K
B/W/D/K
B/W/D/K
9000
B/W/D/K
B/W/D/K
B/W/D/K
9001
or
PS
PS
PS
CM
3/2000
7-111
4.2
Module 9004 detects the rising or falling edges of PLC inputs and sets corresponding edge markers
or bits in the specified byte range. Changes to inputs can be detected only if a change has also
been made to the PLC memories.
Constraints:
Ensure that the edge markers or bytes are placed in a range which is still free
The edge bytes are assigned beginning with the LSB in ascending order and rising byte
address; unnecessary bits are deleted.
Possible errors:
One of the input parameters is negative.
The parameter for the edge evaluation is set greater than three.
The sum of the 1st PLC input and the number of PLC inputs is greater than the
maximum permitted PLC input number (I383).
The sum of the 1st edge marker and the number of PLC inputs is greater than the
maximum permitted marker number (M3279).
The sum of the 1st edge byte and the number of bytes required is greater than the
maximum permitted byte number.
Call:
PS
PS
PS
PS
B/W/D/K
B/W/D/K
B/W/D/K
B/W/D/K
CM
9004
7-112
=0:
=1:
3/2000
4.3
A byte, word or double word is read from the defined position in the word memory and returned to
the stack as an output variable. Indexed reading in the memory is possible by specifying a variable
as the name of the memory cell.
Possible errors:
- The defined address is outside the valid range (0..1023).
- Module 9011: The defined address is not a word address (not divisible by 2).
- Module 9012: The defined address is not a double word address (not divisible by 4).
Call:
PS
CM
PL
B/W/D/K
9010
B
(Address)
B/W/D/K
9011
W
(Address)
B/W/D/K
9012
D
(Address)
(Value)
or
PS
CM
PL
(Value)
or
PS
CM
PL
(Value)
STACK
35
35 (80)
B35
80
B100
80
3/2000
..
.
PS B10
CM9010
PL
.. B100
.
7-113
4.4
The defined byte, word or double word is written to the defined position in the word memory.
Indexed reading in the memory is possible by specifying a variable as the name of the memory cell.
Possible errors:
- The defined address is outside the valid range (0..1023).
- Module 9021: The defined address is not a word address (not divisible by 2).
- Module 9022: The defined address is not a double word address (not divisible by 4).
Call:
PS
PS
CM
B/W/D/K
B/W/D/K
9020
(Address)
B/W/D/K
B/W/D/K
9021
(Address)
B/W/D/K
B/W/D/K
9022
(Address)
(Value)
or
PS
PS
CM
(Value)
or
PS
PS
CM
(Value)
STACK
35
120
B35
120
B100
120
7-114
35
..
.
PS B10
PS B100
CM9020
..
.
3/2000
4.5
Reads the value of a machine parameter that is defined by its number and index from the editable
machine parameter list.
Constraints:
- The value of the machine parameter is returned as an integer, with the decimal point being shifted
by the number of possible places after the decimal. Example MP910.0 = 100.12 mm is read as
1001200 (four places after the decimal lead to a multiplication by 10000).
- Only the value from the editable machine parameter list is read, not any value in the run-time
memory.
- Zero must be given as the index for non-indexed machine parameters.
Possible errors:
- The machine parameter specified by the MP number and index does not exist.
- The module was not called from a Submit Job.
Call:
PS
PS
CM
PL
B/W/D/K
B/W/D/K
9032
B/W/D
<MP Number>
<MP Index>
<MP value> / <Error Code>
1: No such MP number
2: No separator
3: MP value out of range
4: MP not in file
5: No MP file found
6: Call was not from SUBMIT Job
4.6
0: MP was read
1: Error condition see above
Converts a binary numerical value to an ASCII-coded decimal number in the format specified.
The specified number is converted to a decimal number and stored as a string in the specified
address.
The number is notated as a two's complement. When notated without a sign the absolute amount
of the number is converted without a sign being put before the string. With the signed notation a
sign ("+" or "-") is placed before the string in any event.
With the inch notation the numerical value is divided by 25.4 before being converted. If the number
has more decimal places than the total of specified places before and after the decimal point, then
the highest-value decimal places are omitted. With right-justified notation leading zeroes before the
decimal point are replaced by blanks, with left-justified notation they are suppressed. Trailing zeroes
after the decimal point are always converted.
Constraints:
- The decimal sign is defined by machine parameter MP7280 as a decimal comma (MP7280 = 0) or
a decimal point (MP7280 = 1).
3/2000
7-115
Possible errors:
- The number of the target string is outside the permitted range (0..3).
- There are more than 16 decimal places in all (before and after decimal point).
- No places before the decimal point are specified.
Call:
PS
PS
K/B/W/D
K/B/W/D
PS
PS
PS
CM
K/B/W/D
K/B/W/D
K/B/W/D
9051
4.7
Computes the length of the string with the specified number in the string buffer.
Possible errors:
The number of the source string is outside the valid range (0..3).
The source string has been searched without an end of string (<NUL>) being found.
Call:
PS
CM
PL
K/B/W/D
9071
PL
7-116
3/2000
4.8
K
9079
; string 0...3
4.9
Deletes the screen window for the PLC status display. The background color of the window is
defined in machine parameter MP7320.2 or MP7356.0.
Constraints:
- This job cannot be aborted by a CAN command during processing of the module in a SUBMIT Job.
The module is also active when the currently selected screen shows no PLC status window (e.g.
large graphic displays) or when the screen with PLC status window is in the background.
Possible errors:
- The module has not been called from a SUBMIT Job.
Call:
CM
9080
4.10
Interrogates the status of the screen window for the PLC status display.
The status is transferred bit-coded to the stack. Bit #0 is set when a window for PLC status display
is on the selected screen. This is not the case with a full-page graphic display, when a program is
selected or in the MOD operating mode. Bit #1 is set when the screen with the PLC status window
is in the foreground. All other bits are canceled.
Call:
CM
PL
9081
B/W/D
3/2000
7-117
4.11
Displays a string in the screen window for the PLC status display at the specified position and in the
specified color.
The string that is identified by the string number and which ends on the ASCII character <NUL> is
displayed in the screen window for the PLC status display on line 0 (top line) or 1 (bottom line) and
from column 0 (left margin) to 37 (right margin) in the specified color (1 to 15).
Line 0
Line 1
Column
37
References to PLC dialogs or PLC error messages are deleted. If the specified dialog or error
number is greater than the length of the corresponding file, then ASCII character `@' is displayed
instead . If the text contains a non-displayable character except the string end, then ASCII character
`^' is displayed instead.
Constraints:
- The character set that is used is determined by the size of the screen window, i.e. the current
operating mode, and cannot be modified. The color refers to one of the machine parameters
MP735x and can be seen from the following table:
Color 0:
Color 1:
Color 2:
Color 3:
Color 4:
Color 5:
Color 6:
Color 7:
Color 8:
Color 9:
Color 10:
Color 11:
Color 12:
Color 13:
Color 14:
Color 15:
If color 0 is specified, then the text appears in the same color as the last displayed character.
Because the complete line is always displayed again in the window when a string is displayed (even
when a column greater than 0 is specified), a text with the color 0 is always displayed in the color of
the numerical value to its left (e.g. color 11 when output is under 110% and color 15 when output is
over 110%) even though PLC Module 9082 only displays the numerical value again. If the color 0 is
specified for the first characters on a line however, then the color in which these characters are
displayed is defined in the MP7356.1.
If no screen window is currently shown for the PLC status display (window is not opened or in
background) the module will run through normally and the string is not displayed until the
7-118
3/2000
corresponding screen window is displayed again and provided the string has not been overwritten
by a repeat call of Module 9082 in the meantime. Module 9081 can be used to check whether the
display is currently active.
This job cannot be aborted by a CAN command during processing of the module in a SUBMIT Job.
Possible errors:
- The module has not been called from a SUBMIT Job.
- A line less than 0 or greater than 1 was specified.
- A column less than 0 or greater than 37 was specified.
- The number of the string is outside the permitted range (0..3).
- No end of string was found.
- The last character(s) in the string cannot be displayed in the screen window.
The string is not displayed on screen in any of these error modes.
Call:
PS
PS
PS
PS
CM
K/B/W/D
K/B/W/D
K/B/W/D
K/B/W/D
9082
3/2000
7-119
4.12
Displays a bar chart in the screen window for the PLC status display on the specified line, with the
specified lengths and in the specified colors.
A bar chart can be displayed in the left half of each line in the PLC status window. In this mode the
ASCII text only appears in the right half of every line (19 characters max.).
Line 0
Line 1
Column
150
19
The operator must specify the line, maximum length (0...150), current length (<= maximum length)
and the colors of the bars or the margin and scale graduation (0...15). If the maximum length
exceeds 150 it is limited to 150. If current length exceeds maximum length then it is limited to the
maximum length.
The chart comprises a rectangular grid with the maximum length and height of the ASCII characters.
A scale graduation is shown at the top after every 10 units. The bar starts from the left hand edge of
the grid. The unused part of the grid is filled in with the background color.
Constraints:
- The height of the bar chart varies according to the size of the screen window, i.e. the current
operating mode, and cannot be modified.
The specified color refers to one of the machine parameters MP735x and can be seen from the
following table:
Color 0:
Color 1:
Color 2:
Color 3:
Color 4:
Color 5:
Color 6:
Color 7:
Color 8:
Color 9:
Color 10:
Color 11:
Color 12:
Color 13:
Color 14:
Color 15:
7-120
3/2000
Color 2 is the background color for the screen window and can be used for margin and scale
graduations if these are not to be displayed. If no screen window is currently shown for the PLC
status display (window is not opened or in background) the module will cycle normally and the bar
chart will not be displayed until the corresponding screen window reappears and provided the chart
is not overwritten by a repeat call of Module 9083 in the meantime. Module 9081 can be used to
check whether the display is currently active. This job cannot be aborted by a CAN command during
processing of the module in a SUBMIT Job.
Possible errors:
- The module has not been called from a SUBMIT Job.
- A line less than 0 or greater than 1 was specified.
The bar chart is not displayed on screen in any of these error modes.
Call:
PS
PS
PS
PS
PS
CM
K/B/W/D
K/B/W/D
K/B/W/D
K/B/W/D
K/B/W/D
9083
4.13
With Modules 9040 you can read the axis coordinates. The values are stored in five double words,
beginning with the given target address. Regardless of whether individual axes have been excluded
through MP10, the coordinate values are always read for all axes. The values for excluded axes
remain undefined. The coordinate value of an axis remains undefined until the reference point has
been traversed.
PS
PS
K/B/W/D
K/B/W/D
CM
3/2000
7-121
4.14
With Module 9221 you can position a NC axis by transferring the following parameters:
Axis to be positioned
Target position
Feed rate
A simultaneous PLC positioning movement of several axes is interpolated. If you start an additional
axis while already positioning another, the first movement is aborted, and then all the programmed
axes (e.g. X, Y and Z) are positioned together.
There is no tool compensation. The tool path compensation must be ended before a PLC
positioning command. PLC positioning is not shown in the test graphics.
After the module call the corresponding markers M4120 to M4128 are set. You can abort
the PLC positioning command by resetting this marker. If you wish to change a parameter (e.g. feed
rate) of a positioning command in progress, you must first abort it with M4120 to M4128, change
the parameter, and call Module 9221 again.
The NC aborts the PLC positioning command when:
An NC STOP occurs in the Manual or Handwheel mode of operation.
An NC STOP and internal stop occur in the automatic modes of operation.
An EMERGENCY STOP occurs.
An error message occurs that results in a STOP.
Start PLC positioning command :
PS B/W/D/K
<Axis>
[0 to 8]
PS B/W/D/K
<Target position>
[0.0001mm]
PS B/W/D/K
<Feed rate>
[mm/min]
PS B/W/D/K
<Mode>
Bit 0: Target position type
=0: Absolute, referenced to the machine datum
=1: Incremental
Bit 1: Software limit switch
=0: Not active
=1: Active
CM 9221
7-122
3/2000
3/2000
7-123
Introduction
Principles of data transfer
8-3
8-4
1.1.1 Serial/parallel
8-4
8-5
8-7
8-8
1.2
Handshaking
8-9
8-9
8-9
2
2.1
8-10
8-10
2.2
RS-232-C/V.24 interface
8-10
2.2.1 Hardware
8-10
8-11
8-11
8-13
2.3
8-14
8-14
8-15
8-15
2.4
8-16
8-16
8-17
2.5
8-22
Interface configuration
8-22
8-22
2.6
External programming
8-26
2.7
8-26
3
3.1
8-28
8-28
8-28
8-30
8-30
8-30
8-32
8-33
3/97
8-1
4
4.1
8-34
8-34
8-35
8-36
8-36
8-37
8-38
8-39
6
6.1
Error messages
TNC error messages
8-40
8-40
6.2
8-41
6.3
8-42
8-2
3/97
1 Introduction
In addition to its CPU (Central Processing Unit), a computer system (for example a PC or controller)
utilizes a wide variety of peripheral equipment such as printers, external memories (floppy disk
drives, hard disks) or other computer systems.
A data interface makes it possible for the CPU and its peripheral equipment to communicate with
each other.
Such communication requires facilities for transferring data to the peripherals. Peripheral device
control and communication via the interface is generally the responsibility of the computer system,
which therefore has to meet certain requirements.
The interfaces, which consist primarily of the physical links between the computer system and the
peripherals, need appropriate software in order to control the transfer of information between the
individual devices. The relationship between hardware and software, which fully defines an interface, is illustrated in the following diagram:
Interface
Computer
Software
Hardware
e.g. PC,
Controller
Software
Peripheral
e.g. Printer,
external memory
The "hardware" in the diagram includes all the physical components such as the circuitry, pin layout,
electrical characteristics, and so forth. The "software" includes such components as the drivers for
the output modules and is associated with both the operating software of the computer system and
the peripherals.
Due to the wide variety of computers, controllers and peripherals available today, standard
interfaces have been introduced whichideallyenable widely different types of devices to be
connected to each other.
Standard interfaces include the RS-232-C/V.24 interface which is described in detail later.
3/97
1 Introduction
8-3
1.1.1 Serial/parallel
Data can be transmitted in either serial or parallel format.
Data in a computer system is coded, e.g. as bytes (8 bits), and supplied to the interface in parallel.
In the case of serial data transmission, the parallel information from the computer system has to be
converted into a serial data-flow by using a USART (Universal Synchronous/Asynchronous
Receiver/Transmitter).
The receiver accepts the serial data-flow and converts it back again into parallel information.
Sender
Transmitter
Empfnger
Receiver
Speicher Schnittstellen-Puffer
Memory
Interface buffer
0
1
1
0
1
0
1
1
Schnittstellen-Puffer
Interface buffer
MSB 0
1
1
0
1
0
1
LSB 1
Speicher
Memory
0 MSB
1
1
0
1
0
1
1 LSB
0
0
1
1
0
1
0
1
1
bertragungsstrecke
Transmission path
A parallel interface, on the other hand, does not need a USART, just a line driver. The computer
system and the peripheral are usually connected with a 36-pole ribbon cable. The maximum cable
length is generally about 3 metros.
8-4
1 Introduction
3/97
Empfnger
Receiver
Sender
Transmitter
Speicher Schnittstellen-Puffer
Memory
Interface buffer
0
1
1
0
1
0
1
1
Schnittstellen-Puffer Speicher
Memory
Interface buffer
MSB 0
1
1
0
1
0
1
LSB 1
0
1
1
0
1
0
1
1
0 MSB
1
1
0
1
0
1
1 LSB
0
1
1
0
1
0
1
1
bertragungsstrecke
Transmission path
One obvious advantage of serial data transmission becomes apparent when long distances have to
be covered. With parallel transmission, the cost of the cable increases with every additional bit
which has to be transmitted. In addition, the effect of interference on adjacent wires from sharp
signal edges and electrical coupling is far greater over long lines than it is with serial transmission
which is relatively slower and uses fewer wires.
The comparatively slow speed of serial data transmission is, at the same time, its greatest
drawback. Since the individual bits are sent along the line one after the other and each transfer takes
a certain amount of time, it takes far longer to send a binary word to the receiver than with parallel
transmission. As it happens, however, most peripheral devices work fairly slowly and in fact cannot
cope with high-speed data transmission. Serial data transmission is generally adequate for devices
such as external memories or mechanical printers, especially as such devices have a large internal
buffer for incoming characters.
3/97
10 dec = 0A hex
LSB
1 Introduction
8-5
LSB
That is, when the letter z is transmitted serially, the appropriate bits are sent one after the other. The
ASCII code is shown in full in the Appendix.
Proper data transmission requires the device concerned to interpret incoming data correctly and, in
particular, to detect the start of a transmission. For this purpose there is a synchronization process
which ensures that the receiver detects the first bit of a character correctly. With an asynchronous
data format, a start bit is sent before each data word and the word is then ended by one or two stop
bits. One feature of this data format is that, starting from a quiescent state, transmission of a data
word can begin at any time.
A quiescent state exists before switch-on and is reverted to after each transmission. Before a data
bit can be transmitted this has to be communicated to the receiver. Otherwise, if the first bit of the
data word has the same value as the quiescent state, the receiver will not notice any difference
from the quiescent state.
A so-called start bit is used for this purpose:
For the duration of a single bit, the transmitter emits a logic value which clearly differs from the
quiescent state and which gives the receiver an opportunity to prepare its polling logic to read in the
data bit. After the start bit has been sent, the data word is transmitted, bit by bit, starting with the
LSB (Least Significant Bit). After the MSB (Most Significant Bit) of the data word, a so-called parity
bit is inserted (see Section 1.1.3 "Checking data").
The parity bit is followed by one or two stop bits. These final stop bits ensure that the receiver has
enough time to recognize the transmitter again before the start of the next character.
Synchronization is repeated before each character.
Synchronization is repeated before every word and is valid for one character frame.
Character frame
Quiescent state
Quiescent state
Start 1st Bit 2nd Bit 3rd Bit 4th Bit 5th Bit 6th Bit 7th Bit Parity 1 or 2
bit
stop bits
LSB
MSB bit
Data bits
8-6
1 Introduction
3/97
Even parity
3/97
1 Introduction
8-7
[ Bits]
1 baud = 1
"1"
"0"
t
tB
tB =
1
bits
Baud rate[
]
s
For example, a baud rate of 19,200 baud will have a bit duration of tB = 52.083 s.
The number of characters transmitted per second can be calculated from the baud rate and the
transmission format:
bits
]
Baud rate[
s
Characters per second =
Number of bits per character
Example:
With a transmission format of one start bit, seven data bits and two stop bits, and assuming a data
transfer rate of 300 baud, the number of characters transmitted per second will be
300 Baud
= 30 characters per second
10 bits
8-8
1 Introduction
3/97
1.2 Handshaking
A handshake procedure is often used in connection with interfaces. This means that two devices
are, as it were, working "hand in hand" in order to control data transfer. A distinction is drawn
between "software handshaking" and "hardware handshaking".
Either hardware or software handshaking can be chosen for communication between two units.
3/97
1 Introduction
8-9
2.2.1 Hardware
The physical connection between two RS-232-C interfaces is an asymmetrical line, i.e. the common
ground connection between transmitter and receiver is used as a return line.
Physical connections:
Sender
Transmitter
Empfnger
Receiver
TxD
RxD
RxD
TxD
bertragungsstrecke
Transmission path
8-10
3/97
Datensignale
Data signals
U [V]
+ 15
"0"
SPACE
HIGH
ON
"1"
MARK
LOW
OFF
+ 13
0
13
15
3/97
Transmitted data
Received data
8-11
Hardware handshake:
Output of the receiving unit
Hardware handshake:
Output of the transmitting unit
Housing connection
0-volt lines for all signals
Chassis GND
Transmitted data
TxD
Received data
RxD
RTS
Transmission readiness
CTS
Operational readiness
DSR
DCD
Signal ground
Peripheral
8-12
GND
TNC
3/97
V.24-Adapter-Block
RS-232-C Adapter block
Chassis GND
TXD
RXD
RTS
CTS
DSR
Signal GND
DTR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ws/br
WH/BN
LE
ge
gn
rs
gr
br
rt
GN
YL
GY
PK
BL
RD
bl
BN
ws/br
WH/BN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
GND Chassis
RXD
TXD
CTS
RTS
DTR
GND Signal
DSR
Note: The LE and adapter block are connected with crossed lines.
A 9-pin plug on a PC should have the following pin layout:
Pin
1
2
3
4
5
6
7
8
9
Allocation
Do not use
RxD
TxD
DTR
GND
DSR
RTS
CTS
Do not use
3/97
8-13
Identification code
H
O
E
M
S
P
After the appropriate code numbers for the PLC, the machine parameters and the correction table
have been entered, these files can be written to or read from via the data interfaces.
Data transfer is initiated with the EXT key as usual.
Current values of Q parameters, PLC error messages and dialogs can also be outputted via the two
interfaces (NC program: FN 15: PRINT).
The magnetic tape unit has only limited suitability as an external data medium, because only one file
can be stored per cassette side. However, this file can contain more than one program.
The floppy disk unit can store up to 256 programs (approximately 25,000 program blocks). This
represents a storage capacity of approximately 790 kilobytes.
When transmitting and receiving a file, the appropriate code file is outputted and read in again
complete with a Block Check Character (BCC).
If the file is stored in an external computer using HEIDENHAIN's TNC.EXE data transfer software, a
new file extension is generated. This extension consists of the identification code and the letters
NC.
Example:
If an eroding table is stored, it is given the file extension *.ENC.
8-14
3/97
3/97
8-15
EXT
8-16
3/97
Transmission path
TNC
.
.
.
12 Z+2 F400 <CR> <LF>
3/97
8-17
The header contains 'H' - the identification code for the program (see Section "Saving/reading files"),
'Name' - the program name and 'M' - the transmission mode(E=input/A=output).
This header ends with character <ETB>, ending a data transfer block.
The subsequent BCC (Block Check Character) provides additional confidence.
In addition to the parity check of the individual characters (see Section "Checking data"), a parity
check is carried out on a complete transmitted block. The BCC always supplements the individual
bits of the transmitted characters of a data transfer block to give even parity.
Example for formation of BCC:
Character
SOH
H
1
5
E
ETB
BCC
Bit 6
0
1
0
0
1
0
0
Bit 5
0
0
1
1
0
0
0
Bit 4
0
0
1
1
0
1
1
Bit 3
0
1
0
0
0
0
1
Bit 2
0
0
0
1
1
1
1
Bit 1
0
0
0
0
0
1
1
Bit 0
1
0
1
1
1
1
1
In this example, the HEIDENHAIN dialog (identification code 'H') has been used to write program
'15' which is read in via the data interface ('E'). A parity bit is also formed for the BCC (with even
parity, the parity bit of the BCC in this example is given a value '1').
The character <DC1> is sent after the BCC. This character (XON) is needed for some devices to
request an explicit reply from them in order to start transfer again.
At the end of each block, a check is conducted to see whether the block has been correctly
transferred. To do this, the receiver calculates a BCC from the block received and compares it with
the received BCC. If the received and calculated BCCs are identical, the receiver sends character
<ACK> (= positive ACKnowledgment), meaning the data block has been received without error.
If the received and calculated BCCs are not identical, the receiver sends the character <NAK>
(= Not AcKnowledged), meaning the data block has been incorrectly received and the same block
must be sent again. This process is repeated up to three times. If transfer is still unsuccessful, the
error message TRANSFERRED DATA INCORRECT N is displayed and transfer is aborted.
If, however, this header is acknowledged with <ACK>, the first data block can be transmitted:
<STX>0 BEGIN PGM 1 MM <ETB> BCC <DC1>.
The start of a data block is always indicated by control character <STX>. The other control
characters in this block are identical to the control characters of the header.
If the block is acknowledged with <ACK>, the next program block is sent. In the event of a <NAK>,
the same block must be repeated, and so on...
If the last program block has been sent successfully (acknowledged with <ACK>), transmission
ends with characters <ETX> (End of Text) and <EOT> (End of Transmission).
8-18
3/97
Meaning
Start of Header
Description
Indicates start of transfer of the data
header. The header is a sequence of
characters containing the program
number and information concerning
the type of program and
transmission mode.
STX
Start of Text
ETB
DC1
DC3
ETX
End of Text
EOT
End of Transmission
ACK
ACKnowledged
NAK
Not AcKnowledged
3/97
8-19
Example:
An erosion table with the name "8455" is to be sent to a peripheral unit (e.g. FE 401).
FE 401
Transmission path
TNC
<SOH> <E> 8455 <A> <ETB> BCC <DC1>
<ACK>
.
.
.
<ACK>
.
.
.
.
.
.
<ACK>
.
.
.
.
.
.
<ACK>
<ETX> <EOT>
8-20
3/97
The software handshake can easily be achieved when transmitting with a BCC. At first the receiver
sends neither a positive (<ACK>) nor a negative acknowledgment (<NAK>), and the transmitter
waits until it receives one of these characters. When the buffer in the receiver is again capable of
accepting data, it again sends an <ACK> and the transmitter continues its data transmission.
It is also possible, however, to conduct the software handshake with control characters <DC1> and
<DC3>.
3/97
8-21
8-22
3/97
Hardware handshaking
Bit 2 can be set to determine whether the TNC stops transfer from an external device by using RTS.
RTS
CTS
TxD
RxD
EXT
+
CTS
Receiving
buffer full
Data
+
RTS
Data
Start
Data
+
RxD
+
TxD
EXT
Receiving
buffer full
RTS
CTS
+
RTS
TxD
+
RxD
RxD
+
TxD
Start
+
CTS
The DTR and DSR signals from the TNC indicate the operational status of the TNC and peripheral
(these cannot be set via the machine parameters).
3/97
8-23
Peripheriegert
Peripheral unit
GND
TXD
RXD
RTS
CTS
DSR
GND
DTR
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
V.24-Adapter-Block
RS-232-C Adapter block
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
LE
ws/br
WH/BN
ge
gn
rs
gr
br
rt
GN
Yl
GY
PK
BL
RD
bl
BN
ws/br
WH/BN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
GND Chassis
RXD
TXD
CTS
RTS
DTR
GND Signal ground
DSR
If the TNC is transmitting data, it reacts both to hardware and software handshakes, regardless of
the setting in MP5020.
If the TNC is receiving data, and no transmission stop is set in the MP5020, the TNC stops the
peripheral unit with the software handshake.
If transmission stop by both RTS and by DC3 is active, the TNC stops transfer with the hardware
handshake.
Character parity
Bits 4 and 5 determine the type of parity check (see Section "Checking data").
8-24
3/97
Stop bits
Bit 7 determines the number of stop bits sent at the end of a character.
MP 5020
3/97
8-25
For the control characters (<ETX>, <EOT>), any other ASCII characters can be chosen using the
following machine parameters (for table of ASCII characters, see Appendix). If these machine
parameters are set to 0 (zero), no character will be sent.
MP5010
MP5011
When selecting ASCII characters, it must be ensured that the control characters are not arbitrarily
mixed and that no numbers or letters which occur in the transferred text are used.
8-26
3/97
In the TNC, the EXT operating mode must still be assigned to the RS-232 interface and the baud rate
set to 9600 (see the TNC 306 User's Manual).
3/97
8-27
8-28
3/97
Peripheral unit
Transmission path
TNC
<DC1>
1st file
<DC1>
.
.
.
Last line of file <CR> <LF>
.
.
.
<DC1>
<ETX>
<EOT>
3/97
8-29
Transmission path
.
.
.
TNC
<NUL> <NUL> <NUL>. . .
1st line of file <CR> <LF>
.
.
.
<DC3>
<DC1>
8-30
3/97
Peripheral unit
Transmission path
TNC
<DC1>
.
.
.
<EOT>
In this transfer method, the TNC can stop transmission with <DC3> and continue it with <DC1>.
If the file name in the first line of the file and the name indicated in the TNC are not identical, the
TNC reads each block in and searches for the file name concerned.
If the END PGM-block has been read in, and the selected name is not known, the TNC remains
static without an error message, and transfer must be terminated with the END key.
Example: Reading in program 100.H.
Peripheral unit
Transmission path
TNC
100.H "START"
<DC1>
<NUL> <NUL>
1st line PGM100 <CR> <LF>
.
.
.
.
.
.
<EOT>
In this case, if the last PGM block ends without the <ETX> character then transfer is terminated
without an error message but the data is not stored. This means that the program was stored on
the data medium with an incorrect program name (PGM NAME file name).
3/97
8-31
Transmission path
TNC
<DC1>
<NUL> <NUL>
Last line of file 1. <CR> <LF>
..
1st line of file 1 <CR> <LF>
.
.
.
<DC1>
<NUL> <NUL>
1st line of file 2 <CR> <LF>
..
.
Last line of file 2 <CR> <LF>
.
.
.
<DC1>
<NUL> <NUL>
1st line of last file <CR> <LF>
..
.
.
.
.
<DC1>
<ETX>
<EOT>
If several programs are gathered together in a file which ends with <ETX> then these programs are
read in without being requested by <DC1>.
Data read-in does not stop until a program has ended with <ETX>.
8-32
3/97
Transmission path
TNC
<DC1>
<NUL> <NUL>
1st line of file 1 <CR> <LF>
<DC3> Polling:
<DC1> Read in
Yes / No
2nd line of file 1 <CR> <LF>
.
.
.
Last line of file 1 <CR> <LF> <ETX>
.
.
.
.
.
.
<NUL>
.
.
.
Last line of last file <CR> <LF> <ETX>
<DC1>
.
.
.
<DC1>
<ETX>
<EOT>
3/97
8-33
<SOH>"Error text"<ETB>BCC
Peripheral unit
Transmission path
TNC
<ACK>
<EOT>
The received error message is displayed in the TNC, but can be acknowledged and erased with the
CE key.
8-34
3/97
3/97
8-35
Transmission path
TNC
<SOH> <N> Name <A> <ETB> BCC <DC1>
<ACK>
<STX> 1st line of file <ETB> BCC <DC1>
<ACK>
.
.
.
.
.
.
.
.
.
<ACK>
<ETX> <EOT>
8-36
3/97
Transmission path
Peripheral unit
TNC
<SOH> <N> Name <E> <ETB>
BCC <DC1>
<ACK>
<STX> 1st line of file <ETB> BCC <DC1>
<ACK>
.
.
.
.
.
.
<ACK>
<ETX>
<EOT>
3/97
8-37
Peripheral unit
TNC
<SOH> <H> <E> <ETB>
BCC <DC1>
<ACK>
<STX> 1st line PGM1 <ETB> BCC <DC1>
.
.
.
<ACK>
.
.
.
<ACK>
<SOH> <H> <E> <ETB>
BCC <DC1>
<ACK>
.
.
.
.
.
.
<EOT>
8-38
3/97
Data transfer
Delete, copy and rename files in the control
Select a program in mode PROGRAM RUN
NC-Start and NC-Stop in mode PROGRAM RUN
Receive NC status information
NC-Start is enabled by marker M2504. Marker M2504 must be set to make a NC-Start possible.
Otherwise no modifications are necessary in the PLC-program.
HEIDENHAIN offers the software package LSV2 - DLL with detailed documentation for developing a
remote control software.
3/97
8-39
6 Error messages
6.1 TNC error messages
Listed below are the error messages for data transfer, which are displayed at the TNC. In most
cases the messages are self-explanatory.
These error messages occur only in ME mode:
WRONG MODE
TRANSFERRED DATA INCORRECT
WRONG PROGRAM DATA
ME: END OF TAPE
DATA CARRIER FULL
DATA CARRIER EMPTY
DATA CARRIER WRITE-PROTECTED
General error messages:
INTERFACE ALREADY ASSIGNED
Transfer is already taking place via interface, or data transfer has not been completed.
PROGRAM INCOMPLETE
Transfer has been interrupted or the file has not ended correctly (no END character or END block).
EXT. OUTPUT/INPUT NOT READY
Interface is not connected; peripheral unit is switched off of faulty.
TRANSFERRED DATA INCORRECT X
can assume the values A to H, K or L (error codes).
The error message TRANSFERRED DATA INCORRECT N is displayed if, in the case of data transfer
with BCC (Block Check Character), a Not Acknowledged control character (<NAK>) has been
received three times.
The remaining error codes (A to H) in this error message indicate that an error has been detected in
the received module. The error can have the following causes, with no assignment to the code
letters:
Same baud rate not set at TNC and peripheral unit
Parity bit wrong
Incorrect data frame (e.g. no stop bit)
Receiving module of interface faulty
Error code K or L is only displayed for transfer with standard data transmission protocol:
K: When an error was transmitted to TNC, character <1> not sent after the <ESC> character.
L: The wrong error number was received after the error sequence <ESC><1>. (Error number
range: 0 to 7).
8-40
6 Error messages
3/97
Error code
ERR: 001
ERR: 002
ERR: 003
ERR: 004
Meaning
Wrong instruction code
Illegal program name
Defective data transmission
Program incomplete
ERR: 010
ERR: 011
ERR: 012
ERR: 013
ERR: 014
ERR: 100
ERR: 101
ERR: 102
ERR: 103
ERR: 104
ERR: 105
ERR: 106
ERR: 107
ERR: 108
If a magnetic tape unit is connected, the following error codes could be sent to the TNC and an
appropriate error message outputted:
Error code
<ESC><1><0>
<ESC><1><1>
<ESC><1><2>
<ESC><1><3>
<ESC><1><4>
<ESC><1><5>
<ESC><1><6>
<ESC><1><7>
Error message
TRANSFERRED DATA INCORRECT
DATA CARRIER MISSING
DATA CARRIER WRITE-PROTECTED
WRONG OPERATING MODE
WRONG PROGRAM DATA
DATA CARRIER EMPTY
PROGRAM INCOMPLETE
ME: END OF TAPE
A detailed description of these peripherals can be found in the appropriate operating manual.
3/97
6 Error messages
8-41
8-42
6 Error messages
3/97
9-2
9-3
1.2
9-6
9-7
9-8
9-9
5
5.1
9-10
9-10
3/97
9-1
9-2
3/97
Example:
0 BEGIN PGM 99999968 MM
1 DLG-DEF 0/2/8/99
.
.
.
15 END PGM 99999968 MM
Machine parameter MP7240 can be used to inhibit program input in the case that the program
number is the same as the user cycle number.
If MP7240 = 0, no program with the program number of a user cycle which is stored in EPROM can
be input or read into the NC program memory.
If MP7240 = 1, the program number range of the user cycles can also be used when the user cycles
are stored in the PLC EPROM. If a user cycle is generated in the NC program memory and if at the
same time there is a user cycle with the same number in the PLC EPROM, then the user cycle in
the NC program memory will be executed at a cycle call.
3/97
9-3
In the NC program, when defining the user cycles created with dialog support, Q parameters are
assigned specified input values. The Q-parameter numbers are automatically generated by the TNC.
In order to prevent the same Q-parameter numbers from being generated for "DLG-DEF" cycles and
"DLG-CALL" cycles, MP7250 can be used to specify the difference between Q-parameter numbers
for "DLG-CALL" and "DLG-DEF" blocks.
In the case of a "DLG-CALL" block, the input values of the user cycles are assigned in ascending
order to the Q parameters Q1 to Q14. For the "DLG-DEF" block, the input values are assigned to Q
parameters Q[1 + MP7250] to Q[14 + MP7250].
Example for MP7250 = 30
Cycle parameter 1
Cycle parameter 2
.
.
.
Cycle parameter 14
MP7251 determines whether the values of the Q parameters which are changed in the user cycles
by calculation or assignment are transferred globally to the called program (e.g. in the case of
"nesting" of user cycles).
Machine parameter MP7251 defines the range of Q parameters from Q[100 MP7251] to Q99 as
"global".
The effect of global and local Q parameters may be shown by reference to following example:
MP7251 = 40
Q [100 40] = Q60 => Q60 to Q99 are global Q parameters and
Q1 to Q59 are local Q parameters
Q1
BEGIN PGM 100 MM
FN0: Q1 = +1
FN0: Q60 = +5
CYCL DEF 69.0 USERCYCLE 1
CYCL DEF 69.1 Q1 = +2
BEGIN PGM 99999969 MM
DLGDEF 0/32
FN1: Q1 = Q1 + 10
FN1: Q60 = Q60 + 10
END PGM 99999969 MM
STOP
END PGM 100 MM
9-4
MP7251 = 40
MP7251 < 40
Q60 = local
Q60 = global Q1
+1
+1
+1
+2
+0
+5
+5
+5
+1
+1
+1
+2
+0
+5
+5
+5
+12
+12
+5
+15
+12
+12
+5
+15
+2
+15
+2
+5
3/97
MP7240
MP7250
MP7251
User cycles stored in the PLC EPROM can be inhibited in the PLC program via markers M2240 to
M2271. It is then not possible to define inhibited cycles in NC programs.
If programs with definitions of inhibited user cycles are transferred to the control, an error message
"PGM 999999.. UNAVAILABLE=..." is generated in the transferred program and the program cannot
be executed.
Marker
Function
Set
Reset
M2240
M2241
M2242
.
.
.
M2271
PLC
PLC
PLC
PLC
PLC
PLC
PLC
PLC
3/97
9-5
Eroding parameters
General Q parameters:
Q100Q107
Q108
Q109
Q110
Q111
9-6
-1
0
1
3/97
Q113
Q114
MM or INCH programming
Contents Q113
-1
main program mm 0
main program inch 1
MM or INCH Eroding table
Contents Q113
-1
Eroding table mm
0
Eroding table inch
1
Q115Q118 Values from the programmable touch probe function in the machining system
Q120Q124 Values from the programmable touch probe function in the workpiece system
Q153
Q157
Q158
Q159
Q160
Q162
3/97
9-7
Instead of these standard dialogs, up to 200 different customer-specific dialogs can be stored in PLC
EPROM.
9-8
3/97
3/97
9-9
Q2
0
Input parameters:
Q1 = Number of cavities
Q2 = Radius of bolt hole circle
Q3 = X coordinate of center of bolt hole circle
Q4 = Y coordinate of center of bolt hole circle
Q5 = Safety clearance for Z axis
(enter as negative)
Q6 = Cavity depth in Z axis (enter as negative)
Q4
Q3
Dialog block
Distance traversed in Z
Angle increment
Starting angle
Center of bolt hole circle
Jump label
Approach cavity, position C axis
Erode cavity
Retract, generator off
Next angle
Last cavity?
9-10
DIALOGUE
BOLT HOLE CIRCLE
NUMBER OF CAVITIES?
RADIUS?
X COORDINATE CC?
Y COORDINATE CC?
SAFETY CLEARANCE?
TOTAL CAVITY DEPTH?
3/97
Example:
0
1
2
3
4
5
6
7
8
9
10
11
3/97
Tool definition
Tool call
Definition and call of the generator
with corresponding eroding
parameters
Approach safety clearance
Definition of cycle 68 "Bolt hole circle"
Call cycle
9-11
(
)
*
+
,
.
/
3/97
DEC
000
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
OCT
000
001
002
003
004
005
006
007
010
011
012
013
014
015
016
017
020
021
022
023
024
025
026
027
030
031
032
033
034
035
036
037
040
041
042
043
044
045
046
047
050
051
052
053
054
055
056
057
HEX
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
20
21
22
23
24
25
26
27
28
29
2A
2B
2C
2D
2E
2F
10-1
Character
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
10-2
DEC
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
OCT
060
061
062
063
064
065
066
067
070
071
072
073
074
075
076
077
100
101
102
103
104
105
106
107
110
111
112
113
114
115
116
117
120
121
122
123
124
125
126
127
130
131
132
133
134
135
136
137
HEX
30
31
32
33
34
35
36
37
38
39
3A
3B
3C
3D
3E
3F
40
41
42
43
44
45
46
47
48
49
4A
4B
4C
4D
4E
4F
50
51
52
53
54
55
56
57
58
59
5A
5B
5C
5D
5E
5F
3/97
Character
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
}
~
DEL
3/97
DEC
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
OCT
140
141
142
143
144
145
146
147
150
151
152
153
154
155
156
157
160
161
162
163
164
165
166
167
170
171
172
173
174
175
176
177
HEX
60
61
62
63
64
65
66
67
68
69
6A
6B
6C
6D
6E
6F
70
71
72
73
74
75
76
77
78
79
7A
7B
7C
7D
7E
7F
10-3
10-4
3/97
Subject index
A
Acceleration...................................................................................................4-40
Acceleration, radial ........................................................................................4-45
Active axes ....................................................................................................4-5
Actual/nominal value transfer ........................................................................4-53
ADD (+)........................................................................................................7-102
ADDITION......................................................................................................7-56; 7-73
Address allocation .........................................................................................7-14
Addressing the word memory.......................................................................7-14
alphabetic keyboard.......................................................................................4-101
Ambient temperature ....................................................................................3-8
Amplitude of the measuring system signals .................................................4-8
Analog inputs.................................................................................................4-120
Analog outputs, Assignment .........................................................................4-12
Analog voltage ...............................................................................................4-42
AND ...............................................................................................................7-43; 7-69
AND NOT.......................................................................................................7-45; 7-69
Angular measurement ...................................................................................4-6
Arc recognition ..............................................................................................4-60
Arithmetic commands ...................................................................................7-56
ASSIGN..........................................................................................................7-33
ASSIGN BYTE................................................................................................7-35
ASSIGN DOUBLEWORD ..............................................................................7-35
ASSIGN NOT (=N) .........................................................................................7-36
ASSIGN TWO'S COMPLEMENT (= -) ...........................................................7-36
ASSIGN WORD .............................................................................................7-35
Axes in position .............................................................................................4-52
Axis designation ............................................................................................4-10
Axis enable ....................................................................................................4-51
Axis limit ........................................................................................................4-13
Axis of rotation ..............................................................................................4-10
B
Bar Chart........................................................................................................7-117
Baud rate .......................................................................................................8-9
BCC (Block Check Character) ........................................................................8-20
BIT RESET ....................................................................................................7-85
Bit commands ...............................................................................................7-84
BIT SET..........................................................................................................7-84
BIT TEST........................................................................................................7-86
Buffer battery ................................................................................................3-19
Byte ...............................................................................................................7-14
C
Call Module (CM)..........................................................................................7-95
Call Module if Logic Accumulator = 0 (CMF) ...............................................7-95
Call Module if Logic Accumulator = 1 (CMT) ...............................................7-95
CALL-active user cycle ..................................................................................9-3
3/97
Subject index
11-1
D
Data bits ........................................................................................................8-24
Data exchange, PLC/generator......................................................................4-68
Data interface ................................................................................................3-41
Data transfer..................................................................................................8-4
Data transfer PLC ..........................................................................................7-15
Data transfer rate ..........................................................................................8-9
Data transfer with Block Check Character ....................................................8-19
Data transmission protocols..........................................................................8-18
Datum correction...........................................................................................4-125
Debug Functions, PLC...................................................................................7-10
Decimal sign ..................................................................................................4-89
DECREMENT (DEC) ......................................................................................7-76
DEF-active user cycle ....................................................................................9-3
Degree of protection .....................................................................................3-12
Dialog language .............................................................................................2-6
Dialog number ...............................................................................................9-3
Dialogs for user cycles ..................................................................................9-8
Direction of traverse ......................................................................................4-7
Display, active power stage number .............................................................4-84
11-2
Subject index
3/97
E
Edge evaluation of the PLC-inputs ................................................................7-21
Edge separation of the measuring system signals........................................4-9
Editing PLC-programs....................................................................................7-6
Electrical noise immunity...............................................................................3-8
Electrode changer..........................................................................................4-127
EMERGENCY STOP routine ..........................................................................4-71
EMERGENCY STOP, connection diagram.....................................................4-72
Encoder inputs, Assignment .........................................................................4-11
Encoder monitoring .......................................................................................4-8
Encoders........................................................................................................4-5
End indexed call module (ENDC)..................................................................7-99
End of Module if Logic Accumulator = 0 (EMF) ............................................7-97
End of Module if Logic Accumulator = 1 (EMT) ............................................7-97
End of Module, Program End (EM)...............................................................7-97
Entry format...................................................................................................5-3
EPROM..........................................................................................................2-8
EPROM creation............................................................................................7-21
EPROM operation..........................................................................................7-22
EPROM slots .................................................................................................3-9
EPROM test ..................................................................................................4-90
EQUAL TO.....................................................................................................7-62; 7-77
Eroding parameters .......................................................................................4-62
Eroding parameters, Transmission to the PLC..............................................4-67
Erosion table from PLC..................................................................................4-64
Error in PLC-program .....................................................................................4-110
Error message ...............................................................................................4-48; 4-85; 4-110; 7-23
ERROR= ........................................................................................................9-5
Errors, PLC ....................................................................................................7-23
EXCLUSIVE OR .............................................................................................7-51; 7-70
EXCLUSIVE OR NOT .....................................................................................7-53; 7-70
External programming ...................................................................................8-28
Extra linear axis .............................................................................................4-11
F
Feed forward control .....................................................................................4-56
Feed rate override .........................................................................................4-54
Feed rate, constant........................................................................................4-45
Flushing the gap ............................................................................................4-61
Free run .........................................................................................................4-61
G
Gap control ....................................................................................................4-56
Gap signal ......................................................................................................4-56
3/97
Subject index
11-3
H
Handshaking ..................................................................................................8-10
Handwheel ....................................................................................................4-117
Handwheel HR 130 .......................................................................................3-45
Handwheel HR 330 .......................................................................................3-43; 3-44
Handwheel HR 410 .......................................................................................4-118
Handwheel input ...........................................................................................3-43
Handwheel, count direction...........................................................................4-117
Hardware handshaking..................................................................................8-10
Hardware version ..........................................................................................0-7
Heat generation .............................................................................................3-8
HR 130...........................................................................................................4-117
HR 330...........................................................................................................4-117
Humidity ........................................................................................................3-9
I
Identifier ........................................................................................................7-104
INCREMENT (INC).........................................................................................7-76
Indexed call module (CASE) .........................................................................7-99
Inhibited key ..................................................................................................4-101
Installation, hardware ....................................................................................3-8
Interface configuration...................................................................................8-24
Interpolation factor ........................................................................................4-117
J
Jog increment positioning .............................................................................4-122
Jump commands...........................................................................................7-93
Jump if Logic Accumulator = 0 (JPF) ...........................................................7-93
Jump if Logic Accumulator = 1 (JPT) ...........................................................7-93
Jump Label (LBL)..........................................................................................7-97
K
Key simulation ...............................................................................................4-101
Key-code........................................................................................................4-101
Kv factor ........................................................................................................4-41; 4-42; 4-145
11-4
Subject index
3/97
L
L (LOAD)......................................................................................................7-101
Lag.................................................................................................................4-41
LESS THAN ...................................................................................................7-63; 7-77
LESS THAN OR EQUAL TO ..........................................................................7-65; 7-77
List of machine parameters...........................................................................5-5
LOAD.............................................................................................................7-26
LOAD (L)......................................................................................................7-101
LOAD BYTE ...................................................................................................7-31
Load command..............................................................................................7-26
Load data onto Data Stack (PS) ....................................................................7-88
LOAD DOUBLEWORD..................................................................................7-31
Load logic accumulator onto Data Stack (PSL).............................................7-89
LOAD NOT ....................................................................................................7-28
LOAD TWO'S COMPLEMENT......................................................................7-30
LOAD WORD ................................................................................................7-31
Load word accumulator onto Data Stack (PSW) ..........................................7-90
Local Q parameters .......................................................................................9-4
Logic gates ....................................................................................................7-43
Logic unit .......................................................................................................3-4; 3-5
LSV/2 Protocol ...............................................................................................8-41
Lubrication pulse ...........................................................................................4-16
Lubrication, path-dependent..........................................................................4-16
M
M06, program-halt on ....................................................................................4-99
M36 off..........................................................................................................4-59
M36 on ..........................................................................................................4-59; 4-96
M37 off..........................................................................................................4-96
M89 ...............................................................................................................4-99
Machine axes ................................................................................................4-5
Machine control panel ...................................................................................3-56; 4-110
Machine datum..............................................................................................4-34; 4-76
Machine parameter, read ..............................................................................7-112
Machine parameters .....................................................................................5-2
Machine parameters, list of...........................................................................5-5
Manual feed...................................................................................................4-43
Measuring system cables .............................................................................3-29
Measuring system, inputs .............................................................................3-28
Measuring systems .......................................................................................3-27; 4-5
Measuring systems, angular .........................................................................3-27
Measuring systems, linear ............................................................................3-27
Mechanical vibration......................................................................................3-9
Memory test..................................................................................................4-90
M functions ...................................................................................................4-93
Module 9051 .................................................................................................7-112
Module 9071 .................................................................................................7-113
Module 9079 .................................................................................................7-114
Module 9000/9001 ........................................................................................7-108
Module 9020/9021/9022 ...............................................................................7-111
Module 9032 .................................................................................................7-112
Module 9080 .................................................................................................7-100; 7-114
Module 9081 .................................................................................................7-114
3/97
Subject index
11-5
N
NC software number .....................................................................................2-6
Nesting depth ................................................................................................9-2
Nominal value potential .................................................................................3-31
NOT EQUAL TO ............................................................................................7-78
O
Offset adjustment .........................................................................................4-44; 4-147
Operand directory..........................................................................................7-14
Operating mode.............................................................................................4-101
OR .................................................................................................................7-47; 7-69
OR NOT .........................................................................................................7-49; 7-69
Overflow........................................................................................................7-104
Overwrite Q-parameters ...............................................................................4-91
Overwriting of a STRING (OVWR)...............................................................7-103
OVWR (OVERWRITE)..................................................................................7-103
P
Parentheses...................................................................................................7-69; 7-73
PL 410 B ........................................................................................................3-52
PLC Main menu ..........................................................................................7-6
PLC DIALOG..................................................................................................7-101
PLC ERROR...................................................................................................7-101
PLC functions ................................................................................................7-5
PLC input/output board..................................................................................3-4; 3-6; 3-12
PLC inputs .....................................................................................................3-47
PLC Modules .................................................................................................7-108
PLC operation, selecting................................................................................7-5
PLC outputs...................................................................................................3-47
PLC positioning..............................................................................................4-24
PLC positioning, Feed for ..............................................................................4-24
PLC program, translating ...............................................................................7-8
PLC programs, deleting .................................................................................7-8
PLC programs, editing ...................................................................................7-6
PLC software.................................................................................................0-8
PLC window ..................................................................................................7-100
Position monitoring........................................................................................4-46
Positional deviation........................................................................................4-43
Positioning window .......................................................................................4-48
Power supply.................................................................................................3-16
Power supply, NC..........................................................................................3-16
Power supply, PLC ........................................................................................3-17
11-6
Subject index
3/97
Q
Q parameters.................................................................................................4-63; 9-4
Q parameters, global .....................................................................................9-4
Q parameters, local .......................................................................................9-4
R
RAM operation ..............................................................................................7-22
RAM test .......................................................................................................4-90
Range (Module 9010/9011/9012 ...................................................................7-110
Rapid traverse................................................................................................4-41; 4-42
Read in Word.................................................................................................7-110
Reference end-position .................................................................................4-28
Reference marks ...........................................................................................4-27; 4-33
Reference marks, direction for traversing .....................................................4-33
Reference marks, distance-coded.................................................................4-27
Reference marks, feed rate for leaving .........................................................4-33
Reference marks, passing over.....................................................................4-28
Reference marks, Sequence for traversing...................................................4-33
Reference point, shift of the..........................................................................4-77
Referencing to machine datum with M92 positioning blocks .......................4-77
REMAINDER .................................................................................................7-60; 7-74
REPLY............................................................................................................7-104
RESET............................................................................................................7-39
RESET NOT ...................................................................................................7-41
Restore position ............................................................................................4-90
Retraction of the electrode............................................................................4-59
Retraction speed ...........................................................................................4-59
Rotary axis, non-controlled ............................................................................4-54
Rotary encoder and ballscrew .......................................................................4-5
RPLY (REPLY)..............................................................................................7-105
RS 422/V.11...................................................................................................3-42; 4-68
RS-232-C interface.........................................................................................8-3; 8-11
S
Scaling factor .................................................................................................4-87
Servo accuracy ..............................................................................................4-43
Servo lag........................................................................................................4-41
Servo lag, optimizing .....................................................................................4-144
Servo positioning ...........................................................................................4-37
Servo sensitivity ............................................................................................4-66
SET ................................................................................................................7-38
3/97
Subject index
11-7
SET NOT........................................................................................................7-40
Set commands ..............................................................................................7-38
Shift commands ............................................................................................7-81
SHIFT LEFT....................................................................................................7-81
SHIFT RIGHT .................................................................................................7-82
Short circuit ...................................................................................................4-59; 4-112
Short-circuit signal .........................................................................................3-37
Signal period ..................................................................................................4-5
soft key..........................................................................................................4-101
Software handshaking ...................................................................................8-10
Software limit switch.....................................................................................4-13; 4-144
Software types ..............................................................................................2-7
Spark-out .......................................................................................................4-61
Stack operations ............................................................................................7-88
Standard data transmission protocol .............................................................8-30
Standard transmission protocol.....................................................................8-18
Status display, canceling ...............................................................................4-84
Status Interrogation (RPLY) ...........................................................................7-105
Status window...............................................................................................4-80
Storing a STRING (=) ...................................................................................7-102
STRING accumulator .....................................................................................7-100
STRING Execution .........................................................................................7-100
STRING memory ...........................................................................................7-100
SUBM (SUBMIT) .........................................................................................7-104
Submit Programs...........................................................................................7-104
Submit Queue ...............................................................................................7-104
Subprograms .................................................................................................7-104
SUBTRACTION..............................................................................................7-57; 7-73
T
TABLE function..............................................................................................7-10
Technical data................................................................................................2-3
Test functions, PLC .......................................................................................7-9
Threshold sensitivity......................................................................................4-117
Timers............................................................................................................7-18
TNC keyboard ................................................................................................3-4; 3-5; 3-59; 4-101
Tool axis.........................................................................................................4-12
Touch probe systems, TS 120.......................................................................3-39
TRACE BUFFER, DISPLAY ............................................................................7-10
TRACE function .............................................................................................7-9
TRACE, END..................................................................................................7-10
TRACE, START ..............................................................................................7-10
Transferring programs from EPROM ............................................................7-8
Transferring the PLC-program .......................................................................7-11
Translating PLC programs .............................................................................7-8
U
Unconditional jump (JP)................................................................................7-93
UNEQUAL .....................................................................................................7-67
User cycles ....................................................................................................9-2
User parameters............................................................................................4-88; 5-2
Utilization .......................................................................................................7-8
11-8
Subject index
3/97
V
VDU display ...................................................................................................4-12
Visual display unit ..........................................................................................3-6; 3-12; 3-35
Voltage step...................................................................................................4-43
W
Workpiece datum ..........................................................................................4-76
Write in word range.......................................................................................7-111
X
X1 ..................................................................................................................3-60
Z
Zero reference mark ......................................................................................4-28
3/97
Subject index
11-9
In the software 286 18x-04 and 280 62x-10 the following additions were made:
During a reference run with the direction keys, traverse continues in manual mode after the
reference mark has been evaluated.
If a program was interrupted with ext./int stop and restarted with NC Start, then an incremental
positioning after a GOTO is always started from the current machine position.
3/2000
1-1
In MODE/AXIS LIMIT, limit values can be entered in addition to the software limit switch values
of the machine parameters. The smaller of each two values is used for range checking.
An edited value is saved with the END key. The previous value can be restored through NOENT.
The software limit switch values from the machine parameters can be transferred by soft key
(TRANSFER FROM MP) to the MODE window.
The following structured program commands were added to the PLC syntax:
IFT
IFF
ELSE
ENDI
REPEAT (REPEAT)
UNTILT (UNTIL TRUE)
UNTILF (UNTIL FALSE)
To operate the index register, commands were introduced that permit data exchange between
word accumulator and index register or stack and index register:
LX (Load Index to Accu)
Index register
--> Word accu
=X (Store Accu to Index)
Word accu
--> Index register
PSX (Push Index Register)
Index register
--> Stack
PLX (Pull Index Register)
Stack
--> Index register
INCX (Increment Index register)
DECX (Decrement Index register)
BSX (BIT SET)
The bit that was addressed by index is set to 1.
BCX (BIT CLEAR) The bit that was addressed by index is set to 0 .
BTX (BIT TEST)
Status of the bit that was addressed by index is interrogated.
The following address types are possible:
Mn[X]
Operand number = n+X
In[X]
On[X]
Cn[X]
Tn[X]
Bn[X]
Wn[X]
Dn[X]
1-2
It is now possible to assign label names with up to 8 places instead of the previous label
numbers. The maximum label number is 1000.
3/2000
Handwheel
Besides in the MANUAL and JOG INCREMENT modes, the handwheel is also effective with:
Manual Touch Probe: depth finding, but not in the probe axis;
Manual erosion, but not in the erosion axis;
After an EXT stop and when a PGM is being run (for workpiece inspection).
Tool Def or Cycle 3 Tool Def blocks can now be included in the OEM cycle in the PLC-EPROM.
Read machine parameter 7651 was removed. MP7651 made it possible to switch off the
special short-circuit monitoring in manual mode. The monitor is now always active during
traverse with the handwheel and axis direction keys .
The short circuit monitor can now also be switched on or off with the aid of marker M2622 in
manual and handwheel mode.
Machine parameter MP7412 (behavior during cycle call) has been removed.
Marker M2500 (actual-to-nominal value transfer in case of short circuit) and the complement
markers as of M2464 and as of M2528 have been removed.
3/2000
1-3
Markers
(M2000...)
(M2008...)
(M2160...)
(M2136...)
(M2624...)
(M2625...)
(M2492...)
(M2544...)
(M2552...)
(M2456...)
(M2457...)
(M2512...)
(M2513...)
(M2556...)
(M2012...)
(M2548...)
1-4
3/2000
Error code :
0: No error, positioning started
1: Error
M3171 = 1 if error occurs during execution of the module
3/2000
1-5
Filing instructions
This Update Information issue includes a set of replacement sheets for your Technical Manual
TNC 416/TNC 406/TNC 306. Please incorporate them into your Manual, following the filing
instructions below.
Change
Title page March 1997
Update Information
Introduction
Page 2-9 Software releases
Chapter 5 Machine parameters
Page 5-7
Page 5-17
Page 5-26
Page 5-28
Chapter 6 Marker and Words
New markers and words
Chapter 7 PLC programming
Contents
Page 7-84 BTX
Page 7-85 BCX
Page 7-86 BSX
Page 7-108 to 7-123 structured
instructions, new PLC Modules
1-6
Remove
Title page
Introduction
Page 2-9, 2-10
Insert
New title page
Update Information No. 15
New chapter Introduction
Page 2-9, 2-10
Contents
Page 7-83, 7-84 BTX
Page 7-85 BCX
Page 7-86 BSX
Page 7-107 to 7-120
New Contents
Page 7-83, 7-84 BTX
Page 7-85 BCX
Page 7-86 BSX
Page 7-107 to 7-124
3/2000
The hardware design of the LE 416D corresponds to that of the new HEIDENHAIN logic units
LE 4xxM. Please note this when using the LE.
For installation instructions, dimensions, and connector layout for the new components, please refer
to Chapter 3 "Mounting and electrical installation.
Please note that the LE 416D has no TTL position encoder inputs. All position encoder inputs are
1 VPP or 11APP, switchable by machine parameter MP115.0 (see Chapter 5 List of machine
parameters).
The LE 416D is supplied with Id. Nr. 286 180-xx software
The features of the TNC 416 with software version 286 180-01 are the same as those on the
TNC 406 with software version 280 620-08. PLC programs that can run on the TNC 406 (software
280 620-08), can also run on the TNC 416.
Software version 1 for the TNC 416 was released in March 1999.
3/99
1-1
Software version 8 for the TNC 406 was released in March 1999.
Key codes are available for RR, RL, CL PGM, and EXT (already in version 07).
RR =
$1BE
RL =
$1BF
EXT =
$1CD
CL PGM = $1CC
1-2
3/99
Filing instructions
This Update Information issue includes a set of replacement sheets for your Technical Manual
TNC 416/TNC 406/TNC 306. Please incorporate them into your Manual, following the filing
instructions below.
Change
Title page March 1997
Update Information
Introduction
Mounting and electrical installation
New machine parameters
Remove
Title page
Introduction
Mounting and electrical
installation
List of machine parameters
3/99
Insert
New title page
Update Information No. 14
New chapter Introduction
New chapter Mounting and
electrical installation
New list of machine
parameters
New list of markers and
words
1-3
1/98
TNC406/TNC 306
1-1
LBL 790
L M980
JPT 799
PS W516
CM 9180
PL W240
L W240
< K+0
JPT 795
;ERROR
L W240
1-2
1/98
= K+0
JPT 791
SN M980
LBL 791
EM
LBL 795
EM
LBL 799
PS K+0
CM 9180
PLW
= K+0
R M980
R M2813
EM
;KEY PROCESSED
M980 and W240 can be replaced by any free markers/words. M2813 and W516 no longer evaluate
the PLC.
TNC406/TNC 306
1-3
Under the code number 79513 you will find the following menu and the corresponding data outputs
on RS-232-C:
DIALOG CODE NUMBERS OUTPUT
LOGBOOK OUTPUT
PROGRAM RUN DATA OUTPUT
MACHINE PARAMETER OUTPUT
Because this is purely data output, the code number 79513 can be given to any end user.
MP1710.x removed: Position monitoring for operation with servo lag (can be deleted)
MP1710.x was removed. The control multiplies the value of the normal servo lag by 1.5 and uses
the product as limit for servo-lag monitoring (erasable error message). A value of 1.8 * servo lag
should therefore be used for MP1720.x.
1-4
1/98
Resolution of display
m
inch
0.1 m
0.00001
0.5 m
0.00002
1 m
0.0001 (previous resolution)
5 m
0.0002
10 m
0.001
50 m
0.002
100 m 0.01
1/98
TNC406/TNC 306
1-5
(Q-Parameter)
(Q-Parameter)
(Q-Parameter)
(Q-Parameter)
(Q-Parameter)
1-6
1/98
TNC406/TNC 306
1-7
Change in MP1700
The PLC cycle time is now fixed at 40 ms.
The position loop cycle, 2 or 4 ms, remains definable with MP 1700:
0 = 4 ms --> machine with normal acceleration
1 = reserved (same as 0)
2 = 2 ms --> Machine with high acceleration >1 m/s*s
Changes in MP410
MP410 defines the identifier of the 4th axis.
A linear axis can also be defined as 4th axis.
Input values:
0/1/2/3/4/5 = A/B/C/U/V/W
A/B/C = angular axes
U/V/W = linear axis
MP410 (4th axis) and MP411 (5th axis) must have different values. For machines with angular
axis and secondary linear axis, the angular axis must be programmed as 4th axis and the linear
axis as 5th axis.
3/98
TNC406/TNC 306
1-1
Change in MP2081
With MP2081 = 2 you can transfer the comparison of the actual gap with the nominal gap (from
W524) out of the generator and into the control. This is the same procedure as when MP 2081 =
1 except that, instead of using the subsequent two-point controller, it uses the characteristic
curve. The feed rate for the control is calculated from the characteristic curve.
To transfer the comparison function to the control, make the following change in the PLC
program:
The gap nominal value for good in the PLC must be read from the corresponding parameter
(GV) of the current generator setting, calculated to 0...500, and loaded to W524. The threshold
for the free-run feed rate must be loaded to W520.
e.g.
L B671
X K+5
= W524
L K+450
= W520
The complete input curve for MP2081=0 or 2 can now also be changed from the PLC. Before the
PLC run, the PLC words 599 ... 597 are always loaded from the machine parameters MP2010 ...
MP2030. If you change the curve, you must also change the values in W588 ... B597 in the PLC.
After the PLC scan, the control uses these values for the characteristic curve.
The exact assignment is:
Rising characteristic curve before the kink point in thousandths
0.1 ... 10.0 ==> 100 ... 10000 in thousandths
W588 for positive feed rate
(MP2010.0)
W590 for negative feed rate
(MP2010.1)
Characteristic curve after kink point: Multiplication factor
0.1 ... 10.0 ==> 100 ... 10000 in thousandths
W592 positive
(MP2020.0)
W594 negative
(MP2020.1)
Kink as a percentage of the characteristic curve
0 ... 100%
B596 positive
(MP2030.0)
B597 negative
(MP2030.1)
The status window also displays the values of feed rate and angular position when running the
disk cycle. If the control is set to inch values, the feed rate is shown in tenths of an inch.
1-2
3/98
Servo Sensitivity SV is no longer read directly out of the corresponding byte of the erosion table,
but rather from the new byte B763. During control with a table, SV is automatically transferred to
B763. During control without a table (MP2199=0), the value of the corresponding SV-Q
parameter in the PLC program can be transferred to B763, and SV can therefore be changed
during erosion.
The step-output function was modified so that the duration of output can be determined by
pressing the key. This also makes it possible to move across larger distances with constant
voltage.
Markers 2688 and following (switching off monitoring functions in the control loop) was removed
to ensure safety.
Comment blocks are now also saved if they begin with a semicolon ; are now also saved. The
binary format of an NC block limits the string length of these comment blocks to 22 characters.
As before, comment blocks that begin with an asterisk * are not saved.
A comment block is editable only if it begins with a semicolon. A comment can be
inserted only between the NC blocks. It is not possible to insert a comment at the end of an NC
block.
Change in MP2081
The input range for MP2050 was expanded from 0..2 mm to 0..20 mm.
3/98
TNC406/TNC 306
1-3
Filing instructions
This Update Information issue includes a set of replacement sheets for your Technical Manual TNC
406/TNC 306. Please incorporate them into your Manual, following the filing instructions below.
Change
Title page April 1996
Update Information No. 12
1-4
Remove
Title page
Insert
New title page
1-1 to 1-2
3/98
If M36 is active while the "Touch Probe" cycle is running, M37 is automatically output (erosion
switched off).
The new software version 16 of TNC 306 introduces the following new features:
3/97
TNC406/TNC 306
1-1
K+140
W522
B671
K+5
W524
W524
K+150
W520
1-2
3/97
The following machine parameters and PLC words are applicable when MP2081=1:
MP 2133 Retraction velocity for short circuit during erosion; short circuit is quickly detected
through X12. (MP 2133 has no function if = 0.)
MP 2141 Free-run feed rate forward if analog voltage has crossed the threshold.
MP 2142 Feed rate for gap control at SV=100%
W520
Threshold for positioning with free-run feed rate from MP2141 value range 0 to 500
(corresponds to the voltages 0 to 5 V).
W522
W524
The input range for MP 1060.x (acceleration) was changed to the values 0.01 to 9.0.
The input range for MP 330.x (resolution of encoder) was changed to the values 1 to 360 ([m or
1/1000 degrees] per encoder period. For square-wave inputs, the encoder must be equipped
with a 5-fold EXE if it has distance-coded reference marks (MP1350). If an angular axis is
connected to a square-wave input, the encoder must output 90 000 pulses per revolution (ppr) or
a divisor thereof.
Example:
For a rotary encoder and 5-fold EXE (square-wave input): (RON 275 C or ROD 270 C)
18 000 ppr * 5 = 90 000 ppr
MP330 = 4 (min. value for square wave)
9 000 ppr * 5 = 45 000 ppr
MP330 = 8
If an angular axis is connected to sinusoidal inputs, the encoder must output a total of 360 000 or
a divisor thereof:
ROD 4xx with 2000 ppr * transmission ratio 180 (no EXE) = 360 000
MP330=1
ROD 4xx with 1000 ppr * transmission ratio 180 (no EXE) = 180 000
MP330=2
ROD 4xx with 1000 ppr * transmission ratio 90 (no EXE)
= 90 000
MP330=4
ROD 4xx with 3000 ppr without transmission ration
=
3 000
MP330=120
3/97
TNC406/TNC 306
1-3
The new software version 5 of TNC 406 introduces the following new features:
New machine parameter MP7241 for the NC blocks EL CALL and WP CALL
(See below for description of EL CALL and WP CALL)
Input value = 0 NC blocks disabled
= 1 NC blocks enabled
New machine parameter MP5200 for the baud rate of the RS-422 interface
Input value = 0 baud rate is 9 600
= 1 baud rate is 38 400
Machine parameter MP5030 (baud rate after reset) was canceled. After reset the baud rate is
always 9600.
The input range for MP 1060.x (accelerations) was changed to 0.01 ... 9.0.
The input range for MP 330.x (resolution of encoder) was changed to 1 to 360 [m or 1/1000
degrees] per encoder signal period.
For more information see above description of new features for TNC 306.
1-4
3/97
TOUCH-PROBE functions
If M36 is active when the TOUCH PROBE cycle is executed, M37 is output automatically
(erosion switched off). The selection of the TOUCH PROBE functions was assigned to soft keys.
The datum number can be entered directly in the TOUCH PROBE basic menu. This eliminates
the need to make the datum selection beforehand through Q80.
Output of dialogs
Under the code number 105 296 it is possible to activate the output of dialogs. The following
control dialogs can be output in the adjusted language with the corresponding dialog number
through the RS-232 port under NAME.CNC (in connection with TNC.EXE):
all NC control dialogs
DIA:
all NC error messages
ERR:
all dialogs of the table editor
TAB:
all PLC dialogs from PLC chip PLC:
all cycle dialogs from PLC chip CYC:
This makes it possible, for example, to proofread the control dialogs and the dialogs on the PLC
chip for correctness of translation and spelling.
3/97
TNC406/TNC 306
1-5
Output of a logbook (Menu item LOGBOOK OUTPUT under code number 79 513)
Until now, the contents of the control's internal logbook (keys, error messages, PLC messages,
blinking error register) have been accessible only with TNCDIAG.EXE. Now you can access them
directly via RS-232 by using NAME.LNC (in TNC.EXE). This makes it possible, for example, to log
any data from the PLC during the erosion process (with Module 9079) and output them through
the RS-232 interface during or at the conclusion of erosion. If a blinking error message has
occurred at the control, after a restart you can now determine the sequence of keystrokes prior
to the error.
Datum tables
Multiple datum tables with the extension ".D" can be created. This serves, for example, to assign
sets of positions of electrodes, i.e. a separate table for each electrode. Depending on MP10 a
structure is generated with 4 or 5 axes. If there are 5 axes, 5 values (Q81...Q85) are used for
Cycle 7 and M38/M39. Cycle 7 has been expanded by one block (CYCL DEF 7.2 NAME), so that
you can give a name to the selected position table. If block 7.2 is not programmed, the control as
before uses table 0.D.
MDI mode
When MDI is selected, an $MDI file is automatically opened in which more than one NC block
can be directly programmed. To run a block, you must select it with the cursor and press NC
START. After execution the cursor jumps to the next NC block.
Special characteristics of MDI mode:
- PGM CALL and LBL CALL are not permitted.
- When TOOL CALL is run, the associated TOOL DEF must be programmed in the $MDI file.
- Incremental positioning movements are always started from the current position of the axes.
- Radius-compensated positioning movements are not possible.
1-6
3/97
The number of retraceable contour elements was doubled from at least 20 to at least 40 (worst
case). The actual number depends on the complexity of the blocks, whereby for example more
simple line segments can be retraced than helical contour elements. For most contours
consisting of circular arcs and line segments, approx. 56 to 60 blocks can be retraced.
3/97
TNC406/TNC 306
; Project file
; Code word in project file
; Code word in project file
1-7
Content of CHINESE.FON:
...
CHR_A:
PIX
PIX
PIX
PIX
PIX
PIX
PIX
PIX
PIX
PIX
PIX
PIX
PIX
PIX
PIX
......####......
.....##..##.....
....##....##....
....##....##....
....##....##....
....##....##....
....##....##....
....##....##....
....##....##....
....########....
....##....##....
....##....##....
....##....##....
....##....##....
....##....##....
A character matrix must always be 15 lines in height and 16 columns in width. It must be
identified with a symbolic name. A period "." in the matrix definition stands for the background
color and a hatch mark "#" stands for the foreground color. CHINESE.TXT is generated before
programming through a dialog number under the code number 105296.
Example:
Content of CHINESE.TXT:
...
33: CHR_E,CHR_R,CHR_R,CHR_O,CHR_R ;comment optional
...
45: ;comment optional
...
This means that the error message no. 33 is shown with the characters CHR_E, CHR_O and
CHR_R from the customized character set. Error message no 45 is shown as control-internal
message, since no character is defined.
1-8
3/97
The coordinate system is first shifted in X/Y/Z and then rotated about the Z axis. The rotation
results in an automatic shift in C.
The control takes the data for the two blocks from the PLC. When EL CALL or WP CALL is
executed the programmed name and an identifier are transferred to the PLC. Then the NC sets
the S strobe (M2044). The PLC can then decide which of the two blocks is to be executed in
order to operate an EWIS robot system, for example. After the electrode, workpiece or pallet has
been changed, the data of the electrode or workpiece must be available in the PLC in the word
markers starting with D628. Then the acknowledgment marker M2481 must be set in the PLC
for a PLC scan. The NC takes the EL CALL and WP CALL data from the PLC and resets the
strobe M2044. Now the corresponding calculations are made (compensation/shift/rotation) and
executed. The datum-shift data of the workpiece are always relative to pallet datum, which must
agree with the manual preset.
It is recommended that after an EL CALL/TOOL CALL with a block L X... Y... C... the
electrode be moved to a compensated position for further machining, since the electrode
shifting movements are rotated depending on the C position. This means that for all erosion
processes in which the electrode must move in the proper direction, the compensated C
position must first have been reached.
Marker assignment:
M2044
S strobe (special function EL CALL, WP CALL set/reset NC)
M2481
Reset S strobe (set/reset PLC)
B600 ... B623
B600
B601 ... B603
B604 ... B619
B620
B621 ... B623
D628
D632
D636
D640
D644
D648
B652 ... B655
FN14
With numbers 300...499, PLC dialogs 0 to 199 are accessed during FN 14 (PLC error messages).
FN14: ERROR = 0..299
Display: "FN14: ERROR CODE 0...299"
FN14: ERROR = 300..499
Display: Text from PLC chip
FN15
With numbers 0...199, PLC dialogs 0...199 are accessed during FN 15 (PLC error messages).
FN15: PRINT 0..199
Output to RS-232: Text from PLC chip
FN15: PRINT 200
Output to RS-232: special character ETX
FN15: PRINT Q1..Q255 Output to RS-232: content of the Q parameter
3/97
TNC406/TNC 306
1-9
FN19
With FN 19 you can sent commands (also with data) to the PLC and receive resulting values. FN
19 is to be considered an expansion of the M functions.
Example:
FN19: PLC= +11 / +Q13 / Q77
11
= 1st parameter after D280
Q13 = 2nd parameter after D284
Q77 = 3rd parameter answer to PLC
During execution of FN19 the first parameter is transferred to D280, and the second parameter
(if programmed) to D284.
The strobe M2149 is set and the control waits for the acknowledgment M2611. After
an acknowledgment is recognized, the strobe M2149 is reset and the value from D512 (if the 3rd
parameter was programmed) is transferred to this Q parameter (result parameter), and the
program run is continued. The result can be evaluated in the subsequent NC stage.
Set/reset NC
Set/reset PLC
D280
D284
D512
Must be programmed
Optional
Optional
1-10
3/97
Filing instructions
This Update Information issue includes a set of replacement sheets for your Technical Manual
TNC 406/TNC 306 (April 1996 edition). Please incorporate them into your Manual, following the filing
instructions below.
Change
Remove
Insert
Title page
Contents
Software releases TNC 406/TNC 306;
EPROM sockets LE 406
2-1/22
2-7/2-8
2-1/22
2-7/2-8/2-9
Contents
TS 120 removed
PLC Input I152
RS232C adapter
3-1...3-4
339/340
355/356
379/380
3-1...3-4
339/340
355/356
379/380
Contents
Input range MP330
Temperature compensation removed
Incorrect illustration
M2568 /D752
Description expanded
Color adjustment via soft key
Marker M2503
Adjustment for MP1820/MP1830 removed
4-1...4-4
45/46
421...424
429/430
453/454
457/470
491/492
4113/4114
4145/4146
4-1...4-4
45/46
421...424
429/430
453/454
457/470
491/492
4113/4114
4145/4146
Contents
List of machine parameters
5-1/5-2
55...523
5-1/5-2
55...525
61...612
61...612
Contents
String processing, module
7-3/7-4
7101...7118
7-3/7-4
7101...7119
Subject index
111...11...9
111...119
3/97
TNC406/TNC 306
1-11