You are not logged in.
Hi, there,
I'm using the Siemens840D control to simulate the NC program. There are some system variables in the subroutines,
such as $AA_IM[ax] , $A_DBW and $TC_TP2[t] etc. I tried to intepret them in the 840D control file but failed. For
example, $AA_IM[ax] is to determine the current setpoint in the machine coordinate system (MCS) for the specified
axis. So I defined the WORD $AA_IM[X] in the WORD/FORMAT, type is Macro, subtype is Numeric. Also I defined the
corresponding macro in the WORD/ADDRESS. But when I run the simulation, it gave me the error message: "Command
Word $AA_IM[Y1] should not be in an expression: Yi=$AA_IM[Y1]". Did I do something wrong? Who can help me to
intepret these system variables in control file? Many thanks.
David
![]()
Offline
Hi David,
The error that your getting is saying that you specified an adress and instead of supplying a value, you supplied an other adress.
Why is the $AA_IM[ax] defined as a macro? and what macro did you use in WORD/ADDRESS.
Sinds $AA_IM[ax] is a variable, perhaps you beter define it as Type/Special Subtype/Variable name
(You have to define each variant seperatly $AA_IM[X], $AA_IM[Y1], $AA_IM[Z])
The variable has to be filled before you can use it.
for example:
$AA_IM[X] = 10
$AA_IM[Y1] = 23.578
G1 X=$AA_IM[X] Y=$AA_IM[Y1]
The system variable $AA_IM[ax] reads the actual position of specified axis.
I am not really familiar with how to read out current values, but something that might work is:
Define in WORD/ADRESS the word $AA_IM[X] with range NONE, do not use macroname but variable en give the same variable name $AA_IM[X] with a overwrite value of $ (this is the last specified value).
Now, be sure that the last value specified before calling $AA_IM[X] was a X-axis, then what was last specied (X-axis) is written to the variable.
Hopefully this helps you figuring out things.
Good luck,
Patrick Delisse
KMWE Aerospace - https://www.kmwe.com
(Vericut V9.5, Siemens NX2206, Campost)
Offline