In the script code generated by this method, the 'set_payload(m, cog)' script function will be called
without specifying the optional 'cog' parameter. This means that the currently active TCP will be used as Center
of Gravity (CoG) with the side effect that later calls to the 'set_tcp()' script function will also change the
CoG to the new TCP.
Use ScriptWriter.set_payload(double payloadMass, double centerOfGravityX, double centerOfGravityY, double centerOfGravityZ) instead.
Sets the payload mass.
This function must be called, when the payload weight or weight
distribution changes significantly - I.e when the robot picks up or puts
down a heavy workpiece.