January 2012 6.15 Reference Marks 791
Module 9147 Assign a reference value to an axis
Module 9147 is used to enter a new reference value for an axis. New
reference values can be entered for multiple axes in one scan with this
module.
If a new reference value is assigned to an axis, the corresponding bit in
NN_AxReferenceAvailable (W1032) is reset.
Constraints:
The module functions only in the cyclic PLC program.
The module can only be executed when the control is not active or if an M/
S/T/T2/G strobe is pending.
An axis that is not configured as "active", or an axis that was set to the
"deactivated axis" activation status (e.g. with Module 9226 or 9418), is
treated as if it were not present.
Call:
PS B/W/D/K <>Axis number>
Index from CfgAxes/axisList
PS B/W/D/K <>New reference value in 0.1 µm>
CM 9147
Error recognition:
When calling the module for an NC axis during a strobe, the synchronization
with the advance calculation (strobe with MP_sync = SYNC_CALC) must
be configured for this strobe.
Marker Value Meaning
NN_GenApiModuleError
(M4203)
0 No error
1 Error code in
NN_GenApiModuleErrorCode
NN_GenApiModuleError
Code (W1022)
2 Invalid axis number
21 Missing strobe in M4176 = 1
24 Module was called in a spawn or
submit job