poplar598
Posts: 4
Joined: Sun Feb 12, 2017 1:48 pm

PLC Alternative for Dry Contact

Sun Feb 12, 2017 2:02 pm

Hi,

I'm wondering if a Rasberry Pi could replace a PLC (Programmable Logic Controller) for machine control. I need three inputs, each sensing 14v AC. If either of the inputs sees 14 v, I need an output of dry contact pulses (like you would get from a water meter). Further, I need to be able to vary the frequency of the dry contact pulses (number of pulses per minute) because the pulses are going to a chemical pump and I want to be able to vary the output of the pump. From what I have read, I may need a GERT board and maybe Arduino? The alternative is to get an inexpensive PLC and use ladder logic.

boyoh
Posts: 1468
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: PLC Alternative for Dry Contact

Mon Feb 13, 2017 8:41 pm

poplar598 wrote:Hi,

I'm wondering if a Rasberry Pi could replace a PLC (Programmable Logic Controller) for machine control. I need three inputs, each sensing 14v AC. If either of the inputs sees 14 v, I need an output of dry contact pulses (like you would get from a water meter). Further, I need to be able to vary the frequency of the dry contact pulses (number of pulses per minute) because the pulses are going to a chemical pump and I want to be able to vary the output of the pump. From what I have read, I may need a GERT board and maybe Arduino? The alternative is to get an inexpensive PLC and use ladder logic.
MY advice is us a PLC , easy to program and more reliable, in a industrial environment
Off the shelf spares, and easy to modify the ladder program, Industrial technicians are
Farmiliar with PLC's and ladder programs. Shut down time costs money and
Production lost.

Regards BoyOh, Retired Electrical / Electronic / Technician
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: PLC Alternative for Dry Contact

Wed Feb 15, 2017 2:35 pm

using opto isolators you should be able to achieve this with a Pi or Arduino without any issues.

An Arduino may be more suitable as it is more resilient to power failure.
Doug.
Building Management Systems Engineer.

boyoh
Posts: 1468
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: PLC Alternative for Dry Contact

Wed Feb 15, 2017 11:11 pm

BMS Doug wrote:using opto isolators you should be able to achieve this with a Pi or Arduino without any issues.

An Arduino may be more suitable as it is more resilient to power failure.
Yes Doug, I agree ,he could use a Pi to in place of a PLC. But I made my assumption on that
If he had a problem with the Pi controlled system , he would NOT have some one, with your
Experience of the Pi, looking over his shoulder telling how to correct It

Regards BoyOh
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: PLC Alternative for Dry Contact

Thu Feb 16, 2017 2:35 pm

boyoh wrote:
BMS Doug wrote:using opto isolators you should be able to achieve this with a Pi or Arduino without any issues.

An Arduino may be more suitable as it is more resilient to power failure.
Yes Doug,
I agree ,he could use a Pi to in place of a PLC.
But I made my assumption on that If he had a problem with the Pi controlled system , he would NOT have some one, with your Experience of the Pi, looking over his shoulder telling how to correct It.
Regards BoyOh
If someone can learn enough about arduino or Pi to set this up in the first place (and this is a good starting project, not too complicated) and keeps notes of how he did it he should also be able to repair it if it fails.

If this is for a business critical system then something that can be easily maintained by a broad base of service engineers (Such as a PLC) is probably best, if its a hobby project for personal use then Pi or Arduino are more than good enough.
Doug.
Building Management Systems Engineer.

boyoh
Posts: 1468
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: PLC Alternative for Dry Contact

Thu Feb 16, 2017 3:19 pm

BMS Doug wrote:
boyoh wrote:
BMS Doug wrote:using opto isolators you should be able to achieve this with a Pi or Arduino without any issues.

An Arduino may be more suitable as it is more resilient to power failure.
Yes Doug,
I agree ,he could use a Pi to in place of a PLC.
But I made my assumption on that If he had a problem with the Pi controlled system , he would NOT have some one, with your Experience of the Pi, looking over his shoulder telling how to correct It.
Regards BoyOh
If someone can learn enough about arduino or Pi to set this up in the first place (and this is a good starting project, not too complicated) and keeps notes of how he did it he should also be able to repair it if it fails.

If this is for a business critical system then something that can be easily maintained by a broad base of service engineers (Such as a PLC) is probably best, if its a hobby project for personal use then Pi or Arduino are more than good enough.
Agreed

Regards BoyOh
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

poplar598
Posts: 4
Joined: Sun Feb 12, 2017 1:48 pm

Re: PLC Alternative for Dry Contact

Fri Apr 14, 2017 3:01 pm

Thank you Doug and boyoh for your thoughts. It is an industrial application, so maybe the PLC does make sense. I would be setting up the Pi, but if I were hit by a bus, my replacement would probably fare better repairing a PLC, unless I left adequate documentation. A low cost PLC would work out similar cost-wise.

I have worked with PLC's, but not the one I am considering for this application. It is a Lovato Electric LRDKIT 12RD024 micro PLC starter kit with expansion and communication modules as well as software for $CAD200. All I need is a box, wires, and a clue as to how to set it up! I have not been able to confirm the software can actually produce a dry contact of variable frequency for any 14v input on three contacts. I'm going to dig deeper in this direction though.

This would have been my first Pi. Maybe I'll get a Pi to replace my WD media player that seems to hang too often :)

Regards,
poplar598

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: PLC Alternative for Dry Contact

Mon Apr 17, 2017 7:48 pm

poplar598 wrote:
This would have been my first Pi. Maybe I'll get a Pi to replace my WD media player that seems to hang too often :)

Regards,
poplar598
I'm playing with a string of LED lights at the moment, plenty of fun to be had with Pi in the home environment.
Doug.
Building Management Systems Engineer.

poplar598
Posts: 4
Joined: Sun Feb 12, 2017 1:48 pm

Re: PLC Alternative for Dry Contact

Sat Apr 22, 2017 1:36 pm

I am looking for a good excuse to buy my first Pi. I'm sure there are a million things I can try with it.

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: PLC Alternative for Dry Contact

Mon Apr 24, 2017 8:49 am

poplar598 wrote:I am looking for a good excuse to buy my first Pi. I'm sure there are a million things I can try with it.
There are too many projects to count, how about:

A magic Mirror
Internet Radio
Beetbox (I made a clone of this for my kids school, re-skinned as a dinosaur).
Remote control car / robot
Media center / Retrogames console
Wildlife camera
Doug.
Building Management Systems Engineer.

poplar598
Posts: 4
Joined: Sun Feb 12, 2017 1:48 pm

Re: PLC Alternative for Dry Contact

Sun Apr 30, 2017 12:56 pm

Thanks Doug!
Too cool. A Beet Box? Good thing it wasn't a Boom Box! I'm thinking about maybe making an HTPC.

Return to “Automation, sensing and robotics”