In the field of industrial automation, the replacement of control systems at the end of the equipment lifecycle is a common but highly challenging task. The Modicon M258 series logic controller launched by Schneider Electric, with its dual core processor, high-density I/O, embedded CANopen master station, and flexible network communication capabilities, is an ideal choice to replace old PLCs such as Modicon TSX Micro or third-party controllers. Whether it is packaging, lifting, conveying, textile or woodworking machinery, M258 can provide a complete solution from simple logic control to multi axis motion control.
This article starts from the perspective of engineer on-site selection and upgrade, systematically reviews the hardware architecture, embedded functions, communication options, expansion modules, and software configuration of Modicon M258, and provides selection suggestions and precautions based on typical application scenarios to help readers quickly complete the modernization transformation of the control system.
Product positioning and core advantages of Modicon M258
1.1 Product positioning
Modicon M258 belongs to Schneider Electric Machine Struxure ™ The core component of "flexible machine control" under the platform is designed specifically for original equipment manufacturers (OEMs). Its target applications include:
Packaging machinery (filling, labeling, sealing)
Lifting and hoisting equipment
Transportation and Storage System
Textile and woodworking machinery
Material handling and assembly line
Compared to early Modicon M238 or third-party small PLCs, M258 has significantly improved in computing speed, I/O expansion capability, and motion control.
1.2 Dual core processor architecture
M258 adopts a dual core processor:
Core 1: Dedicated to real-time execution of application code (logic, motion control, PID, etc.) without interference from communication tasks.
Core 2: Dedicated to handling communication tasks (Ethernet, CANopen, Modbus, Web servers, etc.) to ensure that communication loads do not affect control cycles.
This architecture enables M258 to maintain high response communication with HMI, drivers, and remote I/O while running complex programs.
1.3 Embedded I/O and Storage
M258 offers two basic model sizes, each integrated with:
42 or 66 point digital I/O (including 8 100kHz high-speed counter inputs and 4 reflection outputs)
4-channel analog input (12 bit resolution, voltage or current, limited to TM258xxxx4L model only)
64 MB RAM (Program and Data Storage)
128 MB Flash (Application and Data Backup)
This means that many small and medium-sized applications can be used directly without the need for additional I/O modules, significantly reducing system costs and cabinet space.
Comparison of Replacement and Selection of Old PLCs
2.1 Key points of replacement evaluation
When replacing discontinued controllers (such as Modicon TSX Micro, Siemens S7-200, Mitsubishi FX series) with Modicon M258, it is important to pay attention to the following matching items:
Assessment Item M258 Capability Precautions
The number of digital I/O points in the main body is 42 or 66 points, which can be expanded to 2400 points. To confirm whether the original system exceeds the main body I/O, an additional TM5 module is required
If the original system uses a higher frequency (above 200kHz) for the 8-channel 100kHz (single-phase or two-phase) high-speed counter, the TM5 high-speed counting module needs to be evaluated
Analog input body 4-channel 12 bit (optional) or extended 16 bit module. If the original system analog resolution is 14 bits or more, it is recommended to choose TM5 analog module
The maximum number of motion control axes is 16 (via CANopen). When the original system uses pulse output, Lexium 32 servo+Sercos or pulse control can be selected
Communication interfaces include Ethernet, Modbus serial port, CANopen, and Profibus DP (extension). Check the original fieldbus type and select TM5PCRS2/4 or TM5PCDPS module if necessary
2.2 Typical Replacement Cases
Case: A packaging line originally used Modicon TSX 37-10 PLC to control 5 Altivar frequency converters through CANopen, equipped with 20 point digital I/O and 2 analog inputs.
Upgrade plan:
Select TM258LF42DT4L (with CANopen master station, 42 digital I/O points, 4 analog inputs).
Retain the original CANopen bus and configure communication parameters with the frequency converter.
If the original digital I/O exceeds 42 points, add a TM5 digital expansion module.
Use SoMachine software to convert the original Ladder program (IL/LD/ST are compatible).
Benefits: Processing speed increased by more than 3 times, built-in web server for remote monitoring, and spare parts supply restored to normal.

Detailed explanation of embedded functions
3.1 High speed Counter (HSC)
M258 body integrates 8 high-speed counters, each with a maximum frequency of 100kHz, supporting:
Single phase counting (add/subtract direction)
Dual phase counting (orthogonal encoder, A/B phase)
Reflection output: When the count value reaches the preset threshold, it can directly trigger 4 high-speed outputs with minimal delay, suitable for scenarios such as fixed length cutting and position capture.