Basics to electrical components help for PLCs and uCs

Click For Summary
SUMMARY

This discussion clarifies the distinctions between Programmable Logic Controllers (PLCs) and microcontrollers (uCs) for applications in robotics and automation. PLCs are designed for harsh industrial environments, offering ease of programming and maintenance through ladder logic, making them suitable for controlling processes like those in warehouses. In contrast, microcontrollers are better suited for complex tasks, such as managing car engine fuel injection systems, due to their flexibility and capability to handle intricate operations. Resources like Make Magazine electronics books and hobbyist sites such as SparkFun and Discover Circuits are recommended for practical learning.

PREREQUISITES
  • Understanding of PLC programming and ladder logic
  • Familiarity with microcontroller architecture and functionality
  • Knowledge of basic electrical components and circuit design
  • Experience with automation tools and robotics concepts
NEXT STEPS
  • Explore PLC programming techniques using Allen-Bradley or Siemens PLCs
  • Learn about Arduino programming for robotics applications
  • Research the differences between various microcontrollers, such as PIC and AVR
  • Investigate real-world applications of microcontrollers in automotive systems
USEFUL FOR

This discussion is beneficial for non-electrical engineering students, hobbyists interested in robotics, and professionals looking to understand the practical applications of PLCs and microcontrollers in automation and control systems.

yoloswag
Messages
6
Reaction score
0
I'm a non-electrical engineering student however want to gain knowledge and experience with different electrical programming systems. I'm confused however as to all the different components and their differences. For example, why/when would you choose a PLC over an Arduino board or do these two even compare? I'm primarily interested in things that will help in the construction of robots, automation tools, etc. so like how certain sensors work, circuitboards, etc. Any help is greatly appreciated, thanks!
 
Engineering news on Phys.org
PLCs are industrially hardened to be able to withstand high amounts of electrical noise. They're preferred for industrial settings and other harsh locations.
 
You'll learn by doing. Search for hobby sites like discovercircuits.com, sparkfun.com, amasci, tinaja, there are plenty around. Read up and build something.
 
I recently discovered the Make Magazine electronics books. I think its pretty much what you are looking for. They give a lot of information without going into an engineering level of detail along with a bit of humor, historical footnotes, color photos, and equipment recommendations. Its very much geared toward a practical level of knowledge.
 
I used to program PLCs to control the operation of riderless cranes used to store and retrieve pallets in warehouses. There are several advantages in addition to those already mentioned in such applications. First, the program is entered in as ladder logic, a representation of electrical diagram that electricians are already familiar with. This means it doesn't take a programmer to maintain the code, an electrician can do it. Second, with the PLC I used, the conduction path through the circuit lights up, that is to say the symbols change to bold font so that it is easy to follow exactly what is happening with the program as it is running.

On these cranes there was a second computer programmed in assembler that did functions the PLC couldn't do such as translating commands from the mainfram to to PLC, maintaining lists of prohibited locations and so on. I spent perhaps a fifth the time working on and correcting my code than the other programmer did on his, and it wasn't because I was a better programmer. It's just a lot easier to program a PLC than it is a microcontroller.

The advantages of a PLC over a uC are:
Designed for harsh environments
Ease of programming - if you understand relay circuits you can program PLCs
Ease of maintenance and troubleshooting

The advantages of a uC over a PLC are:
Ability to perform much more complex tasks
Able to do functions a PLC does with difficulty or not at all
 
Last edited:
Great feedback, thanks for the replies. So my understanding is that PLCs are good for industrial control of certain processes while microcontrollers are used for more complex, in-depth operations. Is this correct? What are some more real-world examples of where a uC would be used in place of a PLC?
 
yoloswag said:
Great feedback, thanks for the replies. So my understanding is that PLCs are good for industrial control of certain processes while microcontrollers are used for more complex, in-depth operations. Is this correct? What are some more real-world examples of where a uC would be used in place of a PLC?

a PLC is more of an application of microcontrollers. Its more of a complete system, with a power supply and an operating system and an easier to use interface, whereas a microcontroller is just a chip.
 
So what other kinds of uC's are there like CPU's? Is a GPU considered a microprocessor?
 
CPUs and GPU's are microprocessors, but not microcontrollers.

A microcontroller sort of a general purpose self-contained computer. It has its own program memory, RAM, and input/output. Microprocessors have to get that functionality from other parts of the computer.

To get a better idea of what to use them for, think of a car engine's fuel injection and ignition system. You'd have a table of data that would tell you how long to pulse the injectors at a certain throttle and certain RPM, and you'd have a optimal time to fire the spark plugs. It might also need some ability to change timings as the engine ages. But once you programmed it once, you'd probably never need to program it again. And certainly the average driver wouldn't need to program it. It doesn't need a operating system, or anything more than a tiny amount of memory and storage. Thus, it is a perfect application for a uC.
 
Last edited:

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 6 ·
Replies
6
Views
42K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K