beautypg.com

Reading the axis coordinates (module 9040) – HEIDENHAIN TNC 306 Technical Manual User Manual

Page 411

background image


3/2000

TNC 416/TNC 406/TNC 306

PLC Modules for TNC 416/406

7-121

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

K/B/W/D

Line number (0...1)

PS

K/B/W/D

Color for bar (0...15)

PS

K/B/W/D

Color for frame and scale graduation (0...15)

PS

K/B/W/D

Current length of bar (0...150)

PS

K/B/W/D

Maximum length of bar (0...150)

CM

9083

Error status after call: M3171 =

0: String displayed (when screen window for PLC status is
displayed)
1: No display, error condition see above

4.13 Reading the axis coordinates (Module 9040)

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

K/B/W/D

PS

K/B/W/D

type>

0 = actual values
1 = nominal values
2 = actual values in the reference system
3 = servo lag
4 = distance-to-go

CM

9040 or CM 9041

This manual is related to the following products: