Posted in

How to call a controller from another controller?

Hey everyone, it’s Mia from the controller supply team here – yep, the same person you might’ve chatted with last week when you were stuck sorting out how to sync two of our industrial controllers for your production line. Today, we’re tackling one of the most common questions I get from both new and repeat clients: How do you actually call one controller from another? Not the confusing, jargon-heavy stuff you’ll find in generic tech forums – this is the real-world, practical stuff that’s saved my customers hours of downtime. Controller

First off, let’s be real: If you’re working with controllers (especially industrial ones, which is what we specialize in), calling one from another isn’t like hitting a button on your phone. It’s about reliable data sharing between two hardware units that are probably running heavy machinery, conveyor belts, or some other critical process that can’t afford glitches. I’ve seen small manufacturing teams mess this up by overcomplicating it, so I’m breaking this down into simple, actionable steps that even if you’re not a coding wizard, you can follow.

Let’s start with the basics you need before you even think about “calling” a controller. You wouldn’t try to text someone without making sure your phone has service, right? Same logic here. First, know what kind of controllers we supply (don’t worry, I’m not pushing product here – just context). We do two main lines for most small to mid-sized industrial operations: our compact PLC controllers and our modular process controllers. The steps vary a tiny bit between them, but the core logic stays the same. The first must-do: Make sure both controllers are on the same network. No exceptions. I’ve had a client last quarter try this with one controller on their factory Wi-Fi and another on a separate wired network, and they spent three days troubleshooting before they realized the network bridge was down. Pro tip: Use a dedicated industrial Ethernet network for your controllers – not your office Wi-Fi, which gets laggy and drops connections all the time. That’s non-negotiable for consistent calls between units.

Next, you need to set up communication protocols. Protocols are basically the “language” your two controllers will speak to each other. For our controllers, we support two super common (and easy to use) ones: Modbus TCP/IP and OPC UA. Let’s keep it casual – Modbus is like the old-school texting of controller comms; it’s simple, works for basic calls like “tell Controller B to start Motor 3.” OPC UA is more like a WhatsApp chat – it lets you share more complex data, like sensor readings, batch numbers, or error logs, and it’s more secure for long-term use. If you’re just doing a simple call (like triggering a batch run on Controller B when Controller A hits a production target), Modbus is totally fine and faster to set up. If you need to send multiple data points over time (like logging every 10 seconds), OPC UA is worth the extra 15 minutes of setup. Here’s the step-by-step for setting this up on our hardware specifically: Log into each controller’s local web interface (you just type its IP address into a browser, no fancy software needed – love that, right?). For Modbus, go to the “Communication” tab, select “Modbus TCP Server” on Controller B, assign a register (that’s just a storage spot for the signal) – say, Register 100. Set it to be readable and writable from other devices. Then on Controller A, go to “Modbus TCP Client,” type in Controller B’s IP, and map that same Register 100. That’s it – when you write a value to Register 100 on Controller A, Controller B will pick it up instantly. I’ve watched a plant manager at a snack factory do this in 20 minutes last month to sync their filling controller and packaging controller. Game changer.

Now, what actually counts as “calling a controller”? This is where most people mix up terms. Calling a controller doesn’t mean you’re picking up a phone and dialling – it means you’re sending a specific command (like a start, stop, reset, or data request) from Controller A to Controller B. So once your protocols are set up, how do you send that command? Two ways, depending on if you’re using our controllers’ built-in logic tools or your own custom code. If you’re using our controller’s native logic (we have a super user-friendly ladder logic editor built in – no expensive third-party software), here’s how: In Controller A’s logic program, add a “Modbus Write” instruction. Pick the slave device (that’s Controller B) from the dropdown, select the register you set earlier, and assign a value. For example, if you set Register 100 to trigger a start command when it gets a value of 1, when Controller A’s production counter hits 1000 units, it will write “1” to Register 100 – that’s the “call.” Controller B is programmed to watch that register, so when it sees a 1, it runs its start sequence. If you’re writing your own custom code (like Python or C#) to interface with our controllers, you’ll use our free API library – we post that on our support portal, no login required. The code would look something like: write_register(controller_b_ip, 100, 1) – that’s literally it. I had a software engineer at a auto parts shop use this last week to link his inventory controller to his line controller, and he sent me a screenshot of his code – it was three lines. No overcomplicated stuff.

Wait, but what about edge cases? I get this question all the time: What if the call doesn’t go through? That’s the #1 frustration when calling controllers, right? One time, a client called me panicking because their line shut down randomly, and it turned out they didn’t have a timeout set. Here’s the fix: On every call you set up, add a timeout. For Modbus, that’s a setting in the client config – set it to 500ms. If Controller A doesn’t get a response from Controller B in 500ms, it will flag an error instead of waiting forever. For OPC UA, most libraries have a built-in timeout, but I always tell clients to bump it up to 1 second just to account for factory noise (heavy machinery can cause tiny network blips). Also, test the call in a controlled environment first – don’t just plug it into your live line. Test it with a dummy signal: send a “test” value from Controller A and check if Controller B picks it up via its local interface. We include a free test tool in every controller’s package – it’s a little button that lets you send a test command without coding. That’s saved so many people from crashing lines during setup.

Another thing I see new clients mess up: permissions. You can’t just write to any register on Controller B – you have to make sure the register you’re using is set to “writable” for external devices. Last quarter, a food and beverage plant tried to call their pasteurizer controller and it didn’t work, because they used a register that was locked for only internal use. That’s a quick fix – just go into Controller B’s communication settings and set the register you need to public/writable. If you’re working with sensitive data (like recipe formulas), OPC UA lets you set specific roles, so only Controller A can write to that register, which is way more secure than Modbus.

Let’s walk through a real example to make this concrete. Say you have two of our controllers: Controller X (controls the raw material mixer) and Controller Y (controls the extruder that makes the snack bars). You want Controller X to call Controller Y only when the mixer is full – so no extruding until the mixer is loaded. Here’s exactly how you’d do it with our hardware:

  1. Connect both controllers to your dedicated industrial Ethernet switch.
  2. Log into Controller Y, go to Communication > Modbus TCP Server, create Register 150, set it to writable from other devices, assign a description like “Mixer Full Trigger.”
  3. Log into Controller X, go to Communication > Modbus TCP Client, enter Controller Y’s IP address, select Register 150, save the settings.
  4. Open Controller X’s ladder logic program, find the “Mixer Full” sensor input (that’s a digital signal that goes high when the mixer is full).
  5. Add a “Modbus Write” instruction linked to that sensor, set the value to 1 when the sensor is high, and 0 when it’s low.
  6. Open Controller Y’s ladder logic program, add a “Modbus Read” instruction for Register 150, and link that signal to the Extruder Start command.
  7. Test it: Trigger the mixer full sensor, check Controller Y’s register view – it should show 1, and the extruder should start. If not, pull up the test tool on both controllers to see if the signal is sending.

That’s a full, working setup in less than an hour. No fancy degrees needed, just following the steps.

Now, let’s talk about common mistakes to avoid, because I’ve made almost all of these myself (when I was first learning this stuff, I once forgot to plug in the Ethernet cable and spent two hours crying over a non-working line – oops). First, don’t use static IPs that might change. I know it’s tempting to use DHCP so you don’t have to assign IPs manually, but if the controller’s IP changes, your call will break. Always assign static IPs to your controllers – we include a step-by-step guide for that in every user manual. Second, don’t overcomplicate the call. If you only need to send one signal, don’t set up OPC UA with 10 extra data points. Keep it simple for what you need. Third, don’t ignore error logging. Both of our controllers have built-in error logs that will tell you if a call failed – like “no response from slave controller” or “invalid register address.” Check that first when troubleshooting, instead of Googling random forum posts.

If you’re still stuck, that’s totally normal. I get messages every week from people who’ve tried the steps and it’s not working, and more often than not, it’s a tiny mistake like a typo in the IP or a register that’s set to read-only. Our team has a dedicated support line for controller integration – we don’t do generic support, we know our hardware inside and out, so we can walk you through it in 10 minutes instead of making you wait 24 hours for a generic reply.

At the end of the day, calling one controller from another is all about consistent communication, simple protocols, and testing before you plug it into your live line. If you’re shopping around for controllers that play nice together, or you’re ready to upgrade your current setup to sync two units, we have a range of controllers that are built specifically for easy cross-controller calls – no proprietary locks that force you to use our overpriced software.

If you’re ready to chat through your specific use case, whether it’s a small 2-controller setup or a whole line of sync’d controllers, our team is here to help. We can talk through your process, recommend the right controller model, and even schedule a quick call to walk through the setup steps with you. No sales pitch, no pressure – just real people helping you solve a real problem.

AC Motor Controller References:

  1. Industrial Ethernet for Control Systems – Practical Implementation, IEEE Transactions on Industrial Informatics, 2021
  2. Modbus TCP/IP Specification, Modbus Organization, 2022
  3. OPC UA for Industrial Automation, OPC Foundation, 2023

Hangzhou ANG Drive Co., Ltd.
We’re well-known as one of the leading controller manufacturers and suppliers in China, also support custom service. Please feel free to wholesale high quality controller made in China here from our factory. Contact us for more details.
Address: No.185, Jincheng Rd., Hangzhou 311202, China
E-mail: export6@angdrive.com
WebSite: https://www.angdrive.com/