cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Translate the entire conversation x

Subroutine Trouble

Daniel_E
12-Amethyst

Subroutine Trouble

I'm trying to use a subroutine to create multiple parts in one program.  But instead of incrementing the position each time, it just cuts the first part position over and over again.  I've tried absolute / incremental, and I've tried the different "base coordinate system" options, and they all have the same effect.  My post isn't set up for subroutine program calls, so I always have "Copy CL" selected. 

 

The simulation shows all 400 parts being cut correctly, but on the machine, only the first position is cut (over and over).

 

It always outputs a fixture coordinate system (G110, G111, G112, etc.) and the X/Y positions just stay the same in each block.  I want the X/Y positions to increment with each block. 

 

Anybody know what I'm doing wrong?  Or if there is some post option I need to edit?

Daniel_E_0-1751321507870.png

Daniel_E_1-1751321538084.png

 

ACCEPTED SOLUTION

Accepted Solutions
Daniel_E
12-Amethyst
(To:Daniel_E)

So I've learned that the "Coordinate_Output" setting for the sequence(s) I'm trying to make a subroutine must be set to "Machine_Csys."  If they are set to "Sequence_Csys", then the subroutine act as if I always selected "Fixture" instead of a 1st and 2nd direction.  I'm not sure if this is a bug or a feature, but I can work around it.

View solution in original post

1 REPLY 1
Daniel_E
12-Amethyst
(To:Daniel_E)

So I've learned that the "Coordinate_Output" setting for the sequence(s) I'm trying to make a subroutine must be set to "Machine_Csys."  If they are set to "Sequence_Csys", then the subroutine act as if I always selected "Fixture" instead of a 1st and 2nd direction.  I'm not sure if this is a bug or a feature, but I can work around it.

Announcements


Top Tags