How to create a Task to simulate the conveyor movement

I have generated the prismatic mechanism between the conveyor and a plate and added the control device to it and also created the home positions for it but I am unsure in which app should I create the task that facilitates the conveyor movement to the other home position and the process of doing it. Thanks in advance