January 2012 6.6 Reading and Writing Axis Information 687
Module 9048 Interrogate the operating states of axes
Module 9048 is used to interrogate the operating status/activation status of a
certain axis or for all axes together.
Constraints:
The module returns the actual activation status of the axis. At least one PLC
clock pulse, and maybe more, passes between the order for changing the
activation status by calling a PLC module (for example, 9226 or 9418) and
the actual change of the activation status. During this time the module
returns the previous activation status. This also means that the modules
reports when the change of the activation status has been completed.
An axis not configured as "active" is treated as if it were not present. For a
deactivated axis the corresponding activation status is reported.
Call:
PS B/W/D/K <>Axis number>
Axis number: Individual information for a programmed axis
–1: Information for all axes, bit-encoded as axis mask
PS B/W/D/K <>Status information>
0: Brake test active/inactive
1: Free rotation active/inactive
2: Position value assigned or actual value being transferred
3: "Deactivated axis" activation status
4: "Displayed axis" activation status
5: "Manually operated axis" activation status
6: "Closed-loop axis" activation status
CM 9048
PL B/W/D <>Status>
Interrogation of an individual axis: 1/0 = active/inactive
Interrogation of all axes: Bit-encoded axis mask
Error recognition:
Marker Value Meaning
M4203 or
NN_GenApiModule
Error
0 Status ascertained
1 Error code in W1022 or
NN_GenApiModuleErrorCode
W1022 or
NN_GenApiModule
ErrorCode
2 Invalid axis programmed
If status information 0 was transferred,
then this error occurs if an invalid axis
number, an open-loop axis or an axis that is
temporarily not a closed-loop axis was
selected.
If status information 1 was transferred,
then this error occurs if an invalid axis
number, an open-loop axis or an axis that is
temporarily not a closed-loop axis was
selected.
If status information 3 to 6 was transferred,
then this error occurs if an invalid axis
number or an open-loop axis was selected.