How to add start-stop signal to robot

Hello, everyone. I want to add a start-stop signal to the robot to control the overall operation of the robot. When the Boolean signal is at 0, my robot will not take the material, and when the Boolean signal is at 1, the robot will take the material.Who can teach me how to do this? Who can give me an example? Thanks a lot !