ST20Y sub spindle programming questions

Mike1974

Moderator
Staff member
Joined
Mar 2, 2021
Messages
326
Reaction score
115
Location
Pinellas Park, FL
Anyone programming one of these? I have a specific question (which will probably lead to more 😩 )....

We are using MCAM 2022 with a post from postability. Can post code if needed, but my question is, does the newer control (machine built 9-21) force you to use a G14/15 to program on the sub? Our post outputs M144/M143 to turn the sub on, turns on correctly with these codes, chuck clamps and unclamps as it should, but when it goes to the next line to feed, the spindle turns off, alarms out and says "spindle not turning".
 

Mike1974

Moderator
Staff member
Joined
Mar 2, 2021
Messages
326
Reaction score
115
Location
Pinellas Park, FL
snip of code - ignore speeds feeds etc...

(PRE-POSITION CUTOFF TOOL)
T0707 (.12 OD CUTOFF RIGHT)
G103 P1 (LIMIT BLOCK LOOK AHEAD)
M155
G54 G18
G97 S149 M03
G00 Z-1.04
X5.125 M08
G50 S5000
G96 S200 M03
(PICKOFF SPINDLE - UNCLAMP AND EJECT PART)
(EJECT STOCK PREP)
M00
M111 (OPEN CHUCK SECOND SPINDLE)
G98
G04 P10.
(EJECT STOCK POST)
M00
(PICKOFF SPINDLE - MOVE TO CLEARANCE DISTANCE)
G00 B1.9 (MOVE SECOND SPINDLE TO DEFINED POINT)
(PICKOFF SPINDLE - MOVE TO GRIP POSITION)
G98 G01 B0. F10. (MOVE SECOND SPINDLE TO DEFINED POINT)
(PICKOFF SPINDLE - CLAMP)
M110 (CLOSE CHUCK SECOND SPINDLE)
G04 P10.
G103 P0 (TURN LOOK AHEAD LIMIT OFF)
(CUT OFF THE PART)
G54
G97 S146 M03
G00 X5.245 Z-1.066
G50 S5000
G96 S200 M03
X1.525
G99 G01 X1.325 F.005
X-.016
X.184
G00 X1.325
X5.125
M05
M09
G53 Y0.
G53 X0.
G53 Z0.
M01
(PICKOFF SPINDLE - RETRACT)
G53 B0.
M89 (SS CLEAN OFF)
M01

N1
T0101 (OD ROUGH LEFT - 80 DEG.)
G55 G18
G97 P159 M144 (sub spindle reverse at 159rpm [p value]
G00 Z-6.5481
X4.814 M08
G50 S10000
G96 P200 M144
X1.525
(spindle turns off here or next line and machine alarms out)
G99 G01 X1.325 F.01
X-.0912
X.9087
G00 Z-6.4481
X1.525
Z-6.5663
G01 X1.325
.
.
.
 

dsj

Member
Joined
Apr 29, 2021
Messages
92
Reaction score
81
Location
Washington
Well, I'm a Haas user but I've never used one of their lathes with a sub, so take what I say with a chunk of salt.

Flipping through the manual, it does seem to imply that G14/G15 are needed to cut anything on the sub. I'm guessing M143/M144/M145 are used to make the sub turn in preparation for G14 or to synchronize the sub and main.

I know, not super helpful.
 

Spruewell

Well-known member
Joined
Mar 6, 2021
Messages
674
Reaction score
441
I do not see M155 in the HASS list of M codes. I did notice that they use G199 to sync the main and sub spindle and G198 to cancel sync. If the spindles are synced together and you command the sub to run at a different rpm, I would expect that to alarm out the control
 

Mike1974

Moderator
Staff member
Joined
Mar 2, 2021
Messages
326
Reaction score
115
Location
Pinellas Park, FL
I do not see M155 in the HASS list of M codes. I did notice that they use G199 to sync the main and sub spindle and G198 to cancel sync. If the spindles are synced together and you command the sub to run at a different rpm, I would expect that to alarm out the control
M154 C AXIS ENGAGE (SETTING 102) M155 C AXIS DISENGAGE

I am aware of the sync codes.

@dsj - G14 with M143/M144 causes an alarm per Haas. We are working around for now, but would like to be able to use what Mcam is outputting for the sub using the M commands for the sub.
 

dsj

Member
Joined
Apr 29, 2021
Messages
92
Reaction score
81
Location
Washington
@dsj - G14 with M143/M144 causes an alarm per Haas. We are working around for now, but would like to be able to use what Mcam is outputting for the sub using the M commands for the sub.
It's odd that M143/M144 are listed as "Secondary Spindle Fwd" etc. when you can't use them with G14. I'd think it wouldn't matter which spindle is set as "main" - subspindle commands should only affect the sub. Doesn't make a whole lot of sense to me but I'm sure they had some reason to do that.

All I have is a 2 axis lathe so my programs aren't terribly complex, but I would end up programming both sides of the part as if they're in the main spindle and just do a Manual Entry toolpath to inject a G14 before the bit for the sub. Mastercam might get a bit confused at that, especially if you're doing anything that relies on it's remaining stock. But I'd do near anything to avoid editing their posts.

The only way I can see to fix it permanently would be to (have someone else) edit the post.

Sorry I couldn't be more help.
 

Spruewell

Well-known member
Joined
Mar 6, 2021
Messages
674
Reaction score
441
I have never actually run one of those machines, I just looked it up and scanned through their operating manual. By your response, I assume you have tried adding a G198 and/or G14/G15 ahead of the sub spindle operations and it still didn’t work. I didn’t see any of those commands in the code you posted
 

Mike1974

Moderator
Staff member
Joined
Mar 2, 2021
Messages
326
Reaction score
115
Location
Pinellas Park, FL
I have never actually run one of those machines, I just looked it up and scanned through their operating manual. By your response, I assume you have tried adding a G198 and/or G14/G15 ahead of the sub spindle operations and it still didn’t work. I didn’t see any of those commands in the code you posted
That is the problem. We are doing it as mentioned, programming both sides as if it's in the main spindle, then adding the G14. I guess my "confusion" or issue is the post is from Postability for the Haas ST20Y and the sub programming isn't posting correctly... And doing it with the G14 means adding another tool group or level, then programming the opposite side as if in the main. I don't know why they have both G14 to change spindles and/or using M and P for the sub as it is currently posting.

It seems to me the G14 is geared toward hand coding, and that makes sense, but we aren't hand coding. :(
 
Top Bottom