630 HEIDENHAIN Technical Manual MANUALplus 620
Position preset for
programmable axes
Module 9142 Position preset for programmed axis
Use Module 9142 to preset a programmable axis to a new position value. The
position value of another axis or a freely selected position value can be
transmitted as the target position.
Constraints:
The module functions only in the cyclic PLC program.
The position preset is only possible when the control is not active
(NN_ChnControlInOperation=0) or if an M/S/T/G/ strobe is pending.
When calling the module for an NC axis during a strobe, the synchronization
SYNC_CALC must be configured for this strobe.
Call:
PS B/W/D/K <>Type of position preset>
1: For <logical axis number target>, set the new position to
the <position value>,
<Logical axis number source> is not necessary.
(corresponds to CM 9147)
2: For <logical axis number target>, set the new position to
the value of <logical axis number source>, <position
value> is not necessary
PS B/W/D/K <>Logical axis number target>
PS B/W/D/K <>Logical axis number source>
PS B/W/D/K <>Position value>
Input unit: [0.0001 mm]
CM 9142
PL D <>Error code>
0: Position preset has been read
1: <Logical axis number target> axis is outside the valid
range
2: <Logical axis number target> axis is not configured
3: Missing strobe or control is active
4: <Logical axis number source> axis is outside the valid
range
5: <Logical axis number source> axis is not configured
6: <Logical axis number source> axis has not traversed the
reference position
7: <Type of position preset> not known
8: The module was called in a submit/spawn job.
Error recognition:
Marker Value Meaning
NN_GenApiModule
ErrorCode
0 No error
2 An invalid axis number was transferred.
2 An invalid type of position preset was
transferred.
21 Missing strobe or control is active
24 The module was called in a submit/spawn
job.