What is the actual input needed for the controller?
PNP switches to positive, whereas NPN switched to negative.

If the input requires being switched to negative, then PNP won't work, but if the input lets you wire both sides of an opto, then either can work.