Posts

Advanced FBD programming

Image
 Level Up Your FBD Skills – Building Reusable Function Blocks (UDFBs) Like a Pro Let me ask you something. Have you ever copied and pasted the same logic over and over again—just for different motors, valves, or pumps? I have. And I'll be honest—it feels fine at first. A quick Ctrl+C, Ctrl+V, change a few tag names, and you're done. But then you realize you need to change the timer from 5 seconds to 10 seconds. And now you're updating it in 17 different places. One mistake, one missed update, and your machine behaves differently on Line A versus Line B. That's not engineering. That's chaos. Today, we're going to fix that permanently. We're going to turn our humble motor control logic from the last article into a reusable, parameterized Function Block—a UDFB (User-Defined Function Block) that you can drag, drop, and configure in seconds. Think of it like this: instead of writing the same recipe from scratch every time, you're creating a template where you...

Plc programming languages

Image
 PLC Programming Languages Unlocked – Why FBD is Your Visual Superpower Ever stared at a screen full of code and wished you could just see what your logic is doing? You're not alone. If you're new to PLC programming—or even if you've been around for a while—you've probably heard terms like LAD, FBD, and SCL thrown around. And maybe you've wondered: Which one should I actually use? Let me walk you through the landscape of PLC programming languages, and more importantly, why Function Block Diagram (FBD) might just be the visual superpower you didn't know you needed. The Big Picture: What is IEC 61131-3? Before we dive into the languages themselves, let's talk about the standard that governs them all: IEC 61131-3. This international standard defines the programming languages for programmable controllers [1†L4-L8]. Think of it as the rulebook that ensures no matter which PLC manufacturer you're working with, the languages follow consistent rules [1†L4-L8]. T...

Timers Explained — TON, TOF, RTO in PLC Ladder Logic

Image
 Timers Explained — TON, TOF, RTO in PLC Ladder Logic Sooner or later, every rung you write needs to wait for something. A pump that shouldn't stop the instant its command drops, a damper that needs a few seconds to actually reach position before the fan is allowed to start, an alarm that shouldn't scream the moment a reading blips for half a second. Every one of those situations comes down to the same three instructions: TON, TOF, and RTO. Learn these three cold, and you've covered probably ninety percent of the timing logic you'll ever write on a real plant. Why Timers Exist in the First Place A plain contact and coil only know two states: on or off, right now, with no memory of how long anything has been true. Most real equipment doesn't behave that cleanly. A conveyor needs a few seconds of run-up before a downstream sensor is believed. A trip condition might need to persist for a second or two before it's treated as real, so a single noisy pulse from a sens...

Latching in ladder logic plc programming

Image
How Seal-In (Latching) Circuits Work in PLC Ladder Logic Walk past almost any motor on your plant , a conveyor, a fan, a pump, a feeder and behind the panel you'll find some version of the exact circuit we're about to build together. A momentary Start button, a momentary Stop button, and one small trick that lets the motor keep running long after you've taken your finger off the button. It looks simple once you know it, but it trips up a lot of people the first time they see it. So let's take it apart piece by piece, the way I'd walk a new technician through it on the panel itself. The Problem With a Simple Push Button  we built the simplest rung there is  a push-button contact feeding a lamp coil.  Press the button, the lamp lights up. Let go, it goes dark again.  That's a perfectly honest little circuit, and it works fine for a lamp, because you generally want a light on only while you're actually pressing something. But now think about what that same wiri...

What is ladder logic

Image
 What is Ladder Logic? PLC Programming Explained for Beginners If you've ever wired a motor starter with a start button, a stop button, and a seal-in contact, you already understand most of ladder logic. You just haven't seen it drawn this way yet. Let me walk you through it the way I'd explain it to a new technician on the floor — no jargon, just the four building blocks you'll use for the rest of your career. Why It's Called "Ladder" Logic Before PLCs, plants ran on relay panels — real electromechanical relays, wired point to point. When an electrician designed one of these panels, he'd draw the circuit on paper first: two vertical power rails running down the sides, and horizontal lines connecting them, each one representing a control circuit. Because the drawing looked like the rails and rungs of a ladder, the name stuck. When PLCs arrived in the 1970s, manufacturers had a choice: invent a whole new symbol language, or keep what electricians alread...

Level measurement instrumentation

Level measurement might be the most common measurement on a plant after temperature, and yet it's also one of the easiest to get wrong on paper — because the "right" technology depends entirely on what's in the vessel, not just what's convenient to install. This is a field-level rundown of the main level technologies, how each one actually works, where they fit, and the faults we run into most often with each. Why There's No Single "Best" Level Sensor Every level technology makes a tradeoff somewhere — cost, accuracy, maintenance, or suitability for dusty, foamy, or high-temperature service. A radar transmitter that performs beautifully on a clean liquid storage tank can struggle on a dusty cement silo with buildup, while a technology that's perfect for powders would be a poor (and expensive) choice for a clean water tank. Picking the right one starts with the material, not the spec sheet. 1. Hydrostatic (DP) Level Measurement Working princ...

Flow measurement

Image
 How an Orifice Plate Actually Measures Flow If you've spent any time around a plant, you've seen those flanged sections with a thin metal plate sandwiched inside — usually with two small tappings on either side going off to a DP transmitter. That's an orifice plate assembly, and it's still one of the most common ways industry measures flow, even with all the fancy vortex and Coriolis meters around now. Here's how it actually works, in plain terms. The Basic Idea An orifice plate is nothing more than a thin metal disc with a precisely machined hole in the middle, installed inside the pipeline. When fluid — liquid, gas, or steam — flows through that hole, it has to squeeze through a smaller opening than the pipe itself. That forces the fluid to speed up right at the orifice. Here's the part that makes it work as a measurement device: whenever fluid speeds up, its pressure drops. This isn't some obscure phenomenon — it's basic energy conservation (Bernoull...

Hydraulic system tracing

Image
Hydraulic System Fault Tracing Procedure Specially for Loesche Roller Mill — A Field Guide Anyone who's chased a hydraulic fault on a Loesche mill knows it's rarely as simple as “check the pump.” The hydraulic system on these mills is doing a lot — holding grinding pressure on the rollers, allowing them to swing away during high vibration or tramp material events, and doing it all under high pressure with a fair amount of heat and contamination working against it. Here's how I actually walk through it when something's not right. Step 1: Understand What the System Is Telling You First Before touching a single valve, pull up the trend for hydraulic pressure, tank level, oil temperature, and roller position over the last few hours. Nine times out of ten, the trend already tells you whether you're chasing a slow-developing problem (seal wear, filter clogging, cooler fouling) or a sudden one (a burst hose, a stuck valve, a sensor failure). Don't skip this step just b...