Chapter 2: M221 Hardware

Introduction

The M221 Logic Controller and its expansion modules is the hardware that is configured and programmed with SoMachine Basic. This chapter looks at this hardware as a foundation for creating an application.

This Chapter Covers These Topics:
i. The M221 Logic Controller
ii. M221 Selection
iii. M221 Connectivity
 M221 Wiring
iv. Expansion
v. Cartridges

i.The M221 Logic Controller

The M221 Logic Controller is a small controller containing on-board I/O. It has serial and USB connectors and an Ethernet option. A SD card slot allows data transfer and a Run/Stop switch is fitted for program control. The unit also has two 0-10V analog inputs.

img2

Power supply for all M221 Brick Controllers is by 24VDC connected at the bottom of the unit. The standard M221 Logic Controller can be powered by either 24VDC or 100-240VAC.
Capabilities

The M221 Logic Controller has many features that differentiate it from other controllers on the market. These include:

 Small size - 70mm with 32 I/O
 5K instructions per millisecond
 High speed counters and pulse output
 SD card for data transfer
 On-line modification
 Real Time Clock
 .csv export/import of object names and descriptions
 Program via USB or Ethernet (where fitted)
 Serial port for Modbus or ASCII communication
 Two built-in analog inputs

These features mean that the M221 is highly flexible for most small applications. It is also easily configurable using SoMachine Basic.

Features of the M221
The appearance of the M221 Logic Controller will depend on the connector type and whether it has an Ethernet port. Three of the configurations are shown below.
sc16

1. System LEDs
2. I/O label information
3. I/O removable screw terminals
4. Clip lock for 35mm DIN rail
5. USB mini-B programming port
6. 24V DC power supply
7. Serial line port 2
8. Serial line port 1
9. Run/Stop switch
10. Analog input cover
11. 2 analog inputs
12. SD card port
13. TM3 bus connector
14. Plastic cover
15. Ethernet port
16. I/O removable spring terminals
17. I/O HE10 terminals

The pictures and list above shows the M221 Book Controller but the M221 Logic Controller shares the same basic features.

ii.M221 Selection
Product Code
The product code defines the options for the M221 Logic Controller and the fitted options can be determined from the code.

 The first five characters of the part number (TM221) define that it is a M221 Logic Controller
 The next character defines whether the controller is a M221 logic controller (C) or a M221 book controller (M)
 If this is followed by the letter 'E' the controller is fitted with an Ethernet port
 The next two numbers define the total amount of digital I/O.
 The next character defines whether the outputs are (R)elay or (T)ransistor
 For book controllers a G on the end indicates spring I/O connectors instead of screw connectors
 For book controllers a K on the end indicates HE10 connectors which must be used with the high density 32 I/O units due to space limitations.

M221 Logic Controller Selection
There are several options for the M221 Logic Controller to allow for the requirements of the application. These requirements will determine the number of inputs and outputs, the type of power supply and whether an Ethernet connection is required.

Controller Inputs Outputs Power Ethernet
TM221C16R 9 7 100-240VAC
TM221C16T 9 7 24VDC
TM221C24R 14 10 100-240VAC
TM221C24T 14 10 24VDC
TM221C40R 24 16 100-240VAC
TM221C40T 24 16 24VDC
TM221CE16R 9 7 100-240VAC
TM221CE16T 9 7 24VDC
TM221CE24R 14 10 100-240VAC
TM221CE24T 14 10 24VDC
TM221CE40R 24 16 100-240VAC
TM221CE40T 24 16 24VDC

There are several options for the M221 Book Controller to allow for the requirements of the application. These requirements will determine the number of inputs and outputs, the type of I/O connection and whether an Ethernet connection is required.

Controller Inputs Outputs Connection Ethernet
TM221M16R 8 8 Relay Screw
TM221M16RG 8 8 Relay Spring
TM221M16T 8 8 Transistor Screw
TM221M16TG 8 8 Transistor Spring
TM221M32TK 16 16 Transistor HE10
TM221ME16R 8 8 Relay Screw
TM221ME16RG 8 8 Relay Spring
TM221ME16T 8 8 Transistor Screw
TM221ME16TG 8 8 Transistor Spring
TM221ME32TK 16 16 Transistor HE10

iii.Connectivity
The M221 has several connection options which can be split into two types: I/O for process control and Data/Programming connections.

The I/O provided with the M221 will depend on the model and consist of:

 M221 logic controllers come with 9, 14 or 24 inputs
 M221 logic controllers come with 7,12 or 20 outputs
 M221 book controllers come with 8 inputs and 8 outputs, or 16 inputs and 16 outputs
 All M221 logic controllers come with removable screw terminal blocks
 M221 book controllers with 8 inputs and 8 outputs can be either screw or spring connector
 M221 book controllers with 16 inputs and 16 outputs use a HE10 connector
 Two independent 0-10V analog inputs
 Expansion bus for TM2 or TM3 I/O modules

The data connections are:

 USB port for programming
 SD card slot for data transfer
 Serial port for data transfer
 Optional Ethernet port for programming and data transfer

Special I/O
The M221 has I/O that can be used for special purposes.
The M221 Logic Controller has four fast inputs that can be used for high speed counters. These are configurable in the program. When these are being used for high speed pulse inputs the wiring should be shielded.

The first two outputs of an M221 with transistor outputs are fast outputs that can be used for pulse or PWM outputs. These can be used to control drives and other pulsed devices. When these are being used for high speed pulse outputs the wiring should be shielded.

M221 Logic controllers with relay outputs do not have high speed outputs but high speed counters can still be configured.

High Speed Counters
The M221 controller has two high speed counters that can be configured in five modes: Counter/down counter, Counter/down counter bi-phases, simple counter, simple down counter or frequency meter. These can be connected to the third and fourth input and configured to write to the third and fourth output of the controller.

Pulse Generator
The M221 controller has two pulse generators that can be configured to produce pulses or for Pulse Width Modulation. The timing has four preset values; 0.142ms, 0.57ms, 10ms or 1 second. These pulse generators when configured will write to the first and second digital outputs of the controller.

Ethernet Port
The Ethernet port is only available on the TM221ME logic controllers. It can be used for program upload/download as well as communicating to remote devices. The Ethernet port can communicate using Modbus TCP (salve) or Ethernet IP.

SD Card
The front of the M221 Logic Controller has a SD card slot. This allows a SD card to be used for data transfer and upgrading the firmware in the M221. The Schneider part number for the SD card is TMASD1

sc17

When the M221 powers up it will automatically check to see if a SD card is inserted.

Firmware Update
The files necessary for a firmware update are normally supplied in a zip file with each version of SoMachine Basic and should be used to update the M221 when a new version of SoMachine Basic is installed. Unzip the files and copy them to a SD card.

Ensure the power is off and the USB connection is removed before inserting the SD card. When the power is applied to the M221, it will check for a SD card and boot file. The boot file contains the command to copy the operating system files to the M221. These files will be copied and the M221 will perform a restart to load the new firmware.

Various LEDs will flash during the update process including the SD LED which may come on more than once. Leave the M221 until a steady state for the LEDs is seen for at least 15 seconds. The SD card can now be removed.

Note:
Do Not Remove The Power While The Firmware Update Is Taking Plase.

If the power is removed, the firmware will be corrupted. The M221 will not be able to perform another firmware update and must be returned to Schneider Electric for repair.

  • M221 Wiring

Power Supply
M221 logic controllers can be powered using 24VDC or 100-240VAC. All M221 book controllers are powered by 24V DC. The connector is on the bottom of the unit.

sc18

Analog Inputs
All M221 controllers have two independent 0-10V analog inputs. These are located under the cover at the top left of the unit (it has the QR code on it). The wiring is as shown.

sc19

I/O Connectors
There are three types of connector for the M221 Logic controller I/O.

Screw terminals allow each wire to be fitted and a screw will hold the wire in place.

Spring terminals allow the wires to be more easily inserted or extracted.

sc20

HE10 connectors are a standard connection for Schneider PLCs and controllers. They allow high density connection so are ideal for the 32 I/O version of the M221. This connector does require a special cable and different types are available - see the catalog for details of part numbers.

In all cases, the terminal block can be unplugged, allowing the wiring to be easily removed from the M221.

Input Wiring
The wiring for the 8 and 16 input versions of the M221 Logic Controller are shown below.
sc21--2-
sc22

The first two inputs are shown shielded as they can be used for high speed pulse inputs so should be protected from noise. If these are used as normal outputs, they need not be shielded.

Output Wiring
The wiring for the 8 and 16 output versions of the M221 Logic Controller are shown below.
sc22-1
sc23

The first two outputs are shown shielded as they can be used for high speed pulse outputs so should be protected from noise. If these are used as normal outputs, they need not be shielded.

For the relay output version of the M221, the outputs need not be shielded as they cannot be used for high speed pulse output.
sc24

iv.Expansion
I/O Modules
I/O modules can be added to the M221 controller to expand its capabilities.
sc25
There are two types of module that can be added.

TM2 modules are existing modules for Twido that can be used and allow the M221 to be compatible with Twido applications. This makes upgrading from the Twido to M221 simple especially when coupled with the Twido to M221 application conversion that is part of the SoMachine Basic software.

TM3 modules are a new range specifically designed for the M2xx range of Logic
Controllers to take advantage of the extended I/O expansion bus. They offer new capabilities that are not available to the Twido.

TM2 Digital Modules
TM2 Digital modules offer a range of I/O configurations with 8, 16 or 32 inputs, 8, 16 or 32 outputs and a mixture of input and outputs. As with the M221, the outputs can be either transistor or relay.

They come with removable screw, spring contact or MIL connectors, the last of which is used for the high density 32 I/O modules.

These modules are compatible with the Twido controller.

TM2 Analog Modules
TM2 Analog modules offer a range of I/O configurations with 2, 4 or 8 inputs, 1 or 2 outputs and a mixture of input and outputs. The inputs are designed for a range of field devices including thermocouples, NTC probes and PT100/PT1000. The outputs are configurable for either 0-10V DC or 4-20mA.

All come with removable screw terminal blocks except the PT100/PT1000 modules which are fitted with a RJ11 connector.

These modules are compatible with the Twido controller.

TM3 Digital Modules
TM3 Analog modules offer a range of analog inputs and outputs. They can be 2,4,or 8 input or 2 or 4 output. There is also a 4 input 2 output module for greater flexibility. Both inputs and outputs can be either voltage or current.

The TM3T modules also allow temperature input and can be 4 or 8 input. There is also a 2 input 1 output module that can be used for temperature inputs.

TM3 Expert Modules
There are two standard modules and four safety modules currently in the TM3 expert range.

The Tesys module allows connection to up to four Tesys motor starters and the transmitter receiver module allows the M221 I/O to be expanded even further by adding another 7 I/O modules. Only one transmitter receiver module can be used by a single M221.

The safety modules offer single function or dual function for CAT3 (SIL2) or CAT4 (SIL3).

Total I/O
Up to seven I/O modules can be added to the M221. These can be TM2 or TM3 modules or a mixture of both.

If one of the attached modules is a TM3 expansion module then another seven modules can be added. The M221 can control up to 144 I/O in total.

Note:
There is a limit on the number of relay outputs due to the power supplied by the CPU. See the data sheets for the individual CPUs for more information..

v.Cartridges
What are Cartridges?
Cartridges are a way of increasing the capabilities of the M221 Logic Controller By adding more I/O or connection options. They are also targeted at specific applications such as conveying, hoisting and packaging. They are attached to the front of the M221 Logic controller and provide options that are not available in either the TM2 or TM3 I/O.

Note:
The M221 Book Controller is unable to accept cartridge expansion and can only use TM2 or TM3 expansion modules.

Types of Cartridge
Cartridges allow additional analog I/O and communications options to be added to the M221 Logic Controller. The full list for step 2 is given below.

Cartridge Function
TMCAI2 2 analog or current inputs
TMCAQ2C 2 current outputs
TMCAQ2V 2 voltage outputs
TMC2CONV01 Serial line for conveying applications
TMC2HOIS01 2 analog voltage or current inputs for hoisting load cell
TMC2PACK01 2 analog voltage or current inputs for packaging
TMC2SL1 1 serial line
TMC2TT2 2 analog temperature inputs

Adding Cartridges
Physically, the cartridge is plugged on to the front of the M221 Logic Controller. A single cartridge can be added to the TM221C16X, TM221CE16X, TM221C24X and TM221CE24X controllers.
sc26
Two cartridges can be added to the TM221C40X or TM221CE40X controllers.
sc27

Configuring in SoMachine Basic
The cartridges are in the SoMachine Basic Library and can be added the same way as I/O modules.
sc28

Select the cartridge and drag it on to the M221 Logic Controller.