Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use PLC SCHNEIDER TM221CE40R: Examples, Pinouts, and Specs

Image of PLC SCHNEIDER TM221CE40R
Cirkit Designer LogoDesign with PLC SCHNEIDER TM221CE40R in Cirkit Designer

Introduction

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.

Explore Projects Built with PLC SCHNEIDER TM221CE40R

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
PID Temperature Control System with Thermocouple and SSR
Image of IR: A project utilizing PLC SCHNEIDER TM221CE40R in a practical application
This circuit is a temperature control system that uses a thermocouple to measure temperature and a PID controller to regulate it. The PID controller drives a solid-state relay (SSR) to control an external load, with power supplied through an AC inlet socket.
Cirkit Designer LogoOpen Project in Cirkit Designer
Modular Power Distribution System with Multiple SMPS Units and 120V Outlet
Image of Cellion-Tesla: A project utilizing PLC SCHNEIDER TM221CE40R in a practical application
This circuit is designed to convert 240V AC power to both 12V and 24V DC outputs using multiple SMPS units. Terminal blocks are used to organize and distribute the power, while a 120V outlet provides additional AC power access. The circuit is likely used for powering various electronic devices that require different voltage levels.
Cirkit Designer LogoOpen Project in Cirkit Designer
PT100 Temperature Sensor with Rocker Switch and Resettable Fuse
Image of soldering iron: A project utilizing PLC SCHNEIDER TM221CE40R in a practical application
This circuit is a basic power control system that uses a rocker switch to control the flow of 220V power through a resettable fuse and a PT100 temperature sensor. The switch allows the user to turn the power on or off, while the fuse provides overcurrent protection and the PT100 sensor can be used for temperature monitoring.
Cirkit Designer LogoOpen Project in Cirkit Designer
PLC-Controlled Power Window System with Infrared Sensing and Relay Module
Image of wiring FYP: A project utilizing PLC SCHNEIDER TM221CE40R in a practical application
This circuit is designed to control a motorized window system using a PLC (Programmable Logic Controller) and an array of sensors and switches. It includes power supplies for 12V and 24V DC, an MCB (Miniature Circuit Breaker) for protection, and a relay module interfaced with an Arduino for additional control logic. The PLC manages inputs from pushbuttons, a 3-position switch, infrared proximity sensors, and an emergency stop, and it controls outputs such as the motor speed controller, lamps, and solenoid valves.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with PLC SCHNEIDER TM221CE40R

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of IR: A project utilizing PLC SCHNEIDER TM221CE40R in a practical application
PID Temperature Control System with Thermocouple and SSR
This circuit is a temperature control system that uses a thermocouple to measure temperature and a PID controller to regulate it. The PID controller drives a solid-state relay (SSR) to control an external load, with power supplied through an AC inlet socket.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Cellion-Tesla: A project utilizing PLC SCHNEIDER TM221CE40R in a practical application
Modular Power Distribution System with Multiple SMPS Units and 120V Outlet
This circuit is designed to convert 240V AC power to both 12V and 24V DC outputs using multiple SMPS units. Terminal blocks are used to organize and distribute the power, while a 120V outlet provides additional AC power access. The circuit is likely used for powering various electronic devices that require different voltage levels.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of soldering iron: A project utilizing PLC SCHNEIDER TM221CE40R in a practical application
PT100 Temperature Sensor with Rocker Switch and Resettable Fuse
This circuit is a basic power control system that uses a rocker switch to control the flow of 220V power through a resettable fuse and a PT100 temperature sensor. The switch allows the user to turn the power on or off, while the fuse provides overcurrent protection and the PT100 sensor can be used for temperature monitoring.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of wiring FYP: A project utilizing PLC SCHNEIDER TM221CE40R in a practical application
PLC-Controlled Power Window System with Infrared Sensing and Relay Module
This circuit is designed to control a motorized window system using a PLC (Programmable Logic Controller) and an array of sensors and switches. It includes power supplies for 12V and 24V DC, an MCB (Miniature Circuit Breaker) for protection, and a relay module interfaced with an Arduino for additional control logic. The PLC manages inputs from pushbuttons, a 3-position switch, infrared proximity sensors, and an emergency stop, and it controls outputs such as the motor speed controller, lamps, and solenoid valves.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Industrial automation and process control
  • Machine control in manufacturing environments
  • Building automation systems
  • Conveyor belt systems
  • Monitoring and controlling HVAC systems
  • Small-scale SCADA (Supervisory Control and Data Acquisition) systems

Technical Specifications

Key Technical Details

Specification Value
Model Number 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 150 x 95 x 86 mm
Mounting DIN rail or panel mounting

Pin Configuration and Descriptions

The TM221CE40R has multiple I/O terminals for connecting sensors, actuators, and communication interfaces. Below is a summary of the pin configuration:

Digital Inputs

Pin Number Description Voltage Range
DI1-DI24 Digital Inputs 1 to 24 0-24 V DC

Digital Outputs

Pin Number Description Output Type
DO1-DO16 Digital Outputs 1 to 16 Relay (NO/NC)

Communication Ports

Port Description Protocol Supported
Ethernet Ethernet communication port Modbus TCP
Serial RS485 communication port Modbus RTU

Usage Instructions

How to Use the TM221CE40R in a Circuit

  1. Power Supply: Connect a 24 V DC power supply to the PLC's power input terminals. Ensure the power supply is stable and within the specified voltage range.
  2. Digital Inputs: Connect sensors or switches to the digital input terminals (DI1-DI24). Ensure the input voltage does not exceed 24 V DC.
  3. Digital Outputs: Connect actuators, relays, or other devices to the digital output terminals (DO1-DO16). Verify the output load is within the relay's rated capacity.
  4. Communication: Use the Ethernet or RS485 port to connect the PLC to a network or other devices. Configure the communication settings (e.g., IP address, baud rate) using the EcoStruxure Machine Expert - Basic software.
  5. Programming: Write and upload your control logic using the EcoStruxure Machine Expert - Basic software. The software supports ladder logic, function block diagrams, and structured text programming.

Important Considerations and Best Practices

  • Always verify the wiring connections before powering on the PLC to avoid damage.
  • Use proper shielding and grounding for communication cables to minimize interference.
  • Regularly back up your PLC program to prevent data loss.
  • Ensure the PLC is installed in a well-ventilated area to prevent overheating.
  • Follow all safety guidelines and standards for industrial automation systems.

Example Code for Modbus Communication with Arduino UNO

Below is an example of how to communicate with the TM221CE40R using Modbus RTU and an Arduino UNO:

#include <ModbusMaster.h>

// Instantiate ModbusMaster object
ModbusMaster node;

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  node.begin(1, Serial); // Set Modbus slave ID to 1 and use Serial for communication
}

void loop() {
  uint8_t result;
  uint16_t data;

  // Read holding register 40001 from the PLC
  result = node.readHoldingRegisters(0x0000, 1);
  
  if (result == node.ku8MBSuccess) {
    data = node.getResponseBuffer(0); // Get the value of the register
    Serial.print("Register Value: ");
    Serial.println(data); // Print the value to the serial monitor
  } else {
    Serial.println("Failed to read register"); // Print error message if read fails
  }

  delay(1000); // Wait 1 second before the next read
}

Notes:

  • Use a TTL-to-RS485 converter to connect the Arduino UNO to the TM221CE40R's RS485 port.
  • Configure the PLC's Modbus settings (e.g., slave ID, baud rate) to match the Arduino code.

Troubleshooting and FAQs

Common Issues and Solutions

  1. PLC Not Powering On

    • Cause: Incorrect or unstable power supply.
    • Solution: Verify the power supply voltage is 24 V DC and properly connected.
  2. Digital Inputs Not Responding

    • Cause: Faulty wiring or incompatible input voltage.
    • Solution: Check the wiring and ensure the input voltage is within the 0-24 V DC range.
  3. Communication Failure

    • Cause: Incorrect communication settings or faulty cables.
    • Solution: Verify the communication protocol, baud rate, and cable connections. Use proper shielding for RS485 cables.
  4. Program Not Executing

    • Cause: Errors in the PLC program or improper upload.
    • Solution: Debug the program using the EcoStruxure Machine Expert - Basic software and re-upload it.

FAQs

Q: Can the TM221CE40R be used with third-party sensors and actuators?
A: Yes, as long as the sensors and actuators are compatible with the PLC's input/output specifications.

Q: What is the maximum cable length for RS485 communication?
A: The maximum recommended cable length for RS485 is 1200 meters, depending on the baud rate and cable quality.

Q: Is the TM221CE40R suitable for outdoor use?
A: No, the PLC is designed for indoor use in a controlled environment. Use an appropriate enclosure for outdoor applications.

Q: Can I expand the I/O of the TM221CE40R?
A: Yes, the TM221CE40R supports expansion modules to increase the number of I/O points.

This documentation provides a comprehensive guide to using the Schneider TM221CE40R PLC effectively. For further assistance, refer to the official Schneider Electric user manual or contact technical support.