r/PLC • • 7d ago

PLC Question Electrical maintenance technician getting started on PLC’s

Post image

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.

67 Upvotes

46 comments sorted by

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.

3

u/Unable-Ad-1836 6d ago

I have seen a way worse drawing on one of our machines. And I asked to do this to kinda dip my toes because I like problems for some ungodly reason. Thanks for the advice.

2

u/meme-6888 6d ago

Really useful breakdown, thanks. I've been working mostly in Structured Text on OpenPLC and I'm moving to Codesys next. Do you see many junior roles for ST/IEC 61131-3 in your area, or in the EU in general?

1

u/swisstraeng 6d ago

The few that I know are holding their breath since the US has Trump and economy worldwide is being unstable.

There used to be some but now it's just job where they rarely hire.

44

u/Cunkylover81 7d ago

are you a 10 year old child with crayons?

75

u/Unable-Ad-1836 7d ago

25 yo 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.

1

u/Unable-Ad-1836 6d ago

It is a simple machine, it was originally running on relay logic for forever. It’s just going to be a part of a bigger system and wanted to throw a piece into it that i could say I was proud of lol. My background started with construction electrical (3.5years) and my current position as a 3rd shift electrical maintenance tech (4.5 years) we’ve usually left the plc building stuff to the engineers and senior techs. I’ve built several backplates/control panels based off of their prints. In my mind the picture with the backplate and hopper was just to look back at and remember what all I need to integrate into the ladder logic. I would probably get a better response from some people if I had just hidden that( it is a terrible drawing lol)

5

u/46handwa 7d ago

Do it again but at least use CAD

3

u/DuglandJones 7d ago

Or a ruler

2

u/Unable-Ad-1836 7d ago

Yeah, I went to looking for my short straight edge and evidently it has disappeared. I wanted to throw it on paper while I had time to sit and think about it

1

u/Unable-Ad-1836 7d ago

I’m not sure if I have access to cad on our work computer. I was going to ask my boss about it in the morning to make my revisions, to clean everything up, and make it at least look half assed professional. lol

3

u/46handwa 6d ago

Sorry once you said "personal" I completely zoned to that scope (the drawing influenced this). It also jived with the vibe on my initial read. I immediately categorized it as DIY (by an electrician). I would say come to this community with a better diagram and you'll find a lot of helpful people! Your diagram is VERY difficult to read. If this is a company project they should be giving you the tools to succeed!!! Also, if it was a personal project I'd say at least get a ruler like u/duglandjones said

1

u/Unable-Ad-1836 6d ago

I only say personal because I wanted to head it for the most part on my own for a project coming up. I threw this together for a reference of off the top of my head and it’ll all change as I go along and learn more. This paper isn’t going to be turned in as my idea I’m going to try to get permission to put a cad software on our work computer to clean it up.

2

u/46handwa 6d ago

Bring it here I can't wait to see it 😉

2

u/Constant_Barber_5198 7d ago

Don't let them get to you. it's fine. Its common to iterate over designs. I often start with scratch. and learn about asynchronous and synchrous scan cycles. Its important.

6

u/ShillsWorstNightmare 6d ago

You are over complicating it. PLC rule number one: Keep it simple

2

u/MasterOfBunnies 6d ago

KISS: Keep It Simple, Stupid.

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/lenttuliisa 6d ago

Here is one of my wiring instruction to an electrician colleague. Job did get done in time, and I'll draw a real diagram later.

1

u/Sea_Conversation1464 1d ago

Nice little check mark you got there…. Where’s the star sticker?

1

u/lenttuliisa 1d ago

It was already at the corner at the paper, I didin't mind it 😂

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

2

u/Few-Cartographer4865 6d ago

Also focus on AB software. Click and AB are very similar but most of every plant i've been in run AB software. I'm in PA

1

u/Few-Cartographer4865 6d ago

Hardware not software

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:

  1. Keep safety hardwired. E-stop drops a master control relay that kills output power directly — the PLC just reads an E-stop contact so it knows. Never rely on the program to stop the machine in an emergency.
  2. Wire the Stop button N.C. and the overload aux contact N.C. into inputs. In the logic, the stop is a normally-open contact (XIC / NO) that's true while the button is healthy. That way a broken wire stops the machine instead of letting it run.
  3. Add run feedback. Wire an auxiliary contact from the blower contactor to an input. If the output is on but the feedback doesn't come in within a second or two, you know the contactor or coil failed — that's the troubleshooting info you'll want at 3 AM.
  4. Write the sequence in plain words before the ladder: "Start pressed, no fault → blower contactor on, run light on. Stop, overload or E-stop → off. Feedback missing after 2 s → fault light, latch until reset." Then each sentence becomes a rung or two.
  5. Comment every address and rung. The next 3rd-shift tech will thank you (it might be you).

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?..

2

u/Unable-Ad-1836 7d ago

The way my brain was working. I did draw front view of the panel and I use that to kind of draw in where the wires are gonna go. I’m going to make it look better eventually it will be cleaned up, but I use that in my head to trace out where I wanted everything to go i’m going to talk to my boss in the morning. See if I can gain access to CAD on our work computer to actually make a schematic to go along with it like I originally said it’s in a rough draft at the moment to get my idea on paper before I forget about everything I just threw it all on there to get it down.

-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.

1

u/Unable-Ad-1836 6d ago

At my job we mostly have click and AB stuff plc wise and yeah i get the complex stuff needs something in a different language but for a vacuum blower system with 5 inputs and outputs a ladder would work. I’m using this to get my feet wet and to broaden my horizons. I look forward to learning and trying out different languages. Also I used the drawing to map out what I envisioned in my head and put it on paper

2

u/Impossible_Big7290 6d ago

This is not true, I have worked with a very complex assembly lines that uses pure ladder logic programming. I admit that isn't easy to troubleshoot but they are still exist everywhere

1

u/vbrimme 6d ago

Do you happen to be based in Europe? Because pretty much every company I’ve worked for and every vendor I’ve worked with in North America has primarily used ladder, and used ST or SCL only when absolutely necessary. However, the companies I’ve worked with/for outside of North America use a lot more structured text.

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

1

u/Unable-Ad-1836 6d ago

Yeah, I had one that went poof

2

u/ACleverMoose 6d ago

As all things tend to do at my desk as well