Access Axis Current Position in Sinumerik 840D with the $AA_IM Variable

Sinumerik 840D System Variable $AA_IM for Axis Current Position
Siemens Sinumerik 840D gives cnc machinist the utmost flexibility to program the CNC machine the way he likes. You can create your own variables. You can access the Sinumerik 840D system variables.
Here is how to access axis current positions through Sinumerik 840D system variables .
Sinumerik 840D System Variable $AA_IM
$AA_IM tells us current axis value in the machine coordinate system MCS.
Example
N20 IF $AA_IM [X] <= 15 GOTOF ERROR_202
The line above checks if the x axis slide is under 15 then go to an error (there might be a danger of some collision). It must be clear that this variable gives the values in machine coordinate system MCS.
Sinumerik 840D System Variable $AA_IW
If you want to take the values that are calculated through workpiece coordinate system then try AA_IW[axis] which reads actual value in WCS
Example
N20 IF $AA_IW [X] <= 15 GOTOF ERROR_202
You can even try this
N20 MSG ("X-position" << $AA_IW[X] << "Check!")The above code will show the message on the machine control panel with x-axis current value (MCS).
CNC Machine
- Trusted French Partner for 1530‑3S 4‑Axis Pneumatic CNC Routers with Rotary Device
- Mastering DSP Handle Usage: Key Guidelines for Optimal Performance
- Comprehensive After‑Service for the 1325‑3S 4‑Axis Pneumatic CNC Machine (3 Spindles) in Albania
- Mastering Sinumerik 840D System Variable Naming: Tips & Best Practices
- Access Axis Current Position in Sinumerik 840D with the $AA_IM Variable
- Mastering Sinumerik 840D CNC Programming: Expert Guide to Advanced Threading Cycles
- Master the Sinumerik 840D Operator Panel: A Comprehensive Guide
- Sinumerik 840D: Mastering the $P_SEARCH Variable for Block Search Control
- Unlocking Sinumerik 840D: Master $TC_DP Tool Data Variables for Precise CNC Programming
- CYCLE81 Drilling Cycle on Sinumerik 840D Turning – Expert Guide