Actually, Terry would say...
Ralph, you're asking us to make a few assumptions regarding your questions.
"When wiring a plc to a circuit, does both the input and output need a voltage source?..."
The answer to this question (as posed) is...
Of course they both need a voltage source! That is, if you plan on using them!
I think the real question is...
Does the PLC provide power for inputs and/or outputs? Or, must power be provided by some external means?
NOW, The answer to this question is...
It depends!
INPUTS:
Some PLC's provide 12-30VDC for Inputs. (With only a limited amount of Power!- Be careful!)
Some don't.
OUTPUTS:
I don't know of any PLC's that actually provide the power for outputs in the same way that a 120VAC PLC might provide 12-30VDC for Inputs.
The PLC simply acts, as a switch, in one of two ways...
- A SOURCING SWITCH - The PLC Output is a "switch" between the HOT Source and the Field Device. (The other side of the Field Device is connected to N/COM.)
- A SINKING SWITCH - The PLC Output is a "switch" between the Field Device and Neutral/COM. (The other side of the Field Device is connected to the power source.)
...If so, How do you wire a circuit using a relay?"
This is an example of a question being too general.
Are you talking about an Input Circuit? ...Output Circuit? ...Power Circuit? ...Control Circuit? ...WHAT?
I think this might be a case of not being experienced enough to know what question to ask. Or, if you do know what question you want to ask, then it's a case of not knowing "how" to ask that question.
Ralph, I think most of the guys here would agree that, when it comes to designing, it is more important to have the "right questions" than it is to have answers.
A bucket-full of answers to the wrong questions are useless!