Does anybody know of a way to programmatically (via INFORM) determine the type of a P-Var?
I'm using an FS100 controller and need to tell if a P-var is a pulse or XYZ type.
P-var types
-
Schnicktar -
February 1, 2016 at 9:57 PM -
Thread is marked as Resolved.
-
-
GETS command
GETS PX000 $PX000 this saves the current robot position in pulse mode to P000
gETS PX000 $PX001 this saves the current robot position in cartesian mode to P000 -
Let me clarify: I need to determine if an already existing p-var is a pulse type or an XYZ type. I don't need to grab the current location into a p-var.
I have a job that can accept a p-var index as a parameter and it will do some manipulation of the referenced p-var; but does different things depending of if it is a pulse or xyz type.
Right now, I'm passing in an extra parameter to signal whether it is a pulse or xyz, but it would be cleaner if the job could tell the difference by examining the p-var to be worked on.
-
this is sth that you must know. there is also the convert command to convert the p var into a different coordinate system. if it is the same it wont change
-
That is a good idea. It will work if I know the frame of the XYZ-type P-var.
Thanks.