PLCtalk.net

Communicating with Remote I/O over Modbus in ST and LD

Learn how to communicate with remote I/O modules over Modbus in Schneider Electric PLCs using structured text and ladder logic: configure a scanner, assign variable names, and access them in programs.


Technical Articles Nov 13, 2025 by Georges Feghaly

Modern PLCs rarely operate in isolation. In water treatment plants and industrial automation, remote I/O modules allow devices to be distributed near field instruments, reducing wiring, costs, and panel size. Instead of pulling hundreds of signal cables back to the main PLC, engineers can place compact I/O modules near pumps, valves, and sensors, and connect them via Modbus TCP, Ethernet/IP, or PROFINET.

 

Configuring Remote I/O Communication

For engineers transitioning from ladder to structured text, the challenge is not just wiring but how to structure code to access remote I/O cleanly. This article shows how to configure Schneider Electric remote I/O and use variable mapping to make ST and LD logic intuitive.

 

Figure 1. A remote I/O chassis with bus coupler. Image used courtesy of Adobe Stock

 

Configuring Remote I/O in Schneider PLCs

In many PLC systems, communication to remote I/O is handled at the hardware configuration level, rather than writing ST instructions for each signal. Once the remote I/O is properly configured, it can be programmed just like local I/O. This example, using a Schneider PLC, will focus on the hardware integration step.

  • Open EcoStruxure Control Expert and access the Ethernet port to connect to remote I/O.
  • Click on Industrial Ethernet Manager and add a new Modbus TCP bus coupler (e.g., TM3 module). We will name it ‘Rack 1.’

Figure 2. Adding a new bus coupler. Image used courtesy of the author

Figure 3. New device in Ethernet configuration. Image used courtesy of the author

 

  • Assign a static IP address to the coupler; ensure that it’s on the same network as the PLC.

Figure 4. Setting the IP address of the bus coupler. Image used courtesy of the author

 

  • Add the modules to the bus couple. This project includes a digital input, a digital output, and an analog input module.
  • Map input and output registers from the remote I/O to PLC memory:
    • %IX for digital inputs
    • %IW for analog inputs
    • %QX for outputs
    • %MW for words
  • Assign meaningful variable names to each I/O point. For example:

 

SignalI/O TypeAddressVariable Name
Pump StartDigital Output%QX0.0Pump_Start
Pump StatusDigital Input%IX0.0Pump_Status
Tank LevelAnalog Input%IW0Tank_Level

 

Assigning variable names makes the code readable, whether you use ST or LD.

 

Figure 5. Verifying the global variable listing. Image used courtesy of the author

 

Accessing Remote I/O in ST and Ladder

Once remote I/O is mapped, both ST and Ladder programs treat the signals exactly like local I/O.

From this point, a program may be designed just like any other LD or ST program.

 

Example: Controlling a Remote Pump

Scenario: A chemical dosing pump is located 50 meters from the main PLC. Its signals are wired to a remote I/O island.

 

Structured Text (ST) Example

// Control command to remote pump

IF Start_Cmd THEN

  Pump_Start := TRUE;

ELSE

  Pump_Start := FALSE;

END_IF;

 

// Read feedback

PumpRunning := Pump_Status;

Level := Tank_Level;

 

Ladder Logic (LD) Example

Figure 6. Equivalent ladder diagram for a simple program. Image used courtesy of the author

 

Just like ST, LD accesses the remote I/O through descriptive variables, making programs easy to read, maintain, and troubleshoot.

 

Advantages of Variable Mapping

Mapping remote I/O to meaningful variable names provides multiple benefits:

  • Readability: Engineers can understand the purpose of each I/O point at a glance.
  • Maintainability: Changes in hardware addresses only require updates in the configuration, not the code.
  • Scalability: Easily add multiple pumps, valves, or sensors without cluttering the main program.
  • Interchangeability: Both Ladder and ST code can reference the same variables, reducing errors and training time.

Example: Managing multiple pumps becomes straightforward. If each pump has a Start, Stop, and Status signal, mapping variables like Pump1_Start, Pump1_Status, Pump2_Start allows clean loops or repeated logic blocks.

 

Key Takeaways

  • Remote I/O communication is essential for modern distributed automation systems.
  • Schneider PLCs handle communication through Modbus TCP Bus Couplers
  • Assigning meaningful variable names simplifies programming and supports both ST and LD access.
  • Once configured, remote I/O signals behave like local I/O, allowing engineers to use familiar programming structures.
  • This approach scales well for multiple devices in large plants like water treatment or other industrial automation practices.

 

Conclusion

Communicating with remote I/O over Modbus TCP (using Schneider) doesn’t require complex ST commands; the key is hardware configuration and variable mapping. By assigning descriptive variable names to remote I/O points, engineers can write clear, maintainable programs in both ST and ladder logic.

This method is especially useful for large-scale systems with multiple pumps, valves, or sensors, ensuring that engineers can focus on control logic rather than low-level communication details.

  • M
    modiconguy November 13, 2025

    This article confuses Control Expert with Machine Expert. Almost nothing here is done the same way in Control Expert, and not once does the author mention Machine Expert.