Revoking Transformations
The function transPop()
removes the topmost transformation from the transformation stack. When transPop()
removes a transformation from the transformation stack, the stack depth is reduced by one and TU is adapted accordingly. Commonly, the transPop()
-function is used to revoke a temporary transformation.
Example:
In the following example the translation is applied to N10
, N20
and N30
. The rotation is only applied to N20
as it is revoked by transPop()
. Figure “ExampleRevokingTransformations” shows the resulting MCS (machine coordinate system) path. Note that the rotation center is [20,0,0]
in MCS (machine coordinate system), which is the origin in PCS (program coordinate system) after the preceeding translation.
!transTranslate(20,0,0);
N10 X10 Y0 F6000
!transRotZ(90);
N20 X20 Y0
!transPop();
N30 X30 Y0
!transPop();
M02
Figure “ExampleRevokingTransformations”.