r/PLC • u/Unable-Ad-1836 • 7d ago
PLC Question Electrical maintenance technician getting started on PLC’s
I’d like to start off by saying this is a personal/company project. I haven’t been digging into PLC’s very long I’ve mostly just used them as a troubleshooting aid after not being able to find the problem in the field. This’ll be my first start to finish project including building the program and function testing.
In the picture above is a rough draft of the program I put together, a drawing of the control box, and an idea of the function of everything in the field. I plan on cleaning it up and everything I just want to see if yall have any pointers or suggestions on a way to make it work better.
Open to suggestions and criticism.
Just letting yall know as well I only have access to to Alan Bradley and click PLC’s I don’t know which my boss would prefer for me to use yet even though it’ll more than likely be the click just due to the size of it.
26
u/swisstraeng 6d ago edited 6d ago
Y'all are criticizing OP for his schematic but it's already more than what I have to deal with in the field.
OP, the first thing you must do before PLCs is learn all the proper common symbols. Learn how to draw CBs, motors, PLCs, all the switches and so on. You do not need to know them all but at least make yourself a reference sheet.
Next up you can use ladder for basic programs. You can use ladder sometimes for more advanced stuff, but if you truly want to program PLC you will need the rest of IEC 61131-3. The "best" programming language we have is ST (Structured Text).
Before you touch ST, it can be worth getting basics in C language. It can also be worth getting an Arduino and messing around with it as a cheap PLC.
There are training PLCs if you want the real thing. And Codesys programming software is free and includes a simulator.
44
u/Cunkylover81 7d ago
are you a 10 year old child with crayons?
3
u/mcluvinoj 6d ago
Bro.. I understand where you coming from.. I came through journeyman electrician apprenticeship in a hardwood manufacturing plant. Our company is some what smaller, I mean as in like 8 different mills doing different things. Our company had like 1 guy that was in charge upgrading plcs, as far troubleshootingit was up to us. During my apprenticeship I worked with the small team in adding or upgrading plc2 and 5 to clxs on several machine centers.. i learned everything from wiring the IO to programming vfds parameters and speed control logic. I spent everyday troubleshooting the logic.. after I carded out of the apprenticeship I started my own up grades installing and programming plcs, panelviews, vfds.. one step at a time you'll learn.. you know how the machine operates already. You have drawings to show you.. now instead of hardwired series circuits you make each sensor it individual input. You can write the logic pretty much coping the drawings. I would recommend atleast a logix5000 capable clx, or atleast a micrologic since it looks like a pretty simple machine.. good luck, you'll be ok.
5
u/46handwa 7d ago
Do it again but at least use CAD
6
u/ShillsWorstNightmare 6d ago
You are over complicating it. PLC rule number one: Keep it simple
5
u/galacticman_ 6d ago
I am missing an IO list
For PLC programming, please get into programming guides how to write good code.
Learn how to proper comment aswell, very important that the troubleshooter is not starting off from 0.
Keep the drawing simple, as others said make the drawings in special programs (there is also free to use stuff)
4
u/ruum-502 6d ago
Love the sketch!
4
u/lenttuliisa 6d ago
Wtf are you guys saying here, I do this kind of sketches all the time when I am planning on some new functions. Helps to explain the function to electricians and other people who are involved. If I have time before deadline, ofc I would love to draw some real electrical diagrams with eplan and stuff. Just a wish that I'd have time to do that. But usually there is not even need to draw the program anywhere, so if it's hard one, I just scetch it to some corner of a paper so I see later how I thought it would work. Let everyone plan and sketch however they feel. It's not the final result for god sake. Good job OP.
3
u/Few-Cartographer4865 6d ago
I was made to hand draw ladder logic with comparative and math functions in trade school. Even back then I thought it was dumb as fuck to do it like that lol. But kudos to you buddy. You should get one of those automation simulators from Rockwell and play around with that
3
u/Shalomiehomie770 Codesys Guru 6d ago
Personal opinion. In the time it took you to draw and post this, you could have already had it running.
4
u/Zeevy_Richards 6d ago
There is a better way
2
u/SwagOD_FPS 6d ago
I like how you had space to the right for the ladder and decided you were just gonna stop there
1
u/5hall0p 6d ago
Change your sketch to a panel layout drawing without any wires. Create a new sketch with the electrical wiring drawn in ladder format. Include device terminal numbers. Use a numbering system on your wiring diagrams to make it easy to find the page and line number for every device. For example 03CON021 would be a contactor located on page 3 line 21 of your drawings. Put a bill of materials in your drawing package.
On the programming side, write what you want the equipment to do in plain english (or whatever your native language is). Then write a detailed operation description. Finally create the program from your detailed description. Sometimes adding another step of pseudo code between the detailed operation and the program can be helpful. The internet and YouTube will have lots of examples.
1
u/Top_Professional4545 6d ago
So my only thing would be put the motor on an actual drive,add the drive module into your program and incorporate those tags into your program. The whole output to a contactor is nice for simple stuff but when stuff starts going wrong and you need information on what and why you'll wish you had that drive on it.
1
u/Zchavago 6d ago
Speed run through the projects on https://plciosim.com until it’s second nature
1
u/andisosh 5d ago
Start using Qelectrotech, or drawio to make diagrams. Install logosoft and test the logic
1
u/love2kik 4d ago
I think I get what you want the PLC to do but can you write each sequence (or rung) out? It always helps to better understand the sequence.
1
u/GarryShortt 2d ago
Good project to start with — relay-to-PLC on a machine you already know is exactly how most maintenance techs get into this. A few things that will save you grief on a 5-in/5-out conversion:
Since you'll probably end up on the Click: I put together a free Click PLC series on YouTube that starts from the basics and covers seal-in, timers, counters and troubleshooting: https://www.youtube.com/watch?v=HNpkRHbNSdI&list=PLY0ZgOkZ5vyQ
1
u/Sea_Conversation1464 1d ago
I never understood anyone who writes pseudo logic like this. Usually they are terrible at their work too… You seem to take a lot of time on the unimportant stuff. The stuff that looks good to you, or trying to show you did work.
0
u/HuubHuubb 7d ago
You only have one piece of paper? Are you drawning an electric schematic or a front view of the panel?..
-1
u/Jealous_Rest_4538 6d ago edited 6d ago
No hace falta que jures que solo conoces Alan Bradley/Rockwell 🤣🤣🤣🤣
Te diré lo que me dijo el que me enseñó a mí: ""Programar" en Ladder no es programar".
Si solo vas a hacer montajes simples te sirve pero para resolver eficientemente problemas más complejos te vas a tener que ir a lenguajes de texto estructurado como el ST en Rockwell. Cualquier PLC de gama media/alta de cualquier fabricante tiene su versión (como el SCL de Siemens) pero al final son todos primos hermanos porque todos son similares al C++.
PD. Lo primero que deberías estudiar es normalización y simbología de planos eléctricos. Con todo el respeto, ese plano apesta. Es más, un buen plano eléctrico, no difiere mucho de cómo sería su equivalente en un "programa" en Ladder.
2
u/ACleverMoose 6d ago
As someone who also likes drawing on paper first, get yourself some kind of straight edge. Makes it way easier