674 HEIDENHAIN Technical Manual MANUALplus 620
Reading axis 
coordinates
 Read the axis coordinates with Module 9040 (only API 1.0) or Module 9041.
The values are saved in double words beginning at the given address.
The values for all axes are read in, regardless of whether individual axes are 
excluded through the machine configuration. Values for excluded axes are 
undefined.
The coordinate value of an axis remains undefined until the reference point of 
an axis has been traversed.
Module 9040 Reading of axis coordinates by the PLC in the format 
1/1000 (0.001) mm
Module 9040 loads the axis coordinates from the control loop for all NC axes. 
The actual values in the reference system, the servo lag, the distance-to-go 
and the deflection of a triggering touch probe can be loaded.
The values are saved in 10 double words in the format 1/1000 mm, beginning 
at the given target address.
The module is only supported if you use the iTNC-compatible programming 
interface (API 1.0). The API 1.0 cannot be used with the MANUALplus 620.
Possible errors:
 The argument for the type of coordinate is outside the permitted range (2).
 The specified target address is not a double word address (4).
 The double word block cannot be written to the specified target address (4).
 You are using the symbolic programming interface.
Call:
PS K/B/W/D <>Target address Dxxxx>
PS K/B/W/D <>Type of coordinate>
2: Actual values in the reference system
3: Following error
4: Distance-to-go
5: Deflection (measuring touch probe)
6: Actual values in the datum system
8: Temperature compensation
9: Distance counter [mm]
CM 9040
Error recognition: 
This PLC module was introduced in order to remain compatible with older 
PLC programs (with API version 1.0) of older HEIDENHAIN contouring 
controls. This PLC module is not supported if the symbolic programming 
interface is used! Use Module 9041 instead.
Marker Value Meaning
M4203 0 Data was read
1 Faulty call data