Hi Jeff,
I'm currently using EMC 2.2.8.
As you said I'm using the parameter #5399 just to read the analog value. This 
value sets the dimension of my workpiece. The tool path changes following the 
new set value but the program keeps on displaying the same workpiece.
Is there any solution?

Since my workpiece is very easy (a parallelepiped) I tried also to insert in 
Axis a cube but I need to retreive the right dimensions first. For this purpose 
I tried to use python commands as you mentioned in the mail archivie:

import commands
....
float(commands.getoutput("halcmd getp motion.analog-in-00 "))

It doesn't work, but probably I don't use this code in the right point... Can 
you suggest me where to create an object to be displayed?

Regards
Luigi
 


>----Messaggio originale----
>Da: jep...@unpythonic.net
>Data: 04/05/2010 18.01
>A: "vh5...@libero.it"<vh5...@libero.it>, "Enhanced Machine Controller (EMC)"
<emc-users@lists.sourceforge.net>
>Ogg: Re: [Emc-users] Axis &quot;program redrawing&quot;
>
>No.
>
>The AXIS preview can't know what analog value will be present at the
>time the M66 instruction is actually executed, so anything it does will
>be wrong.
>
>The current version of AXIS seems to use the prior value of parameter
>#5399 as the input's value; as #5399 is not typically a saved parameter,
>this usually means that the inputs will always be treated as 0.0 or
>false. (looking at pre2.4; 2.3 may be different)
>
>I'm not totally against doing something more sophisticated than this,
>but I don't know what that thing would be.
>
>Jeff
>



------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to