Need VFD Wiring Help for Powerflex 4


I am newer to VFD wiring and I am trying to automate a vfd that controls a conveyor motor. So I have a Powerflex 4 wired as a 2 wire setup with a start signal coming from a machine downstream. What I'm trying to do is take a signal from a downstream photoeye and use it to stop the Powerflex 4 when the photoeye is blocked and restart it when the eye is unblocked while keeping the start/ stop signal from the machine downstream. Can anyone help me out with how to wire it and what parameters to change?