Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can i change my live tooling S code? PostProcessor

21 REPLIES 21
SOLVED
Reply
Message 1 of 22
mxdawg121
1053 Views, 21 Replies

How can i change my live tooling S code? PostProcessor

mxdawg121
Contributor
Contributor

We have a Swiss lathe here, with a mitsubishi m800 control. Quite the funky control when it comes to gcode. The live tooling requires an M113 S3=2000 , to turn on the live tooling. Is there a quick way to edit the post to make it S3=2000 instead of S2000

 

Im using a doosan lathe post currently , its the closest thing i have to a working post, and it required a bit of tinkering to work. This is one of the last things i have left to make this a mostly working solution until a post is made for this machine.

 

Also getting way undersized radius's when im doing a helical interpolation on the live tooling side. Any input there would be much appreciated.

0 Likes

How can i change my live tooling S code? PostProcessor

We have a Swiss lathe here, with a mitsubishi m800 control. Quite the funky control when it comes to gcode. The live tooling requires an M113 S3=2000 , to turn on the live tooling. Is there a quick way to edit the post to make it S3=2000 instead of S2000

 

Im using a doosan lathe post currently , its the closest thing i have to a working post, and it required a bit of tinkering to work. This is one of the last things i have left to make this a mostly working solution until a post is made for this machine.

 

Also getting way undersized radius's when im doing a helical interpolation on the live tooling side. Any input there would be much appreciated.

21 REPLIES 21
Message 2 of 22
serge.quiblier
in reply to: mxdawg121

serge.quiblier
Autodesk
Autodesk
Accepted solution

Hello @mxdawg121 

 

Search at the beginning of your post for the line:

 

var sOutput = createVariable({prefix:"S", force:true}, rpmFormat);

 

 

Add another line :

 

var s3Output = createVariable({prefix:"S3=", force:true}, rpmFormat);

 

 

This will define a specific formating when outputting the spindle speed for the live tools.

We now need to instruct the post to use this formatting when needed.

 

When we are using the sOuput variable, we may need to alter the code as in this modified function

 

function onSpindleSpeed(spindleSpeed) {
  if (rpmFormat.areDifferent(spindleSpeed, sOutput.getCurrent())) {
    writeBlock(
machineState.liveToolIsActive ? s3Output.format(spindleSpeed): sOutput.format(spindleSpeed));
  }
}

 

 

Depending if the section is using a live tool or not we switch the format used.

 

Below in the code,

In the StartSpindle function:

 

  writeBlock(
    gSpindleModeModal.format(spindleMode),
    machineState.liveToolIsActive ? s3Output.format(spindleSpeed): sOutput.format(spindleSpeed));
    spindleDir,
    spOutput.format(getCode("SELECT_SPINDLE", getSpindle(TOOL)))
  );

 

 

In the StopSpindle function :

After the sOutput.reset();,

Let’s add another line with

S3Output.reset();

 

Regards.

 


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!

 

 



Serge.Q
Technical Consultant
cam.autodesk.com
0 Likes

Hello @mxdawg121 

 

Search at the beginning of your post for the line:

 

var sOutput = createVariable({prefix:"S", force:true}, rpmFormat);

 

 

Add another line :

 

var s3Output = createVariable({prefix:"S3=", force:true}, rpmFormat);

 

 

This will define a specific formating when outputting the spindle speed for the live tools.

We now need to instruct the post to use this formatting when needed.

 

When we are using the sOuput variable, we may need to alter the code as in this modified function

 

function onSpindleSpeed(spindleSpeed) {
  if (rpmFormat.areDifferent(spindleSpeed, sOutput.getCurrent())) {
    writeBlock(
machineState.liveToolIsActive ? s3Output.format(spindleSpeed): sOutput.format(spindleSpeed));
  }
}

 

 

Depending if the section is using a live tool or not we switch the format used.

 

Below in the code,

In the StartSpindle function:

 

  writeBlock(
    gSpindleModeModal.format(spindleMode),
    machineState.liveToolIsActive ? s3Output.format(spindleSpeed): sOutput.format(spindleSpeed));
    spindleDir,
    spOutput.format(getCode("SELECT_SPINDLE", getSpindle(TOOL)))
  );

 

 

In the StopSpindle function :

After the sOutput.reset();,

Let’s add another line with

S3Output.reset();

 

Regards.

 


______________________________________________________________

If my post answers your question, please click the "Accept Solution" button. This helps everyone find answers more quickly!

 

 



Serge.Q
Technical Consultant
cam.autodesk.com
Message 3 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator
Accepted solution

I hacked out pieces from the post I sent you and put them in this.

0 Likes

I hacked out pieces from the post I sent you and put them in this.

Message 4 of 22
mxdawg121
in reply to: mxdawg121

mxdawg121
Contributor
Contributor

Thanks guys, both of those worked. It works perfect now!

 

0 Likes

Thanks guys, both of those worked. It works perfect now!

 

Message 5 of 22
mxdawg121
in reply to: mxdawg121

mxdawg121
Contributor
Contributor

Ah, guess I spoke a little too soon. 

with the first method, it won’t apply the prefix to the first live tooling operation , but will with the following live tooling operations. Does it check if it’s live tooling after declaration of prefix?

 

could this be modified to check before deciding which prefix to use on the first live tool operation?

 

the second method works as expected except the post thinks a static drill is a live tool. The way I read it is, is turning tool true/false then {  the drill isn’t considered turning tool, or live tool from what I gather. 

could this be modified with an or statement? Tooltype drill || turning? 

0 Likes

Ah, guess I spoke a little too soon. 

with the first method, it won’t apply the prefix to the first live tooling operation , but will with the following live tooling operations. Does it check if it’s live tooling after declaration of prefix?

 

could this be modified to check before deciding which prefix to use on the first live tool operation?

 

the second method works as expected except the post thinks a static drill is a live tool. The way I read it is, is turning tool true/false then {  the drill isn’t considered turning tool, or live tool from what I gather. 

could this be modified with an or statement? Tooltype drill || turning? 

Message 6 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator

I just tried the post I attached and it worked fine. Are you sure the hole you're drilling is on center? Check your setup.

0 Likes

I just tried the post I attached and it worked fine. Are you sure the hole you're drilling is on center? Check your setup.

Message 7 of 22
mxdawg121
in reply to: BrandonTBFBF

mxdawg121
Contributor
Contributor

This is what it outputs on my end - 

M8
2000 M113
G0 C0.
 
missing prefixes on all the spindle lines it appears
 
0 Likes

This is what it outputs on my end - 

M8
2000 M113
G0 C0.
 
missing prefixes on all the spindle lines it appears
 
Message 8 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator

Attach your file.

0 Likes

Attach your file.

Message 9 of 22
mxdawg121
in reply to: mxdawg121

mxdawg121
Contributor
Contributor

Here you go, thank you for taking a look brother.  really appreciate it.

0 Likes

Here you go, thank you for taking a look brother.  really appreciate it.

Message 10 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator

Can you attach the F3D file.

0 Likes

Can you attach the F3D file.

Message 11 of 22
mxdawg121
in reply to: BrandonTBFBF

mxdawg121
Contributor
Contributor

yes, here it is.

 i never got to op2. got hung up here.

0 Likes

yes, here it is.

 i never got to op2. got hung up here.

Message 12 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator

This is what I'm getting:

 

N1(DRILL2)
G0 G28 G53 B0. (SUB SPINDLE RETURN)
G28 U0. V0.
G28 W0.
G54
G99 G18 M39
T1414
M8
S1=1500 M3
G0 Z-0.6
X0. Y0.
Z-0.2
Z-0.08
G1 Z0.35 F0.005
0 Likes

This is what I'm getting:

 

N1(DRILL2)
G0 G28 G53 B0. (SUB SPINDLE RETURN)
G28 U0. V0.
G28 W0.
G54
G99 G18 M39
T1414
M8
S1=1500 M3
G0 Z-0.6
X0. Y0.
Z-0.2
Z-0.08
G1 Z0.35 F0.005
Message 13 of 22
mxdawg121
in reply to: BrandonTBFBF

mxdawg121
Contributor
Contributor

I see, maybe i didnt have the correct post loaded. but i just loaded it. Seems like it puts s3= for everything - live or not. something easy to fix?

 

0 Likes

I see, maybe i didnt have the correct post loaded. but i just loaded it. Seems like it puts s3= for everything - live or not. something easy to fix?

 

Message 14 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator

This is the post I used.

0 Likes

This is the post I used.

Message 15 of 22
mxdawg121
in reply to: BrandonTBFBF

mxdawg121
Contributor
Contributor

And your getting regular Scodes on turning ops and S3=codes on live tools? ugh what am i doing wrong here. Im a mill guy, just got throw onto a lathe. a swiss nonetheless.

 

0 Likes

And your getting regular Scodes on turning ops and S3=codes on live tools? ugh what am i doing wrong here. Im a mill guy, just got throw onto a lathe. a swiss nonetheless.

 

Message 16 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator

This is the program it's spitting out.

 

I feel your pain. I'm a standard lathe guy that got thrown a Swiss and it's still a headache.

0 Likes

This is the program it's spitting out.

 

I feel your pain. I'm a standard lathe guy that got thrown a Swiss and it's still a headache.

Message 17 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator

Do you have axial live tools on this machine?

 

If so, I'd ditch that deburr toolpath, model a chamfer on that end and use blend. Multi-axis feedrates are almost always wrong in the base post processors. It took me hours of work to get them corrected in my Swiss post.

0 Likes

Do you have axial live tools on this machine?

 

If so, I'd ditch that deburr toolpath, model a chamfer on that end and use blend. Multi-axis feedrates are almost always wrong in the base post processors. It took me hours of work to get them corrected in my Swiss post.

Message 18 of 22
mxdawg121
in reply to: BrandonTBFBF

mxdawg121
Contributor
Contributor

okay, so your getting the same thing i am. The regular operations should be standard m3's and they all come out in the live tool format

 

0 Likes

okay, so your getting the same thing i am. The regular operations should be standard m3's and they all come out in the live tool format

 

Message 19 of 22
BrandonTBFBF
in reply to: mxdawg121

BrandonTBFBF
Collaborator
Collaborator

What do you mean "standard M3s"? I'm seeing M3 for all the turning operations and the static drilling operation. The live tools are using M113.

0 Likes

What do you mean "standard M3s"? I'm seeing M3 for all the turning operations and the static drilling operation. The live tools are using M113.

Message 20 of 22
mxdawg121
in reply to: BrandonTBFBF

mxdawg121
Contributor
Contributor

Im sorry , i meant Scodes 

 

 

T0202
M8
G97 S1=1000 M3
 
Should be 
T0202
M8
G97 S1000 M3
0 Likes

Im sorry , i meant Scodes 

 

 

T0202
M8
G97 S1=1000 M3
 
Should be 
T0202
M8
G97 S1000 M3

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report