Previous in Forum: No YouTube Sound in Firefox   Next in Forum: Quality of Virus Scanners
Close
Close
Close
19 comments
Rate Comments: Nested
Guru
Engineering Fields - Mechanical Engineering -

Join Date: Sep 2009
Posts: 1651
Good Answers: 71

Primary Logic Circuit PLC Capabilities

05/23/2015 11:30 PM

I am not familiar with the use of PLC (primary logic circuits). I had one on a project recently and it was used to control a series of heater bands and record temperature.Now I am testing some devices and looking for a good way to record the test data. Can I program a PLC to record cycles of a solenoid switch and a bunch of optical or magnetic reed switches (or other movement sensing devices)?

I think a PLC may be a cheaper option than a data logger.

Drew K.

__________________
Question: What is going on with the American's Government? Response: Who is John Galt?
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Popular Science - Evolution - New Member Popular Science - Weaponology - New Member

Join Date: May 2006
Location: The 'Space Coast', USA
Posts: 11119
Good Answers: 918
#1

Re: Primary Logic Circuit PLC Capabilities

05/23/2015 11:49 PM

We always used data buckets to record data. I guess you can roll your own, but I would consider renting the equipment you need unless this is a long term project.

Register to Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#2

Re: Primary Logic Circuit PLC Capabilities

05/24/2015 12:40 AM

I agree with AH, but you might consider something like this...

http://www.dataq.com/

__________________
All living things seek to control their own destiny....this is the purpose of life
Register to Reply
5
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15602
Good Answers: 982
#3

Re: Primary Logic Circuit PLC Capabilities

05/24/2015 1:08 PM

I think you mean Programmable Logic Controller for the acronym, PLC. One certainly can use one of these devices to record an array of analog and digital signals, if one is familiar with the programming language used on that PLC. Many PLC get programmed today using a proprietary software package based on ladder logic. The hardware is cheap but the programming software package and support costs can quickly make this an expensive approach.

Renting a data logger can certainly solve your immediate problem but leave you in a position of being at the mercy of a minimum lease contract and very little flexibility that doesn't include a new lease.

If this was my task, I would consider a little stand alone computer/controller card like an Arduino or Raspberry Pi. Both of these stand alone devices have a broad array of free support and programming tools available. If the amount of data gathering you need exceeds the "on board" memory, an external hard drive can quickly be used.

I almost forgot to mention. A stand alone computer board approach will be very flexible and expandable. The only limit will be your wit, time and patience in learning how to use one. These devices are already changing the world of embedded computing.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply Good Answer (Score 5)
Guru
Engineering Fields - Mechanical Engineering -

Join Date: Sep 2009
Posts: 1651
Good Answers: 71
#7
In reply to #3

Re: Primary Logic Circuit PLC Capabilities

05/25/2015 12:52 PM

Yup, I meant to say Programmable Logic Controller dunno why I got that mixed up (again).

I am not familiar with ardunio or raspberry pi, are they capable of large repetitions of events? I am doing failure analysis on automatic equipment. We already have a counter on the control circuit but do not have individual counters on each part.

I was thinking of using an optical or magnetic sensor to record the actual number of successful operations. So far I have less than 20 devices operating at once in 2 different nearby locations and don't expect many more but expandability is important.

If I were to use a laptop, what device would I use to interpret the signals from the sensors.

Drew K

__________________
Question: What is going on with the American's Government? Response: Who is John Galt?
Register to Reply
2
Power-User

Join Date: Jul 2010
Posts: 136
Good Answers: 19
#4

Re: Primary Logic Circuit PLC Capabilities

05/24/2015 8:23 PM

PLC for event recording Typically PLCs and their I/O operate in real time. A few have some limited memory allocated for data logging, but in my opinion PLCs are poor data loggers. The HMI software/panel on the otherhand is where datalogging becomes viable. PLCs have counters, too, and timer and could easily manage and control your test when coupled with an HMI with some datalogging. Be sure to define what time resolution your data logs need. Vendors like National Instrument have PC cards and data acquisition software widely used in the test & measurement applications.

Register to Reply Good Answer (Score 2)
Guru

Join Date: Oct 2006
Location: 44.56024"N 15.307971E
Posts: 8277
Good Answers: 270
#5

Re: Primary Logic Circuit PLC Capabilities

05/25/2015 4:18 AM

A little more info would be nice.

How many inputs?

What is the format of the inputs:Logic level: contact,TTL,analog,or digital?

Are all inputs of the same type,or a mixture of analog,digital and contact or TTL inputs?

If different,signal conditioning will be required.

Do you need event time recorded for each event,or simply a total of events?

How accurate must the results be?

Will you need a continuous printed record of events,in real time?

More info=better answers.

__________________
"A man never stands so tall as when he stoops to help a child." "Never argue with a stupid person.They will drag you down to their level and beat you with experience" "To create an apple pie from scratch, first you must create a universe"
Register to Reply
Guru

Join Date: Jun 2011
Location: Mossel Bay, SA
Posts: 777
Good Answers: 21
#6

Re: Primary Logic Circuit PLC Capabilities

05/25/2015 4:27 AM

Yes you can. The term is Programmable Logic Controller, and there are many different manufacturers avialable. In general, the programming tends to have some part of the logic that is specific to the particular manufacturer, so you will need to study that area, unless you buy from a vendor that will programme your solution for you, included in the price.

Register to Reply
Guru

Join Date: Nov 2012
Posts: 633
Good Answers: 13
#8

Re: Primary Logic Circuit PLC Capabilities

05/25/2015 6:32 PM

You should be able to pick up an Arduino Mega at Radio Shack (or online) and download the IDE (integrated development environment) online at Arduino.cc (versions for microsoft, Apple, unix. The board has a USB link for connecting to computer and you can write a statement that outputs to the monitor in the IDE. If you need storage you can add a 30 gig. card carrier, all for less than $100.

Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15602
Good Answers: 982
#9
In reply to #8

Re: Primary Logic Circuit PLC Capabilities

05/25/2015 7:05 PM

What surprises many people is that very often the signal wiring and installation costs will be much more expensive than the "smart" modules today.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Guru

Join Date: Nov 2012
Posts: 633
Good Answers: 13
#10
In reply to #9

Re: Primary Logic Circuit PLC Capabilities

05/25/2015 10:47 PM

I used to pay over $700 for Analog Devices 2channel A/D and build my own gain blocks to get arc voltage and 50ma current shunt to the input range (0-5v) that the card required. By the time I added digital i/o, serial, parallel, processor, memory, and battery backed ram, cost of the STD system was about 4k, today I can do the same thing with a $40 AT MEGA 2560. There are many SOC (system on chip) devices to choose from, you just need to do a little shopping!

Register to Reply
Power-User

Join Date: Oct 2009
Posts: 176
Good Answers: 4
#12
In reply to #10

Re: Primary Logic Circuit PLC Capabilities

05/26/2015 1:39 PM

I saw the opening of this comment and immediately thought it was one of those "I earned $6,500 last month at home!" spam bots.

Register to Reply Off Topic (Score 5)
Guru
Engineering Fields - Mechanical Engineering -

Join Date: Sep 2009
Posts: 1651
Good Answers: 71
#13
In reply to #12

Re: Primary Logic Circuit PLC Capabilities

05/26/2015 1:47 PM

Nope, just me again with random questions : )

Drew K

__________________
Question: What is going on with the American's Government? Response: Who is John Galt?
Register to Reply Off Topic (Score 5)
Guru
Engineering Fields - Mechanical Engineering -

Join Date: Sep 2009
Posts: 1651
Good Answers: 71
#14
In reply to #8

Re: Primary Logic Circuit PLC Capabilities

05/26/2015 4:06 PM

I have looked into the Arduino Mega online and found some laser counter circuits on instructables. I was not able to see if any of the counter circuits recorded the values in a way that could be exported instead of displayed on a lcd.

Any ideas?

Drew K

__________________
Question: What is going on with the American's Government? Response: Who is John Galt?
Register to Reply
Guru

Join Date: Nov 2012
Posts: 633
Good Answers: 13
#15
In reply to #14

Re: Primary Logic Circuit PLC Capabilities

05/26/2015 5:32 PM

Any data that you can display can be formatted and output on the usb serial link....you can display this data with the monitor program in the IDE, or use a routine to listen to the port and take that incoming data and format it for a spreadsheet or wherever else you are going to stick it.

You might look at instructables that write gps or weather station info to an SD card, or transmit that info to wifi or bluetooth.

UC Boulder has info on doing these things with a 'PCDuino', a Ubuntu unix based, Ardunio shield compatible board for about $80...plug in an HDMI monitor, USB expander, keyboard and mouse and link into the nearest WIFI and you're up and running.

The Arduino website also has examples.

When I want to check digital i/o, I just add a line that formats the state as L/H or 0/1, (ordered in groups of 4 for easy mental conversion) with a Serial.println("example=" + string (variable to display)); statement, the value having previously been written to the variable...you can set the format however you want.

Register to Reply Score 1 for Good Answer
Guru
Engineering Fields - Mechanical Engineering -

Join Date: Sep 2009
Posts: 1651
Good Answers: 71
#16
In reply to #15

Re: Primary Logic Circuit PLC Capabilities

05/27/2015 10:59 AM

LoL! You make it sound easy...so where do I start to begin learning what I need? Can you recommend a book or website?

Drew K

__________________
Question: What is going on with the American's Government? Response: Who is John Galt?
Register to Reply
Guru
Popular Science - Cosmology - New Member Technical Fields - Technical Writing - New Member Engineering Fields - Energy Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electromechanical Engineering - Old Member, New Association

Join Date: Apr 2008
Location: Lexington, KY
Posts: 1639
Good Answers: 73
#17
In reply to #16

Re: Primary Logic Circuit PLC Capabilities

05/27/2015 2:48 PM

Drew,

I had to tackle a PLC project recently that I really didn't want to start because there was so little documentation. I had to replace a HMI (Human Machine Interface) project that was really old. After avoiding the project for a couple of years, I finally got to the point where I had to figure something out. Getting it done by an outside contractor was way out of the question. Now, I'd like a piece of that pie for myself!

I ended up downloading and testing the HMI software free for 40 hours of computer run time. I highly recommend that as a starting point. But before you do that, spend some time with the free online training videos they have. You'll find them under training menu of their website. You probably want to use the Trending features to monitor the signals you mentioned. But they are likely to be able to talk with your PLC and download all the variable names from the existing program. That is a big time saver! By the way, you may want to learn/experiment on a PC other than the one you intend to use for data collection. You can download it to as many computers as you have but after 40 hours or weeks of non use, it goes into demo only mode. Otherwise, it is a full blown package until it times out. Very, very powerful and easy to use with the free help and training!

I'm still a beginner myself with www.indusoft.com but they really rock! Good luck! Let us know how it turns out! I can't wait until I get another project! I still have unused license to play with!

__________________
A great troubleshooting tip...."When you eliminate the impossible, whatever remains, however improbable, must be the truth." Sir Arthur Conan Doyle
Register to Reply
Guru

Join Date: Nov 2012
Posts: 633
Good Answers: 13
#18
In reply to #16

Re: Primary Logic Circuit PLC Capabilities

05/27/2015 4:32 PM

All those sites I mention in #15 are free and those routines can be studied and you can figure out what you need. Instructables can be searched and thats also free unless you want to download PDF files, then you have to be a member.

Register to Reply Score 1 for Good Answer
Guru

Join Date: Nov 2007
Location: Eastern Arizona mountains on Route 666 about a mile from God's country
Posts: 1676
Good Answers: 122
#11

Re: Primary Logic Circuit PLC Capabilities

05/26/2015 10:52 AM

PLC's have very limited on-board memory and the memory that is there is limited to use for processor and I/O functions.

PLC's do not allow labeling, descriptors, or commenting of addresses within it's memory and require external memory storage to do so.

The DATA gathered by the PLC must be dumped into a computer with enough memory for meeting your DATA storage capacity requirements.

Once the DATA is properly stored you must either develop an EXCEL spreadsheet or other form of DATA manipulation program or purchase a software package expressly designed to accept, store, display, and/or trend the DATA for further use.

__________________
They said; "Brain size?" I heard; "Train size?" so I said: "I'll take a small one, thank you."
Register to Reply Score 1 for Good Answer
Guru

Join Date: Nov 2012
Posts: 633
Good Answers: 13
#19

Re: Primary Logic Circuit PLC Capabilities

05/28/2015 10:01 PM

Just noticed a post on Instructables.com by Crtek concerning writing data to Excell and a phone display, if you look that post up on the right you will also see related posts on data logging.

Register to Reply Score 1 for Good Answer
Register to Reply 19 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Anonymous Hero (1); Bud (1); Drew K (4); GameJudge (1); geraldpaxton (5); Hilton (1); HiTekRedNek (1); NotUrOrdinaryJoe (1); redfred (2); SHOCKHISCAN (1); SolarEagle (1)

Previous in Forum: No YouTube Sound in Firefox   Next in Forum: Quality of Virus Scanners

Advertisement