Using PLC's to run python script

I have a system that runs on PLC’s, and I am wanting to run a python script when a PLC triggers it. Is there a way to do this?

What input does the PLC take? For example, is it 3.3V to toggle a line? If so, then in theory you just learn about GPIO and set a GPIO to high or low. Might also need to take current into account since GPIO current output is tiny (you might need a buffer even if the voltage is correct). Different voltages could use a voltage converter (and possibly a buffer on top of that).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.