In software version 5.6 of UR10e the script can not run in manual operation.
if i try to change the payload and cog of robot by using UR Script there is no option of run or play UR Script.
and when i try to run the robot in auto mode then UR Script work fine.
only problem is that when we teach the robot and want to change the cog at some short of waypoint then cog was not change in UR script manually.