I am trying to get a fixed 5V output from an inductive proximity sensor. The proximity sensor comes with 3 wires: bn(V+), bu(V-), and bk. A wiring diagram can be seen here on page 2/12. I have available to me both NPN and PNP style sensors and have tried using both.
I am having trouble figuring out why it does not work with a LM2576 though. I am powering the inductive prox sensor's connectors with +24V to bn(V+), bu(V-) to common, and bk to the input of the LM2576 which is then supposed to give a 5V output. I have the bk going into pin 1 of the LM2576 and everything else connected similar to Figure 1 in the LM2576 datasheet. Can anyone give me insight as to why when I connect the bk wire of the prox sensor to the input of the LM2576 it does not output 5V?
I have already verified that all components work by setting them up in other says (such as providing direct power to the input of the LM2576 and verifying it outputs 5V).