Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The struggle is real with visual code. Help w/ mitsubishi post.

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
343 Views, 2 Replies

The struggle is real with visual code. Help w/ mitsubishi post.

Hoping someone can help me out here. id like to learn how to do this for future posts so i am looking for an explanation if possible. I am trying to figure out how to add certain g codes into the same block as other g codes. For example I am using the mitsubishi post and I need the start and ends to be as follows. (I can easily delete unwanted g codes,  adding seems to cause issues.)

 

(START)

01000

(part name)    *(added after post)

G20

G0 G17 G90 G80 G40 G49

T1 M6

G0 G54 G90 G40 X0 Y0 S500 M3 

G43 H1 Z.25

/M8

T2

 

(END OF OP)

 

G0 Z.25 M9

M5

G91 G28 ZO.

G91 G28 Y0.

M01

 

This is our standard at my shop and It would save an insane amount if time if i can get this to post right,

 

Thanks!

2 REPLIES 2
Message 2 of 3
joseph.komenda
in reply to: Anonymous

Hi @Anonymous,

 

I am not 100% clear on what you are adding, but as an example, I would suggest formating as follows.  I made some quick additions to the safety line by changing line 309 in mitsubishi.cps from 

writeBlock(gAbsIncModal.format(90), gFeedModeModal.format(94), gPlaneModal.format(17));

to

writeBlock(gMotionModal.format(0), gPlaneModal.format(17), gFormat.format(40), gFormat.format(49), gCycleModal.format(80), gAbsIncModal.format(90), gFeedModeModal.format(94));

 That might be above where you are looking to add codes, but if it is not correct, you can reply with some specifics on what the code looked like before you made changes and how you want it to look after your changes.

 

Thanks,



Joseph Komenda
Message 3 of 3
Anonymous
in reply to: joseph.komenda

Sorry for the Delay I didnt see my notifications and I have been just dealing with manually editing after each post for now.

 

I have used your suggested adjustment and end up with the following....

 

%
O1001
G00 G17 G40 G49 G80 G90 G94
G20
G28 G91 Z0.
G90
(1/2 3FLT X1.25 LOC Z0)
T1 M06
T2
S4500 M03
G54
M08
G00 X1.1719 Y-1.1613
G43 Z0.25 H01
Z0.44
G01 Z0.1 F30.
 
HOW I WANT IT TO POST....
 
%
O1001
G20
G00 G17 G40 G49 G80 G90

(1/2 3FLT X1.25 LOC Z0)
T2 M06
G00 G54 G90 G40 X1.1719 Y-1.1613 S4500 M3
G43 Z0.25 H01
/M08
T2
G01 Z0.1 F30.
 
 
THANKS FOR THE HELP!
 

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

Post to forums  

Autodesk Design & Make Report