I've been working in a situation that I encountered here, in some lathe parts I need to change my MCS and restart the machining with the same tool, for example, facing one side, stop with M0, change the material side and facing again in another MCS, then turning, drilling, etc... A normal lathe procedure.
For a safety operation, when I do a programmed stop in the program I call the tool number and another addresses again, because if the operator needs to stop the auto mode, he doesn't needs to read the program from the begin or change a tool in a wrong position.
Here the problem: when I create an operation with the previous tool, Post Builder jumps to the First Move and continues the post. Then I create a custom where I read the MCS array and save the names in a variable to compare between operations, but I couldn't find a way to return the post to read the Initial Move again and generate the tool call codes.
I called the Initial Move with a custom in the First Move, but didn't work fine, because the another non modal addresses below the custom were posted in duplicity. I did a test with a custom calling the block templates, but it's a hard work to adjust all posts, the Initial Move contains all that I need directly.
I don't know if I going to a wrong way... Well, have a MOM command or a way to read again the Initial Move without tool change?
Thanks in advance,
Dont know If I understand this well but if you put the same content (cmds, blocks, etc) as it is in intial move into first move, so initial move output = first move output, you will get he same output
+ you can add output conditions on tool call or where you want , like : if there is a mcs change, output tool call, else dont output tool call., or just force some addresses