Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: CSE - axis setJointAlias

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Yes, of course.

 

An error abords the start of simulation with the note : "an unknown method was used...",

some other experiments result with a note to reset a transformation.

Re: CSE - axis setJointAlias

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

I switch between the two Tables Y1/Y2 with following idea:

 

 <Name>Y</Name>
 <Param>Value</Param>
 <Param>Flag</Param>
<Execute>
<IfCommand>
 <Condition>getVariable("$A_TABLE") == 2</Condition>
<Then>
<MacroCommand>
 <Name>GMe_SetJointValueLinear</Name>
 <Param>"Y2"</Param>
 <Param>Value</Param>
 <Param>Flag</Param>
 </MacroCommand>
 </Then>
<Else>
<MacroCommand>
 <Name>GMe_SetJointValueLinear</Name>
 <Param>"Y1"</Param>
 <Param>Value</Param>
 <Param>Flag</Param>
 </MacroCommand>
 </Else>
 </IfCommand>
 </Execute>
 </Metacode>

 
But the second table (Y2) "forgets" the fixture offset...
 

Re: CSE - axis setJointAlias

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi VikP,

 

now im confused... please clarify what you want to do and how does the NC Code look like. There are different topics which are adressed by your questions.

 

thanks

ThomasF

Re: CSE - axis setJointAlias

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Hi Thomas,

 

please excuse the bad question.

 

The Code looks like: 

 

$A_Table=2 ; Activate only table 2

 

$P_UIFR[0]=CTRANS(X,0.0,Y,0.0,Z,0.0)
$P_UIFR[1]=CTRANS(X,3264.018953,Y,557.829092,Z,-539.344000)

N40 G40 G90 G642

N80 TRAFOOF
N90 T12
N100 WZW
N110 TRAFOOF
N120 SUPA G0 Z=-54 D0
N130 G0 A0.0 C0.0
N150 CUT=250.0
N160 ANF=250.0
N170 ABF=250.0
N190 G17
N200 CYCLE832(0.060,102003)
N210 TRAORI
N220 G54
N230 ;
N240 ORIWKS
N250 ORIAXES
N260 G0 A-8.99624 C-89.99996
N270 G0 X-4.2795 Y210.587 Z-5.8283 S0 D1 M3
N280 G1 X-1.8872 Y198.8406 Z-5.2812 M8 F=ANF

.

.

.

 

The attachement shows the machine kinematic and the scenario using table 1 or table 2.

 

Best wishes from Hamburg,

Vik

 

Re: CSE - axis setJointAlias

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Hi everybody,

 

the linear movement of the second table works with this declaration:

 

<Metacode>
 <Name>Y</Name>
 <Param>Value</Param>
 <Param>Flag</Param>
<Execute>
<IfCommand>
 <Condition>getVariable("$A_TABLE") == 2</Condition>
<Then>
<MacroCommand>
 <Name>GMe_ActivateAllTransformations</Name>
 <Param>FALSE</Param>
 <Param>FALSE</Param>
 </MacroCommand>
<Command>
 <Name>SetSecondGeoAxis</Name>
 <Param>"Y2"</Param>
 </Command>
<MacroCommand>
 <Name>GMe_ActivateAllTransformations</Name>
 <Param>TRUE</Param>
 <Param>TRUE</Param>
 </MacroCommand>
<MacroCommand>
 <Name>GMe_SetWorkingPlane</Name>
 <Param>getArrayElement("$P_GG", 6)</Param>
 </MacroCommand>
<MacroCommand>
 <Name>GMe_SetJointValueLinear</Name>
 <Param>getSecondGeoAxis()</Param>
 <Param>Value</Param>
 <Param>Flag</Param>
 </MacroCommand>
 </Then>
<Else>
<MacroCommand>
 <Name>GMe_SetJointValueLinear</Name>
 <Param>"Y1"</Param>
 <Param>Value</Param>
 <Param>Flag</Param>
 </MacroCommand>
 </Else>
 </IfCommand>
 </Execute>
 </Metacode>


But with TRAORI crazy things happened. I think a transformations is missing...

Learn online





Solution Information