So, in your case, M03 and M05 are quite important as they pretty much mean "Spindle On" and "Spindle Off".

The "M_RunCode"s in the .src files come from the "Robot Machining Project" you created in RoboDK.
If you open the "Program Events", you will find it in the "Left column".

So you can fix the situation in two different ways.
If you don't need them, you can simply delete the content of the "Call M code" text box.

If you need them, and this is part of the "integration" side of your project, you need to create a subroutine in the robot controller named "M_RunCode".
RoboDK will call this subroutine every time it sees an "M code" in the machining program.
RoboDK will transfer the value (number) of the M code as a parameter of the "M_RunCode" subroutine. (ex : M05 becomes M_RunCode(5))
In the subroutine, you create a series of "If" statement that looks a bit like that:

Quote:If Param = 3 then
Do what needs to be done to start the spindle.
Elseif Param = 5 then
Do what needs to be done to stop the spindle.
Elseif (...)

Endif

Depending on how you integrated the spindle to your robot, it can be as simple as putting a digital output to 1 or 0.