Author Topic: How does a PLC read a 120VAC input  (Read 2657 times)

0 Members and 1 Guest are viewing this topic.

Offline AMWallace123Topic starter

  • Newbie
  • Posts: 3
  • Country: us
How does a PLC read a 120VAC input
« on: February 01, 2018, 03:56:49 pm »
How does a PLC convert a 120VAC input, to a voltage that can be read with surface mount components? Most PLCs have around 10 inputs. I doubt they use a transformer for each 120v input. Does anyone understand the inner workings of a PLC?  ~ Thanks  :)
 

Offline Ice-Tea

  • Super Contributor
  • ***
  • Posts: 3070
  • Country: be
    • Freelance Hardware Engineer
Re: How does a PLC read a 120VAC input
« Reply #1 on: February 01, 2018, 04:01:57 pm »
Beefy resistor + optocoupler.

Offline djacobow

  • Super Contributor
  • ***
  • Posts: 1151
  • Country: us
  • takin' it apart since the 70's
Re: How does a PLC read a 120VAC input
« Reply #2 on: February 01, 2018, 04:02:55 pm »
They use an optoisolator. This is an LED and a phototransistor in one package. The mains drive the LED (current limited by resistors, of course) and the phototransistor can be used on the low voltage side to do whatever. Frequently, it just acts as a pulldown in concert with a resistor pull-up.
 

Offline PartialDischarge

  • Super Contributor
  • ***
  • Posts: 1611
  • Country: 00
Re: How does a PLC read a 120VAC input
« Reply #3 on: February 01, 2018, 04:47:00 pm »
Given we are talking about analog measurements they use an extra-cheap A/D converter that transmits the digital data over an optocoupler. The voltage to measure is scaled-down by a resistive divider before the A/D.
To keep it simple and low cost all of this electronics on the 'primary' side is powered from the same voltage it is trying to measure via a high voltage mosfet and a regulating zener.

For digital ON/OFF data, driving the led of an optocoupler in an analog way will work
« Last Edit: February 01, 2018, 05:00:11 pm by MasterTech »
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: How does a PLC read a 120VAC input
« Reply #4 on: February 01, 2018, 04:56:43 pm »
When it is a digital input and we're only interested in ON or OFF, an optocoupler will do the job just fine.  Sooner or later the signal needs to be converted to DC and, perhaps, filtered before stuffing it into an IO port.  There will also be some input protection circuitry at the 120V level.

Stripped to the essentials:

https://www.myodesie.com/images/wiki/2/PLC23.PNG
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: How does a PLC read a 120VAC input
« Reply #5 on: February 01, 2018, 06:56:28 pm »
Dedicated galvanically isolated ADCs are pretty cheap now so that is one way.  Another way is to use a linear optocoupler and then do the measurement on the non-isolated side.
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4078
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: How does a PLC read a 120VAC input
« Reply #6 on: February 01, 2018, 07:41:31 pm »
The same way they read DC inputs, except then with some additional current limiting by means of capacitor.
You can use a bidirectional optocoupler to save the diode and have one cycle lower latency.

(source)
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16607
  • Country: us
  • DavidH
Re: How does a PLC read a 120VAC input
« Reply #7 on: February 01, 2018, 11:27:55 pm »
If you just want to measure the presence of 120VAC or 240VAC, then that is much easier with just the optocoupler circuit as shown.
 

Offline retrolefty

  • Super Contributor
  • ***
  • Posts: 1648
  • Country: us
  • measurement changes behavior
Re: How does a PLC read a 120VAC input
« Reply #8 on: February 02, 2018, 01:02:29 am »
Another easy method is to use a small 120 vac coil reed relays for each AC channel being read.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf