

The Schneider TM221CE40R is a programmable logic controller (PLC) designed for automation and control applications. It features a compact design, integrated I/O (Input/Output), and supports various communication protocols, making it suitable for small to medium-sized industrial tasks. This PLC is part of Schneider Electric's Modicon M221 series, known for its reliability, flexibility, and ease of use.








| Specification | Value |
|---|---|
| Model | TM221CE40R |
| Supply Voltage | 24 V DC |
| Number of Digital Inputs | 24 |
| Number of Digital Outputs | 16 (Relay outputs) |
| Communication Protocols | Ethernet, Modbus TCP, Serial (RS485) |
| Programming Software | EcoStruxure Machine Expert - Basic |
| Memory | 256 KB for application storage |
| Operating Temperature Range | -10°C to +55°C |
| Dimensions | 95 x 90 x 70 mm |
| Mounting | DIN Rail |
The TM221CE40R features multiple I/O terminals for connecting sensors, actuators, and other devices. Below is the pin configuration:
| Pin Number | Description | Voltage Range |
|---|---|---|
| I0 - I23 | Digital Inputs (24 channels) | 0-24 V DC |
| Pin Number | Description | Output Type |
|---|---|---|
| Q0 - Q15 | Digital Outputs (16 channels) | Relay (NO/NC) |
| Port Name | Description | Protocol Supported |
|---|---|---|
| Ethernet | Ethernet Communication Port | Modbus TCP |
| Serial | RS485 Communication Port | Modbus RTU |
Below is an example of how to connect the TM221CE40R to an Arduino UNO using Modbus RTU over RS485:
#include <ModbusMaster.h>
// Instantiate ModbusMaster object
ModbusMaster node;
void setup() {
Serial.begin(9600); // Initialize serial communication
node.begin(1, Serial); // Set Modbus slave ID to 1
}
void loop() {
uint8_t result;
uint16_t data;
// Read a holding register (e.g., register 40001)
result = node.readHoldingRegisters(0x0000, 1);
if (result == node.ku8MBSuccess) {
data = node.getResponseBuffer(0); // Get the data from the register
Serial.print("Register Value: ");
Serial.println(data);
} else {
Serial.println("Failed to read register");
}
delay(1000); // Wait 1 second before the next read
}
Note: Use an RS485 module to connect the Arduino UNO to the TM221CE40R. Ensure proper wiring and termination resistors for reliable communication.
PLC Not Powering On
Inputs Not Responding
Outputs Not Activating
Communication Failure
Program Upload Fails
Q: Can the TM221CE40R be used in high-temperature environments?
A: The operating temperature range is -10°C to +55°C. For higher temperatures, additional cooling or ventilation may be required.
Q: What software is required to program the TM221CE40R?
A: The PLC is programmed using Schneider Electric's EcoStruxure Machine Expert - Basic software.
Q: Does the TM221CE40R support analog inputs/outputs?
A: No, the TM221CE40R only supports digital inputs and outputs. For analog I/O, consider other models in the Modicon M221 series.
Q: Can I connect the TM221CE40R to an HMI?
A: Yes, the PLC supports communication with HMIs via Modbus TCP or Modbus RTU protocols.
Q: How do I reset the PLC to factory settings?
A: Refer to the user manual for detailed instructions on performing a factory reset. Typically, this involves using the hardware reset button or software tools.