how to add joints(DMU KInematics)for rope and pulley as shown in below attachment

i am trying to do overhead crane in that i am unable to add simulation to rope and pulley.please make a tutorial on that and help me