VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#1 2005-04-11 02:53:16

yangyh
Member
From: Peoria IL
Registered: 2005-03-13
Posts: 6

Intepret the Siemens840D system varialbes in Control file

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
yikes

Offline

#2 2005-04-12 09:44:19

paehv
Senior Member
From: Eindhoven, Netherlands
Registered: 2005-01-17
Posts: 167
Website

Re: Intepret the Siemens840D system varialbes in Control file

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 Aerospacehttps://www.kmwe.com
(Vericut V9.5, Siemens NX2206, Campost)

Offline

Board footer