Powering a proximity switch

Read the specs on the digital output and compare to prox.
You will need to use a digital output point turned on to supply the power to the prox.