This video goes over the URScript payload functions, and how you can write a module to expand the existing functionality.