HELLO,
I'M TRYING TO ADD STANDARD LINES TO MY POST THAT OUTPUT AFTER EVERY (M06) COMMAND. FOR EXAMPLE, THE CURRENT POST OUTPUTS LIKE BELOW...
(2D Contour4 5)
M01
(T17)
M06
(3 INCH ROUGHING SHOULDER MILL)
T144
S286 M03
G15 H07
G00 B90.
M59
G00 X-16.4667 Y5.7985
.........
MY OPERATOR CHECKS EVERY CUTTER BEFORE IT RUNS. HE USES (MID-AUTO MANUAL) FOR THIS AND IT SOMETIMES CAUSES THE TOOL CHANGER TO CRASH (MACRO GLITCH). SO I WOULD LIKE THE TOOL TO COME TO HIM THEN STOP SO HE DOESN'T NEED TO USE MID-AUTO TO INTERUPT A PROGRAM. THE FOLLOWING POST MOD IS SOMETHING I'VE BEEN ADDING BY HAND AND WOULD LIKE THE POST TO DO THIS BY DEFAULT AFTER EVERY M06 COMMAND......
(2D Contour4 5)
M01
(T17)
M06
G0 X-100. Y-100.
S100 M3
M5
M00
(CHECK TOOL)
(3 INCH ROUGHING SHOULDER MILL)
T144
S286 M03
G15 H07
G00 B90.
M59
G00 X-16.4667 Y5.7985
.........
I'VE INCLUDED THE POST PROCESSOR, ANY ADVICE WOULD BE GREATLY APPRECIATED!
HI @Anonymous ,
Download the generic Okuma post from here and add the following codes in your post-processor as shown below screenshot.
// Manual Code
gMotionModal.reset();
writeBlock(gMotionModal.format(0), xOutput.format(-100), yOutput.format(-100));
writeBlock(sOutput.format(100), mFormat.format(tool.clockwise ? 3 : 4));
onCommand(COMMAND_STOP_SPINDLE);
onCommand(COMMAND_STOP);
writeComment("CHECK TOOL");
Save the post-modification and you will get the desired code.
(If you don't want use preload tool then add same codes in else condition.)
Thanks,
Can't find what you're looking for? Ask the community or share your knowledge.