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!
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,
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....
Can't find what you're looking for? Ask the community or share your knowledge.