M221 USer Guide
M221 USer Guide
M221 USer Guide
EIO0000002417 04/2020
Modicon M221
Logic Controller
User Guide
11/2020
EIO0000000976.02
www.schneider-electric.com
Table of Contents
EIO0000000976.02 11/2020 2
Modicon M221
EIO0000003297 02/2020
Modicon M221
Logic Controller
Programming Guide
02/2020
EIO0000003297.01
www.schneider-electric.com
The information provided in this documentation contains general descriptions and/or technical
characteristics of the performance of the products contained herein. This documentation is not
intended as a substitute for and is not to be used for determining suitability or reliability of these
products for specific user applications. It is the duty of any such user or integrator to perform the
appropriate and complete risk analysis, evaluation and testing of the products with respect to the
relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or
subsidiaries shall be responsible or liable for misuse of the information contained herein. If you
have any suggestions for improvements or amendments or have found errors in this publication,
please notify us.
You agree not to reproduce, other than for your own personal, noncommercial use, all or part of
this document on any medium whatsoever without permission of Schneider Electric, given in
writing. You also agree not to establish any hypertext links to this document or its content.
Schneider Electric does not grant any right or license for the personal and noncommercial use of
the document or its content, except for a non-exclusive license to consult it on an "as is" basis, at
your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when installing and
using this product. For reasons of safety and to help ensure compliance with documented system
data, only the manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant
instructions must be followed.
Failure to use Schneider Electric software or approved software with our hardware products may
result in injury, harm, or improper operating results.
Failure to observe this information can result in injury or equipment damage.
© 2020 Schneider Electric. All rights reserved.
2 EIO0000003297 02/2020
Table of Contents
Safety Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Part I Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Chapter 1 About the Modicon M221 Logic Controller . . . . . . . . . . . 19
TM221C Logic Controller Description . . . . . . . . . . . . . . . . . . . . . . . . . 20
TM221M Logic Controller Description . . . . . . . . . . . . . . . . . . . . . . . . . 26
Chapter 2 Configuration Features . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2.1 Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Object Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Addressing I/O Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Maximum Number of Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
2.2 Task Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Tasks and Scan Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Maximum Number of Tasks and Priorities. . . . . . . . . . . . . . . . . . . . . . 53
2.3 Controller States and Behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Controller States Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Controller States Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Controller State Transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Persistent Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Output Behavior. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
2.4 Post Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Post Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Post Configuration File Management . . . . . . . . . . . . . . . . . . . . . . . . . 72
Part II Configuring the M221 Logic Controller . . . . . . . . . . . 75
Chapter 3 How to Configure a Controller . . . . . . . . . . . . . . . . . . . . 77
Building a Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Optional I/O Expansion Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Configuring the M221 Logic Controller . . . . . . . . . . . . . . . . . . . . . . . . 87
Updating Firmware using Executive Loader Wizard . . . . . . . . . . . . . . 88
Chapter 4 Embedded Input/Output Configuration . . . . . . . . . . . . . . 89
4.1 Digital Input Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Configuring Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
EIO0000003297 02/2020 3
4.2 Digital Output Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Configuring Digital Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
4.3 Analog Input Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Configuring Analog Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
4.4 High Speed Counter Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Configuring High Speed Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Configuring Dual Phase and Single Phase Counters . . . . . . . . . . . . . 103
Configuring Frequency Meter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
4.5 Pulse Generator Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Configuring Pulse Generators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Configuring Pulse (%PLS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Configuring Pulse Width Modulation (%PWM). . . . . . . . . . . . . . . . . . . 114
Configuring Pulse Train Output (%PTO) . . . . . . . . . . . . . . . . . . . . . . . 116
Configuring Frequency Generator (%FREQGEN) . . . . . . . . . . . . . . . . 119
Chapter 5 I/O Bus Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
I/O Configuration General Description . . . . . . . . . . . . . . . . . . . . . . . . . 122
Maximum Hardware Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
Configuring Cartridges and Expansion Modules . . . . . . . . . . . . . . . . . 130
Chapter 6 Embedded Communication Configuration . . . . . . . . . . . . 131
6.1 Ethernet Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Configuring Ethernet Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Configuring Modbus TCP or Modbus TCP IOScanner . . . . . . . . . . . . 140
Configuring EtherNet/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
6.2 Serial Line Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
Configuring Serial Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
Configuring Modbus and ASCII Protocols . . . . . . . . . . . . . . . . . . . . . . 175
Configuring the TMH2GDB Remote Graphic Display . . . . . . . . . . . . . 179
Configuring Modbus Serial IOScanner. . . . . . . . . . . . . . . . . . . . . . . . . 180
Adding a Device on the Modbus Serial IOScanner . . . . . . . . . . . . . . . 181
6.3 Supported Modbus Function Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . 190
Supported Modbus Function Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . 190
6.4 State Machine Diagram for Modbus IOscanner . . . . . . . . . . . . . . . . . . 192
State Machine Diagram for Modbus IOscanner . . . . . . . . . . . . . . . . . . 192
Chapter 7 SD Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
File Management Operations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
SD Card Supported File Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
Clone Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Firmware Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
4 EIO0000003297 02/2020
Application Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 206
Post Configuration Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Error Log Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Memory Management: Backing Up and Restoring Controller Memory 213
Part III Programming the M221 Logic Controller . . . . . . . . . 215
Chapter 8 I/O Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Digital Inputs (%I) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Digital Outputs (%Q) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Analog Inputs (%IW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220
Analog Outputs (%QW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Chapter 9 Network Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Input Assembly (EtherNet/IP) Objects (%QWE) . . . . . . . . . . . . . . . . . 224
Output Assembly (EtherNet/IP) Objects (%IWE). . . . . . . . . . . . . . . . . 226
Input Registers (Modbus TCP) Objects (%QWM) . . . . . . . . . . . . . . . . 227
Output Registers (Modbus TCP) Objects (%IWM) . . . . . . . . . . . . . . . 229
Digital Input (IOScanner) Objects (%IN) . . . . . . . . . . . . . . . . . . . . . . . 230
Digital Output (IOScanner) Objects (%QN) . . . . . . . . . . . . . . . . . . . . . 232
Input Register (IOScanner) Objects (%IWN) . . . . . . . . . . . . . . . . . . . . 234
Output Register (IOScanner) Objects (%QWN) . . . . . . . . . . . . . . . . . 236
Modbus IOScanner Network Diagnostic Codes (%IWNS) . . . . . . . . . 238
Chapter 10 System Objects. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
System Bits (%S). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
System Words (%SW) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
Input Channel Status (%IWS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277
Output Channel Status (%QWS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
Glossary ......................................... 281
Index ......................................... 287
EIO0000003297 02/2020 5
6 EIO0000003297 02/2020
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with the device
before trying to install, operate, service, or maintain it. The following special messages may appear
throughout this documentation or on the equipment to warn of potential hazards or to call attention
to information that clarifies or simplifies a procedure.
EIO0000003297 02/2020 7
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by qualified
personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of
the use of this material.
A qualified person is one who has skills and knowledge related to the construction and operation
of electrical equipment and its installation, and has received safety training to recognize and avoid
the hazards involved.
8 EIO0000003297 02/2020
About the Book
At a Glance
Document Scope
This document describes the configuration and programming of the Modicon M221 Logic
Controller for EcoStruxure Machine Expert - Basic. For further information, refer to the separate
documents provided in the EcoStruxure Machine Expert - Basic online help.
Validity Note
This document has been updated for the release of EcoStruxureTM Machine Expert - Basic V1.1.
Related Documents
EIO0000003297 02/2020 9
Title of Documentation Reference Number
Modicon M221 Logic Controller - Hardware Guide EIO0000003313 (ENG)
EIO0000003314 (FRE)
EIO0000003315 (GER)
EIO0000003316 (SPA)
EIO0000003317 (ITA)
EIO0000003318 (CHS)
EIO0000003319 (POR)
EIO0000003320 (TUR)
TMH2GDB Remote Graphic Display - User Guide EIO0000003321 (ENG)
EIO0000003322 (FRA)
EIO0000003323 (GER)
EIO0000003324 (SPA)
EIO0000003325 (ITA)
EIO0000003326 (CHS)
EIO0000003327 (POR)
EIO0000003328 (TUR)
Modicon TMC2 Cartridge - Programming Guide EIO0000003329 (ENG)
EIO0000003330 (FRE)
EIO0000003331 (GER)
EIO0000003332 (SPA)
EIO0000003333 (ITA)
EIO0000003334 (CHS)
EIO0000003335 (POR)
EIO0000003336 (TUR)
Modicon TMC2 Cartridge - Hardware Guide EIO0000003337 (ENG)
EIO0000003338 (FRE)
EIO0000003339 (GER)
EIO0000003340 (SPA)
EIO0000003341 (ITA)
EIO0000003342 (CHS)
EIO0000003343 (POR)
EIO0000003344(TUR)
Modicon TM3 Expansion Modules Configuration - Programming EIO0000003345 (ENG)
Guide EIO0000003346 (FRE)
EIO0000003347 (GER)
EIO0000003348 (SPA)
EIO0000003349 (ITA)
EIO0000003350 (CHS)
EIO0000003351 (POR)
EIO0000003352 (TUR)
10 EIO0000003297 02/2020
Title of Documentation Reference Number
Modicon TM3 Digital I/O Modules - Hardware Guide EIO0000003125 (ENG)
EIO0000003126 (FRE)
EIO0000003127 (GER)
EIO0000003128 (SPA)
EIO0000003129 (ITA)
EIO0000003130 (CHS)
EIO0000003424 (POR)
EIO0000003425 (TUR)
Modicon TM3 Analog I/O Modules - Hardware Guide EIO0000003131 (ENG)
EIO0000003132 (FRE)
EIO0000003133 (GER)
EIO0000003134 (SPA)
EIO0000003135 (ITA)
EIO0000003136 (CHS)
EIO0000003426 (POR)
EIO0000003427 (TUR)
Modicon TM3 Expert Modules - Hardware Guide EIO0000003137 (ENG)
EIO0000003138 (FRE)
EIO0000003139 (GER)
EIO0000003140 (SPA)
EIO0000003141 (ITA)
EIO0000003142 (CHS)
EIO0000003428 (POR)
EIO0000003429 (TUR)
Modicon TM3 Safety Modules - Hardware Guide EIO0000003353 (ENG)
EIO0000003354 (FRE)
EIO0000003355 (GER)
EIO0000003356 (SPA)
EIO0000003357 (ITA)
EIO0000003358 (CHS)
EIO0000003359 (POR)
EIO0000003360 (TUR)
Modicon TM3 Transmitter and Receiver Modules - Hardware EIO0000003143 (ENG)
Guide EIO0000003144 (FRE)
EIO0000003145 (GER)
EIO0000003146 (SPA)
EIO0000003147 (ITA)
EIO0000003148 (CHS)
EIO0000003430 (POR)
EIO0000003431 (TUR)
Modicon TM2 Expansion Modules Configuration - Programming EIO0000003432 (ENG)
Guide EIO0000003433 (FRE)
EIO0000003434 (GER)
EIO0000003435 (SPA)
EIO0000003436 (ITA)
EIO0000003437 (CHS)
EIO0000003297 02/2020 11
Title of Documentation Reference Number
Modicon TM2 Digital I/O Modules - Hardware Guide EIO0000000028 (ENG)
EIO0000000029 (FRE)
EIO0000000030 (GER)
EIO0000000031 (SPA)
EIO0000000032 (ITA)
EIO0000000033 (CHS)
Modicon TM2 Analog I/O Modules - Hardware Guide EIO0000000034 (ENG)
EIO0000000035 (FRE)
EIO0000000036 (GER)
EIO0000000037 (SPA)
EIO0000000038 (ITA)
EIO0000000039 (CHS)
SR2MOD02 and SR2MOD03 Wireless Modem - User Guide EIO0000001575 (ENG)
You can download these technical publications and other technical information from our website
at https://www.se.com/ww/en/download/.
The characteristics that are described in the present document, as well as other related
documents, should be the same as those characteristics that appear online. In line with our policy
of constant improvement, we may revise content over time to improve clarity and accuracy. If you
see a difference between the document and online information, use the online information as your
reference.
12 EIO0000003297 02/2020
Product Related Information
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths
and, for certain critical control functions, provide a means to achieve a safe state during and
after a path failure. Examples of critical control functions are emergency stop and overtravel
stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the
implications of unanticipated transmission delays or failures of the link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1
For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest
edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003297 02/2020 13
Terminology Derived from Standards
The technical terms, terminology, symbols and the corresponding descriptions in this manual, or
that appear in or on the products themselves, are generally derived from the terms or definitions
of international standards.
In the area of functional safety systems, drives and general automation, this may include, but is not
limited to, terms such as safety, safety function, safe state, fault, fault reset, malfunction, failure,
error, error message, dangerous, etc.
Among others, these standards include:
Standard Description
IEC 61131-2:2007 Programmable controllers, part 2: Equipment requirements and tests.
ISO 13849-1:2015 Safety of machinery: Safety related parts of control systems.
General principles for design.
EN 61496-1:2013 Safety of machinery: Electro-sensitive protective equipment.
Part 1: General requirements and tests.
ISO 12100:2010 Safety of machinery - General principles for design - Risk assessment and risk
reduction
EN 60204-1:2006 Safety of machinery - Electrical equipment of machines - Part 1: General
requirements
ISO 14119:2013 Safety of machinery - Interlocking devices associated with guards - Principles
for design and selection
ISO 13850:2015 Safety of machinery - Emergency stop - Principles for design
IEC 62061:2015 Safety of machinery - Functional safety of safety-related electrical, electronic,
and electronic programmable control systems
IEC 61508-1:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: General requirements.
IEC 61508-2:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Requirements for electrical/electronic/programmable
electronic safety-related systems.
IEC 61508-3:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Software requirements.
IEC 61784-3:2016 Industrial communication networks - Profiles - Part 3: Functional safety
fieldbuses - General rules and profile definitions.
2006/42/EC Machinery Directive
2014/30/EU Electromagnetic Compatibility Directive
2014/35/EU Low Voltage Directive
14 EIO0000003297 02/2020
In addition, terms used in the present document may tangentially be used as they are derived from
other standards such as:
Standard Description
IEC 60034 series Rotating electrical machines
IEC 61800 series Adjustable speed electrical power drive systems
IEC 61158 series Digital data communications for measurement and control – Fieldbus for use in
industrial control systems
Finally, the term zone of operation may be used in conjunction with the description of specific
hazards, and is defined as it is for a hazard zone or danger zone in the Machinery Directive
(2006/42/EC) and ISO 12100:2010.
NOTE: The aforementioned standards may or may not apply to the specific products cited in the
present documentation. For more information concerning the individual standards applicable to the
products described herein, see the characteristics tables for those product references.
EIO0000003297 02/2020 15
16 EIO0000003297 02/2020
Modicon M221
Introduction
EIO0000003297 02/2020
Part I
Introduction
Introduction
Overview
This part provides general information about the Modicon M221 Logic Controller and its
configuration and programming features.
EIO0000003297 02/2020 17
Introduction
18 EIO0000003297 02/2020
Modicon M221
About the Modicon M221 Logic Controller
EIO0000003297 02/2020
Chapter 1
About the Modicon M221 Logic Controller
EIO0000003297 02/2020 19
About the Modicon M221 Logic Controller
Overview
The TM221C Logic Controller has various powerful features and can service a wide range of
applications.
Software configuration, programming, and commissioning are accomplished with the EcoStruxure
Machine Expert - Basic software described in the EcoStruxure Machine Expert - Basic Operating
Guide (see EcoStruxure Machine Expert - Basic, Operating Guide) and the M221 Logic Controller
- Programming Guide.
Programming Languages
The M221 Logic Controller is configured and programmed with the EcoStruxure Machine Expert -
Basic software, which supports the following IEC 61131-3 programming languages:
IL: Instruction List
LD: Ladder Diagram
Grafcet (List)
Grafcet (SFC)
Power Supply
The power supply of the TM221C Logic Controller is 24 Vdc (see Modicon M221 Logic Controller,
Hardware Guide) or 100...240 Vac (see Modicon M221 Logic Controller, Hardware Guide).
Run/Stop
The M221 Logic Controller can be operated externally by the following:
a hardware Run/Stop switch (see Modicon M221 Logic Controller, Hardware Guide)
a Run/Stop (see Modicon M221 Logic Controller, Hardware Guide) operation by a dedicated
digital input, defined in the software configuration (for more information, refer to Configuring
Digital Inputs (see page 90).)
EcoStruxure Machine Expert - Basic software (for more information, refer to Toolbar
(see EcoStruxure Machine Expert - Basic, Operating Guide)).
a TMH2GDB Remote Graphic Display (for more information, refer to Controller State Menu
(see Modicon TMH2GDB, Remote Graphic Display, User Guide)).
20 EIO0000003297 02/2020
About the Modicon M221 Logic Controller
Memory
This table describes the different types of memory:
Embedded Inputs/Outputs
The following embedded I/O types are available, depending on the controller reference:
Regular inputs
Fast inputs associated with counters
Regular sink/source transistor outputs
Fast sink/source transistor outputs associated with pulse generators
Relay outputs
Analog inputs
Removable Storage
The M221 Logic Controllers include an embedded SD card slot (see Modicon M221 Logic
Controller, Hardware Guide).
The Modicon M221 Logic Controller allows the following types of file management with an SD card:
Clone management (see page 200): back up the application, firmware, and post configuration
(if it exists) of the logic controller
Firmware management (see page 202): download firmware to the logic controller, to a
TMH2GDB Remote Graphic Display , or to TM3 expansion modules
Application management (see page 206): back up and restore the logic controller application,
or copy it to another logic controller of the same reference
Post configuration management (see page 208): add, change, or delete the post configuration
file of the logic controller
Error log management (see page 210): back up or delete the error log file of the logic controller
Memory management (see page 213): back up and restore memory bits and words from a
controller
EIO0000003297 02/2020 21
About the Modicon M221 Logic Controller
Reference Digital Inputs Digital Outputs Analog Communication Ports Power Supply
Inputs
TM221C16R 5 regular inputs(1) 7 relay outputs Yes 1 serial line port 100...240 Vac
(see Modicon 4 fast inputs 1 USB programming
M221 Logic (HSC)(2) port
Controller,
Hardware
Guide)
TM221CE16R Yes 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
TM221C16T 5 regular inputs(1) Source outputs Yes 1 serial line port 24 Vdc
(see Modicon 4 fast inputs 5 regular transistor outputs 1 USB programming
M221 Logic (HSC) (2) 2 fast outputs port
Controller, (PLS/PWM/PTO/FREQGEN)(3)
Hardware
Guide)
TM221CE16T Yes 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
TM221C16U 5 regular inputs(1) Sink outputs Yes 1 serial line port 24 Vdc
4 fast inputs 5 regular transistor outputs 1 USB programming
(HSC) (2) 2 fast outputs port
TM221CE16U (PLS/PWM/PTO/FREQGEN)(3) 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
NOTE: The TM221C Logic Controller uses removable screw terminal blocks.
(1) The regular inputs have a maximum frequency of 5 kHz.
(2) The fast inputs can be used either as regular inputs or as fast inputs for counting or event functions.
(3) The fast transistor outputs can be used either as regular transistor outputs, for PLS, PWM, PTO, or FREQGEN
functions, or reflex outputs for HSC.
22 EIO0000003297 02/2020
About the Modicon M221 Logic Controller
Reference Digital Inputs Digital Outputs Analog Communication Ports Power Supply
Inputs
TM221C24R 10 regular 10 relay outputs Yes 1 serial line port 100...240 Vac
(see Modicon inputs(1) 1 USB programming
M221 Logic 4 fast inputs port
Controller, (HSC)(2)
Hardware
Guide)
TM221CE24R Yes 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
TM221C24T Source outputs Yes 1 serial line port 24 Vdc
(see Modicon 8 regular transistor outputs 1 USB programming
M221 Logic 2 fast outputs port
Controller, (PLS/PWM/PTO/FREQGEN)(3)
Hardware
Guide)
TM221CE24T Yes 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
TM221C24U 10 regular Sink outputs Yes 1 serial line port 24 Vdc
inputs(1) 8 regular transistor outputs 1 USB programming
4 fast inputs 2 fast outputs port
TM221CE24U (HSC)(2) (PLS/PWM/PTO/FREQGEN)(3) Yes 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
NOTE: The TM221C Logic Controller uses removable screw terminal blocks.
(1) The regular inputs have a maximum frequency of 5 kHz.
(2) The fast inputs can be used either as regular inputs or as fast inputs for counting or event functions.
(3) The fast transistor outputs can be used either as regular transistor outputs, for PLS, PWM, PTO, or FREQGEN
functions, or reflex outputs for HSC.
EIO0000003297 02/2020 23
About the Modicon M221 Logic Controller
Reference Digital Inputs Digital Outputs Analog Communication Ports Power Supply
Inputs
TM221C40R 20 regular 16 relay outputs Yes 1 serial line port 100...240 Vac
(see Modicon inputs(1) 1 USB programming
M221 Logic 4 fast inputs port
Controller, (HSC)(2)
Hardware
Guide)
TM221CE40R Yes 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
TM221C40T Source outputs Yes 1 serial line port 24 Vdc
(see Modicon 14 regular transistor outputs 1 USB programming
M221 Logic 2 fast outputs port
Controller, (PLS/PWM/PTO/FREQGEN)(3)
Hardware
Guide)
TM221CE40T Yes 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
TM221C40U 20 regular Sink outputs Yes 1 serial line port 24 Vdc
(see Modicon inputs(1) 12 regular transistor outputs 1 USB programming
M221 Logic 4 fast inputs 4 fast outputs port
Controller, (HSC)(2) (PLS/PWM/PTO/FREQGEN)(3)
Hardware
Guide)
TM221CE40U Yes 1 serial line port
(see Modicon 1 USB programming
M221 Logic port
Controller, 1 Ethernet port
Hardware
Guide)
NOTE: The TM221C Logic Controller uses removable screw terminal blocks.
(1) The regular inputs have a maximum frequency of 5 kHz.
(2) The fast inputs can be used either as regular inputs or as fast inputs for counting or event functions.
(3) The fast transistor outputs can be used either as regular transistor outputs, for PLS, PWM, PTO, or FREQGEN
functions, or reflex outputs for HSC.
24 EIO0000003297 02/2020
About the Modicon M221 Logic Controller
Delivery Content
The following figure presents the content of the delivery for a TM221C Logic Controller:
EIO0000003297 02/2020 25
About the Modicon M221 Logic Controller
Overview
The TM221M Logic Controller has various powerful features and can service a wide range of
applications.
Software configuration, programming, and commissioning are accomplished with the EcoStruxure
Machine Expert - Basic software described in the EcoStruxure Machine Expert - Basic Operating
Guide (see EcoStruxure Machine Expert - Basic, Operating Guide) and the M221 Logic Controller
- Programming Guide.
Programming Languages
The M221 Logic Controller is configured and programmed with the EcoStruxure Machine Expert -
Basic software, which supports the following IEC 61131-3 programming languages:
IL: Instruction List
LD: Ladder Diagram
Grafcet (List)
Grafcet (SFC)
Power Supply
The power supply of the TM221M Logic Controller is 24 Vdc (see Modicon M221 Logic Controller,
Hardware Guide).
Run/Stop
The M221 Logic Controller can be operated externally by the following:
a hardware Run/Stop switch (see Modicon M221 Logic Controller, Hardware Guide)
a Run/Stop (see Modicon M221 Logic Controller, Hardware Guide) operation by a dedicated
digital input, defined in the software configuration (for more information, refer to Configuring
Digital Inputs (see page 90))
EcoStruxure Machine Expert - Basic software (for more information, refer to Toolbar
(see EcoStruxure Machine Expert - Basic, Operating Guide)).
a TMH2GDB Remote Graphic Display (for more information, refer to Controller State Menu).
26 EIO0000003297 02/2020
About the Modicon M221 Logic Controller
Memory
This table describes the different types of memory:
Embedded Inputs/Outputs
The following embedded I/O types are available, depending on the controller reference:
Regular inputs
Fast inputs (HSC)
Regular transistor outputs
Fast transistor outputs (PLS/PWM/PTO/FREQGEN)
Relay outputs
Analog inputs
Removable Storage
The M221 Logic Controllers include an embedded SD card slot (see Modicon M221 Logic
Controller, Hardware Guide).
The Modicon M221 Logic Controller allows the following types of file management with an SD card:
Clone management (see page 200): back up the application, firmware, and post configuration
(if it exists) of the logic controller
Firmware management (see page 202): download firmware updates directly to the logic
controller, and download firmware to a TMH2GDB Remote Graphic Display
Application management (see page 206): back up and restore the logic controller application,
or copy it to another logic controller of the same reference
Post configuration management (see page 208): add, change, or delete the post configuration
file of the logic controller
Error log management (see page 210): back up or delete the error log file of the logic controller
Memory management (see page 213): backup/restore of memory bits and words from a
controller
EIO0000003297 02/2020 27
About the Modicon M221 Logic Controller
28 EIO0000003297 02/2020
About the Modicon M221 Logic Controller
EIO0000003297 02/2020 29
About the Modicon M221 Logic Controller
Delivery Content
The following figure presents the content of the delivery for a TM221M Logic Controller:
30 EIO0000003297 02/2020
Modicon M221
Configuration Features
EIO0000003297 02/2020
Chapter 2
Configuration Features
Configuration Features
Introduction
This chapter provides information related to M221 Logic Controller memory mapping, task, states,
behaviors, objects, and functions. The topics explained in this chapter allow the operator to
understand the featured specifications of M221 Logic Controller that are primarily needed to
configure and program the controller in EcoStruxure Machine Expert - Basic.
EIO0000003297 02/2020 31
Configuration Features
Section 2.1
Objects
Objects
32 EIO0000003297 02/2020
Configuration Features
Objects
Overview
In EcoStruxure Machine Expert - Basic, the term object is used to represent an area of logic
controller memory reserved for use by an application. Objects can be:
Simple software variables, such as memory bits and words
Addresses of digital or analog inputs and outputs
Controller-internal variables, such as system words and system bits
Predefined system functions or function blocks, such as timers and counters.
Controller memory is either pre-allocated for certain object types, or automatically allocated when
an application is downloaded to the logic controller.
Objects can only be addressed by a program once memory has been allocated. Objects are
addressed using the prefix %. For example, %MW12 is the address of a memory word, %Q0.3 is the
address of an embedded digital output, and %TM0 is the address of a Timer function block.
EIO0000003297 02/2020 33
Configuration Features
Object Types
Introduction
The language object types for the M221 Logic Controller are described in the following table:
34 EIO0000003297 02/2020
Configuration Features
EIO0000003297 02/2020 35
Configuration Features
36 EIO0000003297 02/2020
Configuration Features
EIO0000003297 02/2020 37
Configuration Features
38 EIO0000003297 02/2020
Configuration Features
Memory objects and software objects are generic objects used in EcoStruxure Machine Expert -
Basic, whereas system objects and I/O objects are controller-specific. All controller-specific objects
are discussed in the Programming (see page 215) section.
For programming details of memory objects, software objects, and communication objects, refer
to the EcoStruxure Machine Expert - Basic Generic Functions Library Guide.
For programming details of PID, Drive, and PTO objects, refer to the Advanced Functions Library
Guide.
For more information on user-defined functions and user-defined function blocks, refer to
EcoStruxure Machine Expert - Basic Operating Guide (see EcoStruxure Machine Expert - Basic,
Operating Guide).
EIO0000003297 02/2020 39
Configuration Features
Addressing Examples
This table presents addressing examples for various object types:
40 EIO0000003297 02/2020
Configuration Features
EIO0000003297 02/2020 41
Configuration Features
42 EIO0000003297 02/2020
Configuration Features
EIO0000003297 02/2020 43
Configuration Features
44 EIO0000003297 02/2020
Configuration Features
EIO0000003297 02/2020 45
Configuration Features
46 EIO0000003297 02/2020
Configuration Features
EIO0000003297 02/2020 47
Configuration Features
48 EIO0000003297 02/2020
Configuration Features
Section 2.2
Task Structure
Task Structure
EIO0000003297 02/2020 49
Configuration Features
Overview
The Modicon TM221M Logic Controller supports the following task types:
Master task
Periodic task
Event task
The master tasks can be configured in either of the following scan modes:
Freewheeling mode
Periodic mode
For more information, refer to the Configuring Program Behavior and Tasks (see EcoStruxure
Machine Expert - Basic, Operating Guide).
Tasks
Master tasks are triggered by continuous cyclic scanning or by the software timers by specifying
the scan period 1...150 ms (default 100 ms) in the periodic mode.
Periodic tasks are triggered by software timers, so are configured by specifying the scan period
1...255 ms (default 255 ms) in the periodic mode.
Event tasks are triggered by the physical inputs or the HSC function blocks. These events are
associated with embedded digital inputs (%I0.2...%I0.5) (rising, falling or both edges) or with the
high speed counters (when the count reaches the high speed counter threshold). You can
configure up to two events for each HSC function block, depending on the configuration.
You must configure one priority for each event task. The priority range is 0...7 and the priority 0 has
the highest priority.
Scan Modes
The freewheeling mode is a continuous cyclic scanning mode. In this mode, a new scan starts
immediately after the previous scan has completed.
This figure presents the relationship between master tasks and periodic tasks when the master
task is in freewheeling mode:
50 EIO0000003297 02/2020
Configuration Features
In freewheeling mode, the master task sleep time is at least 30% of the total cycle time with a
minimum of 1 millisecond. This percentage may be higher depending on the user application
(periodic task scan time, event task scan time, communication interaction, and so on).
In periodic mode, the logic controller waits until the configured scan time has elapsed before
starting a new scan. Every scan is therefore the same duration.
This figure presents the relationship between master tasks and periodic tasks when the master
task is in periodic mode:
If the processor goes to the HALTED state when the master task is configured in freewheeling
mode, verify whether the periodic task scan delay time is significant in comparison to the periodic
task period. If so, try:
reconfiguring the master freewheeling task as a cyclic task
increasing the periodic task period.
Event priorities control the relationship between the event tasks, master tasks, and periodic tasks.
The event task interrupts the master task and periodic task execution.
This figure presents the relationship between event tasks, master tasks, and periodic tasks in the
periodic mode:
The event tasks are triggered by a hardware interruption that sends a task event to the event task.
EIO0000003297 02/2020 51
Configuration Features
Watchdog Timer
You can configure a specific application watchdog timer for the master task and periodic task. If
the task execution time exceeds the configured watchdog timer period, the logic controller goes to
the HALTED state.
A system watchdog timer verifies whether the program is using more than 80% of the processing
capacity. In this case, the logic controller goes in the HALTED state.
52 EIO0000003297 02/2020
Configuration Features
Description
This table summarizes the task types, available scan modes for each task, scan mode triggering
conditions, operator configurable ranges, maximum number of each task, and their execution
priorities:
Task Type Scan Mode Triggering Condition Configurable Range Maximum Priority
Number of
Tasks
Master Freewheeling Normal Not applicable 1 Lowest
Periodic Software timer 1...150 ms
Periodic Periodic Software timer 1...255 ms 1 Higher than master
task and lower than
event tasks
Event Periodic Physical inputs %I0.2...%I0.5 4 Highest
%HSC function blocks Up to 2 events per 4
%HSC object
EIO0000003297 02/2020 53
Configuration Features
Section 2.3
Controller States and Behaviors
Introduction
This section provides you with information on controller states, state transitions, and behaviors in
response to system events. It begins with a detailed controller state diagram and a description of
each state. It then defines the relationship of output states to controller states before explaining the
commands and events that result in state transitions. It concludes with information about persistent
variables and the effect of EcoStruxure Machine Expert - Basic task programming options on the
behavior of your system.
54 EIO0000003297 02/2020
Configuration Features
EIO0000003297 02/2020 55
Configuration Features
Introduction
This section provides a detailed description of the controller states.
WARNING
UNINTENDED EQUIPMENT OPERATION
Never assume that your controller is in a certain controller state before commanding a change
of state, configuring your controller options, uploading a program, or modifying the physical
configuration of the controller and its connected equipment.
Before performing any of these operations, consider the effect on all connected equipment.
Before acting on a controller, always positively confirm the controller state by viewing its LEDs,
confirming the condition of the Run/Stop input, checking for the presence of output forcing, and
reviewing the controller status information via EcoStruxure Machine Expert - Basic.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: The system word %SW6 indicates the logic controller state (EMPTY, STOPPED, RUNNING,
HALTED, and POWERLESS).
When using the Start In Run feature, the controller will start executing program logic when power
is applied to the equipment. It is essential to know in advance how automatic reactivation of the
outputs will affect the process or machine being controlled. Configure the Run/Stop input to help
control the Start In Run feature. In addition, the Run/Stop input is designed to give local control
over remote RUN commands. If the possibility of a remote RUN command after the controller had
been stopped locally by EcoStruxure Machine Expert - Basic would have unintended
consequences, you must configure and wire the Run/Stop input to help control this situation.
WARNING
UNINTENDED MACHINE START-UP
Confirm that the automatic reactivation of the outputs does not produce unintended
consequences before using the Start In Run feature.
Use the Run/Stop input to help control the Start In Run feature and to help prevent the
unintentional start-up from a remote location.
Verify the state of security of your machine or process environment before applying power to
the Run/Stop input or before issuing a Run command from a remote location.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
56 EIO0000003297 02/2020
Configuration Features
When using the Unconditional Start In Run feature, the controller will attempt to start executing
program logic when power is applied to the equipment, independent of the reason the controller
had previously stopped. This occurs even if there is no charge in the battery, or if the battery is not
present. Therefore, the controller will start with all memory values re-initialized to zero or other
predetermined default values. It is conceivable that if the controller attempts to restart, for example,
after a short power outage, the values in memory at the time of the outage would be lost, and
restarting the machine may have unintended consequences as there was no battery to maintain
memory values. It is essential to know in advance how an unconditional start will affect the process
or machine being controlled. Configure the Run/Stop input to help control the Unconditional Start
In Run feature.
WARNING
UNINTENDED MACHINE OPERATION
Conduct a thorough risk analysis to determine the effects, under all conditions, of configuring
the controller with the Unconditional Start In Run feature.
Use the Run/Stop input to help avoid an unwanted unconditional restart.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
For more information about the Unconditional Start In Run feature, refer to Application Behavior
(see EcoStruxure Machine Expert - Basic, Operating Guide).
EIO0000003297 02/2020 57
Configuration Features
58 EIO0000003297 02/2020
Configuration Features
NOTE: The system word %SW6 indicates the logic controller state (EMPTY, STOPPED, RUNNING,
HALTED, and POWERLESS).
EIO0000003297 02/2020 59
Configuration Features
Boot Controller
Effect: Command a reboot of the logic controller. For details about power-on sequence, refer to the
controller states diagram (see page 55).
Methods:
Power cycle
Reboot by script
The script on an SD card can issue a REBOOT as its last command.
Application Download
Effect: Download the application into the logic controller memory.
Optionally, select the Reset Memories option to reset to 0 (default choice) or retain the present
value of all memory words and bits on application download (see EcoStruxure Machine Expert -
Basic, Operating Guide).
Methods:
EcoStruxure Machine Expert - Basic online button:
Select the PC to controller (download) command.
Effect: Erase the application in the logic controller and set the logic controller in EMPTY state.
Download the application into the logic controller memory. If download is successful, a Cold
Start is done and the logic controller is set in STOPPED state.
Application file transfer by SD card:
Effect: At the next reboot, erase the application in the logic controller and download the
application files from the SD card to the controller memory. If download is successful, a Cold
Start is done and the controller is set in STOPPED state.
Initialize Controller
Effect: Set the controller in EMPTY state, and then, after a Cold Start, in STOPPED state.
Methods:
EcoStruxure Machine Expert - Basic online button:
Select the Initialize controller command.
60 EIO0000003297 02/2020
Configuration Features
RUN Controller
Effect: Command a transition to the RUNNING controller state.
Methods:
Run/Stop (see Modicon M221 Logic Controller, Hardware Guide) switch on front face:
It commands a transition to RUNNING state on rising edge.
Application starting mode (see EcoStruxure Machine Expert - Basic, Operating Guide) setting:
Start in Run, Start in Previous State, or Unconditional Start in Run
STOP Controller
Effect: Command a transition to the STOPPED state.
Methods:
Run/Stop (see Modicon M221 Logic Controller, Hardware Guide) switch on front face:
It forces a transition to STOPPED state on low level.
Application starting mode (see EcoStruxure Machine Expert - Basic, Operating Guide) setting:
Start in Stop or Start in Previous State.
Download command:
It needs the controller to be set in STOPPED state (after the download the controller is in
STOPPED state).
Remote Graphic Display.
EIO0000003297 02/2020 61
Configuration Features
Cold Start
Cold Start is defined to be a power-up with all data initialized to its default values, and program
started from the beginning with program variables cleared. Software and hardware settings are
initialized.
Cold Start occurs for the following reasons:
Boot controller without validated application online modification.
Apply power to a logic controller without a charged backup battery.
Download application
Initialize logic controller
Warm Start
The Warm Start resumes running the program, in its previous operating state, with the counters,
function blocks, and system words and bits maintained.
62 EIO0000003297 02/2020
Configuration Features
Persistent Variables
2. Set the number of memory words to be saved in the system word %SW148 (refer to System
Words (see page 252)).
3. Set the system bit %S93 to 1 (refer to System Bits (see page 240)).
When the save operation is finished:
The system bit %S93 is reset to 0.
The system bit %S92 is set to 1, indicating that memory words have been successfully saved in
non-volatile memory (%S90 set to 0).
The system word %SW147 indicates the SD card operation result (%S90 set to 1).
NOTE: You can initiate a memory save while the logic controller is in the RUNNING state. However,
depending on the number of memory variables you specify, the save operation may not be
accomplished within a single logic scan cycle. As a consequence, the memory values may not
necessarily be consistent because the value of the memory variables can change from one scan
to another. If you wish to have a consistent set of values for the variables, consider first putting the
logic controller into the STOPPED state.
EIO0000003297 02/2020 63
Configuration Features
3. To restore from the non-volatile memory, set the number of memory words in the system word
%SW148 (refer to System Words (see page 252)). When restoring from SD card, the complete
Memory Variables.csv file is processed.
4. Set the system bit %S94 to 1 (refer to System Bits (see page 240)).
When the restore operation is finished:
The system bit %S94 is reset to 0 by the system.
The system word %SW148 is updated with the number of objects restored (for example if you
specify 100 words to restore and only 50 had previously been saved, the value of %SW148 will
be 50).
The system word %SW147 indicates the SD card operation result (%S90 set to 1).
64 EIO0000003297 02/2020
Configuration Features
Output Behavior
Introduction
The controller defines output behavior in response to commands and system events in a way that
allows for greater flexibility. An understanding of this behavior is necessary before discussing the
commands and events that affect controller states.
The possible output behaviors and the controller states to which they apply are:
Managed by application
Initialization values
Fallback behavior (see EcoStruxure Machine Expert - Basic, Operating Guide)
Fallback values
Maintain values
Output forcing
Managed by Application
Your application manages outputs normally. This applies in the RUNNING state.
EIO0000003297 02/2020 65
Configuration Features
Fallback Management
The objective of the fallback behavior is to control the outputs when the controller leaves the
RUNNING state.
Fallback values are applied on the transition from RUNNING to STOPPED or HALTED states, except
for special cases described below.
Fallback Execution
On a fallback occurrence:
If Fallback values is selected, the outputs take the values configured in Fallback value.
If Maintain values is selected, the outputs keep their values.
Special cases:
Alarm output, PTO, and FREQGEN: The fallback is never applied. Their fallback values are
forced to 0.
PLS, PWM) and reflex outputs:
If Fallback values is selected, the outputs take the values configured in Fallback value.
If Maintain values is selected, the outputs are set to 0.
NOTE:
After a download, the outputs are set to their fallback values.
In EMPTY state, the outputs are set to 0.
As the data image reflects the physical values, fallback values are also applied to the data
image. However, using system bit %S9 to apply fallback values does not modify the values of
the data image.
Fallback Values
This output state applies in the STOPPED and HALTED states.
During fallback, the outputs assume the following values:
For embedded outputs:
Fast transistor output: according to fallback setting
Regular transistor output: according to fallback setting
Relay output: according to fallback setting
Expert I/O functions (HSC, PLS, PWM, PTO, and FREQGEN):
- Source output: 0 Vdc
- Sink output: 24 Vdc
66 EIO0000003297 02/2020
Configuration Features
NOTE: An exception to the application of fallback values is in the case of an I/O expansion bus
error. For more information, refer to I/O Configuration General Description (see page 122).
Output Forcing
The controller allows you to force the state of selected outputs to a defined value for the purposes
of system testing, commissioning, and maintenance.
You can force the value of an output while your controller is connected to EcoStruxure Machine
Expert - Basic or with a TMH2GDB Remote Graphic Display (see Modicon TMH2GDB, Remote
Graphic Display, User Guide).
To do so, either use the Force command in an animation table, or force the value using the F0 or
F1 buttons in the Ladder editor.
Output forcing overrides all other commands to an output irrespective of the task logic that is being
executed.
The forcing is not released by any online change nor logout of EcoStruxure Machine Expert - Basic.
The forcing is automatically released by Cold Start (see page 62) and Download application
(see page 60) command.
The forcing does not apply for expert I/O functions (HSC, PLS, PWM, PTO, and FREQGEN).
WARNING
UNINTENDED EQUIPMENT OPERATION
You must have a thorough understanding of how forcing will affect the outputs relative to the
tasks being executed.
Do not attempt to force I/O that is contained in tasks that you are not certain will be executed
in a timely manner, unless your intent is for the forcing to take affect at the next execution of
the task whenever that may be.
If you force an output and there is no apparent affect on the physical output, do not exit
EcoStruxure Machine Expert - Basic without removing the forcing.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003297 02/2020 67
Configuration Features
Output Rearming
In the case of a short-circuit or current overload, the common group of outputs automatically enters
into thermal protection mode (all outputs in the group are set to 0), and are then periodically
rearmed (each second) to test the connection state. However, you must be aware of the effect of
this rearming on the machine or process being controlled.
NOTE: The output rearming does not apply to sink outputs.
WARNING
UNINTENDED MACHINE START-UP
Inhibit the automatic rearming of outputs if this feature is an undesirable behavior for your
machine or process.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: Only the short-circuit between an output set to TRUE and 0 V is detected. The short-circuit
between an output set to FALSE and 24 V is not detected.
If necessary, you can use system bits and words to both detect that a short circuit or overload has
occurred and on which cluster of outputs it has occurred. System bit %S10 can be used to detect
within your program that an output error has occurred. You can then use the system word %SW139
to determine programmatically in which cluster of outputs a short circuit or overload has occurred.
The automatic rearming feature can be disabled by setting the system bit %S49 to 0 (%S49 is set
to 0 by default).
68 EIO0000003297 02/2020
Configuration Features
Section 2.4
Post Configuration
Post Configuration
Introduction
This section describes how to manage and configure the post configuration file of the Modicon
M221 Logic Controller.
EIO0000003297 02/2020 69
Configuration Features
Post Configuration
Introduction
Post configuration is an option that allows you to modify some parameters of the application
without changing the application. Post configuration parameters are defined in a file called
Machine.cfg, which is stored in the controller.
By default, all communication parameters are set in the configuration of the application. However,
under certain conditions, some or all of these parameters can be modified automatically via the
mechanism Post Configuration. One or more communication parameters can be specified in the
post configuration file, and those parameters can override the parameters specified by the
configuration. For example, one parameter may be stored in the post configuration file to change
the Ethernet IP address of the controller while leaving the other Ethernet parameters, such as the
gateway address, unchanged.
Parameters
The post configuration file allows you to modify network parameters.
Ethernet parameters:
Address configuration mode
IP address
Subnet mask
Gateway address
Device name
Serial line parameters, for each serial line in the application (embedded port or TMC2SL1
cartridge):
Physical medium
Baud rate
Parity
Data bits
Stop bit
Modbus address
Polarization (for RS-485)
70 EIO0000003297 02/2020
Configuration Features
Operating Mode
The post configuration file is read and applied:
after a Warm Start (see page 62)
after a Cold Start (see page 62)
after a reboot (see page 60)
after an application download (see page 60)
after an Ethernet reconfiguration caused by an Ethernet cable reconnection (exclusively for the
Ethernet part of the post configuration file (see page 133))
For further details on controller states and transitions, refer to Controller States and Behaviors
(see page 54).
EIO0000003297 02/2020 71
Configuration Features
Introduction
The post configuration file can be transferred, modified, or deleted with an SD card. Refer to Post
Configuration Management (see page 208).
NOTE: A post configuration file example is available in the directory
Firmwares & PostConfiguration\PostConfiguration\add_change\usr\cfg of the
EcoStruxure Machine Expert - Basic installation directory.
72 EIO0000003297 02/2020
Configuration Features
NOTE:
When using a post configuration file for Ethernet configuration, it is not mandatory to specify all the
parameters:
If the M221 Logic Controller is configured (by the user application) in DHCP or BOOTP mode,
the network parameters IP (IP address), MASK (subnet mask) and GATEWAY (gateway
address) are not configured in the file.
If a parameter is not configured in the post configuration file, the M221 Logic Controller uses the
value configured in the user application (see Ethernet configuration (see page 132)).
If the M221 Logic Controller is configured in DHCP or BOOTP mode by the user application and
if fixed IP mode (IPMODE=0) is configured in the post configuration file, configure the network
parameters (IP (IP address), MASK (subnet mask) and GATEWAY (gateway address)) as they
are not configured by the user application. Otherwise, the M221 Logic Controller starts with the
default Ethernet configuration.
EIO0000003297 02/2020 73
Configuration Features
74 EIO0000003297 02/2020
Modicon M221
Configuring the M221 Logic Controller
EIO0000003297 02/2020
Part II
Configuring the M221 Logic Controller
Overview
This part provides information about how to configure the M221 Logic Controller references.
EIO0000003297 02/2020 75
Configuring the M221 Logic Controller
76 EIO0000003297 02/2020
Modicon M221
How to Configure a Controller
EIO0000003297 02/2020
Chapter 3
How to Configure a Controller
Overview
This chapter describes how to build a configuration in EcoStruxure Machine Expert - Basic and
configure the M221 Logic Controller.
EIO0000003297 02/2020 77
How to Configure a Controller
Building a Configuration
Introduction
Configure a controller by building a configuration in EcoStruxure Machine Expert - Basic. To build
a configuration, first create a new project or open an existing project.
Refer to EcoStruxure Machine Expert - Basic Operating Guide for information on how to:
create or open an existing project
replace the default logic controller
add an expansion module to the logic controller
add a cartridge to the logic controller
save the project.
Some general information about the EcoStruxure Machine Expert - Basic user interface is provided
below.
1 Toolbar
2 Status bar
3 Tabs
78 EIO0000003297 02/2020
How to Configure a Controller
Item Description
Toolbar Provides easy access to commonly used functions.
For more information, refer to the Toolbar (see EcoStruxure Machine Expert - Basic,
Operating Guide).
Status bar Displays status and information messages on the system status.
For more information, refer to the Status bar (see EcoStruxure Machine Expert - Basic,
Operating Guide).
Tabs To develop an application, work your way through the module tabs from left to right:
Properties
Set up the project properties.
Configuration
Replicate and configure the hardware configuration of the logic controller and
associated expansion modules.
Programming
Develop the program in one of the supported programming languages.
Display
Build an operator interface for a Remote Graphic Display device.
Refer to the TMH2GDB Remote Graphic Display User Guide for details.
Commissioning
Manage the connection between EcoStruxure Machine Expert - Basic and the logic
controller, upload/download applications, test, and commission the application.
EIO0000003297 02/2020 79
How to Configure a Controller
Hardware Tree
The hardware tree is displayed on left-hand side in the Configuration window. It shows a structured
view of the hardware configuration. When you add a controller, an expansion module, or a
cartridge to the project, several nodes are automatically added to the hardware tree.
NOTE: The nodes in the hardware tree are specific to the controller and the hardware
configuration. These nodes depend on the I/O functions that the controller, expansion modules,
and cartridges provide.
This figure presents the hardware tree of the controller configuration:
Item Description
Digital inputs Use to configure the embedded digital inputs of the logic controller.
Digital outputs Use to configure the embedded digital outputs of the logic controller.
Analog inputs Use to configure the embedded analog inputs of the logic controller.
High Speed Counters Use to configure the embedded high speed counting functions (HSC).
Pulse Generators Use to configure the embedded pulse generator functions
(PLS/PWM/PTO/FREQGEN).
IO Bus Use to configure the expansion modules and cartridges connected to the
logic controller.
ETH1 Use to configure the embedded Ethernet communications.
Modbus TCP Use to configure the Modbus TCP protocol for Ethernet communications.
EtherNet/IP adapter Use to configure the EtherNet/IP adapter for Ethernet communications.
SLn (Serial line) Use to configure the embedded serial line or the serial line added using a
cartridge.
n Serial line number (1 or 2, controller-specific).
80 EIO0000003297 02/2020
How to Configure a Controller
Editor
The editor area is displayed in center of the Configuration window. It displays the graphical
representation of hardware configuration of the devices. The hardware configuration in a project
can be:
only a controller
a controller with cartridges
a controller with expansion modules
a controller with cartridges and expansion modules.
If you add an expansion module to the configuration, the expansion module appears at the right-
hand side of the controller or the previously added expansion module. Cartridges are added on the
controller in the cartridge slot.
When configuring a controller, a cartridge, or an expansion module, the configuration properties of
the node selected in the hardware tree are displayed below the graphical configuration. These
properties allow you to configure the device.
This figure presents the configuration of a controller with an expansion module (the controller is
selected):
EIO0000003297 02/2020 81
How to Configure a Controller
Catalog
The catalog area is displayed on right-hand side in the Configuration window. It displays the
complete range of the logic controllers, expansion modules, and cartridges that can be configured
using EcoStruxure Machine Expert - Basic. It also provides a short description of the selected
device.
You can drag-and-drop the objects from the catalog area to the editor area. You can also replace
the existing controller by a different controller with simple drag-and-drop from the catalog.
This figure presents the catalog of the logic controllers and the expansion modules:
82 EIO0000003297 02/2020
How to Configure a Controller
Presentation
I/O expansion modules can be marked as optional in the configuration. The Optional module
feature provides a more flexible configuration by the acceptance of the definition of modules that
are not physically attached to the logic controller. Therefore, a single application can support
multiple physical configurations of I/O expansion modules, allowing a greater degree of scalability
without the necessity of maintaining multiple application files for the same application.
Without the Optional module feature, when the logic controller starts up the I/O expansion bus
(following a power cycle, application download or initialization command), it compares the
configuration defined in the application with the physical I/O modules attached to the I/O bus.
Among other diagnostics made, if the logic controller determines that there are I/O modules
defined in the configuration that are not physically present on the I/O bus, an error is detected and
the I/O bus does not start.
With the Optional module feature, the logic controller ignores the absent I/O expansion modules
that you have marked as optional, which then allows the logic controller to start the I/O expansion
bus.
The logic controller starts the I/O expansion bus at configuration time (following a power cycle,
application download, or initialization command) even if optional expansion modules are not
physically connected to the logic controller.
The following module types can be marked as optional:
TM3 I/O expansion modules
TM2 I/O expansion modules
NOTE: TM3 Transmitter/Receiver modules (TM3XTRA1 and the TM3XREC1) and TMC2
cartridges cannot be marked as optional.
The application must be configured with a functional level (see EcoStruxure Machine Expert -
Basic, Operating Guide) of at least Level 3.2 for modules marked as optional to be recognized as
such by the logic controller.
You must be fully aware of the implications and impacts of marking I/O modules as optional in your
application, both when those modules are physically absent and present when running your
machine or process. Be sure to include this feature in your risk analysis.
WARNING
UNINTENDED EQUIPMENT OPERATION
Include in your risk analysis each of the variations of I/O configurations that can be realized
marking I/O expansion modules as optional, and in particular the establishment of TM3 Safety
modules (TM3S…) as optional I/O modules, and make a determination whether it is acceptable
as it relates to your application.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003297 02/2020 83
How to Configure a Controller
Step Action
1 Drag-and-drop the I/O expansion module from the catalog to the editor.
2 In the Device information area, select the Optional module check box:
Step Action
1 Select the I/O expansion module in the editor.
2 In the Device information area, select the Optional module check box.
84 EIO0000003297 02/2020
How to Configure a Controller
The selection of the Optional module feature is used by the logic controller to start the I/O bus. The
following system words are updated to indicate the status of the physical I/O bus configuration:
EIO0000003297 02/2020 85
How to Configure a Controller
86 EIO0000003297 02/2020
How to Configure a Controller
Controller Configuration
Controller configuration depends on the number and type of embedded input/outputs, I/O objects,
and communication ports.
Use the Configuration tab to configure the properties of your controller and the expansion modules.
Select a node in the hardware tree to configure the properties of the controller.
This table shows the available configurations of the M221 Logic Controller:
EIO0000003297 02/2020 87
How to Configure a Controller
Overview
You can update the firmware of the controller using the Executive Loader wizard.
Refer to Controller States and Behavior (see page 54) for information concerning the state of the
firmware in your controller.
Step Action
1 Close all Windows applications, including virtual machines.
2 Click Start → Programs → Schneider Electric → EcoStruxure Machine Expert - Basic →
EcoStruxure Machine Expert - Basic Firmware Update or run the ExecLoaderWizard.exe from
EcoStruxure Machine Expert - Basic installation folder\Execloader folder.
88 EIO0000003297 02/2020
Modicon M221
Embedded Input/Output Configuration
EIO0000003297 02/2020
Chapter 4
Embedded Input/Output Configuration
Overview
This chapter describes how to configure the embedded I/O objects of the M221 Logic Controller.
The number of embedded inputs and outputs depends on the controller reference. For more
information, refer to the tables for:
TM221C Logic Controller (see page 22)
TM221M Logic Controller (see page 28)
EIO0000003297 02/2020 89
Embedded Input/Output Configuration
Section 4.1
Digital Input Configuration
Introduction
By default, all digital inputs are used as regular inputs. Some of the digital inputs are fast and can
be used by configuring the high speed counters (see page 99) while other inputs can be configured
as event sources.
Step Action
1 Click the Digital inputs node in the hardware tree to display the digital input properties.
This figure shows the properties of the digital inputs in the editor area:
90 EIO0000003297 02/2020
Embedded Input/Output Configuration
EIO0000003297 02/2020 91
Embedded Input/Output Configuration
Run/Stop Yes True/False False Allows you to configure 1 digital input as an additional
Run/Stop switch.
If you configure a digital input as Run/Stop switch, you cannot
use the input in any other function block (for example, high
speed counter function block, fast counter function block, and
so on).
If you enable Run/Stop for an input, you cannot configure that
input for:
Latch
Event
Event Yes Not Used Not Used Allows you to select an event that triggers the inputs
Falling Edge %I0.2...%I0.5.
Rising Edge By default, this option is disabled due to the default value of
Both edges Filtering. Set Filtering to No Filter to enable the Event option.
When you select an event from the drop-down list (other than
Not Used):
The Priority parameter is enabled to allow you to set the
priority of the event.
An event task is created and displayed (see EcoStruxure
Machine Expert - Basic, Operating Guide) in the
Configuration tab.
Priority Yes 0...7 7 Allows you to set the priority of the triggering event for the
inputs %I0.2...%I0.5.
You can set the priority of each event using the Priority
parameter that is editable only for the inputs configured as
event.
Assign each configured event a different priority: if 2 events
have same priority, a detected error message appears in the
window.
92 EIO0000003297 02/2020
Embedded Input/Output Configuration
Additional configuration details are displayed in the Programming tab. For more information, refer
to Digital Inputs (%I) (see page 218).
EIO0000003297 02/2020 93
Embedded Input/Output Configuration
Section 4.2
Digital Output Configuration
Introduction
By default, all digital outputs are used as regular outputs. For controllers equipped with transistor
outputs, 2 outputs are fast transistor outputs and can be used by configuring the pulse generators
(see page 110).
Step Action
1 Click the Digital outputs node in the hardware tree to display the digital output properties.
This figure shows the properties of the digital outputs in the editor area:
94 EIO0000003297 02/2020
Embedded Input/Output Configuration
Additional configuration details are displayed in the Programming tab. For more information, refer
to Digital Outputs (%Q) (see page 219).
EIO0000003297 02/2020 95
Embedded Input/Output Configuration
Section 4.3
Analog Input Configuration
Introduction
The analog inputs do not have any configurable property in EcoStruxure Machine Expert - Basic.
By default, analog inputs are used as regular inputs.
Step Action
1 Click the Analog inputs node in the hardware tree to display the analog input properties.
This figure shows the properties of the analog inputs in the editor area:
96 EIO0000003297 02/2020
Embedded Input/Output Configuration
Additional configuration details are displayed in the Programming tab. For more information, refer
to Analog Inputs (%IW) (see page 220).
EIO0000003297 02/2020 97
Embedded Input/Output Configuration
Section 4.4
High Speed Counter Configuration
98 EIO0000003297 02/2020
Embedded Input/Output Configuration
Introduction
You can configure high speed counters to perform any one of the following functions:
Single Phase
Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Frequency Meter
For information on how to select a function, refer to High Speed Counter in Counter Modes
(see Modicon M221 Logic Controller, Advanced Functions Library Guide) or High Speed Counter
in Frequency Meter Mode (see Modicon M221 Logic Controller, Advanced Functions Library
Guide).
The High Speed Counter function block works at a maximum frequency of 100 kHz for all counting
modes with a range of 0 to 65535 in single word and 0 to 4294967295 in double word.
The High Speed Counter function blocks use dedicated inputs and auxiliary inputs and outputs.
These inputs and outputs are not reserved for the exclusive use of High Speed Counter function
blocks:
If the dedicated input/output is not used by an HSC instance, it is available for the application
as a regular digital input/output.
If the application does not use an HSC dedicated input/output as a regular digital input/output,
it is available for the corresponding HSC instance.
EIO0000003297 02/2020 99
Embedded Input/Output Configuration
Step Description
1 Click the High Speed Counters node in the hardware tree.
Result: The High Speed Counters list is displayed:
2 Click ... in under Configuration to select the type of high speed counter to assign and to display the High
Speed Counter Assistant window.
For detailed information on the high speed counter, refer to the table below.
This table describes each parameter of the high speed counters configuration:
For details on the configuration of the Dual Phase [Pulse / Direction], Dual Phase
[Quadrature X1], Dual Phase [Quadrature X2], Dual Phase [Quadrature X4], and
Single Phase, refer to Configuring Dual Phase and Single Phase Counters (see page 103).
For details on the configuration of the Frequency Meter, refer to Configuring Frequency Meter
(see page 107).
Item Description
1 Displays the title of the assistant dialog window for the selected HSC instance %HSCi.
2 Allows you to select the HSC type, mode, and dual phase counter type.
3 Displays the dedicated inputs, auxiliary inputs, and reflex outputs.
Properties in this area of the assistant window are different for each counter type and the HSC
instance. For more details, refer to Dedicated I/O Assignments (see page 100).
Common Parameters
This table describes parameters common to all counter types:
Dual Phase [Quadrature X1], Dual Phase [Quadrature X2], and Dual Phase [Quadrature
X4] Parameters
This table describes parameters specific to Dual Phase [Quadrature X1], Dual Phase
[Quadrature X2], and Dual Phase [Quadrature X4]:
Section 4.5
Pulse Generator Configuration
Introduction
The pulse generator function blocks, Pulse (PLS), Pulse Width Modulation (PWM), Pulse
Train Output (PTO) and Frequency Generator (FREQGEN) are used to generate square
or modulated wave signals on dedicated output channels %Q0.0 or %Q0.1.
The PWM outputs feature a modulated wave signal with a variable width and duty cycle, while the
PTO outputs generate a a square wave to control a linear single-axis stepper or servo drive in open
loop mode. The PLS also creates a square wave for a programmed number of pulses.
Step Action
1 Click the Pulse Generators node in the hardware tree to display the pulse generator properties.
This figure presents the properties of the pulse generators in the editor area:
2 Edit the properties and click [...] to configure the pulse generator output.
For detailed information on the pulse generator configuration parameters, refer to the table below.
PLS Configuration
Refer to Configuring Pulse (%PLS) (see page 112).
For more details on the Pulse function block, refer to the Modicon M221 Logic Controller
Advanced Functions Library Guide, chapter Pulse (%PLS) (see Modicon M221 Logic Controller,
Advanced Functions Library Guide).
PWM Configuration
Refer to Configuring Pulse Width Modulation (%PWM) (see page 114).
For more details on the Pulse Width Modulation function block, refer to the Modicon M221
Logic Controller Advanced Functions Library Guide, chapter Pulse Width Modulation (%PWM)
(see Modicon M221 Logic Controller, Advanced Functions Library Guide).
PTO Configuration
Refer to Configuring Pulse Train Output (%PTO) (see page 116)
For more details on the Pulse Train Output function block, refer to the Modicon M221 Logic
Controller Advanced Functions Library Guide, chapter Pulse Train Output (%PTO) (see Modicon
M221 Logic Controller, Advanced Functions Library Guide).
The table describes each parameter available when the channel is configured in PLS mode:
The table describes each parameter available when the channel is configured in PWM mode:
The table describes each parameter available when the channel is configured in PTO mode:
The Frequency Generator (FG) function generates a square wave signal with programmable
frequency and duty cycle of 50%. The controller uses an internal clock generator and provides an
output signal on a dedicated output channel (%Q0.0). This output signal can directly command a
constant motion of the axis. The target frequency is always positive.
For more details on the FREQGEN function block, refer to the Modicon M221 Logic Controller
Advanced Functions Library Guide, chapter Frequency Generator (%FREQGEN) (see Modicon
M221 Logic Controller, Advanced Functions Library Guide).
Chapter 5
I/O Bus Configuration
Overview
This chapter describes how to configure the I/O bus (expansion modules) of the M221 Logic
Controller.
Introduction
In your project, you can add I/O expansion modules to your M221 Logic Controller to increase the
number of digital and analog inputs and outputs over those native to the logic controller itself
(embedded I/O).
You can add either TM3 or TM2 I/O expansion modules to the logic controller, and further expand
the number of I/O via TM3 transmitter and receiver modules to create remote I/O configurations.
Special rules apply in all cases when creating local and remote I/O expansions, and when mixing
TM2 and TM3 I/O expansion modules (refer to Maximum Hardware Configuration (see page 126)).
The I/O expansion bus of the M221 Logic Controller is created when you assemble the I/O
expansion modules to the logic controller. I/O expansion modules are considered as external
devices in the logic controller architecture and are treated, as such, differently than the embedded
I/Os of the logic controller.
Normal I/O expansion bus operation can only be restored after eliminating the source of the error
and performing one of the following:
Power cycle
New application download
Application request through a rising edge on bit %S107
With EcoStruxure Machine Expert - Basic by selection of the Initialize Controller command
Therefore, you must monitor within your application the state of the bus and the error state of the
module(s) on the bus, and to take the appropriate action necessary given your particular
application.
WARNING
UNINTENDED EQUIPMENT OPERATION
Include in your risk assessment the possibility of unsuccessful communication between the
logic controller and any I/O expansion modules.
If the “Maintain values” option deployed during an I/O expansion bus error is incompatible with
your application, use alternate means to control your application for such an event.
Monitor the state of the I/O expansion bus using the dedicated system words and take
appropriate actions as determined by your risk assessment.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
For more information on the actions taken upon start-up of the logic controller when an I/O
expansion bus error is detected, refer to Optional I/O Expansion Modules (see page 83).
WARNING
UNINTENDED EQUIPMENT OPERATION
Update the configuration of your program each time you add or delete any type of I/O expansions
on your I/O bus, or you add or delete any devices on your field bus.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
WARNING
UNINTENDED EQUIPMENT OPERATION
Include in your risk analysis each of the variations of I/O configurations that can be realized
marking I/O expansion modules as optional, and in particular the establishment of TM3 Safety
modules (TM3S…) as optional I/O modules, and make a determination whether it is acceptable
as it relates to your application.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For more details about this feature, refer to Optional I/O Expansion Modules (see page 83).
Introduction
The M221 Logic Controller is a control system that offers an all-in-one solution with optimized
configurations and an expandable architecture.
Application requirements determine the architecture of your M221 Logic Controller configuration.
The following figure represents the components of a local configuration:
NOTE: You cannot mount a TM2 module before any TM3 module as indicated in the following
figure:
Application requirements determine the architecture of your M221 Logic Controller configuration.
NOTE: You cannot use TM2 modules in configurations that include the TM3 transmitter and
receiver modules.
The following figure represents the components of a remote configuration:
NOTE: The configuration with its TM3 and TM2 expansion modules is validated by EcoStruxure
Machine Expert - Basic software in the Configuration window taking into account the total power
consumption of the installed modules.
NOTE: In some environments, the maximum configuration populated by high consumption
modules, coupled with the maximum distance allowable between the TM3 transmitter and receiver
modules, may present bus communication issues although the EcoStruxure Machine Expert -
Basic software allows for the configuration. In such a case you will need to analyze the
consumption of the modules chosen for your configuration, as well as the minimum cable distance
required by your application, and possibly seek to optimize your choices.
NOTE: Expansion modules consume current from the 5 Vdc and 24 Vdc supplied to the I/O Bus.
Therefore, the current delivered by the logic controller to the I/O Bus defines the maximum number
of expansion modules that can be connected to the I/O Bus (validated by EcoStruxure Machine
Expert - Basic software in the Configuration window).
Introduction
In your project, you can add the following devices to the controller:
TMC2 Cartridges
TM3 Digital I/O Modules
TM3 Analog I/O Modules
TM3 Expert I/O Modules
TM2 Digital I/O Modules
TM2 Analog I/O Modules
TMC2 Cartridges
For more information about cartridge configuration, refer to the following programming and
hardware guides:
Chapter 6
Embedded Communication Configuration
Overview
This chapter describes how to configure the communication features of the M221 Logic Controller.
Section 6.1
Ethernet Configuration
Ethernet Configuration
Introduction
You can configure the TCP/IP connection to the logic controller by configuring the Ethernet
network. The Ethernet establishes a local area network (LAN) between the logic controller and
other devices. The Ethernet configuration provides you the ability to configure the IP address of
the network device.
NOTE: The controller-PC link uses the TCP/IP protocol. It is required for this protocol to be installed
on the PC.
You can obtain the IP address by the following protocols:
Dynamic Host Configuration Protocol (DHCP)
Bootstrap Protocol (BOOTP)
You can also specify the IP address by specifying the following addresses:
IP address
Subnet mask
Gateway address
NOTE: Schneider Electric adheres to industry best practices in the development and implemen-
tation of control systems. This includes a "Defense-in-Depth" approach to secure an Industrial
Control System. This approach places the controllers behind one or more firewalls to restrict
access to authorized personnel and protocols only.
WARNING
UNAUTHENTICATED ACCESS AND SUBSEQUENT UNAUTHORIZED MACHINE
OPERATION
Evaluate whether your environment or your machines are connected to your critical
infrastructure and, if so, take appropriate steps in terms of prevention, based on Defense-in-
Depth, before connecting the automation system to any network.
Limit the number of devices connected to a network to the minimum necessary.
Isolate your industrial network from other networks inside your company.
Protect any network against unintended access by using firewalls, VPN, or other, proven
security measures.
Monitor activities within your systems.
Prevent subject devices from direct access or direct link by unauthorized parties or unauthen-
ticated actions.
Prepare a recovery plan including backup of your system and process information.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Ethernet Services
The logic controller supports the following services:
Modbus TCP Server
Modbus TCP Client
EtherNet/IP Adapter
Modbus TCP Slave Device
Ethernet Configuration
This table describes how to configure the Ethernet:
Step Action
1 Click the ETH1 node in the hardware tree to display the Ethernet properties.
This figure presents the Ethernet properties in the editor area:
NOTE: The Security Parameters displayed depend on the functional level (see EcoStruxure
Machine Expert - Basic, Operating Guide) selected for the application.
This table describes each parameter of the Ethernet configuration:
NOTE: When a protocol listed in Security Parameters is disabled, requests from the corresponding
server type are ignored. The corresponding configuration screen remains accessible; however,
program execution is not affected.
Address Management
This diagram presents the different types of address systems for the M221 Logic Controller:
NOTE: If a device programmed to use the DHCP or BOOTP addressing methods is unable to
contact its respective server, the controller uses the default IP address. It will, however, constantly
repeat its request.
The IP process restarts in the following cases:
Controller reboot
Ethernet cable reconnection
Application download (if IP parameters change)
DHCP or BOOTP server detected after a prior addressing attempt was unsuccessful or when
the DHCP address lease expires.
Address Classes
The IP address is linked:
to a device (the host)
to the network to which the device is connected
Subnet Mask
The subnet mask is used to address several physical networks with a single network address. The
mask is used to separate the subnetwork and the device address in the host ID.
The subnet address is obtained by retaining the bits of the IP address that correspond to the
positions of the mask containing 1, and replacing the others with 0.
Conversely, the subnet address of the host device is obtained by retaining the bits of the IP
address that correspond to the positions of the mask containing 0, and replacing the others with 1.
Example of a subnet address:
NOTE: The device does not communicate on its subnetwork when there is no gateway.
Gateway Address
The gateway allows a message to be routed to a device that is not on the current network.
If there is no gateway, the gateway address is 0.0.0.0.
Introduction
You can configure the Ethernet port for Modbus TCP or Modbus TCP IOScanner as:
Modbus mapping (see page 140)
Client mode (see page 142)
Only one instance of IOScanner can be defined: if you configure it on a serial port, you cannot
configure it on an Ethernet port and vice versa. Refer to Configuring Modbus Serial IOScanner
(see page 180).
The maximum number of TCP and Serial IOScanner objects depends on the functional level. For
more information, refer to Maximum Number of Objects.
If a communication interruption occurs, the IOScanner stops. For more information on the status
(see page 253), refer to %SW212.
Use the following system bits to reset or suspend the Modbus TCP IOScanner (refer to System
Bits Description (see page 241)): %S112 and %S115.
Step Action
1 In the Configuration window, click ETH1→ Modbus TCP to display the Modbus TCP properties.
The following illustration shows the properties displayed in the editor area:
The Modbus TCP slave device responds to a subset of the Modbus function codes, but does so in
a way that differs from Modbus standards, with the purpose of exchanging data with the external
I/O scanner. The following Modbus function codes are supported by the Modbus TCP slave device:
Step Action
1 In the Configuration window, click ETH1→ Modbus TCP to display the Modbus TCP properties.
The following illustration shows the properties displayed in the editor area:
2 Add a remote device. Refer to Adding Remote Devices (see page 143).
3 If you want to configure Modbus TCP IOScanner, select Enable Modbus TCP IOScanner.
NOTE: If the Enable Modbus TCP IOScanner button is grayed out, verify that the Functional
Level of your application (Programming → Tasks → Behavior tab) is at least Level 6.0 and that
there is no instance configured in Serial line → Modbus Serial IOScanner.
You can configure and add remote devices for Modbus TCP even if Modbus TCP IOScanner is
enabled.
Step Action
1 Enter the IP address in the IP address field.
2 Select Generic, Drive, or Predefined.
Drive and Predefined are only enabled if Enable Modbus TCP IOScanner is selected.
3 Click the Add button.
The Add button is disabled if:
The maximum of 16 devices is already configured.
The IP address is in an incorrect format.
Result: A list of remote devices that you have added appears on the screen.
4 Click Apply.
This table describes each column of the table listing the remote devices:
Preconfigured initialization requests are displayed with a lock symbol and a gray background.
Some parameters cannot be modified for predefined initialization requests.
According to the device type that you selected, some initialization requests may be configured.
Channel Assistant
Up to 10 channels can be defined for each slave device. Each channel represents a single Modbus
request.
NOTE: The number of objects defined (items of data read and written) is validated when you click
Apply on the properties window.
The Channel assistant window lists the defined channels:
Preconfigured channels are displayed with a lock symbol and a gray background. Some
parameters cannot be modified for predefined channels.
Configuring Channels
Use the Channel assistant window to configure channels.
The following example shows a channel configured for a Read/Write Multiple Words request
(Modbus function code 23). It reads one word from the register with offset 16#0C21 and writes two
words to the register with offset 16#0C20. This request is executed when there is a rising edge of
the defined Trigger (see table below):
Configuring EtherNet/IP
Introduction
This section describes the configuration of the EtherNet/IP connection to the controller.
For further information about EtherNet/IP, refer to www.odva.org
Step Action
1 Click the EtherNet/IP adapter node that appears below the ETH1 node in the hardware tree.
This figure presents the properties of the EtherNet/IP Adapter in the editor area:
NOTE: Output means output from the Scanner controller (%IWE for the Adapter).
Input means input from the Scanner controller (%QWE for the Adapter).
The following graphic presents the directionality of Input assembly and Output assembly in
EtherNet/IP communications:
EDS File
A template electronic data sheet (EDS) file, M221_EDS_Model.eds, is provided in EcoStruxure
Machine Expert - Basic installation folder \Firmwares & PostConfiguration.
Modify the file as described in the user guide to be found in the same folder.
Profile
The controller supports the following objects:
The Reset common service has one specific parameter, Type of Reset (USINT), with the following
values:
8 Minor TRUE indicates the device detected an error, which, under most circumstances,
Recoverable is recoverable.
Error This type of event does not lead to a change in the device state.
9 Minor TRUE indicates the device detected an error, which, under most circumstances,
Unrecoverable is not recoverable.
Error This type of event does not lead to a change in the device state.
10 Major TRUE indicates the device detected an error, which requires the device to
Recoverable report an exception and enter into the HALT state.
Error This type of event leads to a change in the device state, but, under most
circumstances, is recoverable.
11 Major TRUE indicates the device detected an error, which requires the device to
Unrecoverable report an exception and enter into the HALT state.
Error This type of event leads to a change in the device state, but, under most
circumstances is not recoverable.
12...15 Reserved –
Instances Supported
Output means OUTPUT from Originator controller (= %IWE for the M221 Logic Controller).
Input means INPUT from Originator controller (= %QWE for the M221 Logic Controller).
The controller supports 2 Assemblies:
NOTE: The Assembly object binds together the attributes of multiple objects so that information
sent to or received from each object can be communicated over a single connection. Assembly
objects are static.
The assemblies in use can be modified through the parameter access of the network configuration
tool (RSNetWorx). You must perform a power cycle of the logic controller to register a new
assembly assignment.
The following table describes the Instance attributes:
EPATH is:
Instance Codes
Only instance 1 is supported.
The following table describes the Instance Services:
Instance Codes
Only instance 1 is supported.
The following table describes the Instance Services:
Section 6.2
Serial Line Configuration
Introduction
The M221 Logic Controller references are equipped with at least 1 serial line. The controller
references without the Ethernet feature support 2 serial lines:
SL1 (serial line)
SL2 (serial line)
Each serial line can be configured for one of the following protocols:
Modbus (RTU or ASCII) (see page 175). Serial lines are configured for the Modbus RTU
protocol by default.
ASCII (see page 175)
Modbus Serial IOScanner (see page 180). Only one instance can be configured: if configured
on one serial line, it cannot be used on the other serial line.
NOTE: Care must be taken when both the Modbus Serial IOScanner and Message (%MSG)
function blocks (see EcoStruxure Machine Expert - Basic, Generic Functions Library Guide) are
used in your application, as this can lead to the cancellation of on-going IOScannner
communication.
The application must be configured with a functional level (see EcoStruxure Machine Expert -
Basic, Operating Guide) of at least Level 5.0 to support the Modbus Serial IOScanner.
NOTE: The TMH2GDB Remote Graphic Display (see page 179) protocol can only be configured
on SL1.
Modem Support
A modem connection allows you to:
Remotely access the controller for the purpose of programming and/or monitoring. In this case,
a local modem must be connected to the PC running the EcoStruxure Machine Expert - Basic
software, and a modem connection must be configured (see EcoStruxure Machine Expert -
Basic, Operating Guide).
Perform data exchanges between controllers using the Modbus protocol.
Send or receive messages with any device using the Send Receive Message function block.
Send or receive SMS to or from mobile phone or other devices able to send or receive SMS
messages.
Serial lines support the following features to simplify modem connections:
An initialization (Init) command to send an initial configuration to the modem. This command is
automatically sent by the controller after an application download or at power on.
System bit %S105 to be able to send the Init command to the modem again.
System word %SW167 to provide the status of the Init command operation.
Step Action
1 Click the SL1 (Serial line) or SL2 (Serial line) node in the hardware tree to display the serial line
configuration.
This table describes protocol and serial line settings of the serial line:
Description
Only one instance of IOScanner can be defined: if you configure it on a Ethernet port, you cannot
configure it on an serial port. Refer to Configuring Modbus TCP IOScanner.
The maximum number of TCP and Serial IOScanner objects is:
128, if the Functional Level < 6.0.
512, if the Functional Level ≥ 6.0.
If a communication interruption occurs, the IOScanner stops. For more information on the status
(see page 253), refer to %SW210 or %SW211.
To reset or suspend the Modbus Serial IOScanner, refer to %S110, %S111, %S113 and %S114 in
the System Bits Description (see page 241)).
Protocol Settings
This table describes the parameters when the Modbus Serial IOScanner protocol is selected:
Introduction
This section describes how to add devices to be scanned by the Modbus Serial IOScanner.
You can add up to 16 Modbus slave devices.
EcoStruxure Machine Expert - Basic is supplied with a number of predefined device types.
Predefined device types have predefined initialization requests and preconfigured channels to
facilitate integration of the devices in the network.
A generic slave device is also provided, for which initialization requests and channels must be
configured.
Step Action
1 Choose either:
Drive and select one of the supported device types from the dropdown list.
Others and select the device type from the dropdown list.
If you cannot find your device type in either list, select Generic device and configure it.
2 Click Add.
3 Configure the device as described in Device Settings (see page 181).
4 Click Apply.
Device Settings
This table describes the parameters when the Modbus Serial IOScanner protocol is selected:
Preconfigured initialization requests are displayed with a lock symbol and a gray background.
Some parameters cannot be modified for predefined initialization requests.
According to the device type that you selected, some initialization requests may be configured.
Channel Assistant
Up to 10 channels can be defined for each slave device. Each channel represents a single Modbus
request.
NOTE: The number of objects defined (items of data read and written) is validated when you click
Apply on the properties window.
The Channel assistant window lists the defined channels:
Preconfigured channels are displayed with a lock symbol and a gray background. Some
parameters cannot be modified for predefined channels.
This table describes the properties of channels:
Configuring Channels
Use the Channel assistant window to configure channels.
The following example shows a channel configured for a Read/Write Multiple Words request
(Modbus function code 23). It reads one word from the register with offset 16#0C21 and writes two
words to the register with offset 16#0C20. This request is executed when there is a rising edge of
the defined Trigger (see table below):
Section 6.3
Supported Modbus Function Codes
Presentation
This section lists the supported Modbus function codes and their effect on controller memory
variables for:
Modbus Serial (see page 190)
Modbus Serial IOScanner (see page 191)
Modbus TCP (see page 191)
Modbus TCP IOScanner (see page 191)
Modbus Serial
The following Modbus requests are supported:
NOTE:
The impact of Modbus function codes used by a master M221 Logic Controller depends on the
slave device type. In the major types of slave device:
Internal bit means %M
Input bit means %I
Internal register means %MW
Input register means %IW
Depending on the type of slave and the slave address, an internal bit should be a %M or %Q; an
input bit should be a %I or %S, an input register should be a %IW or a %SW and an internal register
should be a %MW or a %QW.
For more details, refer to the documentation of the slave device.
Section 6.4
State Machine Diagram for Modbus IOscanner
Description
The following graphic shows the states of the Modbus IOScanner:
The following table displays the system objects for each IOScanner position:
s
Chapter 7
SD Card
SD Card
Introduction
The Modicon M221 Logic Controller allows file transfers with an SD card.
This chapter describes how to manage Modicon M221 Logic Controller files with an SD card.
You can use the SD card when you want to store data. Refer to Data Logging.
Introduction
The Modicon M221 Logic Controller allows the following types of file management with an SD card:
Clone management (see page 200): back up the application, firmware, and post configuration
(if it exists) of the logic controller
Firmware management (see page 202): download firmware directly to the logic controller, and
load firmware to the Remote Graphic Display
Application management (see page 206): back up and restore the logic controller application,
or copy it to another logic controller of the same reference
Post configuration management (see page 208): add, change, or delete the post configuration
file of the logic controller
Error log management (see page 210): back up or delete the error log file of the logic controller
Memory management (see page 213): Back up and restore memory objects of the controller
NOTE:
Logic controller logic solving and services execution continues during file transfers.
Certain commands require a power cycle of the logic controller. See the description of the
commands for more information.
The Modicon M221 Logic Controller accepts only SD cards formatted in FAT or FAT32.
With the use of the SD card, powerful operations can be automatically conducted affecting the
behavior of your logic controller and resident application. Care must be taken when inserting an
SD card into the controller; you must be aware of the affect that the contents of the SD card will
have on your logic controller.
NOTE: File management with SD card uses script files. These scripts can be automatically created
with the Memory Management task (see EcoStruxure Machine Expert - Basic, Operating Guide).
WARNING
UNINTENDED EQUIPMENT OPERATION
You must have operational knowledge of your machine or process before connecting an SD
card to your logic controller.
Ensure that guards are in place so that any potential affect of the contents of the SD card will
not cause injury to personnel or damage to equipment.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
If you remove power to the device, or there is a power outage or communication interruption during
the transfer of the application, your device may become inoperative. If a communication
interruption or a power outage occurs, reattempt the transfer. If there is a power outage or
communication interruption during a firmware update, or if an invalid firmware is used, your device
will become inoperative. In this case, use a valid firmware and reattempt the firmware update.
NOTICE
INOPERABLE EQUIPMENT
Do not interrupt the transfer of the application program or a firmware change once the transfer
has begun.
Re-initiate the transfer if the transfer is interrupted for any reason.
Do not attempt to place the device into service until the file transfer has completed
successfully.
Failure to follow these instructions can result in equipment damage.
Introduction
This table lists the file locations and types of file that can be managed:
Command Description
Download Download a file from the SD card to the controller.
Upload Upload files contained in controller memory to the SD
card.
Delete Delete files contained in a controller.
Script Log
A script.log file is automatically created in the SD card root directory after script operations.
The status of the script operations can be verified reading this file.
Clone Management
Cloning
Cloning allows you to automatically back up the application, firmware, and post configuration (if it
exists) of the Modicon M221 Logic Controller to the SD card.
The SD card can then be used to later restore the firmware, application, and post configuration (if
it exists) to the logic controller, or copy them to another logic controller with the same reference.
Before cloning a controller, the M221 Logic Controller verifies whether the application is copy-
protected or not. For details, refer to Password Protecting an Application (see EcoStruxure
Machine Expert - Basic, Operating Guide).
NOTE:
The SD card must be empty and correctly formatted to perform this procedure.
The SD card name must be different from DATA, refer to Data Logging.
The detected error log and data memory are not cloned.
If the application is password-protected, the clone operation is blocked (the SD LED is flashing).
Step Action
1 Format an SD card on the PC.
2 Insert the SD card into the controller.
Result: The clone operation starts automatically and the SD LED is illuminated.
3 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD LED flashes and the detected error is logged in Script.log file.
NOTE: The clone operation lasts 2 or 3 minutes. The clone operation has a low priority in order to
minimize impact on the user logic and communication performance of the logic controller.
Depending on the amount of free time in your program, the operation may require more time to
complete if the logic controller is in RUNNING state compared to the STOPPED state.
4 Remove the SD card from the controller.
Step Action
1 Remove power from the controller.
2 Insert the SD card into the controller.
3 Restore power to the controller.
Result: The clone operation is in progress.
NOTE: The SD LED is turned on during the operation.
4 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
5 Remove the SD card to restart the controller.
NOTE: Downloading a cloned application to the controller first removes the existing application
from controller memory, regardless of any user access-rights that may be enabled in the target
controller.
Firmware Management
Overview
You can use an SD card to download firmware updates directly to the logic controller, a Remote
Graphic Display, or TM3 analog expansion modules.
Refer to Controller States and Behavior (see page 54) for information on the logic controller
operating states and status of the LEDs.
To perform firmware management, the SD card name must be different from DATA, refer to Data
Logging.
Step Action
1 Remove power from the controller.
2 Insert an empty SD card into the PC that is running EcoStruxure Machine Expert - Basic.
3 Create a file called script.cmd in the SD card root directory.
4 Edit the file and insert the following command:
Download "/sys/os"
5 Create the folder path \sys\os in the SD card root directory and copy the firmware file in the os
folder:
NOTE: A firmware file example and the script are available in the folder Firmwares &
PostConfiguration\M221\ of the EcoStruxure Machine Expert - Basic installation folder.
The firmware file name for the M221 Logic Controller is M221.mfw.
6 Remove the SD card from the PC and insert it into the SD card slot of the logic controller.
7 Restore power to the controller.
Result: Copying of the firmware file begins. During the operation, the SD system LED on the logic
controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
8 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
9 Remove the SD card.
10 Reconnect the USB programming cable to the logic controller and login to the logic controller with
the EcoStruxure Machine Expert - Basic software.
Step Action
1 Apply power to the logic controller.
2 Connect the Remote Graphic Display to the logic controller (see Modicon TMH2GDB, Remote Graphic
Display, User Guide).
3 Insert an empty SD card into the PC that is running EcoStruxure Machine Expert - Basic.
4 Create a file called script.cmd in the SD card root directory.
5 Edit the file and insert the following command:
Download "/disp/TMH2GDB.mfw"
6 Create the folder path /disp/ in the SD card root directory and copy the firmware file in the disp folder:
NOTE: The firmware file and an example script are available in the folder Firmwares &
PostConfiguration\TMH2GDB\ of the EcoStruxure Machine Expert - Basic installation folder.
The firmware file name for the Remote Graphic Display is TMH2GDB.mfw.
7 Remove the SD card from the PC and insert it into the SD card slot of the M221 Logic Controller.
Result: The logic controller begins transferring the firmware file from the SD card to the Remote Graphic
Display. During this operation:
the message File Transfer is displayed on the Remote Graphic Display
the SD system LED on the M221 Logic Controller is illuminated
system word %SW182 is set to 5 (Display firmware transfer in progress)
NOTE: Do not disconnect the Remote Graphic Display or remove power from the M221 Logic Controller
while the operation is in progress. The firmware update takes 5 to 6 minutes.
8 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in Script.log file.
NOTE: Restoring the file system on the Remote Graphic Display (red backlight) is part of the process.
This table describes how to download a firmware to one or more TM3 expansion modules using
an SD card:
Step Action
1 Apply power to the controller.
2 Ensure that the controller is in the EMPTY state by deleting the application in the controller. You
can do this with EcoStruxure Machine Expert by using one of the following script commands:
Delete "usr/*"
Delete "usr/app"
3 Insert an empty SD card into the PC.
4 Create a file called script.cmd in the SD card root directory.
5 Edit the file and insert the following command:
Download "/TM3/<filename>/*"
NOTE: <filename> is the file name of the firmware you wish to update. The asterisk signifies
that all modules will be updated.
To download the firmware to one specific TM3 expansion module, replace the asterisk with the
position of the expansion module in the configuration. For example, to specify the module at
position 4:
Download "/TM3/<filename>/4"
6 Create the folder path /TM3/ in the SD card root directory and copy the firmware file to the TM3
folder.
NOTE: A firmware file (the firmware file valid at the time of the installation of EcoStruxure
Machine Expert) and an example script are available in the folder Firmwares &
PostConfiguration\TM3\ of the EcoStruxure Machine Expert installation folder.
Step Action
7 Remove the SD card from the PC and insert it into the SD card slot of the controller.
Result: The controller begins transferring the firmware file from the SD card to the updatable
TM3 expansion modules or to the one module specified in step 5. During this operation, the SD
system LED on the controller is illuminated.
NOTE: The firmware update takes 10 to 15 seconds for each expansion module being updated.
Do not remove power from the controller, or remove the SD card, while the operation is in
progress. Otherwise, the firmware update may be unsuccessful and the modules may no longer
function correctly. In this case, run the Recovery Procedure (see Modicon TM3 (EcoStruxure
Machine Expert - Basic), Expansion Modules Configuration, Programming Guide) to reinitialize
the firmware on the modules.
8 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
If you remove power to the device, or there is a power outage or communication interruption during
the transfer of the application, your device may become inoperative. If a communication
interruption or a power outage occurs, reattempt the transfer. If there is a power outage or
communication interruption during a firmware update, or if an invalid firmware is used, your device
will become inoperative. In this case, use a valid firmware and reattempt the firmware update.
NOTICE
INOPERABLE EQUIPMENT
Do not interrupt the transfer of the application program or a firmware change once the transfer
has begun.
Re-initiate the transfer if the transfer is interrupted for any reason.
Do not attempt to place the device into service until the file transfer has completed
successfully.
Failure to follow these instructions can result in equipment damage.
Application Management
Overview
You can use an SD card to back up and restore your controller application, or copy it to another
controller with the same reference.
To perform application management, the SD card name must be different from DATA, refer to Data
Logging.
Backing Up an Application
This table describes how to back up the controller application on the SD card:
Step Action
1 Create a script.cmd file with a text editor on your PC.
2 Edit the file and insert the following line:
Upload "/usr/app"
3 Copy the script file to the root folder of the SD card.
4 Insert the prepared SD card in the controller.
Result: Copying of the application file begins. During the operation, the SD system LED on the
logic controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
NOTE: The application backup process has a low priority in order to minimize impact on the
program and communication performance of the logic controller. Depending on the amount of
free time in your program, the operation may take considerably longer to complete if the logic
controller is in RUNNING state compared to the STOPPED state.
5 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
Result: The application file (*.smbk) is saved on the SD card.
Step Action
1 Take an SD card previously created and edit the script.cmd file in the root folder of the SD
card with a text editor.
2 Replace the content of the script by the following line:
Download "/usr/app"
3 Remove power from the controller.
4 Insert the prepared SD card in the controller.
5 Restore power to the controller.
Result: Copying of the application file begins. During the operation, the SD system LED on the
logic controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
6 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
7 Remove the SD card to restart the controller.
Overview
You can use an SD card to add, change, or delete the post configuration file of your controller.
To perform post configuration management, the SD card name must be different from DATA, refer
to Data Logging.
Step Action
1 Create a file called script.cmd.
2 Edit the file and insert the following line:
Download "/usr/cfg"
3 Copy the post configuration file (Machine.cfg) to the folder \usr\cfg and the script file to the
root folder of the SD card:
NOTE: A post configuration file example and the associated script are available in the directory
Firmwares & PostConfiguration\PostConfiguration\add_change\ of the
EcoStruxure Machine Expert - Basic installation directory.
4 If necessary, edit the Machine.cfg file to configure your post configuration parameters.
5 Insert the prepared SD card in the controller.
Result: Downloading of the post configuration file begins. During the operation, the SD system
LED on the logic controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
NOTE: Before the download the file format is verified, as well as if all of the channels,
parameters, and values configured are valid; in case of detected error the download is aborted.
NOTE: If a post configuration parameter is incompatible with the physical configuration, it is
ignored.
6 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
7 Do a power cycle or an initialization command to apply the new post configuration file.
Step Action
1 Create a script.cmd file with a text editor on your PC.
2 Edit the file and insert the following line:
Upload "/usr/cfg"
3 Copy the script file to the root folder of the SD card.
4 Insert the prepared SD card in the controller.
Result: Copying of the post configuration file begins. During the operation, the SD system
LED on the logic controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
NOTE: The application backup process has a low priority to minimize impact on the
program and communication performance of the logic controller. Depending on the amount
of free time in your program, the operation may take considerably longer to complete, if the
logic controller is in RUNNING state compared to the STOPPED state.
5 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
Result: The post configuration file is saved on the SD card.
Step Action
1 Insert an empty SD card into the PC that is running EcoStruxure Machine Expert - Basic.
2 Create a file called script.cmd.
3 Edit the file and insert the following line:
Delete "/usr/cfg"
4 Copy the script file available in the directory Firmwares &
PostConfiguration\PostConfiguration\remove\ of the EcoStruxure Machine Expert
- Basic installation directory to the root directory of the SD card.
5 Insert the prepared SD card in the controller.
Result: The post configuration file is removed. During the operation, the SD system LED on the
logic controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
6 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
7 Do a power cycle or an initialization command to apply the application parameters.
Overview
You can use the SD card to back up or delete the error log file of the logic controller.
To perform error log management, the SD card name must be different from DATA, refer to Data
Logging.
Step Action
1 Create a script.cmd file with a text editor on your PC.
2 Edit the file and insert the following line:
Upload "/sys/log"
3 Copy the script file to the root folder of the SD card.
4 Insert the prepared SD card in the logic controller.
Result: Transfer of the error log file begins. During the operation, the SD system LED on the logic
controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
5 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
Result: The error log file (PlcLog.csv) is saved on the SD card.
Step Action
1 Create a script.cmd file with a text editor on your PC.
2 Edit the file and insert the following line:
Delete "/sys/log"
3 Copy the script file to the root folder of the SD card.
4 Insert the prepared SD card in the logic controller.
Result: Deleting of the error log file begins. During the operation, the SD system LED on the logic
controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
5 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
Result: The error log file (PlcLog.csv) is deleted from the logic controller.
After an upload through the SD card, the code is represented as in the example below:
02/06/14, 12:04:01, 0x0111000100
This table describes the meaning of the hexadecimal error representation:
Overview
You can use an SD card to back up and restore controller memory objects, or copy the memory
objects to another controller.
Step Action
1 Create a script.cmd file with a text editor on your PC.
2 Edit the file and insert the following line:
Upload "/usr/mem"
3 Copy the script file to the root folder of the SD card.
4 Insert the prepared SD card in the controller.
Result: Copying of the memory begins. During the operation, the SD system LED on the logic
controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
NOTE: The memory backup process has a low priority to minimize impact on the program and
communication performance of the logic controller. Depending on the amount of free time in your
program, the operation may take considerably longer to complete if the logic controller is in
RUNNING state compared to the STOPPED state.
5 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
Result: The memory file (*.csv) is saved on the SD card.
Step Action
1 Edit the script.cmd file in the root folder of the SD card with a text editor.
2 Replace the content of the script by the following line:
Download "/usr/mem"
3 Insert the prepared SD card in the controller.
Result: Copying of the memory file begins. During the operation, the SD system LED on the logic
controller is illuminated.
NOTE: Avoid removing power from the logic controller while the operation is in progress.
4 Wait until the end of the operation (until the SD LED is off or flashing).
If an error is detected, the SD and ERR LEDs flash and the detected error is logged in
Script.log file.
Part III
Programming the M221 Logic Controller
Overview
This part provides information about the system and I/O objects specific to the M221 Logic
Controller. These objects are displayed in the Programming tab.
For descriptions of all other objects, refer to EcoStruxure Machine Expert - Basic Generic
Functions Library Guide.
Chapter 8
I/O Objects
I/O Objects
Introduction
Digital input bit objects are the image of digital inputs on the logic controller.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click I/O objects → Digital inputs.
Result: Digital input properties appear on the screen.
Introduction
Digital output bit objects are the image of digital outputs on the logic controller.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click I/O objects → Digital outputs.
Result: Digital output properties appear on the screen.
Introduction
Analog input word objects are the digital values of an analog signal connected to the logic
controller.
Two 0-10V analog inputs are embedded in the logic controller. The embedded analog inputs use
a 10 bits resolution converter so that each increment is approximately 10 mV (10V/210-1). Once
the system detects the value 1023, the channel is considered to be saturated.
Refer to M221 Hardware Guide (see Modicon M221 Logic Controller, Hardware Guide) and TMC2
Cartridges Hardware Guide used in the configuration for more details.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click I/O objects → Analog inputs.
Result: Analog input properties appear on the screen.
Introduction
Analog output word objects are the digital values of the analog signals recieved from the logic
controller using cartridges.
Two 0-10 V analog outputs and two 4-20 mA analog outputs are embedded in the cartridges
TMC2AQ2C and TMC2AQ2V respectively.
Refer to TMC2 Cartridges Hardware Guide used in the configuration for more details.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click I/O objects → Analog outputs.
Result: Analog output properties appear on the screen.
Chapter 9
Network Objects
Network Objects
Introduction
Input assembly objects are the digital values of EtherNet/IP Input assembly frames received on the
logic controller.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click Network objects → Input assembly (EtherNet/IP).
Result: The properties window appears.
Introduction
Output assembly objects are the digital values of EtherNet/IP Output assembly frames received on
the logic controller.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click Network objects → Output assembly (EtherNet/IP).
Result: The properties window appears.
Introduction
Input registers objects are the digital values of Modbus TCP mapping table input registers received
on the logic controller.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click Network objects → Input registers (Modbus TCP).
Result: The properties window appears.
Introduction
Output registers objects are the digital values of Modbus TCP mapping table output registers
received on the logic controller.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click Network objects → Output registers (Modbus TCP).
Result: The properties window appears.
Introduction
Digital input (IOScanner) objects are the digital values received from Modbus Serial IOScanner or
Modbus TCP IOScanner devices.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click Network objects → Digital inputs (IOScanner).
Result: The properties window appears.
x: device ID
y: channel ID
z: object instance identifier
Introduction
Digital output (IOScanner) objects are the digital values sent to Modbus Serial IOScanner or
Modbus TCP IOScanner devices.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click Network objects → Digital outputs (IOScanner).
Result: The properties window appears.
x: device ID
y: channel ID
z: object instance identifier
Introduction
Input register (IOScanner) objects are the register values received from Modbus Serial IOScanner
or Modbus TCP IOScanner devices.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click Network objects → Input registers (IOScanner).
Result: The properties window appears.
x: device ID
y: channel ID
z: object instance identifier
Introduction
Output register (IOScanner) objects are the register values sent to Modbus Serial IOScanner or
Modbus TCP IOScanner devices.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click Network objects → Output registers (IOScanner).
Result: The properties window appears.
x: device ID
y: channel ID
z: object instance identifier
Value Description
0 Device not scanned.
1 Device is being initialized by Modbus IOScanner (Initialization request of device being sent).
2 Device is present and ready to be scanned (initialization requests sent, if any).
3 Device not scanned correctly due to a communication error detected on a channel of the
device.
4 Device not initialized correctly due to a communication error detected during initialization
request of the device.
5 Device not correctly identified because the vendor name or product code returned by the
device does not match the expected values.
6 Communication error occurred during identification and initialization. Possible reasons are:
incommunicative or absent device, incorrect communication parameters, or unsupported
Modbus function.
Value Description
0 Channel is active
-1 Channel is inactive
Other Value of the Communication error code (CommError) (see EcoStruxure Machine Expert -
Basic, Generic Functions Library Guide)
Chapter 10
System Objects
System Objects
Introduction
This section provides information about the function of system bits.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click System objects → System Bits.
Result: System bit properties appear on the screen.
%S13 First cycle in RUNNING Normally set to 0. Set to 1 by the system during the first scan 0 S, SIM
state after the controller state has been changed to RUNNING.
%S14 I/O force activated Normally set to 0. Set to 1 by the system if at least one input 0 S, SIM
or output is being forced.
%S15 Input forced Normally set to 0. Set to 1 by the system if at least one input 0 S, SIM
is being forced.
%S16 Output forced Normally set to 0. Set to 1 by the system if at least one output 0 S, SIM
is being forced.
%S17 Last ejected bit Normally set to 0. It is set by the system according to the 0 S→U,
value of the last ejected bit. SIM
It indicates the value of the last ejected bit.
S Controlled by the system
U Controlled by the user
U→S Set to 1 by the user, reset to 0 by the system
S→U Set to 1 by the system, reset to 0 by the user
SIM Applied in the Simulator
Introduction
This section provides information about the function of system words.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click System objects → System Words.
Result: System word properties appear on the screen.
The %SW1 value can be modified in the program at each end of a cycle, in
the program or in an animation table without having to stop the program.
Cycle times can be correctly observed while the program is running.
%SW6 Controller state Controller state: S, SIM
%MW60012 0 = EMPTY
2 = STOPPED
3 = RUNNING
4 = HALTED
5 = POWERLESS
S Controlled by the system
U Controlled by the user
SIM Applied in the simulator
%SW16=0B16 hex:
8 MSB=0B in hexadecimal, then cc=11 in decimal
8 LSB=16 in hexadecimal, then dd=22 in decimal
The %SW18 increases from 0 to 32767 each 100 ms. When 32767 is
reached, %SW19) is incremented and %SW18 is reset to 0.These double word
are also reset during the initialization phase and on a reset of %S0.
%SW30 Last scan time Indicates the execution time of the last controller scan cycle (in ms). S
(master task)
NOTE: This time corresponds to the time elapsed between the start
(acquisition of inputs) and the end (update of outputs) of a master task scan
cycle. If the scan time is 2.250 ms, the %SW30 is 2 and the %SW70 is 250.
S Controlled by the system
U Controlled by the user
SIM Applied in the simulator
NOTE: The post configuration has priority over the configuration provided
by your application. The configuration of your application is not taken into
account if the M221 Logic Controller has a post configuration.
%SW101 Value of the When bit %S101 is set to 1, you can change the Modbus address of SL1 or U
%SW102 Modbus address SL2. The address of SL1 is %SW101. The address of SL2 is %SW102.
port
NOTE: The update is applied immediately after writing a new address to
%SW101 or %SW102.
S Controlled by the system
U Controlled by the user
SIM Applied in the simulator
Baud rate:
000: 1200 baud,
001: 2400 baud,
010: 4800 baud,
011: 9600 baud,
100: 19200 baud,
101: 38400 baud,
110: 57600 baud,
111: 115200 baud.
RTS/CTS:
0: disabled,
1: enabled.
Parity:
00: none,
10: odd,
11: even.
Stop bit:
0: 1 stop bit,
1: 2 stop bits.
Data bits:
0: 7 data bits,
1: 8 data bits.
%SW105 Configuration for When bit %S103 (SL1) or %S104 (SL2) is set to 1, the ASCII protocol is used. S, U
%SW106 use of the ASCII System word %SW105 (SL1) or %SW106 (SL2) must be set according to the
protocol elements below:
%SW114 Enable schedule Enables or disables operation of schedule blocks by the program: S and U,
blocks Bit [0]: Enable/disable schedule block number 0 SIM
Set to 0: disabled
Set to 1: enabled
...
Bit [15]: Enable/disable schedule block number 15
Set to 0: disabled
Set to 1: enabled
Bit [10]:
Set to 0: Invalid internal configuration; contact Schneider Electric
customer service.
Set to 1: No error detected.
Bit [13]:
Set to 0: Configuration error detected (mandatory modules, as
defined by the I/O expansion bus configuration, are absent or
otherwise inoperative when the logic controller attempts to start the
I/O expansion bus). In this case, the I/O bus does not start.
Set to 1: No error detected.
Bit [14]:
Set to 0: One or more modules have ceased communication with the
logic controller after the I/O expansion bus is started. This is the case
whether an I/O expansion module is defined as mandatory or optional
but present at start-up.
Set to 1: No error detected.
NOTE: The other bits of this word are set to 1 and are reserved.
%SW119 Optional module One bit for each expansion module in the configuration: S, SIM
feature Bit [0]: Reserved for the logic controller
configuration Bit n: Module n
Set to 1: Module is marked as optional in the configuration.
Set to 0: Module is not marked as optional in the configuration.
General status:
0x80: Cartridge is not present and it is not configured in EcoStruxure
Machine Expert - Basic.
0x81: Module is present, but it is not configured.
0x82: Internal communication error with the cartridge.
0x83: Internal communication error with the cartridge.
0x84: Detected cartridge different from the configuration.
0x85: Configured cartridge is not detected.
%SW148 Number of If %S90 is set to 0, you can save up to 2000 memory words (%MW50 up to U
persistent %MW2049).
variables If %S90 is set to 1, you can save all memory words from %MW0.
Reference Code ID
TM221M16R• 0x0780
TM221ME16R• 0x0781
TM221M16T• 0x0782
TM221ME16T• 0x0783
TM221M32TK 0x0784
TM221ME32TK 0x0785
TM221C16R 0x0786
TM221CE16R 0x0787
TM221C16U 0x0796
TM221CE16U 0x0797
TM221C16T 0x0788
TM221CE16T 0x0789
TM221C24R 0x078A
TM221CE24R 0x078B
TM221C24T 0x078C
TM221CE24T 0x078D
TM221C24U 0x0798
TM221CE24U 0x0799
TM221C40R 0x078E
TM221CE40R 0x078F
TM221C40T 0x0790
TM221CE40T 0x0791
TM221C40U 0x079A
TM221CE40U 0x079B
Introduction
The following provides information about the properties of input channel status words. A dedicated
input channel status word exists for each analog input channel added using an I/O expansion
module or TMC2 cartridge.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click System objects → Input Status Words.
Result: Input channel status word properties is displayed.
Introduction
The following provides information about the properties of output status words. A dedicated output
channel status word exists for each analog output channel added using an I/O expansion module
or TMC2 cartridge.
Step Action
1 Select the Tools tab in the left-hand area of the Programming window.
2 Click System objects → Output Status Words.
Result: Output channel status word properties are displayed in the properties window.
For cartridges:
x is the cartridge number
y is the channel number
Glossary
A
analog input
Converts received voltage or current levels into numerical values. You can store and process these
values within the logic controller.
analog output
Converts numerical values within the logic controller and sends out proportional voltage or current
levels.
B
BOOTP
(bootstrap protocol) A UDP network protocol that can be used by a network client to automatically
obtain an IP address (and possibly other data) from a server. The client identifies itself to the server
using the client MAC address. The server, which maintains a pre-configured table of client device
MAC addresses and associated IP addresses, sends the client its pre-configured IP address.
BOOTP was originally used as a method that enabled diskless hosts to be remotely booted over a
network. The BOOTP process assigns an infinite lease of an IP address. The BOOTP service
utilizes UDP ports 67 and 68.
C
configuration
The arrangement and interconnection of hardware components within a system and the hardware
and software parameters that determine the operating characteristics of the system.
D
DHCP
(dynamic host configuration protocol) An advanced extension of BOOTP. DHCP is more
advanced, but both DHCP and BOOTP are common. (DHCP can handle BOOTP client requests.)
digital I/O
(digital input/output) An individual circuit connection at the electronic module that corresponds
directly to a data table bit. The data table bit holds the value of the signal at the I/O circuit. It gives
the control logic digital access to I/O values.
E
EDS
(electronic data sheet) A file for fieldbus device description that contains, for example, the
properties of a device such as parameters and settings.
EtherNet/IP
(Ethernet industrial protocol) An open communications protocol for manufacturing automation
solutions in industrial systems. EtherNet/IP is in a family of networks that implement the common
industrial protocol at its upper layers. The supporting organization (ODVA) specifies EtherNet/IP
to accomplish global adaptability and media independence.
EtherNet/IP Adapter
An EtherNet/IP Adapter, sometimes also called a server, is an end-device in an EtherNet/IP
network. I/O blocks and drives can be EtherNet/IP Adapter devices.
F
FreqGen
(frequency generator) A function that generates a square wave signal with programmable
frequency.
G
GRAFCET
The functioning of a sequential operation in a structured and graphic form.
This is an analytical method that divides any sequential control system into a series of steps, with
which actions, transitions, and conditions are associated.
H
HMI
(human machine interface) An operator interface (usually graphical) for human control over
industrial equipment.
HSC
(high-speed counter) A function that counts pulses on the controller or on expansion module
inputs.
I
IEC 61131-3
Part 3 of a 3-part IEC standard for industrial automation equipment. IEC 61131-3 is concerned with
controller programming languages and defines 2 graphical and 2 textual programming language
standards. The graphical programming languages are ladder diagram and function block diagram.
The textual programming languages include structured text and instruction list.
IL
(instruction list) A program written in the language that is composed of a series of text-based
instructions executed sequentially by the controller. Each instruction includes a line number, an
instruction code, and an operand (refer to IEC 61131-3).
Input Assembly
Assemblies are blocks of data exchanged between network devices and the logic controller. An
Input Assembly generally contains status information from a network device read by the controller.
instruction list language
A program written in the instruction list language that is composed of a series of text-based
instructions executed sequentially by the controller. Each instruction includes a line number, an
instruction code, and an operand (see IEC 61131-3).
L
ladder diagram language
A graphical representation of the instructions of a controller program with symbols for contacts,
coils, and blocks in a series of rungs executed sequentially by a controller (see IEC 61131-3).
LAN
(local area network) A short-distance communications network that is implemented in a home,
office, or institutional environment.
LD
(ladder diagram) A graphical representation of the instructions of a controller program with symbols
for contacts, coils, and blocks in a series of rungs executed sequentially by a controller (refer to
IEC 61131-3).
LSB
(least significant bit/byte) The part of a number, address, or field that is written as the right-most
single value in conventional hexadecimal or binary notation.
M
master task
A processor task that is run through its programming software. The master task has 2 sections:
IN: Inputs are copied to the IN section before execution of the master task.
OUT: Outputs are copied to the OUT section after execution of the master task.
Modbus
The protocol that allows communications between many devices connected to the same network.
MSB
(most significant bit/byte The part of a number, address, or field that is written as the left-most
single value in conventional hexadecimal or binary notation.
O
Output Assembly
Assemblies are blocks of data exchanged between network devices and the logic controller. An
Output Assembly generally contains command sent by the controller to network devices.
P
periodic execution
The task is executed either cyclically or periodically. In periodic mode, you determine a specific
time (period) in which the task is executed. If it is executed under this time, a waiting time is
generated before the next cycle. If it is executed over this time, a control system indicates the
overrun. If the overrun is too high, the controller is stopped.
periodic task
The periodic task is a periodic, high-priority task of short duration that runs on a logic controller
through its programming software. The short duration of the periodic task prevents it from
interfering with the execution of slower, lower priority tasks. A periodic task is useful when fast
periodic changes in digital inputs need to be monitored.
PID
(proportional, integral, derivative) A generic control loop feedback mechanism (controller) widely
used in industrial control systems.
post configuration
(post configuration) An option that allows to modify some parameters of the application without
changing the application. Post configuration parameters are defined in a file that is stored in the
controller. They are overloading the configuration parameters of the application.
protocol
A convention or standard definition that controls or enables the connection, communication, and
data transfer between 2 computing system and devices.
PTO
(pulse train outputs) A fast output that oscillates between off and on in a fixed 50-50 duty cycle,
producing a square wave form. PTO is especially well suited for applications such as stepper
motors, frequency converters, and servo motor control, among others.
PWM
(pulse width modulation) A fast output that oscillates between off and on in an adjustable duty
cycle, producing a rectangular wave form (though you can adjust it to produce a square wave).
R
RTC
(real-time clock) A battery-backed time-of-day and calender clock that operates continuously, even
when the controller is not powered for the life of the battery.
S
security parameters
A set of configuration parameters used to enable or disable specific protocols and features relating
to the cybersecurity of an application.
SFC
(sequential function chart) A language that is composed of steps with associated actions,
transitions with associated logic condition, and directed links between steps and transitions. (The
SFC standard is defined in IEC 848. It is IEC 61131-3 compliant.)
SMS
(short message service) A standard communication service for telephones (or other devices) that
send short text messages over the mobile communications system.
Index
Symbols %SW, 40
%SW (system words), 252
%C, 40
%SW118, 84
%DR, 40
%SW119, 84
%FC, 40
%SW120, 84
%FREQGEN, 40
%SW148, 63, 64, 64
%HSC, 40
%SW6, 56, 59
%I, 40, 218
%TM, 40
%IN, 230
%VAR, 40
%IW, 40, 220
%IWE, 40, 226
%IWM, 40, 229
%IWM/%QWM, 141
A
active I/O bus error handling, 122
%IWN, 234
adapter
%IWNS (IOScanner network diagnostic
EtherNet/IP, 153
codes), 238
Altivar devices
%IWS (input channel status), 277
adding to Modbus Serial IOScanner, 181
%KD, 40
analog inputs, 96
%KF, 40
configuration, 96
%KW, 40
introduction, 96
%M, 40
properties, 220
%MD, 40
analog outputs
%MF, 40
properties, 222
%MSG, 40
application download, 60
%MW, 40
%PARAM, 40
%PLS, 40
%PWM, 40
B
%Q, 40, 219 backup controller memory, 213
%QN, 232 boot controller, 60
%QW, 40, 222
%QWE, 40, 224
%QWM, 40, 227
C
%QWN, 236 cartridges
%QWS (Output channel status), 279 configuration, 130
%R, 40 TMC2, 130
%S, 40 channel assistant
%S (system bits), 240 Modbus Serial IOScanner, 185
%S93, 63 Modbus TCP IOScanner, 148
%S94, 64, 64 channels
%SBR, 40 Modbus Serial IOScanner, 187
%SC, 40 Modbus TCP IOScanner, 150
E
EDS file, Modbus TCP, 155 H
embedded communication HALTED state, 62
configuration, 131 hardware initialization values, 65
embedded input/output high speed counters, 99
configuration, 89 configuration, 101
introduction, 99
O remote devices
adding to Modbus TCP, 143
objects
restarting I/O expansion bus, 124
addressing, 40
restore controller memory, 213
addressing examples, 40
RUN Controller, 61
definition of, 33
Run/Stop, 92
introduction, 34
configuring digital input as, 92
maximum number allowed, 44
network, 223
object types, 34 S
Output assembly (EtherNet/IP)
SD card, 202
properties, 226
application management, 206
output behavior, 65, 67
cloning, 200
output channel status (%QWS), 279
post configuration management, 208
output forcing, 67
updating firmware, 202
output rearming, 68
serial line, 171, 179
output registers
configuration, 172
properties, 229
configuring Modbus Serial IOScanner,
Output registers (IOScanner)
180
properties, 236
configuring to use %SEND_RECV_SMS,
172
P introduction, 171
software initialization values, 65
passive I/O bus error handling, 123
STOP Controller, 61
persistent variables, 63
supported devices, 130
Post Conf
system bits
Presentation, 70
%S106, 123
post configuration
%S107, 124
file management, 72
%S93, 63
Post Configuration
%S94, 64, 64
Presentation, 70
system words
programming languages
%SW118, 84
IL, LD, 26
%SW119, 84
IL, LD, Grafcet, 20
%SW120, 84
pulse generators, 110
%SW148, 63, 64, 64
configuration, 110
FREQGEN configuration, 119
introduction, 110 T
PLS configuration, 112
TM3 expansion modules
PTO configuration, 116
updating firmware, 202
PWM configuration, 114
R U
unit ID, 141
rearming outputs, 68
updating firmware, 88, 202
uploading applications, 59
W
Warm start, 62
EIO0000003305 09/2020
Modicon M221
Logic Controller
Advanced Functions Library Guide
09/2020
EIO0000003305.01
www.schneider-electric.com
The information provided in this documentation contains general descriptions and/or technical
characteristics of the performance of the products contained herein. This documentation is not
intended as a substitute for and is not to be used for determining suitability or reliability of these
products for specific user applications. It is the duty of any such user or integrator to perform the
appropriate and complete risk analysis, evaluation and testing of the products with respect to the
relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or
subsidiaries shall be responsible or liable for misuse of the information contained herein. If you
have any suggestions for improvements or amendments or have found errors in this publication,
please notify us.
You agree not to reproduce, other than for your own personal, noncommercial use, all or part of
this document on any medium whatsoever without permission of Schneider Electric, given in
writing. You also agree not to establish any hypertext links to this document or its content.
Schneider Electric does not grant any right or license for the personal and noncommercial use of
the document or its content, except for a non-exclusive license to consult it on an "as is" basis, at
your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when installing and
using this product. For reasons of safety and to help ensure compliance with documented system
data, only the manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant
instructions must be followed.
Failure to use Schneider Electric software or approved software with our hardware products may
result in injury, harm, or improper operating results.
Failure to observe this information can result in injury or equipment damage.
© 2020 Schneider Electric. All rights reserved.
2 EIO0000003305 09/2020
Table of Contents
Safety Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Part I Introduction to Advanced Functions . . . . . . . . . . . . . 17
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Expert I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Embedded Expert I/O Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
General Information on Function Block Management . . . . . . . . . . . . . 26
Part II Advanced Expert Input Functions . . . . . . . . . . . . . . . 27
Chapter 2 Fast Counter (%FC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Programming Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Chapter 3 High Speed Counter (%HSC) . . . . . . . . . . . . . . . . . . . . . 35
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
High Speed Counter in Counting Modes . . . . . . . . . . . . . . . . . . . . . . . 40
High Speed Counter in Frequency Meter Mode . . . . . . . . . . . . . . . . . 47
Part III Advanced Expert Output Functions . . . . . . . . . . . . . 51
Chapter 4 Pulse (%PLS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Function Block Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Programming Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Chapter 5 Pulse Width Modulation (%PWM). . . . . . . . . . . . . . . . . . 61
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Function Block Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Programming Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Chapter 6 Drive (%DRV) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Drive and Logic Controller States . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Adding a Drive Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Function Block Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
MC_Power_ATV: Enable/Disable Power Stage . . . . . . . . . . . . . . . . . 77
MC_Jog_ATV: Start Jog Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
MC_MoveVel_ATV: Move at Specified Velocity . . . . . . . . . . . . . . . . . 82
MC_Stop_ATV: Stop Movement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
EIO0000003305 09/2020 3
MC_ReadStatus_ATV: Read Device Status . . . . . . . . . . . . . . . . . . . . 87
MC_ReadMotionState_ATV: Read Motion State . . . . . . . . . . . . . . . . . 90
MC_Reset_ATV: Acknowledge and Reset Error . . . . . . . . . . . . . . . . . 93
Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Chapter 7 Pulse Train Output (%PTO) . . . . . . . . . . . . . . . . . . . . . . . 99
7.1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Pulse Train Output (PTO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Pulse Output Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Acceleration / Deceleration Ramp . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Probe Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Backlash Compensation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Positioning Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
7.2 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
PTO Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Motion Task Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
7.3 Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Adding / Removing a Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . 128
PTO Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
7.4 Home Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
Homing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Position Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Long Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
Short Reference No Reversal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Short Reference Reversal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
Home Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
7.5 Data Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Function Block Object Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
7.6 Operation Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
Motion State Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
Buffer Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
7.7 Motion Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
MC_MotionTask_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . 154
MC_Power_PTO Function Block. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
MC_MoveVel_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
MC_MoveRel_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
MC_MoveAbs_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
4 EIO0000003305 09/2020
MC_Home_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
MC_SetPos_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
MC_Stop_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
MC_Halt_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
7.8 Administrative Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
MC_ReadActVel_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . 186
MC_ReadActPos_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . 188
MC_ReadSts_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
MC_ReadMotionState_PTO Function Block. . . . . . . . . . . . . . . . . . . 192
MC_ReadAxisError_PTO Function Block . . . . . . . . . . . . . . . . . . . . . 194
MC_Reset_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
MC_TouchProbe_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . 198
MC_AbortTrigger_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . 201
MC_ReadPar_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
MC_WritePar_PTO Function Block . . . . . . . . . . . . . . . . . . . . . . . . . . 205
Chapter 8 Frequency Generator (%FREQGEN) . . . . . . . . . . . . . . . 207
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Part IV Advanced Software Functions . . . . . . . . . . . . . . . . . 213
Chapter 9 PID Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
9.1 PID Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
PID Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
9.2 PID Auto-Tuning Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
PID Auto-Tuning Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
9.3 PID Standard Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
PID Word Address Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
PID Tuning with Auto-Tuning (AT). . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
Manual Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
Determining the Sampling Period (Ts) . . . . . . . . . . . . . . . . . . . . . . . . 233
9.4 PID Assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
Access the PID Assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
General Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Input Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
PID Tab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
AT Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
Output Tab. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
EIO0000003305 09/2020 5
9.5 PID Programming. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
Programming and Configuring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
PID States and Detected Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . 252
Appendices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
Appendix A PID Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Role and Influence of PID Parameters. . . . . . . . . . . . . . . . . . . . . . . . . 258
PID Parameter Adjustment Method . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
6 EIO0000003305 09/2020
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with the device
before trying to install, operate, service, or maintain it. The following special messages may appear
throughout this documentation or on the equipment to warn of potential hazards or to call attention
to information that clarifies or simplifies a procedure.
EIO0000003305 09/2020 7
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by qualified
personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of
the use of this material.
A qualified person is one who has skills and knowledge related to the construction and operation
of electrical equipment and its installation, and has received safety training to recognize and avoid
the hazards involved.
WARNING
UNGUARDED EQUIPMENT
Do not use this software and related automation equipment on equipment which does not have
point-of-operation protection.
Do not reach into machinery during operation.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
This automation equipment and related software is used to control a variety of industrial processes.
The type or model of automation equipment suitable for each application will vary depending on
factors such as the control function required, degree of protection required, production methods,
unusual conditions, government regulations, etc. In some applications, more than one processor
may be required, as when backup redundancy is needed.
Only you, the user, machine builder or system integrator can be aware of all the conditions and
factors present during setup, operation, and maintenance of the machine and, therefore, can
determine the automation equipment and the related safeties and interlocks which can be properly
used. When selecting automation and control equipment and related software for a particular
application, you should refer to the applicable local and national standards and regulations. The
National Safety Council's Accident Prevention Manual (nationally recognized in the United States
of America) also provides much useful information.
In some applications, such as packaging machinery, additional operator protection such as point-
of-operation guarding must be provided. This is necessary if the operator's hands and other parts
of the body are free to enter the pinch points or other hazardous areas and serious injury can occur.
Software products alone cannot protect an operator from injury. For this reason the software
cannot be substituted for or take the place of point-of-operation protection.
8 EIO0000003305 09/2020
Ensure that appropriate safeties and mechanical/electrical interlocks related to point-of-operation
protection have been installed and are operational before placing the equipment into service. All
interlocks and safeties related to point-of-operation protection must be coordinated with the related
automation equipment and software programming.
NOTE: Coordination of safeties and mechanical/electrical interlocks for point-of-operation
protection is outside the scope of the Function Block Library, System User Guide, or other
implementation referenced in this documentation.
WARNING
EQUIPMENT OPERATION HAZARD
Verify that all installation and set up procedures have been completed.
Before operational tests are performed, remove all blocks or other temporary holding means
used for shipment from all component devices.
Remove tools, meters, and debris from equipment.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Follow all start-up tests recommended in the equipment documentation. Store all equipment
documentation for future references.
Software testing must be done in both simulated and real environments.
Verify that the completed system is free from all short circuits and temporary grounds that are not
installed according to local regulations (according to the National Electrical Code in the U.S.A, for
instance). If high-potential voltage testing is necessary, follow recommendations in equipment
documentation to prevent accidental equipment damage.
Before energizing equipment:
Remove tools, meters, and debris from equipment.
Close the equipment enclosure door.
Remove all temporary grounds from incoming power lines.
Perform all start-up tests recommended by the manufacturer.
EIO0000003305 09/2020 9
OPERATION AND ADJUSTMENTS
The following precautions are from the NEMA Standards Publication ICS 7.1-1995 (English
version prevails):
Regardless of the care exercised in the design and manufacture of equipment or in the selection
and ratings of components, there are hazards that can be encountered if such equipment is
improperly operated.
It is sometimes possible to misadjust the equipment and thus produce unsatisfactory or unsafe
operation. Always use the manufacturer’s instructions as a guide for functional adjustments.
Personnel who have access to these adjustments should be familiar with the equipment
manufacturer’s instructions and the machinery used with the electrical equipment.
Only those operational adjustments actually required by the operator should be accessible to
the operator. Access to other controls should be restricted to prevent unauthorized changes in
operating characteristics.
10 EIO0000003305 09/2020
About the Book
At a Glance
Document Scope
This document provides descriptions of the EcoStruxure Machine Expert - Basic advanced
functions and their relation to the M221 Logic Controller expert I/O and PID support. Here you can
find descriptions of the functionalities, characteristics and performances of the M221 Logic
Controller advanced functions.
Validity Note
The information in this manual is applicable only for EcoStruxure Machine Expert - Basic products.
This document has been updated for the release of EcoStruxureTM Machine Expert - Basic V1.1.
The technical characteristics of the devices described in the present document also appear online.
To access the information online:
Step Action
1 Go to the Schneider Electric home page www.schneider-electric.com.
2 In the Search box type the reference of a product or the name of a product range.
Do not include blank spaces in the reference or product range.
To get information on grouping similar modules, use asterisks (*).
3 If you entered a reference, go to the Product Datasheets search results and click on the
reference that interests you.
If you entered the name of a product range, go to the Product Ranges search results and click
on the product range that interests you.
4 If more than one reference appears in the Products search results, click on the reference that
interests you.
5 Depending on the size of your screen, you may need to scroll down to see the data sheet.
6 To save or print a data sheet as a .pdf file, click Download XXX product datasheet.
The characteristics that are presented in the present document should be the same as those
characteristics that appear online. In line with our policy of constant improvement, we may revise
content over time to improve clarity and accuracy. If you see a difference between the document
and online information, use the online information as your reference.
EIO0000003305 09/2020 11
Related Documents
You can download these technical publications and other technical information from our website
at https://www.se.com/ww/en/download/ .
12 EIO0000003305 09/2020
Product Related Information
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths
and, for certain critical control functions, provide a means to achieve a safe state during and
after a path failure. Examples of critical control functions are emergency stop and overtravel
stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the
implications of unanticipated transmission delays or failures of the link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest
edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003305 09/2020 13
Terminology Derived from Standards
The technical terms, terminology, symbols and the corresponding descriptions in this manual, or
that appear in or on the products themselves, are generally derived from the terms or definitions
of international standards.
In the area of functional safety systems, drives and general automation, this may include, but is not
limited to, terms such as safety, safety function, safe state, fault, fault reset, malfunction, failure,
error, error message, dangerous, etc.
Among others, these standards include:
Standard Description
EN 61131-2:2007 Programmable controllers, part 2: Equipment requirements and tests.
ISO 13849-1:2008 Safety of machinery: Safety related parts of control systems.
General principles for design.
EN 61496-1:2013 Safety of machinery: Electro-sensitive protective equipment.
Part 1: General requirements and tests.
ISO 12100:2010 Safety of machinery - General principles for design - Risk assessment and risk
reduction
EN 60204-1:2006 Safety of machinery - Electrical equipment of machines - Part 1: General
requirements
EN 1088:2008 Safety of machinery - Interlocking devices associated with guards - Principles
ISO 14119:2013 for design and selection
ISO 13850:2006 Safety of machinery - Emergency stop - Principles for design
EN/IEC 62061:2005 Safety of machinery - Functional safety of safety-related electrical, electronic,
and electronic programmable control systems
IEC 61508-1:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: General requirements.
IEC 61508-2:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Requirements for electrical/electronic/programmable
electronic safety-related systems.
IEC 61508-3:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Software requirements.
IEC 61784-3:2008 Digital data communication for measurement and control: Functional safety
field buses.
2006/42/EC Machinery Directive
2014/30/EU Electromagnetic Compatibility Directive
2014/35/EU Low Voltage Directive
14 EIO0000003305 09/2020
In addition, terms used in the present document may tangentially be used as they are derived from
other standards such as:
Standard Description
IEC 60034 series Rotating electrical machines
IEC 61800 series Adjustable speed electrical power drive systems
IEC 61158 series Digital data communications for measurement and control – Fieldbus for use in
industrial control systems
Finally, the term zone of operation may be used in conjunction with the description of specific
hazards, and is defined as it is for a hazard zone or danger zone in the Machinery Directive
(2006/42/EC) and ISO 12100:2010.
NOTE: The aforementioned standards may or may not apply to the specific products cited in the
present documentation. For more information concerning the individual standards applicable to the
products described herein, see the characteristics tables for those product references.
EIO0000003305 09/2020 15
16 EIO0000003305 09/2020
Modicon M221 Logic Controller
Introduction
EIO0000003305 09/2020
Part I
Introduction to Advanced Functions
EIO0000003305 09/2020 17
Introduction
18 EIO0000003305 09/2020
Modicon M221 Logic Controller
Introduction
EIO0000003305 09/2020
Chapter 1
Introduction
Introduction
Overview
This document provides descriptions of the EcoStruxure Machine Expert - Basic advanced
functions and their relation to the M221 expert I/O and PID support. Here you can find descriptions
of the functionalities, characteristics and performances of the Fast Counter (%FC), High Speed
Counter (%HSC), Pulse (%PLS), Pulse Width Modulation (%PWM), and Pulse Train Output
(%PTO) inputs and outputs. In addition, you can find a complete description of the PID advanced
software functionality. For information about the user-defined functions and the user-defined
function blocks, refer to User-Defined Functions (see EcoStruxure Machine Expert - Basic,
Operating Guide) and User-Defined Function Blocks (see EcoStruxure Machine Expert - Basic,
Operating Guide).
The functions provide simple yet powerful solutions for your application. However, the use and
application of the information contained herein require expertise in the design and programming of
automated control systems.
Only you, the user, machine builder or integrator, can be aware of all the conditions and factors
present during installation and setup, operation, and maintenance of the machine or related
processes, and can therefore determine the automation and associated equipment and the related
safeties and interlocks which can be effectively and properly used. When selecting automation and
control equipment, and any other related equipment or software, for a particular application, you
must also consider any applicable local, regional or national standards and/or regulations.
WARNING
REGULATORY INCOMPATIBILITY
Ensure that all equipment applied and systems designed comply with all applicable local,
regional, and national regulations and standards.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003305 09/2020 19
Introduction
The functionality provided by the EcoStruxure Machine Expert - Basic advanced functions for the
M221 controllers was conceived and designed assuming that you incorporate the necessary safety
hardware into your application architecture, such as, but not limited to, appropriate limit switches
and emergency stop hardware and controlling circuitry. It is implicitly assumed that functional
safety measures are present in your machine design to prevent undesirable machine behavior
such as over-travel or other forms of uncontrolled movement. Further, it is assumed that you have
performed a functional safety analysis and risk assessment appropriate to your machine or
process.
WARNING
UNINTENDED EQUIPMENT OPERATION
Ensure that a risk assessment is conducted and respected according to EN/ISO 12100 during
the design of your machine.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
20 EIO0000003305 09/2020
Introduction
Expert I/O
Introduction
The M221 logic controller provides:
Four fast inputs (%I0.0, %I0.1, %I0.6 and %I0.7)
Two fast outputs on controller references that contain transistor outputs (%Q0.0 and %Q0.1)
Four fast outputs on controller references TM221C40U and TM221CE40U (%Q0.0, %Q0.1,
%Q0.2, and %Q0.3)
NOTE: No fast output functions are supported on controller references that contain relay outputs.
The M221 logic controller supports the following expert I/O functions (depending on the reference):
Functions Description
Counters Fast Counter The FC function can execute fast counts of pulses from sensors,
(see page 29) switches, and so on.
High Speed Counter The HSC function can execute fast counts of pulses from
(see page 35) sensors, switches, and so on, that are connected to the fast
inputs.
Pulse Pulse (see page 53) The PLS function generates a square wave pulse signal on
Generators dedicated output channels.
Pulse Width Modulation The PWM function generates a modulated wave signal on
(see page 61) dedicated output channels with a variable duty cycle.
Pulse Train Output The PTO function generates a pulse train output to control a
(see page 99) linear single-axis stepper or servo drive in open loop mode.
Frequency Generator The FREQGEN function generates a square wave signal on a
(see page 207) dedicated output channel with programmable frequency and
duty cycle of 50%.
NOTE:
When an input is used as Run/Stop, it cannot be used by an expert function.
When an output is used as Alarm, it cannot be used by an expert function.
For more details, refer to Embedded Input/Output Configuration (see Modicon M221, Logic
Controller, Programming Guide).
EIO0000003305 09/2020 21
Introduction
Step Description
1 Click the High Speed Counters node in the hardware tree.
Result: The High Speed Counters list is displayed:
2 Click ... in the Configuration column to select the type of high speed counter and to display the High
Speed Counter Assistant window.
Step Description
1 Click the Pulse Generators node in the hardware tree.
Result: The Pulse Generators list is displayed:
2 Click [...] in the Configuration column to select the type of pulse generator and to display the Pulse
Train Output Assistant window.
22 EIO0000003305 09/2020
Introduction
X Yes
– No
(1)
%HSC2 is available when %HSC0 is configured as Single Phase or Not Configured.
(2) %HSC3 is available when %HSC1 is configured as Single Phase or Not Configured.
(3)
PTO function is available on controller references that contain transistor outputs.
EIO0000003305 09/2020 23
Introduction
24 EIO0000003305 09/2020
Introduction
EIO0000003305 09/2020 25
Introduction
When an instance of a function block receives a new Execute before it is finished (as a series of
commands on the same instance), the function block does not return any feedback, like Done, for
the previous action. However, the new command is started on the function block (status is Busy).
Error Handling
All blocks have two outputs that can report errors detected during the execution of the function
block:
Error= The rising edge of this output indicates that an error was detected.
ErrID= The error code of the error detected.
26 EIO0000003305 09/2020
Modicon M221 Logic Controller
Advanced Expert Input Functions
EIO0000003305 09/2020
Part II
Advanced Expert Input Functions
Overview
This part describes the advanced expert input functions.
EIO0000003305 09/2020 27
Advanced Expert Input Functions
28 EIO0000003305 09/2020
Modicon M221 Logic Controller
Fast Counter (%FC)
EIO0000003305 09/2020
Chapter 2
Fast Counter (%FC)
EIO0000003305 09/2020 29
Fast Counter (%FC)
Description
Introduction
Illustration
This illustration is a Fast Counter function block in single-word mode:
Inputs
The Fast Counter function block has the following inputs:
30 EIO0000003305 09/2020
Fast Counter (%FC)
Outputs
The Fast Counter function block has the following output:
EIO0000003305 09/2020 31
Fast Counter (%FC)
Configuration
Parameters
To configure parameters, follow the Configuring a Function Block procedure (see EcoStruxure
Machine Expert - Basic, Generic Functions Library Guide) and read the description of Memory
Allocation Modes in the EcoStruxure Machine Expert - Basic Operating Guide (see EcoStruxure
Machine Expert - Basic, Operating Guide).
The Fast Counter function block has the following parameters:
32 EIO0000003305 09/2020
Fast Counter (%FC)
Objects
The Fast Counter function block is associated with the following objects:
Operation
This table describes the main stages of Fast Counter function block operations:
Special Cases
This table contains a list of special operating cases for the Fast Counter function block:
EIO0000003305 09/2020 33
Fast Counter (%FC)
Programming Example
Introduction
In this example, the application counts a number of items up to 5000 while %I0.1 is set to 1. The
input for %FC1 is the dedicated input %I0.3. When the preset value is reached, %FC1.D is set to
1 and retains the same value until %FC1.R is commanded by the result of AND on %I0.2 and %M0.
Programming
This example is a Fast Counter function block:
Rung Instruction
0 BLK %FC1
LD %I0.1
IN
LD %I0.2
AND %M0
R
OUT_BLK
LD D
ST %Q0.0
END_BLK
NOTE: Refer to the reversibility procedure (see EcoStruxure Machine Expert - Basic, Generic
Functions Library Guide) to obtain the equivalent Ladder Diagram.
34 EIO0000003305 09/2020
Modicon M221 Logic Controller
High Speed Counter (%HSC)
EIO0000003305 09/2020
Chapter 3
High Speed Counter (%HSC)
EIO0000003305 09/2020 35
High Speed Counter (%HSC)
Description
Introduction
The High Speed Counter function block can be configured by EcoStruxure Machine
Expert - Basic to perform any one of the following functions:
Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Single Phase
Frequency Meter
The High Speed Counter function block works at a maximum frequency of 100 kHz for all
counting modes with a range of 0 to 65535 in single word and 0 to 4294967295 in double word.
The High Speed Counter function block uses dedicated inputs and auxiliary inputs and outputs.
Refer to the M221 Logic Controller - Hardware Guide for more information on inputs and outputs.
You must initialize the High Speed Counter function in the Configuration tab using the High
Speed Counter Assistant before using an instance of the function block. Refer to Configuring High
Speed Counters (see Modicon M221, Logic Controller, Programming Guide).
Graphical Representation
36 EIO0000003305 09/2020
High Speed Counter (%HSC)
Inputs
The High Speed Counter function block has the following inputs:
In addition, this also initializes the operation of the threshold outputs and takes
into account any user modifications to the threshold values set in the properties
window or the program.
The High Speed Counter function block is associated with the following input objects:
NOTE: The %HSCi.R and %HSCi.S bits respectively enable or disable the reflex outputs only if
the HSC function block is enabled, that is, if %HSCi.IN is set to 1.
EIO0000003305 09/2020 37
High Speed Counter (%HSC)
Outputs
The High Speed Counter function block has the following outputs:
The High Speed Counter function block is associated with the following output objects:
38 EIO0000003305 09/2020
High Speed Counter (%HSC)
Properties
The High Speed Counter function block has the following properties:
Special Cases
This table shows a list of special operating of the High Speed Counter function block:
EIO0000003305 09/2020 39
High Speed Counter (%HSC)
Introduction
The High Speed Counter function block works at a maximum frequency of 100 kHz for all
counting modes with a range of 0 to 65535 in single word and 0 to 4294967295 in double word.
The pulses to be counted are applied in the following way:
NOTE: I/O assignment is different between the Twido platform and M221 Logic Controller range.
On the M221 Logic Controller, the main pulse input is %I0.0 for %HSC0 and %I0.6 for %HSC1. On
the Twido platform, the main pulse input is %I0.1 for %HSC0 and %I0.7 for %HSC1.
Output Thresholds
During counting, the current value is compared to two thresholds: %HSCi.S0 or %HSCi.S0D and
%HSCi.S1 or %HSCi.S1D.
In single word mode, modifications to these threshold values are taken into account regardless of
the value of the Preset input.
In double word mode, modifications to the threshold values made in an animation table are not
taken into account. Modifications made in the application are, however, taken into account
regardless of the value of the Preset input.
40 EIO0000003305 09/2020
High Speed Counter (%HSC)
Threshold value modifications are saved in the logic controller (%HSCi.S0, %HSCi.S1,
%HSCi.S0D and %HSCi.S1D objects), but not in the Configuration window of EcoStruxure
Machine Expert - Basic.
According to the result of the comparisons, the bit objects, %HSCi.TH0 and %HSCi.TH1, are:
set to 1 if the current value is greater than or equal to the corresponding threshold
reset to 0 if the current value is less than the corresponding threshold.
Physical reflex outputs can be configured to respond differentially within the context of the compare
results of the threshold values and the current value of the counters.
NOTE: None, 1 or 2 reflex outputs can be configured.
For more information on the configuration of reflex outputs, refer to Configuring Dual Phase and
Single Phase Counters (see Modicon M221, Logic Controller, Programming Guide).
%HSCi.U is an output of the function block; it gives the direction of the associated counter variation
(1 for UP, 0 for DOWN).
Auxiliary Inputs
Counting operations are made on the rising edge of pulses, and only if the counting function block
is enabled (IN input at state 1).
There are two optional inputs used in counting mode: Catch Input and Preset Input:
A rising edge of the Catch Input is used to capture the current value (%HSCi.V or %HSCi.VD)
and store it in %HSCi.C or %HSCi.CD. The catch inputs are specified as %I0.3 for %HSC0 and
%I0.4 for %HSC1 if available.
A rising edge of the Preset Input initializes %HSCi.V or %HSCi.VD value with the preset value
for:
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Dual Phase [Pulse / Direction] with down function in progress
If the auxiliary Preset Input is set to 1 with the input IN at 0 (the function is inhibited), the outputs
are not monitored and maintain their values.
NOTE: %HSCi.F is also set to 0. The Preset Input is specified as %I0.2 for %HSC0 and/or %I0.5
for %HSC1.
EIO0000003305 09/2020 41
High Speed Counter (%HSC)
Operation
This illustration is the operation diagram of the counting mode in single word mode (in double word
mode, use the double word function variables):
NOTE: Reflex outputs are managed independently from the controller cycle time.
Reflex Output Value < %HSC0.S0 %HSC0.S0 <= Value < %HSC0.S1 Value >= %HSC0.S1
%Q0.2 0 0 1
%Q0.3 1 1 0
42 EIO0000003305 09/2020
High Speed Counter (%HSC)
Timing diagram:
EIO0000003305 09/2020 43
High Speed Counter (%HSC)
(8) S is set to 1 so the new preset value (%HSC0.P = 20) is taken into account and the reflex outputs are
updated. Note: If an auxiliary preset input is used instead of S, the reflex outputs are not updated in
accordance with the Twido family of controllers.
(9) IN input is set to 1 and the function restarts in down counting mode
(10) The threshold value %HSC0.S1 is set to 17
(11) S input active makes threshold S1 new value to be granted at the next count and resets %HSC0.V to 0
(12) A catch of the current value %HSC0.V is made so %HSC0.C = 14
NOTE: %HSC0.R and %HSC0.S must be set to TRUE to have the configured reflex outputs active.
Dual Phase [Quadrature X1], Dual Phase [Quadrature X2], Dual Phase [Quadrature
X4] Timing Diagram
A physical encoder provides two 90° shifted signals that allow the counter to count pulses and
detect direction:
X1 1 count for each encoder cycle
X2 2 counts for each encoder cycle
X4 4 counts for each encoder cycle
Timing diagram:
Quadrature X1 When channel A leads channel B, the counter increments on the rising edge of channel A.
When channel B leads channel A, the counter decrements on the falling edge of channel A.
Quadrature X2 Counter increments or decrements on each edge of channel A, depending on which channel
leads the other. Each cycle results in two increments or decrements.
Quadrature X4 The counter increments or decrements on each edge of channels A and B. Whether the counter
increments or decrements depends on which channel leads the other. Each cycle results in 4 increments
or decrements.
44 EIO0000003305 09/2020
High Speed Counter (%HSC)
Reflex Output Value < %HSC0.S0 %HSC0.S0 <= Value < %HSC0.S1 Value >= %HSC0.S1
%Q0.2 0 1 0
%Q0.3 1 0 1
Timing diagram:
(1) IN is set to 1: the counting function is activated (%HSC0.U = 1 because %HSC0 is an up-counter)
(2) %Q0.2 (Reflex Output) and TH0 are set to 1
EIO0000003305 09/2020 45
High Speed Counter (%HSC)
46 EIO0000003305 09/2020
High Speed Counter (%HSC)
Introduction
The frequency meter mode of an High Speed Counter is used to measure the frequency of a
periodic signal in Hz on input IA (pulse input phase A).
The frequency range which can be measured is 1 Hz to 100 kHz with a range of 0 to 4294967295
in double word mode.
It is possible to choose between 2 time bases, the choice being made by the object %HSC.T (Time
base):
Accuracy Measurement
EIO0000003305 09/2020 47
High Speed Counter (%HSC)
Operation
This illustration is the operation diagram of the frequency meter mode:
48 EIO0000003305 09/2020
High Speed Counter (%HSC)
Timing Diagram
This timing diagram is an example of using a High Speed Counter in frequency meter mode:
(1) The first frequency measurement starts at a rising edge of the TB signal
(2) %HSC0.V (or %HSC0.VD) is updated after one period of the TB
(3) Input IN and input S are set to 1 so %HSC0.V (or %HSC0.VD) is set to 0
(4) %HSC0.T is set to 100 ms, so the measurement is canceled and a new one starts
(5) Input IN is set to 0, so the frequency measurement function is inhibited and %HSC0.V (or %HSC0.VD) is
held
(6) S is set to 1, so the value %HSC0.V (or %HSC0.VD) is set to 0
(7) S is set to 0 and IN is set to 1, so the measurement will start at the next rising edge of the TB signal
EIO0000003305 09/2020 49
High Speed Counter (%HSC)
50 EIO0000003305 09/2020
Modicon M221 Logic Controller
Advanced Expert Output Functions
EIO0000003305 09/2020
Part III
Advanced Expert Output Functions
Overview
This part describes the advanced expert output functions.
EIO0000003305 09/2020 51
Advanced Expert Output Functions
52 EIO0000003305 09/2020
Modicon M221 Logic Controller
Pulse (%PLS)
EIO0000003305 09/2020
Chapter 4
Pulse (%PLS)
Pulse (%PLS)
EIO0000003305 09/2020 53
Pulse (%PLS)
Description
Introduction
Characteristic Value
Number of channels 2
Minimum frequency 1 Hz
Maximum frequency 10000 Hz
Accuracy on frequency 1%
Illustration
This illustration is a Pulse function block:
54 EIO0000003305 09/2020
Pulse (%PLS)
Inputs
The Pulse function block has the following inputs:
Outputs
The Pulse function block has the following outputs:
EIO0000003305 09/2020 55
Pulse (%PLS)
Overview
To configure the Pulse Generator resource, refer to Configuring Pulse Generators
(see Modicon M221, Logic Controller, Programming Guide).
To configure the Pulse Generator resource as a PLS, refer to Configuring Pulse (see Modicon
M221, Logic Controller, Programming Guide).
Parameters
The Pulse function block has the following parameters:
Num. Pulse Number of To produce an unlimited number of pulses, set %PLS.N or %PLS.ND
pulses to 0.
(%PLSi.N,
%PLSi.ND)
Current Current output 0 or 1.
(%PLSi.Q)
Done Done pulse At state 1, signal generation is complete. The number of desired
(%PLSi.D) pulses has been reached. It is reset by either setting the IN or the R
inputs to 1.
Comment Comment An optional comment can be associated with this object.
Double-click in the Comment column and type a comment.
56 EIO0000003305 09/2020
Pulse (%PLS)
Objects
The Pulse function block is associated with the following objects:
Rules of Use
The output signal period T is set with Preset and the Time Base parameters such as
T = %PLSi.P x .Time Base.
This table shows the range of available periods:
The Time Base is set on the Configuration → Pulse Generators and cannot be modified. For more
details, refer to Configuring Pulse Generators (see Modicon M221, Logic Controller, Programming
Guide).
If %PLSi.P is:
changed, the output signal period is changed at the end of the current period.
set to 0, the pulse generation function is stopped.
out of range, the parameter is forced to 0 and the pulse generation function is stopped.
EIO0000003305 09/2020 57
Pulse (%PLS)
Timing Diagram
This diagram displays the timing for Pulse function block:
(1) IN input is set to 1, the pulse signal is generated at the dedicated output (%Q0.0) so %PLSi.Q is set to 1
(2) The number of pulses reaches %PLS0.N (=4) so the Done flag output (%PLS0.D) is set to 1 and the pulse
generation is stopped (%PLS0.Q = 0)
(3) IN input is set to 1 so %PLS0.D is reset to 0
(4) IN input is set to 0 so the output channel is set to 0 and %PLS0.Q = 0 indicates that the signal generation
is not active
(5) %PLS0.D is set to 0 by setting R input to 1
58 EIO0000003305 09/2020
Pulse (%PLS)
Special Cases
WARNING
UNINTENDED EQUIPMENT OPERATION
Avoid issuing a warm restart command (%S1=TRUE) while an ongoing PLS command is active.
If a warm restart is unavoidable, you must take into account any pulses that were sent prior to
the warm restart.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003305 09/2020 59
Pulse (%PLS)
Programming Example
Introduction
The Pulse function block can be configurated as in this programming example.
Programming
This example is a Pulse function block:
Rung Instruction
0 BLK %PLS0
LD %M1
IN
LD %M0
R
OUT_BLK
LD Q
ST %Q0.5
LD D
ST %M10
END_BLK
NOTE: Refer to the reversibility procedure (see EcoStruxure Machine Expert - Basic, Generic
Functions Library Guide) to obtain the equivalent Ladder Diagram.
60 EIO0000003305 09/2020
Modicon M221 Logic Controller
Pulse Width Modulation (%PWM)
EIO0000003305 09/2020
Chapter 5
Pulse Width Modulation (%PWM)
EIO0000003305 09/2020 61
Pulse Width Modulation (%PWM)
Description
Introduction
The Pulse Width Modulation function block generates a variable wave signal on a
dedicated output channel, %Q0.0 or %Q0.1, with variable width and, therefore, duty cycle.
Controllers with relay outputs for these two channels do not support this function.
%PWM0 uses dedicated output %Q0.0 and %PMW1 uses dedicated output %Q0.1. The Pulse function
blocks %PLS can also be configured to use these same dedicated outputs. You can configure one
or the other of these two functions, but not both, for any given dedicated output.
You must configure the Pulse Width Modulation function block in the Configuration → Pulse
Generators before using an instance of the function block. Refer to Configuring Pulse Generators
(see Modicon M221, Logic Controller, Programming Guide).
The PWM function has the following characteristics:
Characteristic Value
Number of channels 2
Minimum frequency 1 Hz
Maximum frequency 10000 Hz
Accuracy on frequency 1%
Illustration
This illustration presents the Pulse Width Modulation function block:
Inputs
The Pulse Width Modulation function block has the following input:
62 EIO0000003305 09/2020
Pulse Width Modulation (%PWM)
Overview
To configure the Pulse Generator resource, refer to Configuring Pulse Generators
(see Modicon M221, Logic Controller, Programming Guide).
To configure the Pulse Generator resource as a PWM, refer to Configuring Pulse Width
Modulation (see Modicon M221, Logic Controller, Programming Guide).
Properties
The Pulse Width Modulation function block has the following properties:
Duty cycle From 0 to 100 The Duty cycle is controlled by the object
%PWMi.R, and is the percentage of the
NOTE: Values greater than 100 are
considered to be equal to 100. signal in state 1 within the period. The
width of state 1 (Tp) is thus equal to:
TP = T x (%PWMi.R/100). The user
application writes the value for %PWMi.R.
Comment User-defined text A comment to associate with this object.
NOTE: The Num.Pulse, Current and Done properties that appear in the Pulse Generators
properties table under the Programming tab do not apply to the PWM function.
EIO0000003305 09/2020 63
Pulse Width Modulation (%PWM)
Objects
The Pulse Width Modulation function block is associated with the following objects:
If %PWMi.P is:
modified, the output signal period is affected at the end of the ongoing period.
set to 0, the pulse generation function is stopped.
out of range, the parameter is forced to 0 and the pulse generation function is stopped.
If %PWMi.R is:
set to 0, the pulse generation function is stopped (output set to 0).
set to 100, the output signal is set to 1
changed, the output signal ratio is changed at the end of the current period.
out of range, the parameter is forced to 0.
Time Base
The Time Base is set in the menu Configuration → Pulse Generators and can only be modified
under the Configuration tab. For more details, refer to Configuring Pulse Generators (see Modicon
M221, Logic Controller, Programming Guide).
The output signal period T is set with Preset and the Time Base parameters such that
T = %PWMi.P x Time Base.
This table presents the range of available periods:
64 EIO0000003305 09/2020
Pulse Width Modulation (%PWM)
Timing Diagram
This diagram presents the timing for the Pulse Width Modulation function block:
(1) The PWM ratio (%PWMi.R) is set to 20%, IN = 0 so the pulse generation is not active
(2) IN is set to 1 so PWM output is activated
(3) The programmable width (Tp) changes with %PWM.R
(4) IN is set to 0 so the PWM function is inhibited
EIO0000003305 09/2020 65
Pulse Width Modulation (%PWM)
Special Cases
66 EIO0000003305 09/2020
Pulse Width Modulation (%PWM)
Programming Example
Introduction
The Pulse Width Modulation function block can be configured as in this programming
example.
Programming Example
In this example:
The signal width is modified by the program according to the state of controller input %I0.0 and
%I0.1.
The time base is set to 10 ms.
The preset value %PWM0.P is set to 50 so the ratio step is equal to 2%.
The configurable period T is equal to 500 ms.
Rung Instruction
0 LDN %I0.0
ANDN %I0.1
[%PWM0.R:=20]
1 LD %I0.0
ANDN %I0.1
[%PWM0.R:=50]
2 LD %I0.0
AND %I0.1
[%PWM0.R:=80]
3 BLK %PWM0
LD %I0.2
IN
END_BLK
NOTE: Refer to the reversibility procedure (see EcoStruxure Machine Expert - Basic, Generic
Functions Library Guide) to obtain the equivalent Ladder Diagram.
EIO0000003305 09/2020 67
Pulse Width Modulation (%PWM)
68 EIO0000003305 09/2020
Modicon M221 Logic Controller
ATV Function Blocks
EIO0000003305 09/2020
Chapter 6
Drive (%DRV)
Drive (%DRV)
EIO0000003305 09/2020 69
ATV Function Blocks
Description
Presentation
Drive function blocks allow drive devices such as Altivar Speed Drives to be controlled by
an M221 Logic Controller. For example:
Control the speed of a motor managed by an ATV drive and update it continuously
Monitor the status of the ATV drive and motor
Manage errors detected in the ATV drive.
In EcoStruxure Machine Expert - Basic, first add targeted ATV drive types to the Modbus Serial
IOScanner or Modbus TCP IOScanner. This sets up predefined channels and initialization
requests allowing data to be read from and written to specific registers on the ATV drive, including
for example:
ETA Status Word
ETI Extended Status Word
RFRD Output Velocity (RPM)
DP0 Error Code on Last Error
CMD Control Word
Data transfer is carried out using Modbus request type FC23 - Read/Write Multiple Registers. This
allows the program, for example, to read from the ETA, ETI, and DP0 registers and write to the
CMD register with a single Modbus request.
The following single-axis Drive function blocks are available in the Programming tab of
EcoStruxure Machine Expert - Basic:
A maximum of 16 instances of each Drive function block can be used in a program at any one time.
70 EIO0000003305 09/2020
ATV Function Blocks
When a device is added to the Modbus Serial IOScanner or Modbus TCP IOScanner, EcoStruxure
Machine Expert - Basic allocates an axis for the device using a %DRVn object, where n is the
number of the ATV drive. Each time you add a Drive function block to your program, you must
associate it with an axis, creating a link between the function block, the axis, and the target device
defined in the Modbus Serial IOScanner or Modbus TCP IOScanner.
EIO0000003305 09/2020 71
ATV Function Blocks
State Description
Disabled Initial state. The drive is not in an operational status or in an error status.
Standstill The drive is in an operational status (ETA = 16#xx37) and Velocity = 0 (RFRD = 0).
ErrorStop The drive is in an error status (ETA = 16#xxx8)
Continuous motion The drive is in an operational status (ETA = 16#xx37) and Velocity ≠ 0 (RFRD ≠ 0).
Stopping MC_Stop_ATV function block is executing.
The function block MC_ReadStatus_ATV (see page 87) can be used to read the status of the ATV
drive.
72 EIO0000003305 09/2020
ATV Function Blocks
NOTE: In the case of the controller state of HALTED or STOPPED, and you have selected to
Maintain values, the drive is not given any further commands by the controller. Therefore, the drive
must determine the appropriate state to assume. If you chose to Maintain values for the drive, you
must include this in your hazard and risk analysis for any consequential and possibly hazardous
events.
WARNING
UNINTENDED EQUIPMENT OPERATION
Ensure that a risk assessment is conducted and respected according to EN/ISO 12100 during
the design of your machine.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003305 09/2020 73
ATV Function Blocks
Prerequisites
Prerequisites to add a Drive function block:
A Modbus Serial IOScanner or Modbus TCP IOScanner must be configured on a serial line or
on Ethernet.
The ATV drives to be controlled must be added and configured (see Modicon M221, Logic
Controller, Programming Guide) on the Modbus Serial IOScanner or Modbus TCP IOScanner .
Step Action
1 Select the Programming tab.
2 Select Function Blocks → Drive as shown in the following graphic:
74 EIO0000003305 09/2020
ATV Function Blocks
Step Action
1 In the Programming tab, click the instance of the function block.
2 Press Delete to remove the selected function block.
EIO0000003305 09/2020 75
ATV Function Blocks
Step Action
1 Select the Programming → Tools tab and click Drive objects → Drive to display Drive object
properties.
76 EIO0000003305 09/2020
ATV Function Blocks
Description
This function block enables or disables the drive power stage.
A rising edge of the input Enable enables the power stage. When the power stage is enabled, the
output Status is set to 1.
A falling edge of the input Enable disables the power stage (Shutdown command without
Error). When the power stage is disabled, the output Status is reset to 0.
If the internal status register ETA of the ATV drive has not reached an operational status before
the expiration of the timeout value, a Timeout Error is generated. The timeout is calculated as
the channel cycle time multiplied by 4, or 10 seconds, whichever is greater. A minimum of
10 seconds is required to allow for drive reaction time.
If errors are detected during execution of the function block, the output Error is set to 1. This leads
to a Shutdown command (CMD = 16#0006) to disable the ATV drive (Ready to switch on status,
ETA = 16#xx21).
If an error occurs, only a successful execution of MC_Reset_ATV (see page 93) function block can
restore the power stage.
Graphical Representation
Inputs
This table describes the inputs of the function block:
EIO0000003305 09/2020 77
ATV Function Blocks
Outputs
This table describes the outputs of the function block:
Parameters
Double-click the function block to display the function block parameters.
The MC_Power_ATV function block has the following parameters:
78 EIO0000003305 09/2020
ATV Function Blocks
Description
This function block starts the Jog operating mode. A Jog operation commands a device to move
forwards or backwards at a specified velocity.
If either of the function blocks MC_MoveVel_ATV (see page 82) or MC_Stop_ATV (see page 85)
is enabled while this function block is executing (Busy output set to 1), the MC_Jog_ATV function
block commands the movement. The Busy output is reset to 0 and the CmdAborted output is set
to 1.
When a Jog operation is in progress, a change of velocity value (Vel) is only applied on detection
of a falling/rising edge of the Forward or Backward inputs.
If either of the Error or CmdAborted outputs is set to 1, the Forward and Backward inputs must
first be reset to 0 and then a new rising edge applied to the Forward and/or Backward inputs to
restart the movement.
Starting a Jog operation while the MC_Stop_ATV (see page 85) function block is executing causes
a Stop Active Error. Starting a Jog operation when the drive is not in an operational status (ETA ≠
16#xx37) causes a Not Run Error.
Graphical Representation
EIO0000003305 09/2020 79
ATV Function Blocks
Inputs
This table describes the inputs of the function block:
Outputs
This table describes the outputs of the function block:
80 EIO0000003305 09/2020
ATV Function Blocks
Parameters
Double-click the function block to display the function block parameters.
The MC_Jog_ATV function block has the following parameters:
EIO0000003305 09/2020 81
ATV Function Blocks
Description
This function block starts the Profile Velocity operating mode with a specified velocity. When the
target velocity is reached, the InVel output is set to 1.
If the MC_Jog_ATV (see page 79) or MC_Stop_ATV (see page 85) function blocks are enabled
while this function block is executing (Busy output set to 1), MC_MoveVel_ATV commands the
movement. In this case, the Busy output is reset to 0 and the CmdAborted output is set to 1.
The ContUpdate and Vel input values are applied on a rising edge of the Execute input.
If either of the Error or CmdAborted outputs of MC_MoveVel_ATV is set to 1, a new rising edge
of Execute is necessary to resume the movement.
Starting this function block while the MC_Stop_ATV (see page 85) function block is executing
leads to a Stop Active Error.
Starting this function block when the drive is not in an operational status (ETA ≠ 16#xx37), leads
to a Not Run Error.
Graphical Representation
82 EIO0000003305 09/2020
ATV Function Blocks
Inputs
This table describes the inputs of the function block:
Outputs
This table describes the outputs of the function block:
NOTE: When the speed command of the ATV drive is low (< 10), the InVel and ConstantVel
parameters may be invalid because the speed range of the ATV drive itself may be inaccurate.
EIO0000003305 09/2020 83
ATV Function Blocks
Parameters
Double-click the function block to display the function block parameters.
The MC_MovelVel_ATV function block has the following parameters:
84 EIO0000003305 09/2020
ATV Function Blocks
Description
This function block stops the ongoing movement of the specified drive.
Drive-specific stop parameters, for example deceleration, are provided by the configuration of the
drive.
Once started by a rising edge on the Execute input, any further activity on the Execute input is
ignored until Done is set to TRUE. Executing another Drive function block while MC_Stop_ATV is
busy does not abort the stop procedure—the function block MC_Stop_ATV remains busy and the
other function block ends in an error.
The stop procedure can only be interrupted by disabling the power stage or if an error occurs (for
example, ATV Not Run error or Modbus TCP IOScanner or Modbus Serial IOScanner error).
Graphical Representation
Inputs
This table describes the inputs of the function block:
EIO0000003305 09/2020 85
ATV Function Blocks
Outputs
This table describes the outputs of the function block:
Parameters
Double-click the function block to display the function block parameters.
The MC_Stop_ATV function block has the following parameters:
86 EIO0000003305 09/2020
ATV Function Blocks
Description
The function block reads the status of the ATV drive.
Refer to Drive State Diagram (see page 72) for details on the states.
Graphical Representation
Inputs
This table describes the inputs of the function block:
EIO0000003305 09/2020 87
ATV Function Blocks
Outputs
This table describes the outputs of the function block:
88 EIO0000003305 09/2020
ATV Function Blocks
Parameters
Double-click the function block to display the function block parameters.
The MC_ReadStatus_ATV function block has the following parameters:
EIO0000003305 09/2020 89
ATV Function Blocks
Description
This function block outputs status information on the movement read from the ATV drive.
Graphical Representation
Inputs
This table describes the inputs of the function block:
90 EIO0000003305 09/2020
ATV Function Blocks
Outputs
This table describes the outputs of the function block:
NOTE: When the speed command of the ATV drive is low (< 10), the InVel and ConstantVel
parameters may be invalid because the speed range of the ATV drive itself may be inaccurate.
EIO0000003305 09/2020 91
ATV Function Blocks
Parameters
Double-click the function block to display the function block parameters.
The MC_ReadMotionState_ATV function block has the following parameters:
92 EIO0000003305 09/2020
ATV Function Blocks
Description
This function block is used to acknowledge an error and re-initialize the error condition on the drive.
For more information, refer to Drive State Diagram (see page 72).
Graphical Representation
Inputs
This table describes the inputs of the function block:
EIO0000003305 09/2020 93
ATV Function Blocks
Outputs
This table describes the outputs of the function block:
Parameters
Double-click the function block to display the function block parameters.
The MC_Reset_ATV function block has the following parameters:
94 EIO0000003305 09/2020
ATV Function Blocks
Error Codes
EIO0000003305 09/2020 95
ATV Function Blocks
Value Name
0 No error (nOF)
2 EEPROM control (EEF1)
3 Incorrect configuration (CFF)
4 Invalid Configuration (CFI)
5 Modbus Comm Interruption (SLF1)
6 Internal Link Error (ILF)
7 Fieldbus Com Interrupt (CnF)
8 External Error (EPF1)
9 Overcurrent (OCF)
10 Precharge Capacitor (CrF)
13 AI2 4-20 mA loss (LFF2)
15 Input Overheating (IHF)
16 Drive Overheating (OHF)
17 Motor Overload (OLF)
18 DC Bus Overvoltage (ObF)
19 Supply Mains Overervoltage (OSF)
20 Single Output Phase Loss (OPF1)
21 Input phase loss (PHF)
22 Supply Mains Undervoltage (USF)
23 Motor Short Circuit (SCF1)
24 Motor Overspeed (SOF)
25 Autotuning Error
26 Internal Error 1 (InF1)
27 Internal Error 2 (InF2)
28 Internal Error 3 (InF3)
29 Internal Error 4 (InF4)
30 EEPROM ROM Power (EEF2)
32 Ground Short Circuit (SCF3)
33 Output Phase Loss (OPF2)
37 Internal Error (InF7)
38 Fieldbus Error (EPF2)
96 EIO0000003305 09/2020
ATV Function Blocks
Value Name
40 Internal Error 8 (InF8)
42 PC Com Interruption (SLF2)
45 HMI Com Interruption (SLF3)
51 Internal Error 9 (InF9)
52 Internal Error 10 (InFA)
53 Internal Error 11 (InFb)
54 IGBT Overheating (tJF)
55 IGBT Short Circuit (SCF4)
56 Motor Short Circuit (SCF5)
60 Internal Error 12 (InFC)
64 Input Contactor (LCF)
68 Internal Error 6 (InF6)
69 Internal Error 14 (InFE)
71 AI3 4-20mA Loss (LFF3)
72 AI4 4-20mA Loss (LFF4)
73 Boards Compatibility (HCF)
77 Conf Transfer Error (CFI2)
79 AI5 4-20mA Loss (LFF5)
99 Channel Switch Error (CSF)
100 Process Underload (ULF)
101 Process Overload (OLC)
105 Angle Error (ASF)
106 AI1 4-20mA Loss (LFF1)
107 Safety Function Error (SAFF)
110 AI2 Th Detected Error (tH2F)
111 AI2 Thermal Sensor Error (t2CF)
112 AI3 Th Detected Error (tH3F)
113 AI3 Thermal Sensor Error (t3CF)
114 Pump Cycle Start Error (PCPF)
119 Pump Low Flow Error (PLFF)
120 AI4 Th Detected Error (tH4F)
121 AI4 Thermal Sensor Error (t4CF)
122 AI5 Th Detected Error (tH5F)
123 AI5 Thermal Sensor Error (t5CF)
EIO0000003305 09/2020 97
ATV Function Blocks
Value Name
126 Dry Run Error (drYF)
127 PID Feedback Error (PFMF)
128 Program Loading Error (PGLF)
129 Program Running Error (PGrF)
130 Lead Pump Error (MPLF)
131 Low Level Error (LCLF)
132 High Level Error (LCHF)
142 Internal Error 16 (InFG)
143 Internal Error 17 (InFH)
144 Internal Error 0 (InF0)
146 Internal Error 13 (InFd)
149 Internal Error 21 (InFL)
151 Internal Error 15 (InFF)
152 Firmware Update Error (FEr)
153 Internal Error 22 (InFM)
154 Internal Error 25 (InFP)
155 Internal Error 20 (InF)
157 Internal Error 27 (InFr)
98 EIO0000003305 09/2020
Modicon M221 Logic Controller
Pulse Train Output (%PTO)
EIO0000003305 09/2020
Chapter 7
Pulse Train Output (%PTO)
EIO0000003305 09/2020 99
Pulse Train Output (%PTO)
Section 7.1
Description
Description
Overview
This section describes the Pulse Train Output function.
Introduction
The M221 PTO function provides pulse train output channels for a specified number of pulses and
a specified velocity (frequency). The PTO function is used to control the positioning or speed of
independent linear single-axis stepper or servo drives in open loop mode. The PTO function does
not have any position feedback information from the process. Therefore, position information must
be integrated in the drive.
The PLS (pulse), PWM (pulse width modulation), PTO (pulse train output), and FREQGEN
(frequency generator) functions use the same dedicated outputs. Only one of these four functions
can be used on the same channel.
A PTO channel can use optional interface signals for homing (Ref), event (Probe), limits (LimP,
LimN), or drive interface (DriveReady, DriveEnable).
Automatic origin offset and backlash compensation are also managed to improve positioning
accuracy. Diagnostics are available for status monitoring.
Supported Functions
The PTO channels support the following functions:
two output modes (two channels for Pulse and Direction or one channel for CW/CCW)
single axis moves (velocity and position)
relative and absolute positioning, with automatic direction management
trapezoidal and S-curve acceleration and deceleration
homing (four modes with offset compensation)
dynamic acceleration, deceleration, velocity, and position modification
switch from speed to position mode
move queuing (buffer of one move)
position capture and move trigger on event (using probe input)
backlash compensation
limits (hardware and software)
diagnostics
NOTE: Motion function blocks (see page 153) and administrative function blocks (see page 185)
help you to program these functions.
PTO Characteristics
There are up to five physical inputs for a PTO channel:
Two are assigned to the PTO function through configuration and are taken into account upon a
rising edge on the input:
Ref input
Probe input
Three are assigned to the MC_Power_PTO (see page 158) function block. They have no fixed
assignment (they are not configured in the configuration screen), and are read with all other
inputs:
DriveReady input
Limit positive input
Limit negative input
NOTE: These inputs are managed like any other regular input, but are used by the PTO function
when assigned to MC_Power_PTO (see page 158) function block.
NOTE: The positive and negative limit inputs are required to help prevent over-travel.
WARNING
UNINTENDED EQUIPMENT OPERATION
Ensure that controller hardware limit switches are integrated in the design and logic of your
application.
Mount the controller hardware limit switches in a position that allows for an adequate braking
distance.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
The other output, DriveEnable, is associated with the MC_Power_PTO (see page 158)
function block. It has no fixed assignment and is written at the end of the MAST cycle as regular
outputs.
The PTO function has the following characteristics:
Characteristic Value
Number of channels 2 or 4 depending on the module
Number of axis 1 per channel
Position range -2,147,483,648...2,147,483,647 (32 bits)
Minimum velocity 0 Hz
Characteristic Value
Maximum velocity 100 kHz (for a 40/60 duty cycle and max. 200 mA)
Minimum step 1 Hz
Accuracy on velocity 1%
Acceleration / deceleration (min) 1 Hz/ms
Acceleration / deceleration (max) 100 kHz/ms
Origin offset -2,147,483,648...2,147,483,647 (32 bits)
Software limits range -2,147,483,648...2,147,483,647 (32 bits)
Overview
There are two possible output modes:
ClockWise / CounterClockwise
Pulse / Direction
NOTE: The direction output can be disabled if not needed for the application.
Special Cases
Start Velocity
The Start Velocity is the minimum frequency at which a stepper motor can produce movement, with
a load applied, without the loss of steps.
Start Velocity parameter is used when starting a motion from velocity 0.
Start Velocity must be in the range 0...MaxVelocityAppl.
Value 0 means that the Start Velocity parameter is not used. In this case, the motion starts at a
velocity = acceleration rate x 1 ms.
Stop Velocity
The Stop Velocity is the maximum frequency at which a stepper motor stops producing movement,
with a load applied, without loss of steps.
Stop Velocity is only used when moving from a higher velocity than Stop Velocity, down to velocity
0.
Stop Velocity must be in the range 0...MaxVelocityAppl.
Value 0 means that the Stop Velocity parameter is not used. In this case, the motion stops at a
velocity = deceleration rate x 1 ms.
Acceleration / Deceleration
Acceleration is the rate of velocity change, starting from Start Velocity to target velocity.
Deceleration is the rate of velocity change, starting from target velocity to Stop Velocity. These
velocity changes are implicitly managed by the PTO function in accordance with Acceleration,
Deceleration and JerkRatio parameters following a trapezoidal or an S-curve profile.
JerkRatio 66%: 2/3 of the acceleration and deceleration time is spent in increasing and
decreasing the acceleration and deceleration value.
JerkRatio 100%: The entire time is spent in increasing and decreasing the acceleration and
deceleration value.
NOTE: The JerkRatio parameter value is common for acceleration and deceleration so that
concave time and convex time are equal.
Probe Event
Description
The Probe input is enabled by configuration, and activated using the MC_TouchProbe_PTO
function block.
The Probe input is used as an event to:
capture the position,
start a move independently of the task.
Both functions can be active at the same time, that is, the same event captures the position and
start a motion function block (see page 101).
NOTE: Only the first event after the rising edge at the MC_TouchProbe_PTO function block Busy
output is valid. Once the Done output is set to TRUE, subsequent events are ignored. The function
block needs to be reactivated to respond to other events.
Position Capture
The position captured is available in %MC_TouchProbe_PTO.RecordedPos.
Motion Trigger
The BufferMode input of a motion function block must be set to seTrigger.
This example illustrates a change target velocity with enable window:
This example illustrates a move of pre-programmed distance, with simple profile and no enable
window:
This example illustrates a move of pre-programmed distance, with complex profile and enable
window:
Backlash Compensation
Description
The Backlash Compensation parameter is defined as the amount of motion needed to compensate
for the mechanical clearance in gears (backlash) when a movement is reversed:
NOTE: The function does not take into account external sources of movement, such as inertia
movement or other forms of induced movement.
Backlash compensation is set in number of pulses (0...65535, default value is 0). When set, at each
direction reversal, the specified number of pulses is first emitted at start velocity, and then the
programmed movement is executed. The backlash compensation pulses are not added to the
position counter.
This figure illustrates the backlash compensation:
NOTE:
Before the initial movement is started, the function cannot determine the amount of backlash to
compensate for. Therefore, the backlash compensation is only active after a first move is
performed and the compensation is applied at the first direction reversal.
If an aborting command is received or an error detected before the backlash completion, the
absolute position remains unchanged.
After an abort command, the backlash resumes from current backlash position when a new
move is started.
For more details, refer to the Configuring Pulse Train Output (see Modicon M221, Logic Controller,
Programming Guide).
Positioning Limits
Introduction
Positive and negative limits can be set to control the movement boundaries in both directions. Both
hardware and software limits are managed by the controller.
Hardware and software limit switches are used to manage boundaries in the controller application
only. They are not intended to replace any functional safety limit switches wired to the drive. The
controller application limit switches must necessarily be activated before the functional safety limit
switches wired to the drive. In any case, the type of functional safety architecture, which is beyond
the scope of the present document, that you deploy depends on your safety analysis, including,
but not limited to:
risk assessment according to EN/ISO 12100
FMEA according to EN 60812
WARNING
UNINTENDED EQUIPMENT OPERATION
Ensure that a risk assessment is conducted and respected according to EN/ISO 12100 during
the design of your machine.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Once either the controller hardware or software limits are crossed, an error is detected and a Fast
stop deceleration is performed:
the axis switches to ErrorStop state, with AxisErrorId 1002 to 1005. Refer to MC_ReadAx-
isError_PTO (see page 194) and Axis Control Advisory Alerts (see page 145).
the current direction becomes invalid and the associated PTO parameter EnableDirPos
(1004) or EnableDirNeg (1005) is reset to 0 by the system.
NOTE: In previous diagram, the axis move back in the limits is the result of the execution of
MC_Reset_PTO (it is not performed automatically).
Software Limits
Software limits can be set to control the movement boundaries in both directions.
Limit values are enabled and set in the configuration screen, such that:
Positive limit > Negative limit
Values in the range -2,147,483,648 to 2,147,483,647
They can also be enabled, disabled, or modified in the application program (MC_WritePar_PTO
and PTO Parameter (see page 144)).
NOTE: When enabled, the software limits are valid after an initial homing is successfully performed
(that is, the axis is homed, MC_Home_PTO).
Hardware Limits
Hardware limits are required for the homing procedure, and for helping to prevent damage to the
machine. The appropriate inputs must be used on the %MC_Power_PTO.LimP and
%MC_Power_PTO.LimN inputs. The hardware limit devices must be of a normally closed type such
that the input to the function block is FALSE when the respective limit is reached.
NOTE: The restrictions over movement are valid while the limit inputs are FALSE and regardless
of the sense of direction. When they return to TRUE, movement restrictions are removed and the
hardware limits are functionnally rearmed. Therefore, use falling edge contacts leading to RESET
output instructions prior to the function block. Then use those bits to control these function block
inputs. When operations are complete, SET the bits to restore normal operation.
WARNING
UNINTENDED EQUIPMENT OPERATION
Ensure that controller hardware limit switches are integrated in the design and logic of your
application.
Mount the controller hardware limit switches in a position that allows for an adequate braking
distance.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: Adequate braking distance is dependent on the maximum velocity, maximum load (mass)
of the equipment being moved, and the value of the Fast stop deceleration parameter.
Section 7.2
Configuration
Configuration
Overview
This section describes how to configure a PTO channel and the associated parameters.
PTO Configuration
Overview
To configure the Pulse Generator resource, refer to the Modicon M221 Logic Controller
Programming Guide, Configuring Pulse Generators (see Modicon M221, Logic Controller,
Programming Guide).
To configure the Pulse Generator resource as a PTO, refer to the Modicon M221 Logic
Controller Programming Guide, PTO Configuration (see Modicon M221, Logic Controller,
Programming Guide).
Overview
The Motion Task Table is a programming possibility for motion function blocks, dedicated to
repetitive motion sequences. A sequence of movements is defined for an axis at configuration time
(a sequence can be compared as a recipe that mixes various movements).
The Motion Task Table can be dedicated to several axes and offers a graphical overview of the
configured motion sequence.
Use the MC_MotionTask_PTO function block to execute a Motion Task Table. When the table is
called by the MC_MotionTask_PTO function block, it needs to be associated to a specific axis.
The Motion Task Table is applied to the axis used by the MC_MotionTask_PTO function block.
Several MC_MotionTask_PTO function blocks can execute the same %MT Motion Task Table
instances simultaneously.
Features
The maximum number of Motion Task Table (%MT) instances is 4.
A Motion Task Table contains a sequence of single-axis movements:
A sequence is a succession of steps.
Each step defines the parameters of a movement.
Each step uses a dedicated motion function block instance.
Step Action
1 Select the Programming → Tools module tab and click PTO objects → Motion Task Tables in the
hardware tree to display the Motion Task Table properties.
In previous example, the velocity input parameter can be modified by program using one of the
following syntaxes:
%MC_MOVEREL_PTO1.Vel
Move_Relative_Label2.Vel
Section 7.3
Programming
Programming
Overview
This section lists the function blocks used to program the PTO function and describes how to add
or remove those function blocks.
Step Action
1 Select the Programming tab.
2 Select Function Blocks → PTO → Administrative or Function Blocks → PTO → Motion as shown in
the following graphic:
Step Action
1 In the Programming tab, click the instance of the function block.
2 Press Delete to remove the selected function block.
Function Blocks
The PTO function is programmed in EcoStruxure Machine Expert - Basic using the following
function blocks:
NOTE: The motion function blocks act on the position of the axis according to the motion state
diagram. The administrative function blocks do not influence the motion state.
NOTE: The MC_Power_PTO (see page 158) function block is mandatory before a move command
can be issued.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not use the same function block instance in different program tasks.
Do not change the function block reference (AXIS) while the function block is executing.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Section 7.4
Home Modes
Home Modes
Overview
This section describes the PTO home modes.
Homing Modes
Description
Homing is the method used to establish the reference point or origin for absolute movement.
A homing movement can be made using different methods. The M221 PTO channels provide
several standard homing movement types:
position setting (see page 135),
long reference (see page 136),
short reference reversal (see page 140),
short reference no reversal (see page 138),
A homing movement must be terminated without interruption for the new reference point to be
valid.
%MC_ReadSts_PTO.IsHomed is set to TRUE when a homing movement is finished
successfully. If the homing movement is interrupted, it needs to be started again.
%MC_ReadSts_PTO.IsHomed is set to FALSE when the axis state is DISABLED, or when no
homing movement was finished successfully.
Refer to MC_Home_PTO (see page 174) and home modes function block object codes
(see page 144).
Home Position
Homing is done with an external switch and the homing position is defined on the switch edge.
Then the motion is decelerated until stop.
The actual position of the axis at the end of the motion sequence may therefore differ from the
position parameter set on the function block:
To simplify the representation of a stop in the homing mode diagrams, the following presentation
is made to represent the actual position of the axis:
Limits
Hardware limits are necessary for the correct functioning of the MC_Home_PTO function block
(Positioning Limits (see page 114) and MC_Power_PTO). Depending on the movement type you
request with the homing mode, the hardware limits help assure that the end of travel is respected
by the function block.
When a homing action is initiated in a direction away from the reference switch, the hardware limits
serve to either:
indicate a reversal of direction is required to move the axis toward the reference switch or,
indicate that an error has been detected as the reference switch was not found before reaching
the end of travel.
For homing movement types that allow for reversal of direction, when the movement reaches the
hardware limit the axis stops using the configured deceleration, and resumes motion in a reversed
direction.
In homing movement types that do not allow for the reversal of direction, when the movement
reaches the hardware limit, the homing procedure is aborted and the axis stops with the Fast stop
deceleration.
WARNING
UNINTENDED EQUIPMENT OPERATION
Ensure that controller hardware limit switches are integrated in the design and logic of your
application.
Mount the controller hardware limit switches in a position that allows for an adequate braking
distance.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: Adequate braking distance is dependent on the maximum velocity, maximum load (mass)
of the equipment being moved, and the value of the Fast stop deceleration parameter.
Position Setting
Description
In the case of position setting, the current position is set to the specified position value. No move
is performed.
Long Reference
Home Offset
Description
If the origin cannot be defined by switches with enough accuracy, it is possible to make the axis
move to a specific position away from the origin switch. Home offset allows making a difference
between mechanical origin and electrical origin.
Home offset is set in number of pulses (-2,147,483,648...2,147,483,647, default value 0). When
set by configuration, the MC_Home_PTO command is executed first, and then the specified number
of pulses is output at the home low velocity in the specified direction.
NOTE: The wait time between MC_Home_PTO command stop on origin switch and start of offset
movement is fixed, set to 500 ms. The MC_Home_PTO command busy flag is only released after
origin offset has been completed.
Section 7.5
Data Parameters
Data Parameters
Direction
This table lists the values for the direction function block object codes:
Buffer Modes
This table lists the values for the buffer modes function block object codes:
Homing Modes
This table lists the values for the homing modes function block object codes:
PTO Parameter
This table lists the values for the PTO parameters function block object codes:
An Axis Control Alert switches the axis in ErrorStop state (MC_Reset_PTO is mandatory to get out
of ErrorStop state). The resulting axis status is reflected by MC_ReadSts_PTO and
MC_ReadAxisError_PTO.
A Motion State Alert or a Range Alert does not affect the axis state, nor any move currently
executing, nor the move queue. In this case, the error is only local to the applicable function block:
the Error output is set to TRUE, and the ErrorId object output is set to the appropriate PTO
motion command error code.
Section 7.6
Operation Modes
Operation Modes
Overview
This section describes the operation modes.
State Diagram
The axis is always in one of the defined states in this diagram:
State Description
Disabled Initial state of the axis, no motion command is allowed. The axis is not homed.
Standstill Power is on, no error is detected, and no motion commands are active on the axis. Motion
command is allowed.
ErrorStop Highest priority, applicable when an error is detected on the axis or in the controller. Any
ongoing move is aborted by a Fast Stop Deceleration. Error output is set to TRUE on
applicable function blocks, and an ErrorId sets the error code. As long as an error is
pending, the state remains ErrorStop. No further motion command is accepted until a
reset has been done using MC_Reset_PTO.
Homing Applicable when MC_Home_PTO controls the axis.
Discrete Applicable when MC_MoveRel_PTO, MC_MoveAbs_PTO, or MC_Halt_PTO controls the
axis.
Continuous Applicable when MC_MoveVel_PTO controls the axis.
Stopping Applicable when MC_Stop_PTO controls the axis.
NOTE: Function blocks which are not listed in the state diagram do not affect a change of state of
the axis.
The entire motion command including acceleration and deceleration ramps cannot exceed
4,294,967,295 pulses. At the maximum frequency of 100 kHz, the acceleration and deceleration
ramps are limited to 80 seconds.
Command Next
Home MoveVel MoveRel MoveAbs Halt Stop
Current Standstill Allowed Allowed (1)
Allowed (1)
Allowed (1) Allowed Allowed
Home Rejected Rejected Rejected Rejected Rejected Allowed
MoveVel Rejected Allowed Allowed Allowed Allowed Allowed
MoveRel Rejected Allowed Allowed Allowed Allowed Allowed
MoveAbs Rejected Allowed Allowed Allowed Allowed Allowed
Halt Rejected Allowed Allowed Allowed Allowed Allowed
Stop Rejected Rejected Rejected Rejected Rejected Rejected
(1)
When the axis is at standstill, for the buffer modes mcAborting/mcBuffered/mcBlendingPrevious, the
move starts immediately.
Allowed the new command begins execution even if the previous command has not completed execution.
Rejected the new command is ignored and results in the declaration of an error.
NOTE: When an error is detected in the motion transition, the axis goes into ErrorStop state. The
ErrorId is set to InvalidTransition.
Buffer Mode
Description
Some of the motion function blocks have an input object called BufferMode. With this input
object, the function block can either start immediately, start on probe event, or be buffered.
The available options are defined in the buffer modes function block object codes (see page 143):
An aborting motion (mcAborting) starts immediately, aborting any ongoing move, and clearing
the motion queue.
An event motion (seTrigger) is an aborting move, starting on probe event (see page 109).
A buffered motion (mcBuffered, mcBlendingPrevious, seBufferedDelay) is queued,
that is, appended to any moves currently executing or waiting to execute, and starts when the
previous motion is done.
NOTE:
Only a valid motion can be queued. If the function block execution terminates with the Error
output set to TRUE, the move is not queued, any move currently executing is not affected, and
the queue is not cleared.
When the queue is already full, the Error output is set to TRUE on the applicable function
block, and ErrorId output returns the error MotionQueueFull.
Section 7.7
Motion Function Blocks
Overview
This section describes the Motion function blocks.
Function Description
Both single movement motion function blocks and the Motion Task Table function block
(MC_MotionTask_PTO) can be used for an axis.
However, the MC_MotionTask_PTO function block cannot be executed concurrently with another
motion function block. If so, an error is detected and the ErrorId is set to InvalidTransition-
MotionTask (2009) (see page 146).
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis and motion task
table. Double-click the function block to display the function block properties, choose the axis and table,
then click Apply.
Inputs
This table describes the inputs of the function block:
When reset to FALSE after being set to TRUE, the motion task execution
resumes in the following conditions:
The motion task resumes with the value of the ongoing velocity.
The active step parameters are used.
The absolute target position is not changed. If the motion task is a move
relative type, there is no distance added.
In the step, the Next step condition is reset (for example: the delay is
restarted from 0, Probe input event is enabled and waiting for the
configured edge).
Outputs
This table describes the outputs of the function block:
If a loop is requested (Loop input), the Ended output is TRUE for one task
cycle.
Busy - When TRUE, function block execution is in progress.
When FALSE, execution of the function block has been terminated.
Active - When TRUE, the function block instance has control of the axis. Only one
function block at a time can set Active TRUE for the same axis.
Operating Modes
The execution of a Motion Task Table called by MC MotionTask PTO function block complies
with the motion state diagram (see page 149).
MC_MotionTask_PTO start: The function block can only be started from Standstill state.
MC_MotionTask_PTO stop: The function block can be stopped by one of the following actions:
Setting Pause input to TRUE.
Executing a MC_Stop_PTO
Behavior
The axis is disabled, when:
%MC_Power_PTO.Enable = FALSE, or
%MC_Power_PTO.DriveReady = FALSE, or
an Hardware limit error is detected (HwPositionLimitP / HwPositionLimitN)
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the inputs of the function block:
Outputs
This table describes the outputs of the function block:
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the inputs of the function block:
Outputs
This table describes the outputs of the function block:
NOTE:
To stop the motion, the function block has to be interrupted by another function block issuing a
new command.
If a motion is ongoing, and the direction is reversed, first the motion is halted with the
deceleration of the MC_MoveVel_PTO function block, and then the motion resumes backward.
The acceleration/deceleration duration of the segment block must not exceed 80 seconds.
The diagram illustrates a complex profile from Continuous state with change of direction:
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
NOTE:
The function block completes with velocity zero if no further blocks are pending.
If the distance is too short for the target velocity to be reached, the movement profile is
triangular, rather than trapezoidal.
If a motion is ongoing, and the commanded distance is exceeded due to the current motion
parameters, the direction reversal is automatically managed: the motion is first halted with the
deceleration of the MC_MoveRel_PTO function block, and then the motion resumes backward.
The acceleration/deceleration duration of the segment block must not exceed 80 seconds.
The diagram illustrates a complex profile from Continuous state with change of direction:
The diagram illustrates a complex profile from Discrete state with change of direction:
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
NOTE:
The function block completes with velocity zero if no further blocks are pending.
The motion direction is automatically set, according to the current and target positions.
If the distance is too short for the target velocity to be reached, the movement profile is
triangular, rather than trapezoidal.
If the position cannot be reached with the current direction, the direction reversal is
automatically managed. If a motion is ongoing, it is first halted with the deceleration of the
MC_MoveAbsolute_PTO function block, and then the motion resumes backward.
The acceleration/deceleration duration of the segment block must not exceed 80 seconds.
The diagram illustrates a complex profile from Discrete state with change of direction:
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
NOTE: The acceleration/deceleration duration of the segment block must not exceed 80 seconds.
Behavior
This function block modifies the coordinates of the actual position of the axis without any physical
movement. It can only be used when the axis is in a Standstill state.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
NOTE:
Calling this function block in state Standstill changes the state to Stopping, and back to
Standstill when Execute is FALSE.
The state Stopping is kept as long as the input Execute is TRUE.
The Done output is set when the stop ramp is finished.
If Deceleration = 0, the fast stop deceleration is used.
The function block completes with velocity zero.
The deceleration duration of the segment block must not exceed 80 seconds.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Section 7.8
Administrative Function Blocks
Overview
This section describes the Administrative function blocks.
Function Description
This function block returns the value of the actual velocity of the axis.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Function Description
This function block returns the value of the actual position of the axis.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Function Description
This function block returns the state diagram status of the axis.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Function Description
This function block returns the actual motion status of the axis.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Function Description
This function block retrieves the axis control error. If no axis control error is pending, the function
block returns AxisErrorId = 0.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Behavior
This function block resets all axis-related errors, conditions permitting, to allow a transition from the
states ErrorStop to Standstill. It does not affect the output of the function blocks instances.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Function Description
This function block is used to activate a trigger event on the probe input. This trigger event allows
to record the axis position, and/or to start a buffered move.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the inputs of the function block:
Outputs
This table describes the outputs of the function block:
NOTE:
Only one instance of this function block is allowed on the same axis.
Only the first event after the rising edge at the MC_TouchProbe_PTO function block Busy
output is valid. Once the Done output is set to TRUE, subsequent events are ignored. The
function block needs to be reactivated to respond to other events.
Function Description
This function block is used to abort function blocks which are connected to trigger events (for
example, MC_TouchProbe_PTO).
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Function Description
This function block is used to get parameters from the PTO.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Function Description
This function block is used to write parameters to the PTO.
Graphical Representation
NOTE: When you first enter the function block, you must configure it to use the intended axis. Double-click on
the function block to display the function block properties, choose the axis and click Apply.
Inputs
This table describes the input of the function block:
Outputs
This table describes the outputs of the function block:
Chapter 8
Frequency Generator (%FREQGEN)
Description
Introduction
The frequency generator FREQGEN function block commands a square wave signal output
at a specified frequency.
The frequency is configurable from 0 Hz to 100 kHz with a 1 Hz step.
The FREQGEN function has the following characteristics:
Characteristic Value
Number of channels 2 or 4, depending on the reference
Minimum frequency 1 Hz
Maximum frequency 10000 Hz
Accuracy on frequency 1%
Illustration
This illustration is a FREQGEN function block:
Inputs
This table describes the inputs of the function block:
Outputs
This table describes the outputs of the function block:
Configuration
Overview
To configure the Pulse Generator resource, refer to Configuring Pulse Generators
(see Modicon M221, Logic Controller, Programming Guide).
To configure the Pulse Generator resource as a FREQGEN, refer to Configuring Frequency
Generator (see Modicon M221, Logic Controller, Programming Guide)
Properties
The FREQGEN function block has the following properties:
Timing Diagram
This diagram displays the timing for the FREQGEN function block:
(1) The ENABLE input is set to 1. The frequency generator signal is generated at the dedicated output. The
INFREQ output is set to 1. The BUSY output is set to 1.
(2) The frequency value is changed. The INFREQ output is set to 0 until the new frequency is being generated
at the dedicated output. The BUSY output remains set to 1.
(3) The SYNC input is set to 1. The current frequency generator cycle stops and a new cycle starts. The
INFREQ output is set to 1. The BUSY output remains set to 1.
(4) The ENABLE input is set to 0. Frequency generation stops. The INFREQ output is set to 0. The BUSY output
is set to 0.
When the application is stopped, frequency generation stops without waiting for the end of the
pulse generation cycle. The Error output remains at FALSE.
If an error is detected, it is automatically acknowledged when leaving the error condition.
Part IV
Advanced Software Functions
Chapter 9
PID Function
PID Function
Section 9.1
PID Operating Modes
Introduction
The EcoStruxure Machine Expert - Basic PID controller offers 4 distinct operating modes,
configurable in the General tab (see page 239) of the PID Assistant in EcoStruxure Machine
Expert - Basic.
The PID operating modes are:
PID mode
AT + PID mode
AT mode
Word address
PID Mode
The simple PID controller mode is active by default when the PID controller starts up. The gain
values Kp, Ti, and Td to be specified in the PID tab (see page 243) must be known in advance to
successfully control the process. You can choose the corrector type of the controller (PID or PI) in
the PID tab of the PID Assistant screen (see page 236). If the PI corrector type is selected, the
derivative time Td field is disabled.
Using PID mode, the Auto-Tuning function is disabled and the AT tab (see page 244) of the
Assistant Configuration screen is therefore unavailable.
AT + PID Mode
In this mode, the Auto-Tuning function is active when the PID controller starts up. The Auto-Tuning
function then calculates the gain values Kp, Ti, and Td (see page 243) and the type of PID action
(see page 246). At the end of the Auto-Tuning sequence, the controller switches to PID mode for
the adjusted setpoint, using the parameters calculated by Auto-Tuning.
If the Auto-Tuning algorithm detects an error (see page 252):
No PID parameter is calculated.
The Auto-Tuning output is set to the output that was applied to the process before starting Auto-
Tuning.
An error message appears in the List of PID States drop-down list.
The PID control is cancelled.
While in AT + PID mode, the transition from Auto-Tuning to PID mode is automatic and seamless.
AT Mode
In this mode, the Auto-Tuning function is active when the PID controller starts up and automatically
calculates both the gain values Kp, Ti, and Td (see page 243) and the type of PID action
(see page 246). After convergence of the Auto-Tuning process and successful completion with the
determination of the Kp, Ti, and Td parameters and the type of PID action (see page 246) (or after
detection of an error in the Auto-Tuning algorithm), the Auto-Tuning numerical output is set to 0
and the Auto-Tuning Complete message appears in the List of PID States (see page 252) drop-
down. The PID controller then stops and waits. The calculated Kp, Ti, and Td PID coefficients are
available in their respective memory words (%MWx).
Word Address
This PID mode is selected by assigning the desired value to the word address associated with this
selection:
%MWxx = 0: The controller is disabled.
%MWxx = 1: The controller operates in simple PID mode.
%MWxx = 2: The controller operates in AT+ PID mode.
%MWxx = 3: The controller operates in AT mode only.
%MWxx = 4: The controller operates in simple PID mode, with PI corrector type.
This mode word address enables you to manage the PID controller operating mode with the
application, thus making it possible to adapt to your requirements.
Section 9.2
PID Auto-Tuning Configuration
Introduction
This section guides you through all the steps necessary to configure the EcoStruxure Machine
Expert - Basic PID controller using Auto-tuning (AT).
This section contains the following steps:
Step Topic
1 Configuring analog channel (see page 218)
2 Pre-requisites for PID configuration (see page 218)
3 Configuring the PID (see page 219)
4 Control set-up (see page 220)
Phase Description
1 PID is enabled in the program (see page 249).
2 Scan Mode is set to periodic (see page 251).
WARNING
UNINTENDED EQUIPMENT OPERATION OR INOPERABLE EQUIPMENT
Do not use relay outputs in conjunction with the PID function.
Only use solid state outputs if a digital output is required to drive the system to be controlled.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step Action
1 In the General tab (see page 239) of the PID Assistant screen (in offline mode), select AT+PID (or
AT) or select Word Address setting the associated word to 2 or 3, from the Operating Modes
(see page 216).
2 Activate the PID States checkbox and enter the address of the memory word in the field.
3 In the Input tab (see page 242), enter the address of the analog input used as a measurement.
4 If Conversion or Alarms are required, refer to Input tab (see page 242) of PID Assistant screen.
5 In the PID tab (see page 243), enter the value of the setpoint. In general, this value is a memory
address or an analog input.
6 Corrector type in the PID tab must be set to PID or PI.
7 Set the Parameters in the PID tab: Kp (x0,01), Ti (x0,1s), and Td (x0,1s). When AT+PID or AT are
the Operating modes (see page 216), the parameters should be memory words addresses
(%MWxx) so the Auto-Tuning algorithm fills in the computed value of the parameters.
8 Enter the PID Sampling period (Ts (see page 226)) in the PID tab. The Sampling period is a key
parameter and must be carefully determined.
9 In the AT tab, the AT Mode must be set to Authorize by default. Enter the Min. and Max. values if the
Measurement Range is activated (Authorize checkbox). Select the Dynamic AT corrector from the
list that contains Fast, Medium, Slow, or Word address corrector type. For further details, refer to the
AT tab in PID Assistant (see page 236).
10 In the AT tab, enter the AT Trigger memory bit to store the value of the step change during Auto-
Tuning. For further details, refer to the AT tab in PID Assistant (see page 236).
Step Action
11 In the Output tab (see page 246), set the Action by selecting in the list.
If Bit Address is selected, enter the memory bit address in the Bit field.
If necessary, you can configure Limits.
If Manual mode is enabled, choose a memory word or an analog output. If Bit address is selected,
enter a Bit. For more details about manual mode operation, refer to the Output tab (see page 246).
In the Analog output field, set Output PWM (see page 246) to Authorize.
Set an analog output or a memory word as the address of the word.
Enter the value in the Period (x0.1 s) field and the memory bit or digital output.
12 Click OK to confirm the PID controller configuration.
WARNING
UNINTENDED EQUIPMENT OPERATION OR INOPERABLE EQUIPMENT
Do not use relay outputs in conjunction with the PID function.
Only use solid state outputs if a digital output is required to drive the system to be controlled.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
To start operation in AT+PID operating mode (see page 216) perform the following steps:
Step Action
1 Connect the PC to the controller and transfer the application.
2 Switch the controller to RUNNING state.
NOTE: Before switching the controller to RUNNING state, verify that the operating conditions of
the machine allow the RUNNING state for the rest of the application.
Step Action
1 Create an animation table containing the objects defined during configuration. Refer to the
Ecostruxure Machine Expert - Basic Operating Guide for further details about animation table
creation.
2 Verify the consistency of the process value and application's values. This test is important as
successful operation of the PID controller depends on the accuracy of the measurement. If
you have any doubt about the accuracy of the measurement, set the logic controller to the
STOP state and verify the wiring of analog channels.
If the actuator is not controlled:
For analog output verify the output voltage or current from analog channel.
For PWM output, verify that the:
LED of the dedicated output is lit
wiring of the supplies and 0V circuit
actuator power supply is being applied
4 Set the logic controller scan period so that the Sampling period (Ts) value of the PID controller
is an exact multiple of the scan period. For further details on how to determine the Sampling
period, refer to Tuning PID (see page 226).
5 When the Auto-Tuning sequence is complete, the parameters Kp, Ti, and Td are written in to
the RAM memory of the logic controller. The values are saved for as long as the application
is valid (power-down less than 30 days) and no cold-start is performed.
The Auto-Tuning process is repeated each time a rising edge is detected on the AT trigger memory
bit.
NOTE: When the PID autotuning is in the process of calibration to find the new parameters for Kp,
Ti, Td and the manual output control is activated, launch PID autotuning again after finishing
manual output control so that the parameters are updated.
Section 9.3
PID Standard Configuration
Introduction
This section guides you through all the steps required to configure the EcoStruxure Machine Expert
- Basic PID controller using word address operating mode (see page 216). This mode provides
greater flexibility of use than the other PID modes.
This section contains the following steps:
Step Topic
1 Prerequisites for PID configuration (see page 223)
2 Configuring the PID (see page 223)
3 Control set-up (see page 224)
Phase Description
1 An analog input is configured as well as an analog output if required. Refer to the M221 Logic
Controller - Programming Guide.
2 PID is enabled in the program (see page 249).
3 Scan mode is set to periodic (see page 251).
WARNING
UNINTENDED EQUIPMENT OPERATION OR INOPERABLE EQUIPMENT
Do not use relay outputs in conjunction with the PID function.
Only use solid state outputs if a digital output is required to drive the system to be controlled.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
The following steps explain how to implement a PID controller in word address mode. For more
details on how to configure the PID, refer to the PID Assistant section (see page 236).
For the dynamic modification of the PID parameters (in offline and in online mode), enter the
memory addresses in the associated fields, thus avoiding the need to switch to offline mode to
make on-the-fly changes to values.
Step Action
1 In the General tab of the PID Assistant screen (in offline mode), in the Operating Modes ; drop-
down list select Word address. Check the box associated to PID States and enter the address
of the memory word in the field.
2 In the Input tab (see page 242), enter the address of the analog input used as a measurement.
If Conversion or Alarms are required, refer to Input tab (see page 242) of PID Assistant
(see page 236).
3 In the PID tab, enter the value of the Setpoint. In general, this value is a memory address or
an analog input. The Parameters (Kp, Ti, and Td) should be memory words addresses
(%MWxx).
Enter the PID Sampling period (Ts (see page 243)) in the PID tab (see page 243). This
parameter can also be a memory word (the value can then be set using the animation table).
In Word Address operating mode, the Corrector type is set to Auto and greyed out (it cannot
be modified manually).
4 In the AT tab, the AT mode should be checked to Authorize. Enter the Dynamic corrector and
the AT Trigger. For further details, refer to AT tab (see page 244) in PID Assistant screen.
5 In the Output tab, Action should be set to Bit Address. Enter a memory bit address. Limits can
be configured if necessary from the Output tab (see page 246). In Analog output field set the
address of the word: an analog output or a memory word. If required, set the Output PWM,
refer to Output tab (see page 246) in PID Assistant (see page 236).
6 Click OK to confirm the PID controller configuration.
Step Action
1 Connect the PC to the logic controller and transfer the application.
2 Switch the logic controller to RUNNING state.
NOTE: Before switching the logic controller to RUNNING state, verify that the operating conditions
of the machine allow RUNNING state for the rest of the application. The procedure remains the
same as the one used in AT and AT+PID operating modes. The word address configuration allows
you to modify the PID operating modes by software. In the case of the PID mode, the procedure is
significantly simplified, assuming the parameters (Kp, Ti, Td, and Ts) are known and there is no
need to perform Auto-Tuning.
This table gives the generic procedure to set up the PID controller
Step Action
1 Create an animation table containing the objects defined during configuration. Refer to the
EcoStruxure Machine Expert - Basic Operating Guide for details.
2 Verify the consistency of the process value and other values defined in the animation table. If
you have any doubt about the accuracy of the measurement, set the logic controller to STOP
and verify the wiring of analog channels.
If you see that the actuator is not being controlled:
For analog output, verify the output voltage or current from analog channel.
For PWM output, verify that the:
LED of dedicated output is lit
wiring of the supplies and 0 V circuit is correct
actuator power supply is being applied
3 Set the logic controller scan period so that the Sampling period (Ts) of the PID controller is an
exact multiple of the scan period. For further details on Sampling period, please refer to
Determining Sampling Period (see page 233)
4 If you plan to use the Auto-Tuning (see page 226) function, you may need to run Manual Mode
(see page 231) to know the Dynamic corrector and the AT Trigger defined in the AT tab
(see page 244) of the PID Assistant.
5 Power up the loop controller using the animation table:
Set the operating mode (see page 216).
Enable the PID controller (see page 251).
Set the values defined during configuration (see page 223) to appropriate values
depending on the selected operating mode.
Introduction
The Auto-Tuning mode allows automatic tuning of the Kp, Ti, Td, and action parameters to achieve
refined convergence of the PID function.The Auto-Tuning function provided by EcoStruxure
Machine Expert - Basic is particularly suited for automatic tuning of thermal processes.
This section contains the following topics:
Auto-Tuning requirements
Description of Auto-Tuning process
Storage of Calculated Coefficients
Adjusting PID parameters
Launching the Auto-Tuning
Limitations on using the Auto-Tuning and the PID control
Auto-Tuning Requirements
When using the Auto-Tuning function, make sure that the control process and the logic controller
meet the following requirements:
Process requirements:
The process must be a stable open-loop system.
The process must be mostly linear over the entire operating range.
The process response to a change in level of the analog output follows a transient asymptotic
pattern.
The process is in a steady state with a null input at the start of the Auto-Tuning sequence.
The process must be free of disturbances throughout the entire process. Otherwise, either
calculated parameters will be incorrect or the Auto-Tuning process will not operate correctly.
Configuration requirements:
Configure the logic controller to periodic scan mode to ensure a correct run of the Auto-
Tuning function.
Only use the Auto-Tuning function when no other PID controllers are running.
Configure the Kp, Ti, and Td coefficients as memory word addresses (%MWxx).
Set the Action type in the Output tab to a memory bit address (%Mxx).
PV Process value
PID output
h = 1% (Max value - Min value) of Measurement Range field in the AT tab
---- PID active
1...4 Auto-Tuning phases (see table below)
Auto-Tuning Description
Phase
1 The PID output is forced to the Max value of Limits field in Output tab (see page 246) until the
process value reaches Setpoint + h.
2 There are two steps in Auto-Tuning phase 2:
1. The PID output is forced to the Min value of the Limits field in the Output tab (see page 246)
until the process value reaches Setpoint - h.
2. The PID output is forced to the Max value of the Limits field in the Output tab
(see page 246) until the process value reaches Setpoint + h.
3 The PID output is forced to the Min value of the Limits field in the Output tab (see page 246)
until the process value reaches Setpoint - h.
4 There are two steps in Auto-Tuning phase 4:
1. The PID output is forced to the Max value of the Limits field in the Output tab
(see page 246) until the process value reaches Setpoint + h.
2. The PID output is forced to the Min value of the Limits field in the Output tab
(see page 246), the PID parameters are calculated and the PID becomes active.
(1) The output last applied to the process before start of the Auto-Tuning is used as both the starting point
and the relaxation point for the Auto-Tuning process.
NOTE: The Kp, Ti and Td parameters cannot be calculated if the manual output control is activated
during the Auto-Tuning calibration process. Launch the Auto-Tuning calibration process again
once the output manual control is finished.
Auto-Tuning is best suited for processes in which the time constant (τ) and delay time (θ) meet the
following criteria:
10 s < (τ + θ) < 2700 s (i.e.: 45 min)
2 < τ / θ < 20
Manual Mode
Introduction
The manual mode is accessible through the PID Assistant screen (Output tab (see page 246)).
This mode allows you to bypass orders from the PID. There are 2 main objectives using Manual
mode:
Initialize the set-up
Determine the sampling period.
Description
The manual mode lets you specify the Output value (see page 246). This operation can be
particularly well suited for testing the system response.
Setting the bit address from the Output tab (see page 246) to 1 activates the manual mode. If Allow
is set, then the manual mode is the only accessible mode.
Application
When the manual mode is active the output is assigned a fixed value that you set. This output value
is from 0 to 10,000 (0 to 100% for PWM output).
You can also use manual mode to make trials to determine the minimum/maximum output
limitation.
Manual mode is also required to use the process curve response method (see page 233) that
helps to find the correct sampling time (Ts).
Step Description
1 Enable manual mode by setting the dedicated memory bit to 1. For more details refer to the
Output tab (see page 246).
2 If using PWM, set the PWM period to the desired value.
3 Set the memory word associated with the Operating mode in the General tab (see page 239)
of the PID Assistant to 1 (PID mode). For more details on operating modes using word
address refer to the operating mode description (see page 216).
4 Set the memory word associated with the manual output in the Output tab (see page 246) to
the desired value. This manual setpoint value can be selected several times on condition that
the system is left in its initial state.
5 Enable the loop controller (see page 223).
Step Description
1 Disable the loop controller (see page 223).
2 Inhibit the manual mode by setting the dedicated memory bit to 0. For more details refer to the
Output tab (see page 246).
3 Set the memory word associated with the Operating mode in the General tab (see page 239)
for the PID controller to 0. For more details on operating modes using word address, refer to
the operating mode description (see page 216).
4 Set the memory word associated to the manual output in the Output tab (see page 246) to 0.
Introduction
The Sampling Period (Ts) is the key parameter for PID regulation. The Sampling Period (Ts)
should be carefully set in the PID tab (see page 243) of the PID Assistant screen. This parameter
is highly correlated with the time constant (τ) of the process to control.
This section describes the use of online mode and two methods to determine the sampling period
(Ts) are described in this section:
Process response curve method,
Trial-and-error method.
Step Action
1 It is assumed that you have already configured the various settings in the General, Input,
PID, AT and Output tabs of the PID.
2 Select the Output tab (see page 246) from the PID Assistant screen.
3 Select Allow or Address bit from the Manual Mode drop-down list to authorize manual output.
4 Set the Output field to a high level (in the [5,000...10,000] range).
5 Download your application to the logic controller. For further details on how to download an
application refer to the EcoStruxure Machine Expert - Basic Operating Guide.
6 Run the PID and check the response curve rise.
7 When the response curve has reached a steady state, stop the PID measurement.
8 Use the following graphical method to determine the time constant (τ) of the control process:
1. Calculate the process value output at 63% rise (S[63%]) by using the following formula:
S[63%] = S[initial] + (S[final]-S[initial])x63%
2. Calculate graphically the time abscissa (t[63%]) that corresponds to S(63%).
3. Calculate graphically the initial time (t[initial]) that corresponds the start of the process
response rise.
4. Compute the time constant (τ) of the control process by using the following relationship:
τ = t[63%]-t[initial]
(1) The base unit for the sampling period is 10ms. Therefore, you should round up/down the value of Ts to
the nearest 10ms.
(2) You must choose "n" so that the resulting Scan Period is a positive integer in the range [1...150] ms.
Step Action
9 Calculate the sampling period (Ts)(1) based on the value of (τ) that you determined in the
previous step, using the following rule: Ts = τ/75
10 Set the Scan period of the Periodic scan mode so that the Sampling Period (Ts) is an exact
multiple of the scan period:Scan Period = Ts / n , where n is a positive integer(2)
(1) The base unit for the sampling period is 10ms. Therefore, you should round up/down the value of Ts to
the nearest 10ms.
(2) You must choose "n" so that the resulting Scan Period is a positive integer in the range [1...150] ms.
Trial-and-Error Method
The trial-and-error method involves providing successive guesses of the sampling period to the
Auto-Tuning function until the algorithm converges successfully towards satisfactory values of Kp,
Ti, and Td.
NOTE: Unlike the process response curve method, the trial-and-error method is not based on any
approximation law of the process response. However, it has the advantage of converging towards
a value of the sampling period that is in the same order of magnitude as the actual value.
To perform a trial-and-error estimation of the Auto-Tuning:
Step Action
1 Select the AT tab from the PID configuration window.
2 Set the Output limitation of Auto-Tuning to 10,000.
3 Download your application to the logic controller. For further details on how to download an
application, refer to EcoStruxure Machine Expert - Basic operating guide (see EcoStruxure
Machine Expert - Basic, Operating Guide).
4 Select the PID tab from the PID Assistant screen.
5 Provide the first or nth guess in the Sampling Period(1) field.
6 Launch Auto-Tuning (see page 218).
7 Wait until the Auto-Tuning process ends.
8 Two cases can occur:
Auto-Tuning completes successfully: Continue to Step 10.
Auto-Tuning unsuccessful: Refer to Auto-Tuning detected error codes (see page 253).
This means that the current guess for the sampling period (Ts) is not correct. Try a new Ts
guess and repeat steps 3 through 8, as many times as required until the Auto-Tuning
process eventually converges.
(1) If you do not have any first indication of the possible range for the sampling period, set this value to the
minimum possible: 1 (1 unit of 10 ms).
(2) If the PID regulation provided by this set of control parameters does not provide results that are totally
satisfactory, you may still refine the trial-and-error evaluation of the sampling period until you obtain the
correct set of Kp, Ti, and Td control parameters.
Step Action
9 Follow these guidelines to provide a new Ts guess:
Auto-Tuning ends with the detected error code 800C hex. This means the sampling period
Ts is too large. Decrease the value of Ts to provide a new guess.
Auto-Tuning ends with the detected error code 800A hex. This means the sampling period
Ts is too small. Increase the value of Ts to provide a new guess.
10 Adjust the PID control parameters(2) (Kp, Ti, and Td) in the PID tab (see page 243) of the PID
Assistant screen, as needed.
(1) If you do not have any first indication of the possible range for the sampling period, set this value to the
minimum possible: 1 (1 unit of 10 ms).
(2) If the PID regulation provided by this set of control parameters does not provide results that are totally
satisfactory, you may still refine the trial-and-error evaluation of the sampling period until you obtain the
correct set of Kp, Ti, and Td control parameters.
Online Mode
In online mode, when the logic controller is in the periodic task, the value displayed in the Ts field
(in the PID Assistant screen (see page 236)) can be different from the parameter entered (%MW).
The Ts value is a multiple of the periodic task, whereas the %MW value is the value read by the
logic controller.
Section 9.4
PID Assistant
PID Assistant
Introduction
Use the PID Assistant window of EcoStruxure Machine Expert - Basic to enable you to configure
the PID controller.
Configuration Assistant
In the PID properties table, click the Configuration [...] button. The PID Assistant screen will
appear.
This graphic displays the PID Assistant screen:
The PID Assistant screen displays several tabs, depending whether, you are in offline or online
mode:
Once an operating mode is selected, tabs containing empty fields that require values are shown
General Tab
Introduction
This section describes the General tab of the PID. General tab is displayed by default when you
access the PID Assistant in offline mode.
Description
The table below describes the settings on the General tab.
Parameter Description
Operating Mode Represents the PID mode to use:
Not configured
PID
AT + PID
AT
Word address
For further details about operating modes, refer to PID Operating Mode
(see page 216).
Word address You can provide a memory word in this text box (%MWxx) that is used to
programmatically set the operating mode. The memory word can take 4 possible
values depending on the operating mode you want to set:
%MWx = 0 (PID disabled)
%MWx = 1 (to set PID only)
%MWx = 2 (to set AT + PID)
%MWx = 3 (to set AT only)
%MWx = 4 (to set PI only)
PID States If you check the box to enable this option, you can provide a memory word in the
associated field (%MWxx) that is used by the PID controller to store the current PID
state while running the PID controller and/or the Auto-Tuning function. For more
details, refer to PID States and Detected Error Codes (see page 252).
Graphical Assistant
The graphical assistant helps you to visualize how the PID function is built. This is a dynamic
graphic that is updated according to the configuration.
The icons shown below describe when it is accessible or what happens if you click on it:
Display Description
Click this button to display the SetPoint field of the PID tab (see page 243).
Click this button to display the PID tab (see page 243).
Click this button to display the Output tab (see page 246).
Click this button to display the Input tab (see page 242).
Display Description
Click this button to display the AT tab (see page 244).
This button appears when the Authorize option is checked in the Conversion zone of the
Input tab (see page 242).
This button appears when the Authorize option is checked in the Alarms zone of the Input
tab (see page 242).
This button appears if Limits is not equal to inhibit in the limits zone of the Output tab
(see page 246).
This button appears if manual mode is not equal to Inhibit in the manual mode zone of the
Output tab (see page 246).
Click this button to display the Output tab (see page 246).
This button appears when the Authorize option is checked in the Output PWM zone of the
Output tab (see page 246).
Input Tab
Introduction
This section describes the Input tab of PID. The input tab is used to enter the PID input
parameters.
This tab is only accessible in offline mode and when an operating mode is selected from the
General tab.
Description
The table below describes the settings that you may define.
Parameter Description
Measure Specify the variable that contains the process value to be controlled.
The default scale is from 0 to 10000. You can enter either a memory word (%MWxx) or an
analog input.
Conversion Authorize Activate this box to convert the process value [0...10000] into a linear range
[Min...Max].
The conversion also applies to the setpoint value.
Min value Specify the minimum and maximum values of the conversion scale. The process
Max value value is then automatically rescaled within the [Min value...Max value] interval.
Min value or Max value can be memory words (%MWxx), constant words
(%KWxx), or a value from -32768 to +32767.
Note: The Min value must be less than the Max value.
Filter Authorize Activate this box to apply a filter to the measured input.
(100 ms) Specify the filter value from 0 to 10000 or a memory word address (%MWxx). The
filter time base unit is 100 ms.
Alarms Authorize Activate this box to activate alarms in input variables.
The alarm values should be determined relative to the process value obtained
after the conversion phase. The alarm values must be from Min value to Max
value when conversion is active. Otherwise, the alarm values will be from 0 to
10000.
Low Specify the low alarm value in the Low field.
Output This value can be a memory word (%MWxx), a constant (%KWxx), or a direct
value.
Output must contain the address of the bit, which will be set to 1 when the lower
limit is reached. Output can be either a memory bit (%Mxx) or an output.
High Specify the high alarm value in the High field.
Output This value can be a memory word (%MWxx), a constant (%KWxx), or a direct
value.
Output must contain the address of the bit, which will be set to 1 when the upper
limit is reached. Output can be either a memory bit (%Mxx), or an output.
PID Tab
Introduction
Use PID tab to enter the internal PID parameters.
This tab is only accessible in offline mode and if an operating mode has been selected from the
General tab.
Description
This table describes the settings that you may define:
Parameter Description
Setpoint Specify the PID setpoint value. This value can be a memory word (%MWxx), a constant word
(%KWxx), or a direct value.
This value must therefore be between 0 and 10000 when conversion is inhibited. Otherwise it must
be between the Min value and the Max value for the conversion.
Corrector type If the PID or AT + PID operating mode has been previously chosen in the PID properties table, you
can select the desired corrector type (PID or PI) from the drop-down list. If other operating modes (AT
or Word Address) have been chosen, the Corrector type is set to Auto and greyed out (it cannot be
modified manually).
If PI is selected from the drop-down list, the Td parameter is forced to 0 and this field is disabled.
Parameters (1) Kp Specify the PID proportional gain, multiplied by 100.
(x0,01s) This value can be a memory word (%MWxx), a constant word (%KWxx), or a direct
value.
The valid range for the Kp parameter is: 0 < Kp < 10000.
Note: If Kp is mistakenly set to 0 (Kp ≤ 0 is invalid), the default value Kp=100 is
automatically assigned by the PID function.
Ti (x0,1s) Specify the integral time for a timebase of 0.1 seconds.
This value can be a memory word (%MWxx), a constant word (%KWxx), or a direct
value.
It must be from 0 to 36000.
Note: To disable the integral action of the PID, set this coefficient to 0.
Td (x0,1s) Specify the derivative time for a timebase of 0.1 seconds.
This value can be a memory word (%MWxx), a constant word (%KWxx), or a direct
value.
It must be from 0 to 10000.
Note: To disable the derivative action of the PID, set this coefficient to 0.
Sampling Specify the PID sampling period here for a timebase of 10-2 seconds (10 ms).
period This value can be a memory word (%MWxx), a constant word (%KWxx), or a direct value.
It must be from 1 (0.01 s) to 10000 (100 s).
(1) When Auto-Tuning is enabled, you no longer need to set the Kp, Ti, and Td parameters as they are automatically
and programmatically set by the Auto-Tuning algorithm. In this case, you must enter in these fields an internal word
address only (%MWxx). Do not enter a constant or a direct value when Auto-Tuning is enabled.
AT Tab
Introduction
The AT tab is related to the Auto-Tuning function. For more details, refer to PID tuning with Auto-
Tuning (see page 226).
This tab is only accessible in offline mode and if an operating mode has been selected from the
General tab.
Description
PID Auto-Tuning is an open-loop process that acts directly on the control process without
regulation or any limitation other than provided by the Process Value (PV) limit and the output
setpoint. Therefore, both values must be carefully selected within the allowable range as specified
by the process to prevent potential process overload.
When the PID is implemented with Auto-Tuning, the Dynamic AT Corrector parameter affects the
proportional gain (Kp) value. The computation of the proportional gain in Auto-Tuning process
depends on the selected dynamic corrector speed. You can select one of the following options:
Fast
Medium
Slow
Word address
See the descriptions of the options in the table below.
WARNING
UNSTABLE PID OPERATION
The Process Value (PV) limit and the output setpoint values must be set with complete
understanding of their effect on the machine or process.
Do not exceed the allowable range for Process Value and Output Setpoint values.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not use a relay output with the PID function.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Field Description
AT Mode Authorize Activate this box to enable Auto-Tuning operation.
There are 2 ways to use this checkbox, depending on whether you set the
operating mode manually or via a word address in the General tab of the PID
function:
If you set the Operating mode to PID + AT or AT from the General tab
(see page 239), then the Authorize option is activated and not editable.
If you set the operating mode via a word address %MWx (%MWx = 2: PID + AT;
%MWx = 3: AT), then you have to activate the Authorize option manually to allow
configuring of the Auto-Tuning parameters.
Measurement Authorize Activate this box to enable the range measurement.
Range
NOTE: If the range measurement is deactivated the Min. value is set to 0 and the
Max. value is set to 10000.
Min. Set the Min. and Max values based on the measurement range of 1% above or
Max below the setpoint.
The values can be immediate values from 1 to 10000 or a memory word %MWx.
NOTE: The Min. value must be less than the Max value.
Example: If the process value must be around 35°C ± 3°C:
The setpoint is 350.
± 3°C is h (see page 228) and should be 30.
Therefore 1% x (Max - Min) = 30
Therefore 1% x 3000 = 30
Therefore Max = 3100 and Min = 100
Dynamic AT Fast This parameter affects the proportional gain (Kp) value computed by the AT
corrector Medium process.
Slow Fast provides a fast response time with more overshoot than medium.
Word address Medium provides medium response time with medium overshoot.
Slow provides slower a response time with less overshoot than medium.
Word address provides the response time configured in the specified word
object (%MW).
AT Trigger AT Trigger This parameter allows you to launch the AT process each time a rising edge is
detected on the dedicated bit (memory bit or digital input bit).
Output Tab
Introduction
This tab is used to enter the PID output parameters.
This tab is only accessible in offline mode and if an operating mode has been selected from the
General tab.
Description
This table describes the settings that you may define:
Field Description
Action Specify the type of PID action on the process here. Three options are available:
Reverse, Direct, and Bit Address. If an increase in the output causes an increase in
the process value measurement, define inverted action (Reverse); on the other hand,
if this causes a process value reduction, make the PID direct (Direct).
If you select Bit Address(1), you can modify the action type by modifying the
associated bit, which is either a memory bit (%Mxx) or an input address (%Ix.y).
The memory bit is set to 1 if the action is Direct and the memory bit is set to 0 if the
action is Reverse.
Limits Specify whether to place limits on the PID output. 3 options are available: Enable,
Disable, and Bit Address.
Select Enable to set the Bit to 1 or select Disable to set the Bit to 0.
Select Bit Address for limit management of the bit by modifying the associated bit,
which is either a memory bit (%Mxx) or an input address (%Ix.y).
Set the high and low limits for the PID output.
Min. or Max can be memory word (%MWxx), constant word (%KWxx), or a value from
1 to 10000 (0.01% to 100% of the PWM period).
Note: The Min. value must be less than the Max value.
Manual mode Specify whether to change the PID to manual mode. 3 options are available: Enable,
Disable, and Bit Address.
If you select Bit Address, you can switch to manual mode (bit to 1) or automatic mode
(bit to 0) using the program, by modifying the associated bit which is either a memory
bit (%Mxx) or an input.
The Output of manual mode must contain the value that you wish to assign to the
analog output when the PID is in manual mode (see page 231). This Output can be
either a word (%MWxx) or a direct value in the [0...10,000] format.
Analog output Specify the PID output to use when in auto-tuning mode.
This Analog output(2) can be a memory word address or an analog output address.
When using the PWM function of PID, only memory word addresses are allowed.
(1) When Auto-Tuning is enabled, the Auto-Tuning algorithm automatically determines the correct type of
action direct or reverse for the control process. You must then enter in the associated Bit Address textbox
a memory bit (%Mxx) only.
(2) Enter a memory address (%MWxx) or an analog output address (%QWx.y).
Field Description
Output PWM Check this box to use the PWM function of PID.
Specify the modulation period in the Period (0.1 s) text box. This period must be from
1 to 500 and can be a memory word (%MWxx) or a constant word (%KWxx). PWM
precision depends on both the PWM period and the scan period. The precision is
improved when the PWM ratio (%PWM.R) has the greatest number of values. For
instance, with scan period = 20 ms and PWM period = 200 ms, PWM.R can take
values 0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100%. With scan
period = 50 ms and PWM period = 200 ms, PWM.R can take values 0%, 25%, 50%,
75%, and 100% of the period PWM.P.
Specify the PWM output bit as the value in Output. This can be either a memory bit
(%Mxx) or an output address. For further details about PWM function, refer to the
chapter Pulse Width Modulation (%PWM) (see page 61).
(1) When Auto-Tuning is enabled, the Auto-Tuning algorithm automatically determines the correct type of
action direct or reverse for the control process. You must then enter in the associated Bit Address textbox
a memory bit (%Mxx) only.
(2) Enter a memory address (%MWxx) or an analog output address (%QWx.y).
Section 9.5
PID Programming
PID Programming
Description
Introduction
A proportional–integral–derivative (PID) is a generic control loop feedback mechanism (controller)
widely used in industrial control systems. The PID controller uses an algorithm that involves 3
separate constant parameters: the proportional, the integral, and derivative values, denoted by P,
I, and D respectively.
Key Features
The key features of the EcoStruxure Machine Expert - Basic PID function are as follows:
Analog input
Linear conversion of the configurable measurement
High or low configurable input alarm
Analog or PWM output
Cutoff for the configurable output
Configurable direct or inverse action
Auto-tuning function
Illustration
This is the PID function in the Ladder editor of EcoStruxure Machine Expert - Basic:
NOTE: There must be a space between PID and the PID number (for example, PID<space>0).
Parameters
Unlike the Timer or the Counter function blocks, there is no PID function block in EcoStruxure
Machine Expert - Basic. The instruction [PID x] only enables the PID control loop function,
where x is the PID number.
To configure the PID function, goto the Programming window, click Tools → PID, and then edit the
PID properties (refer to the table below for the configuration parameters).
Introduction
This section describes how to program and configure the EcoStruxure Machine Expert - Basic PID
controller.
Rung Instruction
0 LD %M0
[PID 0]
NOTE: Refer to the reversibility procedure (see EcoStruxure Machine Expert - Basic, Generic
Functions Library Guide) to obtain the equivalent Ladder Diagram.
Introduction
The EcoStruxure Machine Expert - Basic PID controller has the ability to write the present state of
both the PID controller and the Auto-Tuning process to a user-defined memory word. For further
information on how to enable and configure the PID States memory word, refer to the General tab
(see page 239) of the PID Assistant (see page 236).
The PID States memory word can record the following types of PID information:
Present state of the PID controller
Present state of the Auto-Tuning process
PID detected error codes
Auto-Tuning detected error codes
Check the PID and Auto-Tuning parameters and make adjustments to improve
convergence. Check also if there is no disturbance that could affect the process value.
Try modifying:
the output setpoint
the sampling period
EIO0000003305 09/2020
Appendices
Appendix A
PID Parameters
PID Parameters
Introduction
This section describes the role and influence of PID parameters.
Computational Algorithms
Two different computational algorithms are used depending on the value of the integral time
constant (Ti):
If Ti ≠ 0, an incremental algorithm is used,
If Ti = 0, a positional algorithm is used, along with a +5000 offset that is applied to the PID
output.
Influence of Actions
Proportional action is used to influence the process response speed. An increase of the
proportional action implies:
a faster response
a lower static error
decrease in stability
Integral action is used to cancel out the static error. An increase of integration action (that is, a
decrease of the integral time Ti) induces:
A faster response
A decrease in stability
Derivative action is anticipatory. In practice, it adds a term which takes account of the speed of
variation in the deviation (which makes it possible to anticipate changes by accelerating process
response times when the deviation increases and by slowing them down when the deviation
decreases). An increase of derivative action (that is, an increase of the derivative time) implies:
A slower response
A reduced overshoot
NOTE: Given the derivative time, Td is the time used to anticipate the variation of the deviation.
Values of Td that are too low or too high can lead to unwanted oscillations.
For each action, a suitable compromize must be found between speed and stability.
where:
τ: model time constant
θ: model delay
The suitable PID process control is attained in the following domain: 2< <20
PID process control is best suited for the regulation of processes that satisfy the following
condition:
For <2, in other words for fast control loops (low ) or for processes with a large delay
(high t) the PID process control is no longer suitable. In such cases more complex algorithms
should be used.
Introduction
Numerous methods to adjust the PID parameters exist. The preferred method is the Ziegler and
Nichols, which has 2 variants:
closed loop adjustment
open loop adjustment
Before implementing one of these methods, you must set the PID action (see page 246).
Depending on the corrector type used (PID or PI), the adjustment of the coefficients is executed
with the following values:
The intersection point on the right hand side, which is representative of the integrator with the time
axes, determines the time Tu. Next, the Tg time is defined as the time necessary for the controlled
variable (measurement) to have the same variation size (% of the scale) as the regulator output.
Depending on the corrector type used (PID or PI), the adjustment of the coefficients is executed
with the following values:
NOTE: For further details about parameter units, refer to PID tab (see page 243).
This adjustment method also provides a very dynamic command, which can express itself through
unwanted overshoots during the change of pulses of the setpoints. In this case, lower the
proportional gain until you get the required behavior. The method does not require any
assumptions about the nature and the order of the procedure. You can apply it just as well to the
stable procedures as to real integrating procedures. In the case of slow procedures (for example,
the glass industry), the user only requires the beginning of the response to regulate the coefficients
Kp, Ti, and Td.
Glossary
A
absolute movement
A movement to a position defined from a reference point.
acceleration / deceleration
Acceleration is the rate of velocity change, starting from Start Velocity to target velocity.
Deceleration is the rate of velocity change, starting from target velocity to Stop Velocity. These
velocity changes are implicitly managed by the PTO function in accordance with acceleration,
deceleration, and jerk ratio parameters following a trapezoidal or an S-curve profile.
C
CW/CCW
ClockWise / Counter ClockWise
D
DWORD
(double word) Encoded in 32-bit format.
F
function
A programming unit that has 1 input and returns 1 immediate result. However, unlike FBs, it is
directly called with its name (as opposed to through an instance), has no persistent state from one
call to the next and can be used as an operand in other programming expressions.
Examples: boolean (AND) operators, calculations, conversions (BYTE_TO_INT)
H
homing
The method used to establish the reference point for absolute movement.
J
jerk ratio
The proportion of change of the acceleration and deceleration as a function of time.
P
POU
(program organization unit) A variable declaration in source code and a corresponding instruction
set. POUs facilitate the modular re-use of software programs, functions, and function blocks. Once
declared, POUs are available to one another.
S
S-curve ramp
An acceleration / deceleration ramp with a JerkRatio parameter greater than 0%.
start velocity
The minimum frequency at which a stepper motor can produce movement, with a load applied,
without the loss of steps.
stop velocity
The maximum frequency at which a stepper motor stops producing movement, with a load applied,
without the loss of steps.
T
trapezoidal ramp
An acceleration / deceleration ramp with a JerkRatio parameter set to 0%.
Index
D
deceleration ramp, 106
DIRECTION, 143
Drive function blocks
configuring, 76
Drive function blocks: error codes, 95
E
enabling/disabling power stage
MC_Power_ATV, 77
error codes
Drive function blocks, 95
function blocks J
FC (Fast Counter, 30
JerkRatio, 106
frequency generator (%FREQGEN), 208
HSC (high speed counter), 36
MC_Halt_PTO, 182
MC_Home_PTO, 174
M
MC_Jog_ATV, 79 management of Function Block Inputs and In-
MC_Motion_PTO, 154 put Objects
MC_MoveAbs_PTO, 170 Execute, 26
MC_MoveRel_PTO, 165 management of Function Block Outputs and
MC_MoveVel_ATV, 82 Output Objects
MC_MoveVel_PTO, 161 Busy, 26
MC_Power_ATV, 77 CmdAborted, 26
MC_Power_PTO, 158 Done, 26
MC_ReadMotionState_ATV, 90 ErrID, 26
MC_ReadStatus_ATV, 87 Error, 26
MC_Reset_ATV, 93 MC_Halt_PTO
MC_SetPost_PTO, 177 controlled motion stop until velocity is 0,
MC_Stop_ATV, 85 182
MC_Stop_PTO, 179 MC_Home_PTO
MV_AbortTrigger_PTO, 201 command axis to perform homing se-
MV_ReadActPos_PTO, 188 quence, 174
MV_ReadActVel_PTO, 186 MC_Jog_ATV
MV_ReadAxis_PTO, 194 starting jog mode, 79
MV_ReadMotionState_PTO, 192 MC_Motion_PTO
MV_ReadPar_PTO, 203 calling a Motion Task Table, 154
MV_ReadSts_PTO, 190 MC_MoveAbs_PTO
MV_Reset_PTO, 196 moving axis to a given position at speci-
MV_TouchProbe_PTO, 198 fied speed, 170
MV_WritePar_PTO, 205 MC_MoveRel_PTO
pulse, 54 moving axis an incremental distance at
pulse width modulation, 62 specified speed, 165
functionalities MC_MoveVel_ATV
PTO, 101 moving at specified velocity, 82
MC_MoveVel_PTO
moving an axis at specified speed, 161
H MC_Power_ATV
enabling/disabling power stage, 77
high speed counter
MC_Power_PTO
counting mode, 40
enabling power to an axis, 158
description, 36
MC_ReadMotionState_ATV
frequency meter mode, 47
reading motion state, 90
HOMING_MODE, 144
MC_ReadStatus_ATV
reading device status, 87
MC_Reset_ATV
acknowledging and resetting error, 93
MC_SetPost_PTO P
moving axis to specified position, 177
PID
MC_Stop_ATV
AT tab, 244
stopping movement, 85
auto-tuning, 218
MC_Stop_PTO
closed loop adjustment, 260
commanding a controlled motion stop,
configuration assistant, 237
179 description, 249
motion task table
general tab, 239
PTO, 119
Input tab, 242
moving at specified velocity
open loop adjustment, 261
MC_MoveVel_ATV, 82
operating modes, 216
MV_AbortTrigger_PTO
output tab, 246
aborting function blocks connected to trig-
parameter, 258
ger events, 201
PID tab, 243
MV_ReadActPos_PTO
programming and configuring, 251
getting the position of the axis, 188
standard configuration, 222
MV_ReadActVel_PTO
states and detected error codes, 252
getting the velocity of the axis, 186
PTO
MV_ReadAxisError_PTO
configuration, 118
getting an axis control error, 194
functionalities, 101
MV_ReadMotionState_PTO
motion task table, 119
getting the motion status of the axis, 192
PTO_ERROR, 145, 146
MV_ReadPar_PTO
PTO_PARAMETER, 144
getting parameters from the PTO, 203
pulse
MV_ReadSts_PTO
description, 54
getting the status of the axis, 190
function block configuration, 56
MV_Reset_PTO
programming example, 60
resetting axis-related errors, 196
pulse width modulation
MV_TouchProbe_PTO
description, 62
activating a trigger event on probe input,
function block configuration, 63
198 programming example, 67
MV_WritePar_PTO
writing parameters to the PTO, 205
R
reading device status
%MC_ReadStatus_ATV, 87
reading motion state
MC_ReadMotionState_ATV, 90
S
starting jog mode, MC_Jog_ATV, 79
stopping movement
MC_Stop_ATV, 85
EIO0000003313 02/2020
Modicon M221
Logic Controller
Hardware Guide
02/2020
EIO0000003313.01
www.schneider-electric.com
The information provided in this documentation contains general descriptions and/or technical
characteristics of the performance of the products contained herein. This documentation is not
intended as a substitute for and is not to be used for determining suitability or reliability of these
products for specific user applications. It is the duty of any such user or integrator to perform the
appropriate and complete risk analysis, evaluation and testing of the products with respect to the
relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or
subsidiaries shall be responsible or liable for misuse of the information contained herein. If you
have any suggestions for improvements or amendments or have found errors in this publication,
please notify us.
You agree not to reproduce, other than for your own personal, noncommercial use, all or part of
this document on any medium whatsoever without permission of Schneider Electric, given in
writing. You also agree not to establish any hypertext links to this document or its content.
Schneider Electric does not grant any right or license for the personal and noncommercial use of
the document or its content, except for a non-exclusive license to consult it on an "as is" basis, at
your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when installing and
using this product. For reasons of safety and to help ensure compliance with documented system
data, only the manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant
instructions must be followed.
Failure to use Schneider Electric software or approved software with our hardware products may
result in injury, harm, or improper operating results.
Failure to observe this information can result in injury or equipment damage.
© 2020 Schneider Electric. All rights reserved.
2 EIO0000003313 02/2020
Table of Contents
Safety Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Part I Modicon M221 Logic Controller Introduction . . . . . . 17
Chapter 1 M221 General Overview . . . . . . . . . . . . . . . . . . . . . . . . . 19
TM221C Logic Controller Description . . . . . . . . . . . . . . . . . . . . . . . . . 20
TM221M Logic Controller Description . . . . . . . . . . . . . . . . . . . . . . . . . 25
Maximum Hardware Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
TMC2 Cartridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
TM3 Expansion Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
TM2 Expansion Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Chapter 2 M221 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Real Time Clock (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Input Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Output Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Run/Stop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
SD Card . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Chapter 3 M221 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
3.1 M221 Logic Controller General Rules for Implementing . . . . . . . . . . . 80
Environmental Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Certifications and Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
3.2 M221 Logic Controller Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Installation and Maintenance Requirements . . . . . . . . . . . . . . . . . . . . 87
TM221C Logic Controller Mounting Positions and Clearances . . . . . . 90
TM221M Logic Controller Mounting Positions and Clearances. . . . . . 93
Top Hat Section Rail (DIN rail) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Installing and Removing the Controller with Expansions. . . . . . . . . . . 100
Direct Mounting on a Panel Surface . . . . . . . . . . . . . . . . . . . . . . . . . . 104
3.3 M221 Electrical Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Wiring Best Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
DC Power Supply Characteristics and Wiring . . . . . . . . . . . . . . . . . . . 114
AC Power Supply Characteristics and Wiring . . . . . . . . . . . . . . . . . . . 119
Grounding the M221 System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
EIO0000003313 02/2020 3
Part II Modicon TM221C Logic Controller. . . . . . . . . . . . . . 127
Chapter 4 TM221C16R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
TM221C16R Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
Chapter 5 TM221CE16R. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
TM221CE16R Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Chapter 6 TM221C16T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
TM221C16T Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
Chapter 7 TM221CE16T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
TM221CE16T Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Chapter 8 TM221C16U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
TM221C16U Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147
Chapter 9 TM221CE16U. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
TM221CE16U Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Chapter 10 TM221C24R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
TM221C24R Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
Chapter 11 TM221CE24R. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
TM221CE24R Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Chapter 12 TM221C24T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
TM221C24T Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
Chapter 13 TM221CE24T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
TM221CE24T Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Chapter 14 TM221C24U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
TM221C24U Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Chapter 15 TM221CE24U. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
TM221CE24U Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
Chapter 16 TM221C40R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
TM221C40R Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
Chapter 17 TM221CE40R. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
TM221CE40R Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Chapter 18 TM221C40T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
TM221C40T Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Chapter 19 TM221CE40T . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
TM221CE40T Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Chapter 20 TM221C40U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
TM221C40U Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
Chapter 21 TM221CE40U. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
TM221CE40U Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
4 EIO0000003313 02/2020
Chapter 22 Embedded I/O Channels . . . . . . . . . . . . . . . . . . . . . . . . 221
Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Relay Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
Regular and Fast Transistor Outputs . . . . . . . . . . . . . . . . . . . . . . . . . 247
Analog Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
Part III Modicon TM221M Logic Controller . . . . . . . . . . . . . . 261
Chapter 23 TM221M16R / TM221M16RG . . . . . . . . . . . . . . . . . . . . 263
TM221M16R / TM221M16RG Presentation . . . . . . . . . . . . . . . . . . . . 264
TM221M16R / TM221M16RG Digital Inputs . . . . . . . . . . . . . . . . . . . . 268
TM221M16R / TM221M16RG Digital Outputs. . . . . . . . . . . . . . . . . . . 272
TM221M16R / TM221M16RG Analog Inputs . . . . . . . . . . . . . . . . . . . 276
Chapter 24 TM221ME16R / TM221ME16RG . . . . . . . . . . . . . . . . . . 281
TM221ME16R / TM221ME16RG Presentation . . . . . . . . . . . . . . . . . . 282
TM221ME16R / TM221ME16RG Digital Inputs. . . . . . . . . . . . . . . . . . 287
TM221ME16R / TM221ME16RG Digital Outputs . . . . . . . . . . . . . . . . 291
TM221ME16R / TM221ME16RG Analog Inputs . . . . . . . . . . . . . . . . . 295
Chapter 25 TM221M16T / TM221M16TG . . . . . . . . . . . . . . . . . . . . . 299
TM221M16T / TM221M16TG Presentation . . . . . . . . . . . . . . . . . . . . . 300
TM221M16T / TM221M16TG Digital Inputs . . . . . . . . . . . . . . . . . . . . 304
TM221M16T / TM221M16TG Digital Outputs . . . . . . . . . . . . . . . . . . . 309
TM221M16T / TM221M16TG Analog Inputs . . . . . . . . . . . . . . . . . . . . 314
Chapter 26 TM221ME16T / TM221ME16TG . . . . . . . . . . . . . . . . . . 319
TM221ME16T / TM221ME16TG Presentation . . . . . . . . . . . . . . . . . . 320
TM221ME16T / TM221ME16TG Digital Inputs . . . . . . . . . . . . . . . . . . 326
TM221ME16T / TM221ME16TG Digital Outputs. . . . . . . . . . . . . . . . . 331
TM221ME16T / TM221ME16TG Analog Inputs . . . . . . . . . . . . . . . . . 336
Chapter 27 TM221M32TK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
TM221M32TK Presentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
TM221M32TK Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
TM221M32TK Digital Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
TM221M32TK Analog Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356
Chapter 28 TM221ME32TK. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
TM221ME32TK Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
TM221ME32TK Digital Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
TM221ME32TK Digital Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
TM221ME32TK Analog Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377
EIO0000003313 02/2020 5
Part IV Modicon M221 Logic Controller Communication . . . 381
Chapter 29 Integrated Communication Ports . . . . . . . . . . . . . . . . . . . 383
USB Mini-B Programming Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384
Ethernet Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
Serial Line 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
Serial Line 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
Chapter 30 Connecting the M221 Logic Controller to a PC . . . . . . . . 397
Connecting the Controller to a PC . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 407
6 EIO0000003313 02/2020
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with the device
before trying to install, operate, service, or maintain it. The following special messages may appear
throughout this documentation or on the equipment to warn of potential hazards or to call attention
to information that clarifies or simplifies a procedure.
EIO0000003313 02/2020 7
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by qualified
personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of
the use of this material.
A qualified person is one who has skills and knowledge related to the construction and operation
of electrical equipment and its installation, and has received safety training to recognize and avoid
the hazards involved.
QUALIFICATION OF PERSONNEL
Only appropriately trained persons who are familiar with and understand the contents of this
manual and all other pertinent product documentation are authorized to work on and with this
product.
The qualified person must be able to detect possible hazards that may arise from parameterization,
modifying parameter values and generally from mechanical, electrical, or electronic equipment.
The qualified person must be familiar with the standards, provisions, and regulations for the
prevention of industrial accidents, which they must observe when designing and implementing the
system.
INTENDED USE
The products described or affected by this document, together with software, accessories, and
options, are programmable logic controllers (referred to herein as “logic controllers”), intended for
industrial use according to the instructions, directions, examples, and safety information contained
in the present document and other supporting documentation.
The product may only be used in compliance with all applicable safety regulations and directives,
the specified requirements, and the technical data.
Prior to using the product, you must perform a risk assessment in view of the planned application.
Based on the results, the appropriate safety-related measures must be implemented.
Since the product is used as a component in an overall machine or process, you must ensure the
safety of persons by means of the design of this overall system.
Operate the product only with the specified cables and accessories. Use only genuine accessories
and spare parts.
Any use other than the use explicitly permitted is prohibited and can result in unanticipated
hazards.
8 EIO0000003313 02/2020
About the Book
At a Glance
Document Scope
Use this document to:
Install and operate your M221 Logic Controller.
Connect the M221 Logic Controller to a programming device equipped with EcoStruxure
Machine Expert - Basic software.
Interface the M221 Logic Controller with I/O expansion modules, HMI and other devices.
Familiarize yourself with the M221 Logic Controller features.
NOTE: Read and understand this document and all related documents (see page 10) before
installing, operating, or maintaining your controller.
Validity Note
This document has been updated for the release of EcoStruxureTM Machine Expert - Basic V1.1.
The technical characteristics of the devices described in this manual also appear online.
The characteristics that are presented in the present document should be the same as those
characteristics that appear online. In line with our policy of constant improvement, we may revise
content over time to improve clarity and accuracy. If you see a difference between the document
and online information, use the online information as your reference.
For product compliance and environmental information (RoHS, REACH, PEP, EOLI, etc.), go to
www.schneider-electric.com/green-premium.
EIO0000003313 02/2020 9
Related Documents
10 EIO0000003313 02/2020
Title of Documentation Reference Number
Modicon TM3 Expert I/O Modules - Hardware Guide EIO0000003137 (ENG)
EIO0000003138 (FRE)
EIO0000003139 (GER)
EIO0000003140 (SPA)
EIO0000003141 (ITA)
EIO0000003142 (CHS)
EIO0000003429 (TUR)
EIO0000003428 (POR)
Modicon TM3 Safety Modules - Hardware Guide EIO0000003353 (ENG)
EIO0000003354 (FRE)
EIO0000003355 (GER)
EIO0000003356 (SPA)
EIO0000003357 (ITA)
EIO0000003358 (CHS)
EIO0000003360 (TUR)
EIO0000003359 (POR)
Modicon TM3 Transmitter and Receiver Modules - Hardware Guide EIO0000003143 (ENG)
EIO0000003144 (FRE)
EIO0000003145 (GER)
EIO0000003146 (SPA)
EIO0000003147 (ITA)
EIO0000003148 (CHS)
EIO0000003431 (TUR)
EIO0000003430 (POR)
TM221C DC Logic Controller - Instruction Sheet EAV48550
TM221C AC Logic Controller - Instruction Sheet EAV58623
TM221M Logic Controller - Instruction Sheet HRB59602
You can download these technical publications and other technical information from our website
at https://www.se.com/ww/en/download/ .
EIO0000003313 02/2020 11
Product Related Information
DANGER
HAZARD OF ELECTRIC SHOCK, EXPLOSION OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires except
under the specific conditions specified in the appropriate hardware guide for this equipment.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
DANGER
POTENTIAL FOR EXPLOSION
Only use this equipment in non-hazardous locations, or in locations that comply with Class I,
Division 2, Groups A, B, C and D.
Do not substitute components which would impair compliance to Class I, Division 2.
Do not connect or disconnect equipment unless power has been removed or the location is
known to be non-hazardous.
Do not use the USB port(s), if so equipped, unless the location is known to be non-hazardous.
Failure to follow these instructions will result in death or serious injury.
12 EIO0000003313 02/2020
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths
and, for certain critical control functions, provide a means to achieve a safe state during and
after a path failure. Examples of critical control functions are emergency stop and overtravel
stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the
implications of unanticipated transmission delays or failures of the link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest
edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003313 02/2020 13
Terminology Derived from Standards
The technical terms, terminology, symbols and the corresponding descriptions in this manual, or
that appear in or on the products themselves, are generally derived from the terms or definitions
of international standards.
In the area of functional safety systems, drives and general automation, this may include, but is not
limited to, terms such as safety, safety function, safe state, fault, fault reset, malfunction, failure,
error, error message, dangerous, etc.
Among others, these standards include:
Standard Description
IEC 61131-2:2007 Programmable controllers, part 2: Equipment requirements and tests.
ISO 13849-1:2015 Safety of machinery: Safety related parts of control systems.
General principles for design.
EN 61496-1:2013 Safety of machinery: Electro-sensitive protective equipment.
Part 1: General requirements and tests.
ISO 12100:2010 Safety of machinery - General principles for design - Risk assessment and risk
reduction
EN 60204-1:2006 Safety of machinery - Electrical equipment of machines - Part 1: General
requirements
ISO 14119:2013 Safety of machinery - Interlocking devices associated with guards - Principles
for design and selection
ISO 13850:2015 Safety of machinery - Emergency stop - Principles for design
IEC 62061:2015 Safety of machinery - Functional safety of safety-related electrical, electronic,
and electronic programmable control systems
IEC 61508-1:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: General requirements.
IEC 61508-2:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Requirements for electrical/electronic/programmable
electronic safety-related systems.
IEC 61508-3:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Software requirements.
IEC 61784-3:2016 Industrial communication networks - Profiles - Part 3: Functional safety
fieldbuses - General rules and profile definitions.
2006/42/EC Machinery Directive
2014/30/EU Electromagnetic Compatibility Directive
2014/35/EU Low Voltage Directive
14 EIO0000003313 02/2020
In addition, terms used in the present document may tangentially be used as they are derived from
other standards such as:
Standard Description
IEC 60034 series Rotating electrical machines
IEC 61800 series Adjustable speed electrical power drive systems
IEC 61158 series Digital data communications for measurement and control – Fieldbus for use in
industrial control systems
Finally, the term zone of operation may be used in conjunction with the description of specific
hazards, and is defined as it is for a hazard zone or danger zone in the Machinery Directive
(2006/42/EC) and ISO 12100:2010.
NOTE: The aforementioned standards may or may not apply to the specific products cited in the
present documentation. For more information concerning the individual standards applicable to the
products described herein, see the characteristics tables for those product references.
EIO0000003313 02/2020 15
16 EIO0000003313 02/2020
Modicon M221 Logic Controller
Modicon M221 Logic Controller Introduction
EIO0000003313 02/2020
Part I
Modicon M221 Logic Controller Introduction
EIO0000003313 02/2020 17
Modicon M221 Logic Controller Introduction
18 EIO0000003313 02/2020
Modicon M221 Logic Controller
M221 General Overview
EIO0000003313 02/2020
Chapter 1
M221 General Overview
Overview
This chapter provides general information about the M221 Logic Controller system architecture
and its components.
EIO0000003313 02/2020 19
M221 General Overview
Overview
The TM221C Logic Controller has various powerful features and can service a wide range of
applications.
Software configuration, programming, and commissioning are accomplished with the EcoStruxure
Machine Expert - Basic software described in the EcoStruxure Machine Expert - Basic Operating
Guide (see EcoStruxure Machine Expert - Basic, Operating Guide) and the M221 Logic Controller
- Programming Guide (see Modicon M221, Logic Controller, Programming Guide).
Programming Languages
The M221 Logic Controller is configured and programmed with the EcoStruxure Machine Expert -
Basic software, which supports the following IEC 61131-3 programming languages:
IL: Instruction List
LD: Ladder Diagram
Grafcet (List)
Grafcet (SFC)
Power Supply
The power supply of the TM221C Logic Controller is 24 Vdc (see page 114) or 100...240 Vac
(see page 119).
Run/Stop
The M221 Logic Controller can be operated externally by the following:
a hardware Run/Stop switch (see page 69)
a Run/Stop (see page 69) operation by a dedicated digital input, defined in the software
configuration (for more information, refer to Configuring Digital Inputs (see Modicon M221,
Logic Controller, Programming Guide).)
EcoStruxure Machine Expert - Basic software (for more information, refer to Toolbar
(see EcoStruxure Machine Expert - Basic, Operating Guide)).
a TMH2GDB Remote Graphic Display (for more information, refer to Controller State Menu
(see Modicon TMH2GDB, Remote Graphic Display, User Guide)).
20 EIO0000003313 02/2020
M221 General Overview
Memory
This table describes the different types of memory:
Embedded Inputs/Outputs
The following embedded I/O types are available, depending on the controller reference:
Regular inputs
Fast inputs associated with counters
Regular sink/source transistor outputs
Fast sink/source transistor outputs associated with pulse generators
Relay outputs
Analog inputs
Removable Storage
The M221 Logic Controllers include an embedded SD card slot (see page 72).
The Modicon M221 Logic Controller allows the following types of file management with an SD card:
Clone management (see Modicon M221, Logic Controller, Programming Guide): back up the
application, firmware, and post configuration (if it exists) of the logic controller
Firmware management (see Modicon M221, Logic Controller, Programming Guide): download
firmware to the logic controller, to a TMH2GDB Remote Graphic Display , or to TM3 expansion
modules
Application management (see Modicon M221, Logic Controller, Programming Guide): back up
and restore the logic controller application, or copy it to another logic controller of the same
reference
Post configuration management (see Modicon M221, Logic Controller, Programming Guide):
add, change, or delete the post configuration file of the logic controller
Error log management (see Modicon M221, Logic Controller, Programming Guide): back up or
delete the error log file of the logic controller
Memory management: back up and restore memory bits and words from a controller
EIO0000003313 02/2020 21
M221 General Overview
22 EIO0000003313 02/2020
M221 General Overview
EIO0000003313 02/2020 23
M221 General Overview
Delivery Content
The following figure presents the content of the delivery for a TM221C Logic Controller:
24 EIO0000003313 02/2020
M221 General Overview
Overview
The TM221M Logic Controller has various powerful features and can service a wide range of
applications.
Software configuration, programming, and commissioning are accomplished with the EcoStruxure
Machine Expert - Basic software described in the EcoStruxure Machine Expert - Basic Operating
Guide (see EcoStruxure Machine Expert - Basic, Operating Guide) and the M221 Logic Controller
- Programming Guide (see Modicon M221, Logic Controller, Programming Guide).
Programming Languages
The M221 Logic Controller is configured and programmed with the EcoStruxure Machine Expert -
Basic software, which supports the following IEC 61131-3 programming languages:
IL: Instruction List
LD: Ladder Diagram
Grafcet (List)
Grafcet (SFC)
Power Supply
The power supply of the TM221M Logic Controller is 24 Vdc (see page 114).
Run/Stop
The M221 Logic Controller can be operated externally by the following:
a hardware Run/Stop switch (see page 69)
a Run/Stop (see page 69) operation by a dedicated digital input, defined in the software
configuration (for more information, refer to Configuring Digital Inputs (see Modicon M221,
Logic Controller, Programming Guide))
EcoStruxure Machine Expert - Basic software (for more information, refer to Toolbar
(see EcoStruxure Machine Expert - Basic, Operating Guide)).
a TMH2GDB Remote Graphic Display (for more information, refer to Controller State Menu
(see Modicon TMH2GDB, Remote Graphic Display, User Guide)).
EIO0000003313 02/2020 25
M221 General Overview
Memory
This table describes the different types of memory:
Embedded Inputs/Outputs
The following embedded I/O types are available, depending on the controller reference:
Regular inputs
Fast inputs (HSC)
Regular transistor outputs
Fast transistor outputs (PLS/PWM/PTO/FREQGEN)
Relay outputs
Analog inputs
Removable Storage
The M221 Logic Controllers include an embedded SD card slot (see page 72).
The Modicon M221 Logic Controller allows the following types of file management with an SD card:
Clone management (see Modicon M221, Logic Controller, Programming Guide): back up the
application, firmware, and post configuration (if it exists) of the logic controller
Firmware management (see Modicon M221, Logic Controller, Programming Guide): download
firmware updates directly to the logic controller, and download firmware to a TMH2GDB Remote
Graphic Display
Application management (see Modicon M221, Logic Controller, Programming Guide): back up
and restore the logic controller application, or copy it to another logic controller of the same
reference
Post configuration management (see Modicon M221, Logic Controller, Programming Guide):
add, change, or delete the post configuration file of the logic controller
Error log management (see Modicon M221, Logic Controller, Programming Guide): back up or
delete the error log file of the logic controller
Memory management: backup/restore of memory bits and words from a controller
26 EIO0000003313 02/2020
M221 General Overview
Reference Digital Input Digital Output Analog Communication Ports Terminal Type
Input
TM221M16R 4 regular 8 relay outputs Yes 2 serial line ports Removable screw
(see page 263) inputs(1) 1 USB programming port terminal blocks
4 fast inputs
(HSC)(2)
TM221M16RG 4 regular 8 relay outputs Yes 2 serial line ports Removable spring
(see page 263) inputs(1) 1 USB programming port terminal blocks
4 fast inputs
(HSC)(2)
TM221ME16R 4 regular 8 relay outputs Yes 1 serial line port Removable screw
(see page 281) inputs(1) 1 USB programming port terminal blocks
4 fast inputs 1 Ethernet port
(HSC)(2)
TM221ME16RG 4 regular 8 relay outputs Yes 1 serial line port Removable spring
(see page 281) inputs(1) 1 USB programming port terminal blocks
4 fast inputs 1 Ethernet port
(HSC)(2)
NOTE: The TM221M Logic Controller uses a 24 Vdc power supply (see page 114).
(1) The regular inputs I2, I3, I4, and I5 have a maximum frequency of 5 kHz.
The other regular inputs have a maximum frequency of 100 Hz.
(2) The fast inputs can be used either as regular inputs or as fast inputs for counting or event functions.
(3) The fast transistor outputs can be used as regular transistor outputs, for PLS, PWM, PTO or FREQGEN
functions, or reflex outputs for HSC.
EIO0000003313 02/2020 27
M221 General Overview
Reference Digital Input Digital Output Analog Communication Ports Terminal Type
Input
TM221M16T 4 regular 6 regular Yes 2 serial line ports Removable screw
(see page 299) inputs(1) transistor 1 USB programming port terminal blocks
4 fast inputs outputs
(HSC)(2) 2 fast transistor
outputs
(PLS/PWM/PTO
/FREQGEN)(3)
TM221M16TG 4 regular 6 regular Yes 2 serial line ports Removable spring
(see page 299) inputs(1) transistor 1 USB programming port terminal blocks
4 fast inputs outputs
(HSC)(2) 2 fast transistor
outputs
(PLS/PWM/PTO
/FREQGEN)(3)
TM221ME16T 4 regular 6 regular Yes 1 serial line port Removable screw
(see page 319) inputs(1) transistor 1 USB programming port terminal blocks
4 fast inputs outputs 1 Ethernet port
(HSC)(2) 2 fast transistor
outputs
(PLS/PWM/PTO
/FREQGEN)(3)
TM221ME16TG 4 regular 6 regular Yes 1 serial line port Removable spring
(see page 319) inputs(1) transistor USB programming port terminal blocks
4 fast inputs outputs 1 Ethernet port
(HSC)(2) 2 fast transistor
outputs
(PLS/PWM/PTO
/FREQGEN)(3)
TM221M32TK 12 regular 14 regular Yes 2 serial line ports HE10 (MIL 20)
(see page 341) inputs(1) transistor 1 USB programming port connectors
4 fast inputs outputs
(HSC)(2) 2 fast outputs
(PLS/PWM/PTO
/FREQGEN)(3)
NOTE: The TM221M Logic Controller uses a 24 Vdc power supply (see page 114).
(1) The regular inputs I2, I3, I4, and I5 have a maximum frequency of 5 kHz.
The other regular inputs have a maximum frequency of 100 Hz.
(2) The fast inputs can be used either as regular inputs or as fast inputs for counting or event functions.
(3) The fast transistor outputs can be used as regular transistor outputs, for PLS, PWM, PTO or FREQGEN
functions, or reflex outputs for HSC.
28 EIO0000003313 02/2020
M221 General Overview
Reference Digital Input Digital Output Analog Communication Ports Terminal Type
Input
TM221ME32TK 12 regular 14 regular Yes 1 serial line port HE10 (MIL 20)
(see page 341) inputs(1) outputs 1 USB programming port connectors
4 fast inputs 2 fast outputs 1 Ethernet port
(HSC)(2) (PLS/PWM/PTO
/FREQGEN)(3)
NOTE: The TM221M Logic Controller uses a 24 Vdc power supply (see page 114).
(1) The regular inputs I2, I3, I4, and I5 have a maximum frequency of 5 kHz.
The other regular inputs have a maximum frequency of 100 Hz.
(2) The fast inputs can be used either as regular inputs or as fast inputs for counting or event functions.
(3) The fast transistor outputs can be used as regular transistor outputs, for PLS, PWM, PTO or FREQGEN
functions, or reflex outputs for HSC.
Delivery Content
The following figure presents the content of the delivery for a TM221M Logic Controller:
EIO0000003313 02/2020 29
M221 General Overview
Introduction
The M221 Logic Controller is a control system that offers an all-in-one solution with optimized
configurations and an expandable architecture.
Application requirements determine the architecture of your M221 Logic Controller configuration.
The following figure represents the components of a local configuration:
30 EIO0000003313 02/2020
M221 General Overview
NOTE: You cannot mount a TM2 module before any TM3 module as indicated in the following
figure:
Application requirements determine the architecture of your M221 Logic Controller configuration.
NOTE: You cannot use TM2 modules in configurations that include the TM3 transmitter and
receiver modules.
The following figure represents the components of a remote configuration:
EIO0000003313 02/2020 31
M221 General Overview
NOTE: The configuration with its TM3 and TM2 expansion modules is validated by EcoStruxure
Machine Expert - Basic software in the Configuration window taking into account the total power
consumption of the installed modules.
NOTE: In some environments, the maximum configuration populated by high consumption
modules, coupled with the maximum distance allowable between the TM3 transmitter and receiver
modules, may present bus communication issues although the EcoStruxure Machine Expert -
Basic software allows for the configuration. In such a case you will need to analyze the
consumption of the modules chosen for your configuration, as well as the minimum cable distance
required by your application, and possibly seek to optimize your choices.
32 EIO0000003313 02/2020
M221 General Overview
NOTE: Expansion modules consume current from the 5 Vdc and 24 Vdc supplied to the I/O Bus.
Therefore, the current delivered by the logic controller to the I/O Bus defines the maximum number
of expansion modules that can be connected to the I/O Bus (validated by EcoStruxure Machine
Expert - Basic software in the Configuration window).
EIO0000003313 02/2020 33
M221 General Overview
TMC2 Cartridges
Overview
You can expand the number of I/Os or communication options of your Modicon TM221C Logic
Controller by adding TMC2 cartridges.
For more information, refer to the TMC2 Cartridges Hardware Guide.
34 EIO0000003313 02/2020
M221 General Overview
EIO0000003313 02/2020 35
M221 General Overview
Introduction
The range of TM3 expansion modules includes:
Digital modules, classified as follows:
Input modules (see page 37)
Output modules (see page 37)
Mixed input/output modules (see page 39)
36 EIO0000003313 02/2020
M221 General Overview
EIO0000003313 02/2020 37
M221 General Overview
38 EIO0000003313 02/2020
M221 General Overview
EIO0000003313 02/2020 39
M221 General Overview
40 EIO0000003313 02/2020
M221 General Overview
EIO0000003313 02/2020 41
M221 General Overview
42 EIO0000003313 02/2020
M221 General Overview
EIO0000003313 02/2020 43
M221 General Overview
44 EIO0000003313 02/2020
M221 General Overview
Overview
You can expand the number of I/Os of your M221 Logic Controller by adding TM2 I/O expansion
modules.
The following types of electronic modules are supported:
TM2 digital I/O expansion modules
TM2 analog I/O expansion modules
NOTE: TM2 modules can only be used in the local configuration, and only if there is no TM3
transmitter and receiver modules present in the configuration.
NOTE: It is prohibited to mount a TM2 module before any TM3 module. The TM2 modules must
be mounted and configured at the end of the local configuration.
EIO0000003313 02/2020 45
M221 General Overview
46 EIO0000003313 02/2020
M221 General Overview
EIO0000003313 02/2020 47
M221 General Overview
48 EIO0000003313 02/2020
M221 General Overview
Accessories
Overview
This section describes the accessories, cables, and Telefast.
Accessories
EIO0000003313 02/2020 49
M221 General Overview
Cables
50 EIO0000003313 02/2020
M221 General Overview
EIO0000003313 02/2020 51
M221 General Overview
1 TM221M32TK / TM221ME32TK
2 Cable equipped with a 20-way HE 10 connector at each end.)
3 16 channel sub-base for input extension modules.
4 16 channel sub-base for output extension modules.
5 16 channel sub-base for output extension modules.
52 EIO0000003313 02/2020
Modicon M221 Logic Controller
M221 Features
EIO0000003313 02/2020
Chapter 2
M221 Features
M221 Features
Overview
This chapter describes the Modicon M221 Logic Controller features.
EIO0000003313 02/2020 53
M221 Features
Overview
The M221 Logic Controller includes an RTC to provide system date and time information, and to
support related functions requiring a real-time clock. To continue keeping time when power is off,
a non-rechargeable battery is required (see reference below). A battery LED on the front panel of
the controller indicates if the battery is depleted or absent.
This table shows how RTC drift is managed:
Battery
The controller has one backup battery.
In the event of a power interruption, the backup battery maintains user data and the RTC for the
controller.
This table shows the characteristics of the battery:
Characteristics Description
Use In the event of a transient power outage, the battery powers the RTC and user
data.
Backup life At least 1 year at 25 °C maximum (77 °F). At higher temperatures, the time is
reduced.
Battery monitoring Yes
Replaceable Yes
Battery life 4 years at 25 °C maximum (77 °F). At higher temperatures, the time is reduced.
Controller battery type Lithium carbon monofluoride, type Panasonic BR2032
54 EIO0000003313 02/2020
M221 Features
DANGER
EXPLOSION, FIRE, OR CHEMICAL BURNS
Replace with identical battery type.
Follow all the instructions of the battery manufacturer.
Remove all replaceable batteries before discarding unit.
Recycle or properly dispose of used batteries.
Protect battery from any potential short-circuit.
Do not recharge, disassemble, heat above 100 °C (212 °F), or incinerate.
Use your hands or insulated tools to remove or replace the battery.
Maintain proper polarity when inserting and connecting a new battery.
Failure to follow these instructions will result in death or serious injury.
EIO0000003313 02/2020 55
M221 Features
Step Action
1 Remove power from your controller.
2 Use an insulated screw-driver to pull out the battery holder from the TM221C Logic Controller.
Use an insulated screw-driver to pull out the battery holder from the TM221M Logic Controller.
56 EIO0000003313 02/2020
M221 Features
Step Action
3 Slide out the battery holder of the TM221C Logic Controller.
EIO0000003313 02/2020 57
M221 Features
Step Action
4 Remove the battery from the battery holder.
5 Insert the new battery into the battery holder in accordance with the polarity markings on the
battery.
6 Replace the battery holder on the controller and verify that the latch clicks into place.
58 EIO0000003313 02/2020
M221 Features
Step Action
7 Slide in the battery holder of the TM221C Logic Controller.
EIO0000003313 02/2020 59
M221 Features
NOTE: Replacement of the battery in the controllers other than with the type specified in this
documentation may present a risk of fire or explosion.
WARNING
IMPROPER BATTERY CAN PROVOKE FIRE OR EXPLOSION
Replace battery only with identical type: Panasonic Type BR2032.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
60 EIO0000003313 02/2020
M221 Features
Input Management
Overview
The M221 Logic Controller features digital inputs, including 4 fast inputs.
The following functions are configurable:
Filters (depends on the function associated with the input).
I0...I15 inputs can be used for the Run/Stop function.
Four fast inputs can be either latched or used for events (rising edge, falling edge, or both) and
thus be linked to an external task.
NOTE: All inputs can be used as regular inputs.
EIO0000003313 02/2020 61
M221 Features
Latching
Latching is a function that can be assigned to the M221 Logic Controller fast inputs. This function
is used to memorize (or latch) any pulse with a duration that is less than the M221 Logic Controller
scan time. When a pulse is shorter than one scan, the controller latches the pulse, which is then
updated in the next scan. This latching mechanism only recognizes rising edges. Falling edges
cannot be latched. Assigning inputs to be latched is done in the Configuration tab in EcoStruxure
Machine Expert - Basic.
The following timing diagram illustrates the latching effects:
Event
An input configured for Event can be associated with an External Task.
Run/Stop
The Run/Stop function is used to start or stop an application program using an input. In addition to
the embedded Run/Stop switch, you can configure one (and only one) input as an additional
Run/Stop command.
For more information, refer to the Run/Stop (see page 69).
WARNING
UNINTENDED MACHINE OR PROCESS START-UP
Verify the state of security of your machine or process environment before applying power to
the Run/Stop input.
Use the Run/Stop input to help prevent the unintentional start-up from a remote location.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
62 EIO0000003313 02/2020
M221 Features
EIO0000003313 02/2020 63
M221 Features
64 EIO0000003313 02/2020
M221 Features
Output Management
Introduction
The M221 Logic Controller features both regular and fast transistor outputs
(PLS/PWM/PTO/FREQGEN).
The following output functions are configurable on the transistor outputs:
Alarm output
HSC (reflex features on HSC threshold)
PLS
PTO
PWM
FREQGEN
EIO0000003313 02/2020 65
M221 Features
66 EIO0000003313 02/2020
M221 Features
When a short-circuit or overload is detected and the system bit %S49 is set to 1, the cluster of 4
outputs is set to 0. An automatic rearming is done periodically (about 1 s). Only the short-circuit
between an output set to 1 and 0 V is detected. The short-circuit between an output set to 0 and
24 V is not detected.
NOTE: By default, %S49 is set to 0.
The following table describes the actions taken on short-circuits or overload of transistor outputs
from Q0 to Q3:
If... then...
If you have short-circuit at 0 V on Transistor outputs automatically go into over-current protection or
transistor outputs thermal protection mode.
For more information, refer to transistor output wiring diagrams.
In the case of a short-circuit or current overload, the common group of outputs automatically enters
into thermal protection mode (all outputs in the group are set to 0), and are then periodically
rearmed (each second) to test the connection state. However, you must be aware of the effect of
this rearming on the machine or process being controlled.
WARNING
UNINTENDED MACHINE START-UP
Inhibit the automatic rearming of outputs if this feature is an undesirable behavior for your
machine or process.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: The automatic rearming feature can be disabled with the system bit %S49. Refer to the
Programming Guide of your controller for more information.
EIO0000003313 02/2020 67
M221 Features
For more information, refer to Sink Transistor Outputs Wiring Diagrams (see page 254).
If... then...
If you have short-circuit or overload at 0 V or No action is taken and no error is detectable.
24 V on relay outputs For more information, refer to relay output wiring diagrams.
Relay outputs are electromechanical switches capable of carrying significant levels of current and
voltage. All electromechanical devices have a limited operational life and must be installed so as
to minimize the potential for unintended consequences.
WARNING
INOPERABLE OUTPUTS
Use appropriate, external safety interlocks on outputs where personnel and/or equipment
hazards exist.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
68 EIO0000003313 02/2020
M221 Features
Run/Stop
Run/Stop
The M221 Logic Controller can be operated externally by the following:
a hardware Run/Stop switch
a Run/Stop (see page 62) operation by a dedicated digital input, defined in the software
configuration. For more information, refer to Configuring Digital Inputs (see Modicon M221,
Logic Controller, Programming Guide).
an EcoStruxure Machine Expert - Basic software command.
a Remote Graphic Display (see Modicon TMH2GDB, Remote Graphic Display, User Guide).
The M221 Logic Controller has a Run/Stop hardware switch, which puts the controller in a RUN or
STOP state.
The following figure shows the location of the Run/Stop switch on the TM221C Logic Controller:
EIO0000003313 02/2020 69
M221 Features
The following figure shows the location of the Run/Stop switch on the TM221M Logic Controller:
The interaction of the different operators on the controller state behavior is summarized in the table
below:
70 EIO0000003313 02/2020
M221 Features
WARNING
UNINTENDED MACHINE OR PROCESS START-UP
Verify the state of security of your machine or process environment before applying power to
the Run/Stop input or engaging the Run/Stop switch.
Use the Run/Stop input to help prevent the unintentional start-up from a remote location, or
from accidentally engaging the Run/Stop switch.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003313 02/2020 71
M221 Features
SD Card
Overview
When handling the SD card, follow the instructions below to help prevent internal data on the SD
card from being corrupted or lost or an SD card malfunction from occurring:
NOTICE
LOSS OF APPLICATION DATA
Do not store the SD card where there is static electricity or probable electromagnetic fields.
Do not store the SD card in direct sunlight, near a heater, or other locations where high
temperatures can occur.
Do not bend the SD card.
Do not drop or strike the SD card against another object.
Keep the SD card dry.
Do not touch the SD card connectors.
Do not disassemble or modify the SD card.
Use only SD cards formatted using FAT or FAT32.
Failure to follow these instructions can result in equipment damage.
The M221 Logic Controller does not recognize NTFS formatted SD cards. Format the SD card on
your computer using FAT or FAT32.
When using the M221 Logic Controller and an SD card, observe the following to avoid losing
valuable data:
Accidental data loss can occur at any time. Once data is lost it cannot be recovered.
If you forcibly extract the SD card, data on the SD card may become corrupted.
Removing an SD card that is being accessed could damage the SD card, or corrupt its data.
If the SD card is not positioned correctly when inserted into the controller, the data on the card
and the controller could become damaged.
NOTICE
LOSS OF APPLICATION DATA
Backup SD card data regularly.
Do not remove power or reset the controller, and do not insert or remove the SD card while it
is being accessed.
Failure to follow these instructions can result in equipment damage.
72 EIO0000003313 02/2020
M221 Features
The following figure shows the SD card slot of the TM221C Logic Controller:
The following figure shows the SD card slot of the TM221M Logic Controller:
EIO0000003313 02/2020 73
M221 Features
It is possible to set the Write-Control Tab to prevent write operations to the SD card. Push the tab
up, as shown in the example on the right-hand side, to release the lock and enable writing to the
SD card. Before using an SD card, read the manufacturer's instructions.
Step Action
1 Insert the SD card into the SD card slot of the TM221C Logic Controller:
Insert the SD card into the SD card slot of the TM221M Logic Controller:
74 EIO0000003313 02/2020
M221 Features
Step Action
2 Push until you hear it “click” (TM221C Logic Controller):
EIO0000003313 02/2020 75
M221 Features
TMASD1 Characteristics
Characteristics Description
Card removal durability Minimum 1000 times
File retention time 10 years @ 25 °C (77 °F)
Flash type SLC NAND
Memory size 256 MB
Ambient operation temperature –10 … +85°C (14...185 °F)
Storage temperature –25 … +85°C (–13...185 °F)
Relative humidity 95% max. non-condensing
Write/Erase cycles 3,000,000 (approximately)
NOTE: The TMASD1 has been rigorously tested in association with the logic controller. For other
commercially available cards, consult your local sales representative.
NOTE: The SD card can be used directly on your PC.
76 EIO0000003313 02/2020
M221 Features
Status LED
The following figure shows the status LEDs of the TM221C Logic Controller:
The following figure shows the status LEDs of the TM221M Logic Controller:
EIO0000003313 02/2020 77
M221 Features
78 EIO0000003313 02/2020
Modicon M221 Logic Controller
M221 Installation
EIO0000003313 02/2020
Chapter 3
M221 Installation
M221 Installation
Overview
This chapter provides installation safety guidelines, device dimensions, mounting instructions, and
environmental specifications.
EIO0000003313 02/2020 79
M221 Installation
Section 3.1
M221 Logic Controller General Rules for Implementing
80 EIO0000003313 02/2020
M221 Installation
Environmental Characteristics
Enclosure Requirements
M221 Logic Controller system components are designed as Zone B, Class A industrial equipment
according to IEC/CISPR Publication 11. If they are used in environments other than those
described in the standard, or in environments that do not meet the specifications in this manual,
the ability to meet electromagnetic compatibility requirements in the presence of conducted and/or
radiated interference may be reduced.
All M221 Logic Controller system components meet European Community (CE) requirements for
open equipment as defined by IEC/EN 61131-2. You must install them in an enclosure designed
for the specific environmental conditions and to minimize the possibility of unintended contact with
hazardous voltages. Use metal enclosures to improve the electromagnetic immunity of your M221
Logic Controller system. Use enclosures with a keyed locking mechanism to minimize
unauthorized access.
Environmental Characteristics
All the M221 Logic Controller module components are electrically isolated between the internal
electronic circuit and the input/output channels within the limits set forth and described by these
environmental characteristics. For more information on electrical isolation, see the technical
specifications of your particular controller found later in the current document. This equipment
meets CE requirements as indicated in the table below. This equipment is intended for use in a
Pollution Degree 2 industrial environment.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003313 02/2020 81
M221 Installation
82 EIO0000003313 02/2020
M221 Installation
Electromagnetic Susceptibility
The M221 Logic Controller system meets electromagnetic susceptibility specifications as indicated
in the following table:
NOTE: The tested ranges may indicate values beyond that of the IEC Standard. However, our internal standards
define what is necessary for industrial environments. In all cases, we uphold the minimum specification if indicated.
EIO0000003313 02/2020 83
M221 Installation
NOTE: The tested ranges may indicate values beyond that of the IEC Standard. However, our internal standards
define what is necessary for industrial environments. In all cases, we uphold the minimum specification if indicated.
84 EIO0000003313 02/2020
M221 Installation
Introduction
The M221 Logic Controllers are designed to conform to the main national and international
standards concerning electronic industrial control devices:
IEC/EN 61131-2
UL 508
The M221 Logic Controllers have obtained the following conformity marks:
CE
CSA (except for TM221C•••U)
EAC
RCM
UL
cCSAus Hazardous Location (except for TM221C•••U)
For product compliance and environmental information (RoHS, REACH, PEP, EOLI, etc.), go to
www.schneider-electric.com/green-premium.
EIO0000003313 02/2020 85
M221 Installation
Section 3.2
M221 Logic Controller Installation
86 EIO0000003313 02/2020
M221 Installation
Before Starting
Read and understand this chapter before beginning the installation of your system.
The use and application of the information contained herein require expertise in the design and
programming of automated control systems. Only you, the user, machine builder or integrator, can
be aware of all the conditions and factors present during installation and setup, operation, and
maintenance of the machine or process, and can therefore determine the automation and
associated equipment and the related safeties and interlocks which can be effectively and properly
used. When selecting automation and control equipment, and any other related equipment or
software, for a particular application, you must also consider any applicable local, regional or
national standards and/or regulations.
Pay particular attention in conforming to any safety information, different electrical requirements,
and normative standards that would apply to your machine or process in the use of this equipment.
Disconnecting Power
All options and modules should be assembled and installed before installing the control system on
a mounting rail, onto a mounting plate or in a panel. Remove the control system from its mounting
rail, mounting plate or panel before disassembling the equipment.
DANGER
HAZARD OF ELECTRIC SHOCK, EXPLOSION OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires except
under the specific conditions specified in the appropriate hardware guide for this equipment.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
EIO0000003313 02/2020 87
M221 Installation
Programming Considerations
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Operating Environment
In addition to the Environmental Characteristics, refer to Product Related Information in the
beginning of the present document for important information regarding installation in hazardous
locations for this specific equipment.
WARNING
UNINTENDED EQUIPMENT OPERATION
Install and operate this equipment according to the conditions described in the Environmental
Characteristics.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
88 EIO0000003313 02/2020
M221 Installation
Installation Considerations
WARNING
UNINTENDED EQUIPMENT OPERATION
Use appropriate safety interlocks where personnel and/or equipment hazards exist.
Install and operate this equipment in an enclosure appropriately rated for its intended
environment and secured by a keyed or tooled locking mechanism.
Use the sensor and actuator power supplies only for supplying power to the sensors or
actuators connected to the module.
Power line and output circuits must be wired and fused in compliance with local and national
regulatory requirements for the rated current and voltage of the particular equipment.
Do not use this equipment in safety-critical machine functions unless the equipment is
otherwise designated as functional safety equipment and conforming to applicable regulations
and standards.
Do not disassemble, repair, or modify this equipment.
Do not connect any wiring to reserved, unused connections, or to connections designated as
No Connection (N.C.).
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: JDYX2 or JDYX8 fuse types are UL-recognized and CSA approved.
EIO0000003313 02/2020 89
M221 Installation
Introduction
This section describes the mounting positions for the TM221C Logic Controller .
NOTE: Keep adequate spacing for proper ventilation and to maintain the operating temperature
specified in the Environmental Characteristics (see page 81).
90 EIO0000003313 02/2020
M221 Installation
Minimum Clearances
WARNING
UNINTENDED EQUIPMENT OPERATION
Place devices dissipating the most heat at the top of the cabinet and ensure adequate
ventilation.
Avoid placing this equipment next to or above devices that might cause overheating.
Install the equipment in a location providing the minimum clearances from all adjacent
structures and equipment as directed in this document.
Install all equipment in accordance with the specifications in the related documentation.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
The M221 Logic Controller has been designed as an IP20 product and must be installed in an
enclosure. Clearances must be respected when installing the product.
There are 3 types of clearances between:
The M221 Logic Controller and all sides of the cabinet (including the panel door).
The M221 Logic Controller terminal blocks and the wiring ducts. This distance reduces
electromagnetic interference between the controller and the wiring ducts.
The M221 Logic Controller and other heat generating devices installed in the same cabinet.
EIO0000003313 02/2020 91
M221 Installation
The following figure shows the minimum clearances that apply to all TM221C Logic Controller
references:
92 EIO0000003313 02/2020
M221 Installation
Introduction
This section describes the mounting positions for the M221 Logic Controller.
NOTE: Keep adequate spacing for proper ventilation and to maintain the operating temperature
specified in the Environmental Characteristics (see page 81).
EIO0000003313 02/2020 93
M221 Installation
Minimum Clearances
WARNING
UNINTENDED EQUIPMENT OPERATION
Place devices dissipating the most heat at the top of the cabinet and ensure adequate
ventilation.
Avoid placing this equipment next to or above devices that might cause overheating.
Install the equipment in a location providing the minimum clearances from all adjacent
structures and equipment as directed in this document.
Install all equipment in accordance with the specifications in the related documentation.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
The M221 Logic Controller has been designed as an IP20 product and must be installed in an
enclosure. Clearances must be respected when installing the product.
There are 3 types of clearances to consider:
The M221 Logic Controller and all sides of the cabinet (including the panel door).
The M221 Logic Controller terminal blocks and the wiring ducts to help reduce potential
electromagnetic interference between the controller and the duct wiring.
The M221 Logic Controller and other heat generating devices installed in the same cabinet.
94 EIO0000003313 02/2020
M221 Installation
The following figure shows the minimum clearances that apply to all M221 Logic Controller
references:
EIO0000003313 02/2020 95
M221 Installation
96 EIO0000003313 02/2020
M221 Installation
The following illustration and table show the references of the symmetric top hat section rails (DIN
rail) for the metal enclosure range:
The following illustration and table shows the references of the symmetric top hat section rails (DIN
rail) of 2000 mm (78.74 in.):
NSYSDR200D2 A
1 Unperforated galvanized steel
2 Perforated galvanized steel
EIO0000003313 02/2020 97
M221 Installation
98 EIO0000003313 02/2020
M221 Installation
The following illustration and table show the references of the double-profile top hat section rails
(DIN rail) for the floor-standing range:
EIO0000003313 02/2020 99
M221 Installation
Overview
This section describes how to install and remove the controller with its expansion modules from a
top hat section rail (DIN rail).
To assemble expansion modules to a controller or receiver module, or to other modules, refer to
the respective expansion modules hardware guide(s).
Step Action
1 Fasten the top hat section rail (DIN rail) to a panel surface using screws.
2 Position the top groove of the controller and its expansion modules on the top
edge of the DIN rail and press the assembly against the top hat section rail
(DIN rail) until you hear the top hat section rail (DIN rail) clip snap into place.
On TM221C Logic Controller:
Step Action
3 Place 2 terminal block end clamps on both sides of the controller and
expansion module assembly.
AB1AB8P35
Removing a Controller with its Expansions from a Top Hat Section Rail (DIN Rail)
The following procedure describes how to remove a controller with its expansion modules from a
top hat section rail (DIN rail):
Step Action
1 Remove all power from your controller and expansion modules.
2 Insert a flat screwdriver into the slot of the top hat section rail (DIN rail) clip.
On TM221C Logic Controller:
Overview
This section shows how to install M221 Logic Controller using the Panel Mounting Kit. This section
also provides mounting hole layout for all modules.
Step Action
1 Insert the mounting strip TMAM2 into the slot at the top of the module.
The following diagram shows the mounting hole layout for TM221C Logic Controller with 24 I/O
channels:
The following diagram shows the mounting hole layout for TM221C Logic Controller with 40 I/O
channels:
The following diagram shows the mounting hole layout for TM221M Logic Controller:
Section 3.3
M221 Electrical Requirements
Overview
This section describes the wiring guidelines and associated best practices to be respected when
using the M221 Logic Controller system.
DANGER
HAZARD OF ELECTRIC SHOCK, EXPLOSION OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires except
under the specific conditions specified in the appropriate hardware guide for this equipment.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths
and, for certain critical control functions, provide a means to achieve a safe state during and
after a path failure. Examples of critical control functions are emergency stop and overtravel
stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the
implications of unanticipated transmission delays or failures of the link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1
For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest
edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
Wiring Guidelines
The following rules must be applied when wiring a M221 Logic Controller system:
I/O and communication wiring must be kept separate from the power wiring. Route these 2 types
of wiring in separate cable ducting.
Verify that the operating conditions and environment are within the specification values.
Use proper wire sizes to meet voltage and current requirements.
Use copper conductors (required).
Use twisted pair, shielded cables for analog, and/or fast I/O.
Use twisted pair, shielded cables for networks, and fieldbus.
Use shielded, properly grounded cables for all analog and high-speed inputs or outputs and
communication connections. If you do not use shielded cable for these connections,
electromagnetic interference can cause signal degradation. Degraded signals can cause the
controller or attached modules and equipment to perform in an unintended manner.
WARNING
UNINTENDED EQUIPMENT OPERATION
Use shielded cables for all fast I/O, analog I/O and communication signals.
Ground cable shields for all analog I/O, fast I/O and communication signals at a single point1.
Route communication and I/O cables separately from power cables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1Multipoint
grounding is permissible if connections are made to an equipotential ground plane
dimensioned to help avoid cable shield damage in the event of power system short-circuit currents.
For more details, refer to Grounding Shielded Cables (see page 122).
NOTE: Surface temperatures may exceed 60 °C (140 °F).
To conform to IEC 61010 standards, route primary wiring (wires connected to power mains)
separately and apart from secondary wiring (extra low voltage wiring coming from intervening
power sources). If that is not possible, double insulation is required such as conduit or cable gains.
The following tables show the cable types and wire sizes for a 5.08 pitch removable screw terminal
block (I/Os and power supply):
DANGER
LOOSE WIRING CAUSES ELECTRIC SHOCK
Tighten connections in conformance with the torque specifications.
Failure to follow these instructions will result in death or serious injury.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
The following tables show the cable types and wire sizes for a 5.08 pitch removable spring terminal
block (I/Os and power supply):
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
The spring clamp connectors of the terminal block are designed for only one wire or one cable end.
Two wires to the same connector must be installed with a double wire cable end to help prevent
loosening.
DANGER
LOOSE WIRING CAUSES ELECTRIC SHOCK
Do not insert more than one wire per connector of the spring terminal blocks unless using a
double wire cable end (ferrule).
Failure to follow these instructions will result in death or serious injury.
CAUTION
OUTPUT CIRCUIT DAMAGE DUE TO INDUCTIVE LOADS
Use an appropriate external protective circuit or device to reduce the risk of inductive direct
current load damage.
Failure to follow these instructions can result in injury or equipment damage.
If your controller or module contains relay outputs, these types of outputs can support up to
240 Vac. Inductive damage to these types of outputs can result in welded contacts and loss of
control. Each inductive load must include a protection device such as a peak limiter, RC circuit or
flyback diode. Capacitive loads are not supported by these relays.
WARNING
RELAY OUTPUTS WELDED CLOSED
Always protect relay outputs from inductive alternating current load damage using an
appropriate external protective circuit or device.
Do not connect relay outputs to capacitive loads.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
AC-driven contactor coils are, under certain circumstances, inductive loads that generate
pronounced high-frequency interference and electrical transients when the contactor coil is de-
energized. This interference may cause the logic controller to detect an I/O bus error.
WARNING
CONSEQUENTIAL LOSS OF CONTROL
Install an RC surge suppressor or similar means, such as an interposing relay, on each TM3
expansion module relay output when connecting to AC-driven contactors or other forms of
inductive loads.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Protective circuit A: this protection circuit can be used for both AC and DC load power circuits.
Protective circuit B: this protection circuit can be used for DC load power circuits.
Protective circuit C: this protection circuit can be used for both AC and DC load power circuits.
In applications where the inductive load is switched on and off frequently and/or rapidly, ensure
that the continuous energy rating (J) of the varistor exceeds the peak load energy by 20 % or more.
Overview
This section provides the characteristics and the wiring diagrams of the DC power supply.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
WARNING
POTENTIAL OF OVERHEATING AND FIRE
Do not connect the equipment directly to line voltage.
Use only isolating PELV power supplies and circuits to supply power to the equipment1.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1 For compliance to UL (Underwriters Laboratories) requirements, the power supply must also
conform to the various criteria of NEC Class 2, and be inherently current limited to a maximum
power output availability of less than 100 VA (approximately 4 A at nominal voltage), or not
inherently limited but with an additional protection device such as a circuit breaker or fuse meeting
the requirements of clause 9.4 Limited-energy circuit of UL 61010-1. In all cases, the current limit
should never exceed that of the electric characteristics and wiring diagrams for the equipment
described in the present documentation. In all cases, the power supply must be grounded, and you
must separate Class 2 circuits from other circuits. If the indicated rating of the electrical character-
istics or wiring diagrams are greater than the specified current limit, multiple Class 2 power
supplies may be used.
Controller DC Characteristics
The following table shows the DC power supply characteristics:
Characteristic Value
Rated voltage 24 Vdc
Power supply voltage range 20.4...28.8 Vdc
Power interruption time 10 ms at 24 Vdc
Maximum inrush current 35 A
Maximum power consumption TM221C16T with 4 expansion modules 10 W
TM221CE16T 11 W
TM221C16U 10 W
TM221CE16U 11 W
TM221C24T with 7 expansion modules 13 W
TM221CE24T 14 W
TM221C24U 13 W
TM221CE24U 14 W
TM221C40T 16 W
TM221CE40T 17 W
TM221C40U 16 W
TM221CE40U 17 W
Maximum power consumption TM221M16R• with 7 expansion modules 22.5 W
TM221ME16R• 23.3 W
TM221M16T• 22 W
TM221ME16T• 22.9 W
TM221M32TK 22.3 W
TM221ME32TK 23.2 W
Isolation between DC power supply TM221C Logic Controller 500 Vac
and internal logic
TM221M Logic Controller Not isolated
between DC power supply and protective earth ground 500 Vac
(PE)
Power interruption
The TM221M Logic Controller must be supplied by an external 24 V power supply equipment.
During power interruptions, the TM221M Logic Controller, associated to the suitable power supply,
is able to continue normal operation for a minimum of 10 ms as specified by IEC standards.
When planning the management of the power supplied to the controller, you must consider the
power interruption duration due to the fast cycle time of the controller.
There could potentially be many scans of the logic and consequential updates to the I/O image
table during the power interruption, while there is no external power supplied to the inputs, the
outputs or both depending on the power system architecture and power interruption
circumstances.
WARNING
UNINTENDED EQUIPMENT OPERATION
Individually monitor each source of power used in the controller system including input power
supplies, output power supplies and the power supply to the controller to allow appropriate
system shutdown during power system interruptions.
The inputs monitoring each of the power supply sources must be unfiltered inputs.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
* Type T fuse
For more information, refer to the 5.08 pitch Rules for Removable Screw Terminal block
(see page 109).
Overview
This section provides the wiring diagrams and the characteristics of the AC power supply.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Controller AC Characteristics
The following table shows the AC power supply characteristics:
Characteristic Value
Voltage rated 100...240 Vac
limit (including ripple) 85...264 Vac
Frequency rated 50/60 Hz
limit 45/66 Hz
Characteristic Value
Power interruption time 10 ms at 100 Vac
Maximum inrush at 240 Vac 40 A
current
Maximum power TM221C16R with 4 expansion 46 VA
consumption at modules
TM221CE16R 49 VA
100...240 Vac
TM221C24R with 7 expansion 55 VA
modules
TM221CE24R 58 VA
TM221C40R 67 VA
TM221CE40R 70 VA
Isolation between AC power supply and internal logic 2300 Vac
between AC power supply and protective earth ground (PE) 1500 Vac
Power interruption
The duration of power interruptions where the M221 Logic Controller is able to continue normal
operation varies depending upon the load to the power supply of the controller, but generally a
minimum of 10 ms is maintained as specified by IEC standards.
If there is a minimum load on the controller power supply, the interruption can be as long as 400
ms.
When planning the management of the power supplied to the controller, you must consider the
duration due to the fast cycle time.
There could potentially be many scans of the logic and consequential updates to the I/O image
table during the power interruption, while there is no external power supplied to the inputs, the
outputs or both depending on the power system architecture and power interruption
circumstances.
WARNING
UNINTENDED EQUIPMENT OPERATION
Individually monitor each source of power used in the Modicon M221 Logic Controller system
including input power supplies, output power supplies and the power supply to the controller
to allow appropriate system shutdown during power system interruptions.
The inputs monitoring each of the power supply sources must be unfiltered inputs.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Overview
To help minimize the effects of electromagnetic interference, cables carrying the fast I/O, analog
I/O, and field bus communication signals must be shielded.
WARNING
UNINTENDED EQUIPMENT OPERATION
Use shielded cables for all fast I/O, analog I/O, and communication signals.
Ground cable shields for all fast I/O, analog I/O, and communication signals at a single point1.
Route communications and I/O cables separately from power cables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1Multipoint
grounding is permissible if connections are made to an equipotential ground plane
dimensioned to help avoid cable shield damage in the event of power system short-circuit currents.
The use of shielded cables requires compliance with the following wiring rules:
For protective ground connections (PE), metal conduit or ducting can be used for part of the
shielding length, provided there is no break in the continuity of the ground connections. For
functional ground (FE), the shielding is intended to attenuate electromagnetic interference and
the shielding must be continuous for the length of the cable. If the purpose is both functional and
protective, as is often the case for communication cables, the cable must have continuous
shielding.
Wherever possible, keep cables carrying one type of signal separate from the cables carrying
other types of signals or power.
DANGER
ELECTRIC SHOCK
Make sure that Modbus cables are securely connected to the protective ground (PE).
Failure to follow these instructions will result in death or serious injury.
Step Description
1 Strip the shielding for a length of 15 mm (0.59 in.)
NOTE: The shielding must be clamped securely to the conductive backplane to ensure a good
contact.
Step Description
1 Install the Grounding Bar directly on the
conductive backplane below the M221
Logic Controller system as illustrated.
NOTE: Use the TM2XMTGB Grounding Bar exclusively for Functional Ground (FE) connections.
WARNING
ACCIDENTAL DISCONNECTION FROM PROTECTIVE GROUND (PE)
Do not use the TM2XMTGB Grounding Plate to provide a protective ground (PE).
Use the TM2XMTGB Grounding Plate only to provide a functional ground (FE).
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Part II
Modicon TM221C Logic Controller
Chapter 4
TM221C16R
TM221C16R
TM221C16R Presentation
Overview
The following features are integrated into the TM221C16R logic controller:
9 digital inputs
4 fast inputs (HSC)
5 regular inputs
7 digital outputs
7 relay outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 100...240 Vac power supply Power supply (see page 121)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block and embedded power supply Rules for Removable Screw Terminal
used for connecting sensors to the inputs. (1) Block (see page 109)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure show the external dimensions of the logic controller:
Chapter 5
TM221CE16R
TM221CE16R
TM221CE16R Presentation
Overview
The following features are integrated into the TM221CE16R logic controller:
9 digital inputs
4 fast inputs (HSC)
5 regular inputs
7 digital outputs
7 relay outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controller:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 100...240 Vac power supply Power supply (see page 121)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block and embedded power supply Rules for Removable Screw Terminal
used for connecting sensors to the inputs.(1) Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Removable analog inputs cover –
17 Battery holder Installing and Replacing the Battery
(see page 55)
(1)
Embedded power supply characteristics:
Voltage: 24 V -15%...+10% isolated
Imax: 250 mA
No protection and no overload detection
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 6
TM221C16T
TM221C16T
TM221C16T Presentation
Overview
The following features are integrated into the TM221C16T logic controller:
9 digital inputs
4 fast inputs (HSC)
5 regular inputs
7 digital outputs
2 fast source transistor outputs
5 regular source transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN- DIN Rail (see page 96)
rail)
4 24 Vdc power supply Power supply (see page 114)
5 USB mini-B programming port / For terminal connection to USB mini-B programming port
a programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
11 I/O expansion connector –
12 Cartridge slot –
13 Protective cover (SD Card slot, Run/Stop switch and USB –
mini-B programming port)
14 Locking hook –
15 Removable analog inputs cover –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 7
TM221CE16T
TM221CE16T
TM221CE16T Presentation
Overview
The following features are integrated into the TM221CE16T logic controller:
9 digital inputs
4 fast inputs (HSC)
5 regular inputs
7 digital outputs
2 fast source transistor outputs
5 regular source transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 24 Vdc power supply Power supply (see page 114)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Removable analog inputs cover –
17 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 8
TM221C16U
TM221C16U
TM221C16U Presentation
Overview
The following features are integrated into the TM221C16U logic controller:
9 digital inputs
4 fast inputs (HSC)
5 regular inputs
7 digital outputs
2 fast sink transistor outputs
5 regular sink transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 24 Vdc power supply Power supply (see page 114)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
11 I/O expansion connector –
12 Cartridge slot –
13 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
14 Locking hook –
15 Removable analog inputs cover –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 9
TM221CE16U
TM221CE16U
TM221CE16U Presentation
Overview
The following features are integrated into the TM221CE16U logic controller:
9 digital inputs
4 fast inputs (HSC)
5 regular inputs
7 digital outputs
2 fast sink transistor outputs
5 regular sink transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw
Terminal Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 24 Vdc power supply Power supply (see page 114)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block Rules for Removable Screw
Terminal Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Removable analog inputs cover –
17 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 10
TM221C24R
TM221C24R
TM221C24R Presentation
Overview
The following features are integrated into the TM221C24R logic controller:
14 digital inputs
4 fast inputs (HSC)
10 regular inputs
10 digital outputs
10 relay outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
Description
The following figure shows the different components of the logic controller:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 100...240 Vac power supply Power supply (see page 121)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block and embedded power supply Rules for Removable Screw Terminal
used for connecting sensors to the inputs. (1) Block (see page 109)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 11
TM221CE24R
TM221CE24R
TM221CE24R Presentation
Overview
The following features are integrated into the TM221CE24R logic controller:
14 digital inputs
4 fast inputs (HSC)
10 regular inputs
10 digital outputs
10 relay outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 100...240 Vac power supply Power supply (see page 121)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block and embedded power supply Rules for Removable Screw Terminal
used for connecting sensors to the inputs.(1) Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Removable analog inputs cover –
17 Battery holder Installing and Replacing the Battery
(see page 55)
(1)
Embedded power supply characteristics:
Voltage: 24 V -15%...+10% isolated
Imax: 250 mA
No protection and no overload detection
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 12
TM221C24T
TM221C24T
TM221C24T Presentation
Overview
The following features are integrated into the TM221C24T logic controller:
14 digital inputs
4 fast inputs (HSC)
10 regular inputs
10 digital outputs
2 fast source transistor outputs
8 regular source transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 24 Vdc power supply Power supply (see page 114)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
11 I/O expansion connector –
12 Cartridge slot –
13 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
14 Locking hook –
15 Removable analog inputs cover –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 13
TM221CE24T
TM221CE24T
TM221CE24T Presentation
Overview
The following features are integrated into the TM221CE24T logic controller:
14 digital inputs
4 fast inputs (HSC)
10 regular inputs
10 digital outputs
2 fast source transistor outputs
8 regular source transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 24 Vdc power supply Power supply (see page 114)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini-B –
programming port)
15 Locking hook –
16 Removable analog inputs cover –
17 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 14
TM221C24U
TM221C24U
TM221C24U Presentation
Overview
The following features are integrated into the TM221C24U logic controller:
14 digital inputs
4 fast inputs (HSC)
10 regular inputs
10 digital outputs
2 fast sink transistor outputs
8 regular sink transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 24 Vdc power supply Power supply (see page 114)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
11 I/O expansion connector –
12 Cartridge slot –
13 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
14 Locking hook –
15 Removable analog inputs cover –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 15
TM221CE24U
TM221CE24U
TM221CE24U Presentation
Overview
The following features are integrated into the TM221CE24U logic controller:
14 digital inputs
4 fast inputs (HSC)
10 regular inputs
10 digital outputs
2 fast sink transistor outputs
8 regular sink transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 24 Vdc power supply Power supply (see page 114)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Removable analog inputs cover –
17 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 16
TM221C40R
TM221C40R
TM221C40R Presentation
Overview
The following features are integrated into theTM221C40R logic controllers:
24 digital inputs
4 fast inputs (HSC)
20 regular inputs
16 digital outputs
16 relay outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 100...240 Vac power supply Power supply (see page 121)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block and embedded power supply Rules for Removable Screw Terminal
used for connecting sensors to the inputs.(1) Block (see page 109)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 17
TM221CE40R
TM221CE40R
TM221CE40R Presentation
Overview
The following features are integrated into the TM221CE40R logic controllers:
24 digital inputs
4 fast inputs (HSC)
20 regular inputs
16 digital outputs
16 relay outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 100...240 Vac power supply Power supply (see page 121)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block and embedded power supply Rules for Removable Screw Terminal
used for connecting sensors to the inputs.(1) Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot 1 –
14 Cartridge slot 2 –
15 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
16 Locking hook –
17 Removable analog inputs cover –
18 Battery holder Installing and Replacing the Battery
(see page 55)
(1)
Embedded power supply characteristics:
Voltage: 24 V -15%...+10% isolated
Imax: 250 mA
No protection and no overload detection
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 18
TM221C40T
TM221C40T
TM221C40T Presentation
Overview
The following features are integrated into the TM221C40T logic controller:
24 digital inputs
4 fast inputs (HSC)
20 regular inputs
16 digital outputs
2 fast source transistor outputs
14 regular source transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 24 Vdc power supply Power supply (see page 114)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
11 I/O expansion connector –
12 Cartridge slot 1 –
13 Cartridge slot 2 –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Removable analog inputs cover –
17 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 19
TM221CE40T
TM221CE40T
TM221CE40T Presentation
Overview
The following features are integrated into the TM221CE40T logic controllers:
24 digital inputs
4 fast inputs (HSC)
20 regular inputs
16 digital outputs
2 fast source transistor outputs
14 regular source transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 24 Vdc power supply Power supply (see page 114)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot 1 –
14 Cartridge slot 2 –
15 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
16 Locking hook –
17 Removable analog inputs cover –
18 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 20
TM221C40U
TM221C40U
TM221C40U Presentation
Overview
The following features are integrated into the TM221C40U logic controller:
24 digital inputs
4 fast inputs (HSC)
20 regular inputs
16 digital outputs
4 fast sink transistor outputs
12 regular sink transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 24 Vdc power supply Power supply (see page 114)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
7 SD Card slot SD Card Slot (see page 72)
8 2 analog inputs Analog Inputs (see page 256)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
11 I/O expansion connector –
12 Cartridge slot 1 –
13 Cartridge slot 2 –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Removable analog inputs cover –
17 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 21
TM221CE40U
TM221CE40U
TM221CE40U Presentation
Overview
The following features are integrated into the TM221CE40U logic controller:
24 digital inputs
4 fast inputs (HSC)
20 regular inputs
16 digital outputs
4 fast sink transistor outputs
12 regular sink transistor outputs
2 analog inputs
Communication ports
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the logic controllers:
N° Description Refer to
1 Status LEDs –
2 Output removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail) DIN Rail (see page 96)
4 Ethernet port / RJ45 connector Ethernet port (see page 386)
5 24 Vdc power supply Power supply (see page 114)
6 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
7 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
8 SD Card slot SD Card Slot (see page 72)
9 2 analog inputs Analog Inputs (see page 256)
10 Run/Stop switch Run/Stop switch (see page 69)
11 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
12 I/O expansion connector –
13 Cartridge slot 1 –
14 Cartridge slot 2 –
15 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
16 Locking hook –
17 Removable analog inputs cover –
18 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the logic controllers:
Chapter 22
Embedded I/O Channels
Overview
This chapter describes the embedded I/O channels.
Digital Inputs
Overview
The Modicon TM221C Logic Controller has digital inputs embedded:
Reference Total number of digital inputs Fast inputs which can be used as Regular inputs
100 kHz HSC inputs
TM221C16• 9 4 5
TM221CE16•
TM221C24• 14 4 10
TM221CE24•
TM221C40• 24 4 20
TM221CE40•
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
TM221C16• TM221C24• TM221C40•
TM221CE16• TM221CE24• TM221CE40•
Number of regular inputs 5 inputs (I2, I3, I4, I5, 10 inputs (I2...I5, 20 inputs (I2...I5,
I8) I8...I13) I8...I23)
Number of channel groups 1 common line for 1 common line for 1 common line for
I0...I8 I0...I13 I0....I23
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Input voltage range 24 Vdc
Rated input voltage 19.2...28.8 Vdc
Rated input current 7 mA
Input impedance 3.4 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating See derating curves (see page 225)
Turn on time I2, I3, I4, I5 35 µs + filter value1
I8...I23 100 µs + filter value1
Turn off time I2, I3, I4, I5 35 µs + filter value1
I8...I23 100 µs + filter value1
Isolation Between input and 500 Vac
internal logic
Connection type Removable screw terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Maximum 30 m (98 ft)
1 For more information, refer to Integrator Filter Principle (see page 61)
Characteristic Value
Number of fast inputs 4 inputs (I0, I1, I6, I7)
Number of channel groups 1 common line
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 5 mA
Input impedance 4.9 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.6 mA
Current at state 0 < 0.6 mA
Derating See derating curves (see page 225)
Turn on time 5 µs + filter value1
Turn off time 5 µs + filter value1
HSC maximum frequency Dual Phase 100 kHz
Single phase 100 kHz
Frequency Meter 100 kHz
Supported HSC operation mode Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Single Phase
Frequency Meter
Isolation Between input and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type Removable screw terminal block
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including the 24 Vdc power supply
Length Maximum 10 m (32.8 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
X Ambient temperature
Y Input simultaneous ON ratio
X Ambient temperature
Y Input simultaneous ON ratio
* Type T fuse
The following figure presents the source wiring diagram (negative logic) of the inputs to the sensors
for TM221C16R and TM221CE16R:
* Type T fuse
NOTE: The TM221C Logic Controller provides a 24 Vdc supply to the inputs.
The following figure presents the connection of the fast inputs:
* Type T fuse
The following figure presents the source wiring diagram (negative logic) of the inputs to the sensors
for TM221C24R and TM221CE24R:
* Type T fuse
NOTE: The TM221C Logic Controller provides a 24 Vdc supply to the inputs.
The following figure presents the connection of the fast inputs:
* Type T fuse
The following figure presents the source wiring diagram (negative logic) of the inputs to the sensors
for TM221C40R and TM221CE40R:
* Type T fuse
NOTE: The TM221C Logic Controller provides a 24 Vdc supply to the inputs.
The following figure presents the connection of the fast inputs:
TM221C••R / TM221CE••R with a dual-phase encoder with a limit switch and no index:
TM221C••R / TM221CE••R with a dual-phase encoder with index and PNP sensor:
* Type T fuse
A Sink wiring (positive logic).
B Source wiring (negative logic).
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
* Type T fuse
A Sink wiring (positive logic).
B Source wiring (negative logic).
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
* Type T fuse
A Sink wiring (positive logic).
B Source wiring (negative logic).
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
TM221C••T / TM221CE••T with a dual-phase encoder with a limit switch and no index:
TM221C••T / TM221CE••T with a dual-phase encoder with index and PNP sensor:
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
* Type T fuse
A Sink wiring (positive logic).
B Source wiring (negative logic).
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
* Type T fuse
A Sink wiring (positive logic).
B Source wiring (negative logic).
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
* Type T fuse
A Sink wiring (positive logic).
B Source wiring (negative logic).
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Relay Outputs
Overview
The Modicon TM221C Logic Controller has 7, 10 or 16 relay outputs embedded:
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
TM221C16R / TM221C24R / TM221C40R /
TM221CE16R TM221CE24R TM221CE40R
Number of relay outputs 7 outputs 10 outputs 16 outputs
Number of channel groups 1 common line for 1 common line for 1 common line for
Q0...Q3 Q0...Q3 Q0...Q3
1 common line for 1 common line for 1 common line for
Q4...Q6 Q4...Q7 Q4...Q7
1 common line for Q8, Q9 1 common line for
Q8...Q11
1 common line for
Q12...Q15
Output type Relay
Contact type NO (Normally Open)
Rated output voltage 24 Vdc, 240 Vac
Maximum voltage at 2 A 30 Vdc, 264 Vac
Minimum switching load 5 Vdc at 10 mA
Rated output current 2A
Maximum output current 2 A per output
7 A for common 0 7 A for common 0 7 A per common
(Q0...Q3) (Q0...Q3)
6 A for common 1 7 A for common 1
(Q4...Q6) (Q4...Q7)
4 A for common 2 (Q8,
Q9)
Maximum output frequency with 20 operations per minute
maximum load
Derating No derating
Turn on time Max. 10 ms
Turn off time Max. 10 ms
Contact resistance 30 mΩ max
Mechanical life 20 million operations
Electrical Under resistive load See power limitation (see page 242)
life Under inductive load
Protection against short circuit No
Characteristic Value
TM221C16R / TM221C24R / TM221C40R /
TM221CE16R TM221CE24R TM221CE40R
Isolation Between output and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type Removable screw terminal blocks
Connector insertion/removal Over 100 times
durability
Cable Type Unshielded
Length Max. 30 m (98 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for additional information
concerning output protection.
Power Limitation
The following table describes the power limitation of the relay outputs depending on the voltage,
the type of load, and the number of operations required.
These controllers do not support capacitive loads.
WARNING
RELAY OUTPUTS WELDED CLOSED
Always protect relay outputs from inductive alternating current load damage using an
appropriate external protective circuit or device.
Do not connect relay outputs to capacitive loads.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Power Limitations
Voltage 24 Vdc 120 Vac 240 Vac Number of
operations
Power of resistive loads – 240 VA 480 VA 100,000
AC-12 80 VA 160 VA 300,000
Power of inductive loads – 60 VA 120 VA 100,000
AC-15 (cos ϕ = 0.35) 18 VA 36 VA 300,000
Power of inductive loads – 120 VA 240 VA 100,000
AC-14 (cos ϕ = 0.7) 36 VA 72 VA 300,000
Power of resistive loads 48 W – – 100,000
DC-12 16 W 300,000
Power of inductive loads 24 W – – 100,000
DC-13 L/R = 7 ms 7.2 W 300,000
* Type T fuse
(1) The COM1 and COM2 terminals are not connected internally.
(2) To improve the life time of the contacts, and to protect from potential inductive load damage, you must
connect a free wheeling diode in parallel to each inductive DC load or an RC snubber in parallel of each
inductive AC load
B Sink wiring (negative logic)
The following figure presents the sink wiring diagram (negative logic) of the outputs to the load for
the TM221C24R / TM221CE24R:
* Type T fuse
(1) The COM0, COM1 and COM2 terminals are not connected internally.
(2) To improve the life time of the contacts, and to protect from potential inductive load damage, you must
connect a free wheeling diode in parallel to each inductive DC load or an RC snubber in parallel of each
inductive AC load
B Sink wiring (negative logic)
The following figure presents the sink wiring diagram (negative logic) of the outputs to the load for
the TM221C40R / TM221CE40R:
* Type T fuse
(1) The COM0, COM1, COM2 and COM3 terminals are not connected internally.
(2) To improve the life time of the contacts, and to protect from potential inductive load damage, you must
connect a free wheeling diode in parallel to each inductive DC load or an RC snubber in parallel of each
inductive AC load
B Sink wiring (negative logic)
NOTE: The assigned fuse values have been specified for the maximum current characteristics of
the controller I/O and associated commons. You may have other considerations that are applicable
based on the unique types of input and output devices you connect, and you should size your fuses
accordingly.
* Type T fuse
(1) The COM1 and COM2 terminals are not connected internally.
(2) To improve the life time of the contacts, and to protect from potential inductive load damage, you must
connect a free wheeling diode in parallel to each inductive DC load or an RC snubber in parallel of each
inductive AC load
A Source wiring (positive logic)
The following figure presents the source wiring diagram (positive logic) of the outputs to the load
for the TM221C24R / TM221CE24R:
* Type T fuse
(1) The COM0, COM1 and COM2 terminals are not connected internally.
(2) To improve the life time of the contacts, and to protect from potential inductive load damage, you must
connect a free wheeling diode in parallel to each inductive DC load or an RC snubber in parallel of each
inductive AC load
A Source wiring (positive logic)
The following figure presents the source wiring diagram (positive logic) of the outputs to the load
for the TM221C40R / TM221CE40R:
* Type T fuse
(1) The COM0, COM1, COM2 and COM3 terminals are not connected internally.
(2) To improve the life time of the contacts, and to protect from potential inductive load damage, you must
connect a free wheeling diode in parallel to each inductive DC load or an RC snubber in parallel of each
inductive AC load
A Source wiring (positive logic)
NOTE: The assigned fuse values have been specified for the maximum current characteristics of
the controller I/O and associated commons. You may have other considerations that are applicable
based on the unique types of input and output devices you connect, and you should size your fuses
accordingly.
Overview
The Modicon TM221C Logic Controller has regular and fast transistor outputs embedded:
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
TM221C16T / TM221C24T / TM221C40T /
TM221CE16T / TM221CE24T / TM221CE40T /
TM221C16U / TM221C24U / TM221C40U /
TM221CE16U TM221CE24U TM221CE40U
Number of regular transistor 5 outputs (Q2...Q6) 8 outputs (Q2...Q9) 14 outputs (Q2...Q15)
outputs (TM221C40T /
TM221CE40T)
12 outputs (Q4...Q15)
(TM221C40U /
TM221CE40U)
Number of channel groups 1 common line for Q0...Q6 1 common line for Q0...Q9 1 common line for
Q0...Q7
1 common line for
Q8...Q15
Output type Transistor
Logic type Source for TM221•••T
Sink for TM221•••U
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.5 A
Total output current 3.5 A for channel group 5 A for channel group 4 A for channel group
Q0...Q6 Q0...Q9 Q0...Q7
4 A for channel group
Q8...Q15
Voltage drop 1 Vdc max
Leakage current when switched off 0.1 mA
Maximum power of filament lamp 12 W max
Derating See derating curves (see page 251)
Turn on Q2, Q3 Max. 50 µs
time
Other regular outputs Max. 300 µs
Turn off Q2, Q3 Max. 50 µs
time Other regular outputs Max. 300 µs
Protection against short circuit Yes (TM221C•••T only)
Short circuit output peak current 1.3 A
Automatic rearming after short Yes, every 1 s
circuit or overload
Characteristic Value
TM221C16T / TM221C24T / TM221C40T /
TM221CE16T / TM221CE24T / TM221CE40T /
TM221C16U / TM221C24U / TM221C40U /
TM221CE16U TM221CE24U TM221CE40U
Clamping voltage Max. 39 Vdc ± 1 Vdc
Switching Under resistive load 100 Hz max.
frequency
Isolation Between output and 500 Vac
internal logic
Connection type Removable screw terminal blocks
Connector insertion/removal Over 100 times
durability
Cable Type Unshielded
Length Max 30 m (98 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for additional information
concerning output protection.
Characteristic Value
Number of fast transistor outputs 2 fast outputs (Q0, Q1)
4 fast outputs (Q0, Q1, Q2 and Q3) for
TM221•••40U
Number of channel groups 1 common line
Output type Transistor
Logic type Source for TM221•••T
Sink for TM221•••U
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.5 A
Total output current TM221C16T / TM221CE16T 3.5 A for channel group Q0...Q6
TM221C16U / TM221CE16U
TM221C24T / TM221CE24T 5 A for channel group Q0...Q9
TM221C24U / TM221CE24U
TM221C40T / TM221CE40T 4 A for channel group Q0...Q7
TM221C40U / TM221CE40U 4 A for channel group Q8...Q15
Maximum power of filament lamp 12 W max
Characteristic Value
Derating See derating curves (see page 251)
Turn on time (10 mA < output current < 100 mA) Max. 5 µs
Turn off time (10 mA < output current < 100 mA) Max. 5 µs
Protection against short circuit Yes (TM221C•••T only)
Short circuit output peak current 1.3 A max.
Automatic rearming after short circuit or overload Yes, every 1 s
Protection against reverse polarity Yes
Clamping voltage Typ. 39 Vdc +/- 1 Vdc
Maximum output PLS/PWM/PTO/FREQGEN 100 kHz
frequency
Isolation Between output and internal logic 500 Vac
Connection type Removable screw terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including 24 Vdc power
supply
Length Maximum 3 m (9.84 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for additional information
concerning output protection.
X Ambient temperature
Y Output simultaneous ON ratio
X Ambient temperature
Y Output simultaneous ON ratio
* Type T fuse
Qx Q0, Q1
The following figure presents the connection of the outputs to the load for the TM221C24T /
TM221CE24T:
* Type T fuse
(1) The V+ terminals are connected internally.
Qx Q0, Q1
The following figure presents the connection of the outputs to the load for the TM221C40T /
TM221CE40T:
* Type T fuse
(1) The V0+ and V1+ terminals are not connected internally.
(2) The V0- and V1- terminals are not connected internally.
Qx Q0, Q1
* Type T fuse
Qx Q0, Q1
The following figure presents the connection of the outputs to the load for the TM221C24U /
TM221CE24U:
* Type T fuse
(1) The V- terminals are connected internally.
Qx Q0, Q1
The following figure presents the connection of the outputs to the load for the TM221C40U /
TM221CE40U:
* Type T fuse
(1) The V0- and V1- terminals are not connected internally.
(2) The V0+ and V1+ terminals are not connected internally.
Analog Inputs
Overview
The Modicon M221 Logic Controller has 2 analog inputs embedded.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step Action
1 Use a screw-driver to remove the protective cover.
For more information, refer to the Wiring Best Practices (see page 107).
Part III
Modicon TM221M Logic Controller
Chapter 23
TM221M16R / TM221M16RG
TM221M16R / TM221M16RG
Overview
This chapter describes the TM221M16R / TM221M16RG controllers.
Overview
The following features are integrated into the TM221M16R (screw) and TM221M16RG (spring)
controllers:
8 digital inputs
4 regular inputs
4 fast inputs (HSC)
8 digital outputs
8 relay outputs
2 analog inputs
Communication port
2 serial line ports
1 USB mini-B programming port
Description
The following figure shows the different components of the controllers:
N° Description Refer to
1 Status LEDs –
2 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Output removable terminal block
Rules for Removable Spring Terminal
Block (see page 110)
4 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail ) DIN Rail (see page 96)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 24 Vdc power supply Power supply (see page 114)
7 Serial line port 2 / RJ45 connector (RS-485) Serial line 2 (see page 393)
8 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Removable analog inputs cover –
11 2 analog inputs Analog Inputs (see page 276)
12 SD Card slot SD Card Slot (see page 72)
13 I/O expansion connector –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the controllers:
Overview
This M221 Logic Controller has embedded digital inputs:
4 regular inputs
4 fast inputs which can be used as 100 kHz HSC inputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular inputs 4 inputs (I2, I3, I4, I5)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Input voltage range 24 Vdc
Rated input voltage 19.2...28.8 Vdc
Rated input current 7 mA
Characteristic Value
Input impedance 3.4 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating No derating
Turn on time 35 µs + filter value1
Turn off time 35 µs + filter value1
Isolation Between input and 500 Vac
internal logic
Connection type TM221M16R Removable screw terminal blocks
TM221M16RG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Maximum 30 m (98 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Characteristic Value
Number of fast inputs 4 inputs (I0, I1, I6, I7)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 4.5 mA
Input impedance 4.9 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating No derating
Turn on time 5 µs + filter value1
Characteristic Value
Turn off time 5 µs + filter value1
HSC maximum frequency Dual Phase 100 kHz
Single phase 100 kHz
Frequency Meter 100 kHz
HSC supported operation mode Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Single Phase
Frequency Meter
Isolation Between input and 500 Vac
internal logic
Connection type TM221M16R Removable screw terminal block
TM221M16RG Removable spring terminal block
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including the 24 Vdc power supply
Length Maximum 10 m (32.8 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Wiring Diagram
The following figure presents the connection of the inputs to the sensors:
Overview
M221 Logic Controller with 8 relay outputs embedded.
For more information on Output Management (see page 65).
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of relay outputs 8 outputs
Number of channel groups 1 common line for Q0...Q3
1 common line for Q4...Q7
Output type Relay
Contact type NO (Normally Open)
Rated output voltage 24 Vdc, 240 Vac
Maximum voltage at 2 A 30 Vdc, 264 Vac
Minimum switching load 5 Vdc at 10 mA
Rated output current 2A
Maximum output current 2 A per output
7 A per common
Maximum output frequency with maximum load 20 operations per minute
Derating No derating
Turn on time Max. 10 ms
Turn off time Max. 10 ms
Contact resistance 30 mΩ max
Mechanical life 20 million operations
Electrical life Under resistive load See power limitation (see page 274)
Under inductive load
Protection against short circuit No
Isolation Between output and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type TM221M16R Removable screw terminal blocks
TM221M16RG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Max. 30 m (98 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for
additional information concerning output protection.
Power Limitation
The following table describes the power limitation of the TM221M16R / TM221M16RG relay
outputs depending on the voltage, the type of load, and the number of operations required.
These controllers do not support capacitive loads.
WARNING
RELAY OUTPUTS WELDED CLOSED
Always protect relay outputs from inductive alternating current load damage using an
appropriate external protective circuit or device.
Do not connect relay outputs to capacitive loads.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Power Limitations
Voltage 24 Vdc 120 Vac 240 Vac Number of
operations
Power of resistive loads – 240 VA 480 VA 100,000
AC-12 80 VA 160 VA 300,000
Power of inductive loads – 60 VA 120 VA 100,000
AC-15 (cos ϕ = 0.35) 18 VA 36 VA 300,000
Power of inductive loads – 120 VA 240 VA 100,000
AC-14 (cos ϕ = 0.7) 36 VA 72 VA 300,000
Power of resistive loads 48 W – – 100,000
DC-12 16 W 300,000
Power of inductive loads 24 W – – 100,000
DC-13 L/R = 7 ms 7.2 W 300,000
Wiring Diagram
The following figure presents the connection of the outputs to the load:
* Type T fuse
(1) The COM1 and COM2 terminals are not connected internally.
(2) To improve the life time of the contacts, and to protect from potential inductive load damage, you must
connect a free wheeling diode in parallel to each inductive DC load or an RC snubber in parallel of each
inductive AC load
A Source wiring (positive logic).
B Sink wiring (negative logic).
NOTE: The assigned fuse values have been specified for the maximum current characteristics of
the controller I/O and associated commons. You may have other considerations that are applicable
based on the unique types of input and output devices you connect, or conformance to local,
national or applicable certification regulations and standards, and you should size your fuses
accordingly.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Overview
The M221 Logic Controllers have 2 analog inputs embedded.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step Action
1 Use a screw-driver to remove the protective cover.
Wiring Diagram
The following figure shows the wiring diagram of the M221 Logic Controller analog inputs:
For more information, refer to the Wiring Best Practices (see page 107).
Chapter 24
TM221ME16R / TM221ME16RG
TM221ME16R / TM221ME16RG
Overview
This chapter describes the TM221ME16R / TM221ME16RG controllers.
Overview
The following features are integrated into the TM221ME16R (screw) and TM221ME16RG (spring)
controllers:
8 digital inputs
4 regular inputs
4 fast inputs (HSC)
8 digital outputs
8 relay outputs
2 analog inputs
Communication port
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the controllers:
N° Description Refer to
1 Status LEDs –
2 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Output removable terminal block
Rules for Removable Spring
Terminal Block (see page 110)
4 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail ) DIN Rail (see page 96)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 24 Vdc power supply Power supply (see page 114)
7 Ethernet port / RJ45 connector Ethernet port (see page 386)
8 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Removable analog inputs cover –
11 2 analog inputs Analog Inputs (see page 295)
12 SD Card slot SD Card Slot (see page 72)
13 I/O expansion connector –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the controllers:
Overview
This M221 Logic Controller has embedded digital inputs:
4 regular inputs
4 fast inputs which can be used as 100 kHz HSC inputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular inputs 4 inputs (I2, I3, I4, I5)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Input voltage range 24 Vdc
Rated input voltage 19.2...28.8 Vdc
Rated input current 7 mA
Input impedance 3.4 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating No derating
Turn on time 35 µs + filter value1
Turn off time 35 µs + filter value1
Isolation Between input and 500 Vac
internal logic
Connection type TM221ME16R Removable screw terminal blocks
TM221ME16RG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Maximum 30 m (98 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Characteristic Value
Number of fast inputs 4 inputs (I0, I1, I6, I7)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 4.5 mA
Input impedance 4.9 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating No derating
Turn on time 5 µs + filter value1
Turn off time 5 µs + filter value1
HSC maximum frequency Dual Phase 100 kHz
Single phase 100 kHz
Frequency Meter 100 kHz
HSC supported operation mode Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Single Phase
Frequency Meter
Isolation Between input and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type TM221ME16R Removable screw terminal block
TM221ME16RG Removable spring terminal block
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including the 24 Vdc power supply
Length Maximum 10 m (32.8 ft)
1 For more information, refer to Integrator Filter Principle (see page 61)
Wiring Diagram
The following figure presents the connection of the inputs to the sensors:
Overview
M221 Logic Controller with 8 relay outputs embedded.
For more information on Output Management (see page 65).
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of relay outputs 8 outputs
Number of channel groups 1 common line for Q0...Q3
1 common line for Q4...Q7
Output type Relay
Contact type NO (Normally Open)
Rated output voltage 24 Vdc, 240 Vac
Maximum voltage at 2 A 30 Vdc, 264 Vac
Minimum switching load 5 Vdc at 1 mA
Rated output current 2A
Maximum output current 2 A per output
7 A per common
Maximum output frequency with maximum load 20 operations per minute
Derating No derating
Turn on time Max. 10 ms
Turn off time Max. 10 ms
Contact resistance 30 mΩ max
Mechanical life 20 million operations
Electrical life Under resistive load See power limitation (see page 293)
Under inductive load
Protection against short circuit No
Isolation Between output and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type TM221ME16R Removable screw terminal blocks
TM221ME16RG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Max. 30 m (98 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for
additional information concerning output protection.
Power Limitation
The following table describes the power limitation of the TM221ME16R / TM221ME16RG relay
outputs controllers depending on the voltage, the type of load, and the number of operations
required.
These controllers do not support capacitive loads.
WARNING
RELAY OUTPUTS WELDED CLOSED
Always protect relay outputs from inductive alternating current load damage using an
appropriate external protective circuit or device.
Do not connect relay outputs to capacitive loads.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Power Limitations
Voltage 24 Vdc 120 Vac 240 Vac Number of
operations
Power of resistive loads – 240 VA 480 VA 100,000
AC-12 80 VA 160 VA 300,000
Power of inductive loads – 60 VA 120 VA 100,000
AC-15 (cos ϕ = 0.35) 18 VA 36 VA 300,000
Power of inductive loads – 120 VA 240 VA 100,000
AC-14 (cos ϕ = 0.7) 36 VA 72 VA 300,000
Power of resistive loads 48 W – – 100,000
DC-12 16 W 300,000
Power of inductive loads 24 W – – 100,000
DC-13 L/R = 7 ms 7.2 W 300,000
Wiring Diagram
The following figure presents the connection of the outputs to the load:
* Type T fuse
(1) The COM1 and COM2 terminals are not connected internally.
(2) To improve the life time of the contacts, and to protect from potential inductive load damage, you must
connect a free wheeling diode in parallel to each inductive DC load or an RC snubber in parallel of each
inductive AC load
A Source wiring (positive logic).
B Sink wiring (negative logic).
NOTE: The assigned fuse values have been specified for the maximum current characteristics of
the controller I/O and associated commons. You may have other considerations that are applicable
based on the unique types of input and output devices you connect, or conformance to local,
national or applicable certification regulations and standards, and you should size your fuses
accordingly.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Overview
The M221 Logic Controllers have 2 analog inputs embedded.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step Action
1 Use a screw-driver to remove the protective cover.
Wiring Diagram
The following figure shows the wiring diagram of the Modicon M221 Logic Controller analog inputs:
For more information, refer to the Wiring Best Practices (see page 107).
Chapter 25
TM221M16T / TM221M16TG
TM221M16T / TM221M16TG
Overview
This chapter describes the TM221M16T / TM221M16TG controllers.
Overview
The following features are integrated into the TM221M16T (screw) and TM221M16TG (spring)
controllers:
8 digital inputs
4 regular inputs
4 fast inputs (HSC)
8 digital outputs
6 regular transistor outputs
2 fast transistor outputs
2 analog inputs
Communication port
2 serial line ports
1 USB mini-B programming port
Description
The following figure shows the different components of the controllers:
N° Description Refer to
1 Status LEDs –
2 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Output removable terminal block
Rules for Removable Spring Terminal
Block (see page 110)
4 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail ) DIN Rail (see page 96)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 24 Vdc power supply Power supply (see page 114)
7 Serial line port 2 / RJ45 connector (RS-485) Serial line 2 (see page 393)
8 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Removable analog inputs cover –
11 2 analog inputs Analog Inputs (see page 314)
12 SD Card slot SD Card Slot (see page 72)
13 I/O expansion connector –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the controllers:
Overview
This M221 Logic Controller has embedded digital inputs:
4 regular inputs
4 fast inputs which can be used as 100 kHz HSC inputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular inputs 4 inputs (I2, I3, I4, I5)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Input voltage range 24 Vdc
Rated input voltage 19.2...28.8 Vdc
Rated input current 7 mA
Input impedance 3.4 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating see Derating Curve (see page 307)
Turn on time 35 µs + filter value1
Turn off time 35 µs + filter value1
Isolation Between input and 500 Vac
internal logic
Connection type TM221M16T Removable screw terminal blocks
TM221M16TG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Maximum 30 m (98 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Characteristic Value
Number of fast inputs 4 inputs (I0, I1, I6, I7)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 4.5 mA
Input impedance 4.9 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 2.6 mA
Current at state 0 < 1.0 mA
Derating see Derating Curve (see page 307)
Turn on time 5 µs + filter value1
Turn off time 5 µs + filter value1
HSC maximum frequency Dual Phase 100 kHz
Single phase 100 kHz
Frequency Meter 100 kHz
HSC supported operation mode Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Single Phase
Frequency Meter
Isolation Between input and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type TM221M16T Removable screw terminal block
TM221M16TG Removable spring terminal block
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including the 24 Vdc power supply
Length Maximum 10 m (32.8 ft)
1 For more information, refer to Integrator Filter Principle (see page 61)
Derating Curves
The following figures show the derating curves of the embedded digital inputs:
X Ambient temperature
Y Input simultaneous ON ratio
Wiring Diagram
The following figure presents the connection of the inputs to the sensors:
Overview
The TM221M16T and TM221M16TG have digital outputs embedded:
6 regular transistor outputs
2 fast transistor outputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular transistor outputs 6 regular outputs (Q2...Q7)
Number of channel groups 1 common line for Q0...Q7
Output type Transistor
Logic type Source
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.5 A
Total output current 4A
Voltage drop 1 Vdc max
Leakage current when switched off 0.1 mA
Maximum power of filament lamp 12 W max
Derating see Derating Curve (see page 312)
Turn on time Q2...Q3 Max. 50 µs
Q4...Q7 Max. 300 µs
Turn off time Q2...Q3 Max. 50 µs
Q4...Q7 Max. 300 µs
Protection against short circuit Yes
Short circuit output peak current 1.3 A
Automatic rearming after short circuit or overload Yes, every 1 s
Clamping voltage Max. 39 Vdc ± 1 Vdc
Switching frequency Under resistive load 100 Hz max.
Isolation Between output and 500 Vac
internal logic
Connection type TM221M16T Removable screw terminal blocks
TM221M16TG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Max 30 m (98 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for
additional information concerning output protection.
Characteristic Value
Number of fast transistor outputs 2 outputs (Q0, Q1)
Number of channel groups 1 common line for Q0...Q7
Output type Transistor
Logic type Source
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.5 A
Total output current 4A
Maximum power of filament lamp 12 W max
Derating see Derating Curve (see page 312)
Turn on time (10 mA < output current < 100 mA) Max. 5 µs
Turn off time (10 mA < output current < 100 mA) Max. 5 µs
Protection against short circuit Yes
Short circuit output peak current 1.3 A max.
Automatic rearming after short circuit or overload Yes, every 1 s
Protection against reverse polarity Yes
Clamping voltage Typ. 39 Vdc +/- 1 Vdc
Maximum output frequency PLS/PWM/PTO/FREQGEN 100 kHz
Isolation Between output and internal logic 500 Vac
Connection type TM221M16T Removable screw terminal blocks
TM221M16TG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including 24 Vdc power supply
Length Maximum 3 m (9.84 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for additional information
concerning output protection.
Derating Curves
The following figures show the derating curves of the embedded digital outputs:
X Ambient temperature
Y Output simultaneous ON ratio
Wiring Diagram
The following figure presents the connection of the outputs to the load:
* Type T fuse
(1) The V+ terminals are connected internally.
Qx Q0, Q1
Overview
The M221 Logic Controllers have 2 analog inputs embedded.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step Action
1 Use a screw-driver to remove the protective cover.
Wiring Diagram
The following figure shows the wiring diagram of the Modicon M221 Logic Controller analog inputs:
For more information, refer to the Wiring Best Practices (see page 107).
Chapter 26
TM221ME16T / TM221ME16TG
TM221ME16T / TM221ME16TG
Overview
This chapter describes the TM221ME16T / TM221ME16TG controllers.
Overview
The following features are integrated into the TM221ME16T (screw) and TM221ME16TG (spring)
controllers:
8 digital inputs
4 regular inputs
4 fast inputs (HSC)
8 digital outputs
6 regular transistor outputs
2 fast transistor outputs
2 analog inputs
Communication port
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the controllers:
N° Description Refer to
1 Status LEDs –
2 Input removable terminal block Rules for Removable Screw Terminal
Block (see page 109)
3 Output removable terminal block
Rules for Removable Spring Terminal
Block (see page 110)
4 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail ) DIN Rail (see page 96)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 24 Vdc power supply Power supply (see page 114)
7 Ethernet port / RJ45 connector Ethernet port (see page 386)
8 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Removable analog inputs cover –
11 2 analog inputs Analog Inputs (see page 336)
12 SD Card slot SD Card Slot (see page 72)
13 I/O expansion connector –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the controllers:
Overview
This M221 Logic Controller has embedded digital inputs:
4 regular inputs
4 fast inputs which can be used as 100 kHz HSC inputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular inputs 4 inputs (I2, I3, I4, I5)
Number of channel groups 1 common line for I0....I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 7 mA
Input impedance 3.4 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating see Derating Curve (see page 329)
Turn on time 35 µs + filter value1
Turn off time 35 µs + filter value1
Isolation Between input and 500 Vac
internal logic
Connection type TM221ME16T Removable screw terminal blocks
TM221ME16TG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Maximum 30 m (98 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Characteristic Value
Number of fast inputs 4 inputs (I0, I1, I6, I7)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 4.5 mA
Input impedance 4.9 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating see Derating Curve (see page 329)
Turn on time 5 µs + filter value1
Turn off time 5 µs + filter value1
HSC maximum frequency Dual Phase 100 kHz
Single phase 100 kHz
Frequency Meter 100 kHz
HSC supported operation mode Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Single Phase
Frequency Meter
Isolation Between input and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type TM221ME16T Removable screw terminal block
TM221ME16TG Removable spring terminal block
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including the 24 Vdc power supply
Length Maximum 10 m (32.8 ft)
1 For more information, refer to Integrator Filter Principle (see page 61)
Derating Curves
The following figures show the derating curves of the embedded digital inputs:
X Ambient temperature
Y Input simultaneous ON ratio
Wiring Diagram
The following figure presents the connection of the inputs to the sensors:
Overview
The TM221ME16T and TM221ME16TG have 8 digital outputs embedded:
6 regular transistor outputs
2 fast transistor outputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular transistor outputs 6 regular outputs (Q2...Q7)
Number of channel groups 1 common line for Q0...Q7
Output type Transistor
Logic type Source
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.5 A
Total output current 3A
Voltage drop 1 Vdc max
Leakage current when switched off 0.1 mA
Maximum power of filament lamp 12 W max
Derating see Derating Curve (see page 334)
Turn on time Q2...Q3 Max. 50 µs
Q4...Q7 Max. 300 µs
Turn off time Q2...Q3 Max. 50 µs
Q4...Q7 Max. 300 µs
Protection against short circuit Yes
Short circuit output peak current 1.3 A
Automatic rearming after short circuit or overload Yes, every 1 s
Clamping voltage Max. 39 Vdc ± 1 Vdc
Switching frequency Under resistive load 100 Hz max.
Isolation Between output and 500 Vac
internal logic
Connection type TM221ME16T Removable screw terminal blocks
TM221ME16TG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Max 30 m (98 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for
additional information concerning output protection.
Characteristic Value
Number of fast transistor outputs 2 outputs (Q0, Q1)
Number of channel groups 1 common line for Q0...Q7
Output type Transistor
Logic type Source
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.5 A
Total output current 4A
Maximum power of filament lamp 12 W max
Derating see Derating Curve (see page 334)
Turn on time (10 mA < output current < 100 mA) Max. 5 µs
Turn off time (10 mA < output current < 100 mA) Max. 5 µs
Protection against short circuit Yes
Short circuit output peak current 1.3 A max.
Automatic rearming after short circuit or overload Yes, every 1 s
Protection against reverse polarity Yes
Clamping voltage Typ. 39 Vdc +/- 1 Vdc
Maximum output frequency PLS/PWM/PTO/F 100 kHz
REQGEN
Isolation Between output 500 Vac
and internal logic
Connection type TM221ME16T Removable screw terminal blocks
TM221ME16TG Removable spring terminal blocks
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including 24 Vdc power supply
Length Maximum 3 m (9.84 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for additional
information concerning output protection.
Derating Curves
The following figures show the derating curves of the embedded digital outputs:
X Ambient temperature
Y Output simultaneous ON ratio
Wiring Diagram
The following figure presents the connection of the outputs to the load:
* Type T fuse
(1) The V+ terminals are connected internally.
Qx Q0, Q1
Overview
The M221 Logic Controllers have 2 analog inputs embedded.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step Action
1 Use a screw-driver to remove the protective cover.
Wiring Diagram
The following figure shows the wiring diagram of the Modicon M221 Logic Controller analog inputs:
For more information, refer to the Wiring Best Practices (see page 107).
Chapter 27
TM221M32TK
TM221M32TK
Overview
This chapter describes the TM221M32TK controllers.
TM221M32TK Presentation
Overview
The following features are integrated into the TM221M32TK (HE10) controllers:
16 digital inputs
12 regular inputs
4 fast inputs (HSC)
16 digital outputs
14 regular transistor outputs
2 fast transistor outputs
2 analog inputs
Communication port
2 serial line ports
1 USB mini-B programming port
Description
The following figure shows the different components of the controller:
N° Description Refer to
1 Status LEDs –
2 Input HE10 (MIL20) connector HE10 (MIL 20) connector cable list
3 Output HE10 (MIL20) connector
4 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail ) DIN Rail (see page 96)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 24 Vdc power supply Power supply (see page 114)
7 Serial line port 2 / RJ45 connector (RS-485) Serial line 2 (see page 393)
8 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Removable analog inputs cover –
11 2 analog inputs Analog Inputs (see page 356)
12 SD Card slot SD Card Slot (see page 72)
13 I/O expansion connector –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimensions of the controller:
Overview
This M221 Logic Controller has embedded digital inputs:
12 regular inputs
4 fast inputs which can be used as 100 kHz HSC inputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular inputs 12 inputs
Number of channel groups 1 common line for I0...I7
1 common line for I8...I15
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 7 mA
Input impedance 3.4 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating see Derating Curve (see page 349)
Turn on time 35 µs + filter value1
Turn off time 35 µs + filter value1
Isolation Between input and 500 Vac
internal logic
Connection type HE10 (MIL 20) connectors
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Maximum 30 m (98 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Characteristic Value
Number of fast inputs 4 inputs (I0, I1, I6, I7)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 4.5 mA
Input impedance 4.9 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating see Derating Curve (see page 349)
Turn on time 5 µs + filter value1
Turn off time 5 µs + filter value1
HSC maximum frequency Dual Phase 100 kHz
Single phase 100 kHz
Frequency Meter 100 kHz
HSC supported operation mode Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Single Phase
Frequency Meter
Isolation Between input and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type TM221M32TK HE10 (MIL 20) connector
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including the 24 Vdc power supply
Length Maximum 10 m (32.8 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Derating Curves
The following figures show the derating curves of the embedded digital inputs:
X Ambient temperature
Y Input simultaneous ON ratio
For more information on the cable color for TWDFCW30K/TWDFCW50K, refer to TWDFCW••K
Cable Description (see page 51).
Overview
The TM221M32TK has 16 digital outputs embedded:
14 regular transistor outputs
2 fast transistor outputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular transistor outputs 14 regular outputs (Q2...Q15)
Number of channel groups 1 common line for Q0...Q15
Output type Transistor
Logic type Source
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.1 A
Total output current (Q0...Q15) 1.6 A
Voltage drop 1 Vdc max
Leakage current when switched off 0.1 mA
Maximum power of filament lamp 2.4 W max
Derating See Derating Curves (see page 354)
Turn on time Q2...Q3 Max. 50 µs
Q4...Q15 Max. 300 µs
Turn off time Q2...Q3 Max. 50 µs
Q4...Q15 Max. 300 µs
Protection against short circuit Yes
Short circuit output peak current 0.25 A
Automatic rearming after short circuit or overload Yes, every 1 s
Clamping voltage Max. 39 Vdc ± 1 Vdc
Switching frequency Under resistive load 100 Hz max.
Isolation Between output and 500 Vac
internal logic
Connection type TM221M32TK HE10 (MIL 20) connectors
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Max 30 m (98 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for
additional information concerning output protection.
Characteristic Value
Number of fast transistor outputs 2 outputs (Q0, Q1)
Number of channel groups 1 common line for Q0...Q15
Output type Transistor
Logic type Source
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.1 A
Total output current (Q0...Q15) 1.6 A
Maximum power of filament lamp 2.4 W max
Derating See Derating Curves (see page 354)
Turn on time (10 mA < output current < 100 mA) Max. 5 µs
Turn off time (10 mA < output current < 100 mA) Max. 5 µs
Protection against short circuit Yes
Short circuit output peak current 1.3 A max.
Automatic rearming after short circuit or overload Yes, every 1 s
Protection against reverse polarity Yes
Clamping voltage Typ. 39 Vdc +/- 1 Vdc
Maximum output frequency PWM 100 kHz
PLS 100 kHz
Isolation Between output 500 Vac
and internal logic
Connection type TM221M32TK HE10 (MIL 20) connectors
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including 24 Vdc power supply
Length Maximum 3 m (9.84 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for additional
information concerning output protection.
Derating Curves
The following figures show the derating curves of the embedded digital outputs:
X Ambient temperature
Y Output simultaneous ON ratio
* Type T fuse
Qx Q0, Q1
For more information on the cable color for TWDFCW30K/TWDFCW50K, refer to TWDFCW••K
Cable Description (see page 51).
Overview
The M221 Logic Controllers have 2 analog inputs embedded.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step Action
1 Use a screw-driver to remove the protective cover.
Wiring Diagram
The following figure shows the wiring diagram of the Modicon M221 Logic Controller analog inputs:
For more information, refer to the Wiring Best Practices (see page 107).
Chapter 28
TM221ME32TK
TM221ME32TK
Overview
This chapter describes the TM221ME32TK controller.
TM221ME32TK Presentation
Overview
The following features are integrated into the TM221ME32TK (HE10) controllers:
16 digital inputs
12 regular inputs
4 fast inputs (HSC)
16 digital outputs
14 regular transistor outputs
2 fast transistor outputs
2 analog inputs
Communication port
1 serial line port
1 USB mini-B programming port
1 Ethernet port
Description
The following figure shows the different components of the controller:
N° Description Refer to
1 Status LEDs –
2 Input HE10 (MIL20) connector HE10 (MIL 20) connector cable list
3 Output HE10 (MIL20) connector
4 Clip-on lock for 35 mm (1.38 in.) top hat section rail (DIN-rail ) DIN Rail (see page 96)
5 USB mini-B programming port / For terminal connection to a USB mini-B programming port
programming PC (EcoStruxure Machine Expert - Basic) (see page 384)
6 24 Vdc power supply Power supply (see page 114)
7 Ethernet port / RJ45 connector Ethernet port (see page 386)
8 Serial line port 1 / RJ45 connector (RS-232 or RS-485) Serial line 1 (see page 389)
9 Run/Stop switch Run/Stop switch (see page 69)
10 Removable analog inputs cover –
11 2 analog inputs Analog Inputs (see page 377)
12 SD Card slot SD Card Slot (see page 72)
13 I/O expansion connector –
14 Protective cover (SD Card slot, Run/Stop switch and USB mini- –
B programming port)
15 Locking hook –
16 Battery holder Installing and Replacing the Battery
(see page 55)
Status LEDs
The following figure shows the status LEDs:
Dimensions
The following figure shows the external dimension controller:
Overview
This M221 Logic Controller has embedded digital inputs:
12 regular inputs
4 fast inputs which can be used as 100 kHz HSC inputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular inputs 12 inputs
Number of channel groups 1 common line for I0...I7
1 common line for I8...I15
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 7 mA
Input impedance 3.4 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating see Derating Curve (see page 369)
Turn on time 35 µs + filter value1
Turn off time I2...I5: 35 µs1
I8...I15: 100 µs1
Isolation Between input and 500 Vac
internal logic
Connection type HE10 (MIL 20) connectors
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Maximum 30 m (98 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Characteristic Value
Number of fast inputs 4 inputs (I0, I1, I6, I7)
Number of channel groups 1 common line for I0...I7
Input type Type 1 (IEC/EN 61131-2)
Logic type Sink/Source
Rated input voltage 24 Vdc
Input voltage range 19.2...28.8 Vdc
Rated input current 4.5 mA
Input impedance 4.9 kΩ
Input limit values Voltage at state 1 > 15 Vdc (15...28.8 Vdc)
Voltage at state 0 < 5 Vdc (0...5 Vdc)
Current at state 1 > 2.5 mA
Current at state 0 < 1.0 mA
Derating see Derating Curve (see page 370)
Turn on time 5 µs + filter value1
Turn off time 5 µs + filter value1
HSC maximum frequency Dual Phase 100 kHz
Single phase 100 kHz
Frequency Meter 100 kHz
HSC supported operation mode Dual Phase [Pulse / Direction]
Dual Phase [Quadrature X1]
Dual Phase [Quadrature X2]
Dual Phase [Quadrature X4]
Single Phase
Frequency Meter
Isolation Between input and 500 Vac
internal logic
Between channel 500 Vac
groups
Connection type TM221ME32TK HE10 (MIL 20) connector
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including the 24 Vdc power supply
Length Maximum 10 m (32.8 ft)
1
For more information, refer to Integrator Filter Principle (see page 61)
Derating Curves
The following figures show the derating curves of the embedded digital inputs:
X Ambient temperature
Y Input simultaneous ON ratio
For more information on the cable color for TWDFCW30K/TWDFCW50K, refer to TWDFCW••K
Cable Description (see page 52).
Overview
The TM221ME32TK has 16 digital outputs embedded:
14 regular transistor outputs
2 fast transistor outputs
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Value
Number of regular transistor outputs 14 regular outputs (Q2...Q15)
Number of channel groups 1 common line for Q0...Q15
Output type Transistor
Logic type Source
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.1 A
Total output current (Q0...Q15) 1.6 A
Voltage drop 1 Vdc max
Leakage current when switched off 0.1 mA
Maximum power of filament lamp 2.4 W max
Derating See Derating Curves (see page 375)
Turn on time Q2...Q3 Max. 50 µs
Q4...Q15 Max. 300 µs
Turn off time Q2...Q3 Max. 50 µs
Q4...Q15 Max. 300 µs
Protection against short circuit Yes
Short circuit output peak current 0.25 A
Automatic rearming after short circuit or overload Yes, every 1 s
Clamping voltage Max. 39 Vdc ± 1 Vdc
Switching frequency Under resistive load 100 Hz max.
Isolation Between output and 500 Vac
internal logic
Connection type TM221ME32TK HE10 (MIL 20) connectors
Connector insertion/removal durability Over 100 times
Cable Type Unshielded
Length Max 30 m (98 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for
additional information concerning output protection.
Characteristic Value
Number of fast transistor outputs 2 outputs (Q0, Q1)
Number of channel groups 1 common line for Q0...Q15
Output type Transistor
Logic type Source
Rated output voltage 24 Vdc
Output voltage range 19.2...28.8 Vdc
Rated output current 0.1 A
Total output current (Q0...Q15) 1.6 A
Maximum power of filament lamp 2.4 W max
Derating See Derating Curves (see page 375)
Turn on time (10 mA < output current < 100 mA) Max. 5 µs
Turn off time (10 mA < output current < 100 mA) Max. 5 µs
Protection against short circuit Yes
Short circuit output peak current 1.3 A max.
Automatic rearming after short circuit or overload Yes, every 1 s
Protection against reverse polarity Yes
Clamping voltage Typ. 39 Vdc +/- 1 Vdc
Maximum output frequency PLS/PWM/PTO/FR 100 kHz
EQGEN
Isolation Between output 500 Vac
and internal logic
Connection type TM221ME32TK HE10 (MIL 20) connectors
Connector insertion/removal durability Over 100 times
Cable Type Shielded, including 24 Vdc power supply
Length Maximum 3 m (9.84 ft)
NOTE: Refer to Protecting Outputs from Inductive Load Damage (see page 111) for additional
information concerning output protection.
Derating Curves
The following figures show the derating curves of the embedded digital outputs:
X Ambient temperature
Y Output simultaneous ON ratio
* Type T fuse
Qx Q0, Q1
For more information on the cable color for TWDFCW30K/TWDFCW50K, refer to TWDFCW••K
Cable Description (see page 51).
Overview
The M221 Logic Controllers have 2 analog inputs embedded.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the maximum current capacity of the I/O channels and
power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Step Action
1 Use a screw-driver to remove the protective cover.
Wiring Diagram
The following figure shows the wiring diagram of the Modicon M221 Logic Controller analog inputs:
For more information, refer to the Wiring Best Practices (see page 107).
Part IV
Modicon M221 Logic Controller Communication
Chapter 29
Integrated Communication Ports
Overview
The USB Mini-B Port is the programming port you can use to connect a PC with a USB host port
using EcoStruxure Machine Expert - Basic software. Using a typical USB cable, this connection is
suitable for quick updates of the program or short duration connections to perform maintenance
and inspect data values. It is not suitable for long-term connections such as commissioning or
monitoring without the use of specially adapted cables to help minimize electromagnetic
interference.
WARNING
UNINTENDED EQUIPMENT OPERATION OR INOPERABLE EQUIPMENT
You must use a shielded USB cable such as a BMX XCAUSBH0•• secured to the functional
ground (FE) of the system for any long-term connection.
Do not connect more than one controller or bus coupler at a time using USB connections.
Do not use the USB port(s), if so equipped, unless the location is known to be non-hazardous.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
The following figure shows the location of the USB Mini-B programming port on the TM221C Logic
Controller:
The following figure shows the location of the USB Mini-B programming port on the TM221M Logic
Controller:
Characteristics
This table describes the characteristics of the USB Mini-B programming port:
Ethernet Port
Overview
The TM221•E••• are equipped with an Ethernet communication port.
The following figure presents the location of the Ethernet port on the TM221C Logic Controller:
The following figure presents the location of the Ethernet port on the TM221M Logic Controller:
Characteristics
The following table describes Ethernet characteristics:
Characteristic Description
Function Modbus TCP/IP
Connector type RJ45
Driver 10 M half duplex (auto negotiation)
100 M full duplex (auto negotiation)
Pin Assignment
The following figure presents the RJ45 Ethernet connector pin assignment:
Pin N° Signal
1 TD+
2 TD-
3 RD+
4 -
5 -
6 RD-
7 -
8 -
NOTE: The controller supports the MDI/MDIX auto-crossover cable function. It is not necessary to
use special Ethernet crossover cables to connect devices directly to this port (connections without
an Ethernet hub or switch).
Status LED
The following figures show the RJ45 connector status LED:
A change in the value of system bits %S34, %S35, or %S36 may provoke a reinitialization of the
Ethernet channel. As a consequence, the Ethernet channel may not be available for several
seconds after a change in the values of these System Bits.
Serial Line 1
Overview
The serial line 1:
can be used to communicate with devices supporting the Modbus protocol as either master or
slave, ASCII protocol (printer, modem...).
provides a 5 Vdc power distribution.
The following figure shows the location of the serial line 1 port on the TM221C Logic Controller:
The following figure shows the location of the serial line 1 port on the TM221M Logic Controller:
Characteristics
Characteristic Description
Function RS485 or RS232 software configured
Connector type RJ45
Isolation Non-isolated
Maximum baud rate 1200 up to 115 200 bps
Cable Type Shielded
Maximum length (between 15 m (49 ft) for RS485
the controller and an 3 m (9.84 ft) for RS232
isolated junction box)
Polarization No (1)
5 Vdc power supply for RS485 Yes
(1) TM221 embedded SL1 and embedded SL2 contains fixed internal high impedance bias network resistors (4.7 kΩ).
Do not use external line termination resistors (standard 150 Ω) without additional external low impedance line
polarization resistors (standard 450 Ω…650 Ω) to secure a proper idle voltage state of minimum 200 mV between the
D1 and D0 data lines.
NOTE: Some devices provide voltage on RS485 serial connections. Do not connect these voltage
lines to your controller as they may damage the controller serial port electronics and render the
serial port inoperable.
NOTICE
INOPERABLE EQUIPMENT
Use only the VW3A8306R•• serial cable to connect RS485 devices to your controller.
Failure to follow these instructions can result in equipment damage.
Pin Assignment
The following figure shows the pins of the RJ45 connector:
The table below describes the pin assignment of the RJ45 connector:
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Status LED
The following figure shows the serial line 1 status LED of the TM221C Logic Controller:
The following figure shows the serial line 1 status LED of the TM221M Logic Controller:
The table below describes the status LED of the serial line 1:
Serial Line 2
Overview
The serial line 2 is used to communicate with devices supporting the Modbus protocol as either a
master or slave and ASCII Protocol (printer, modem...) and supports RS485 and terminal block.
Characteristics
Characteristic Description
Function RS485 software configured
Connector type RJ45
Isolation Non-isolated
Maximum baud rate 1200 up to 115 200 bps
Cable Type Shielded
Maximum length 15 m (49 ft) for RS485
Polarization No(1)
5 Vdc power supply for RS485 No
(1) TM221 embedded SL1 and embedded SL2 contains fixed internal high impedance bias network resistors
(4.7 kΩ). Do not use external line termination resistors (standard 150 Ω) without additional external low
impedance line polarization resistors (standard 450 Ω…650 Ω) to secure a proper idle voltage state of
minimum 200 mV between the D1 and D0 data lines.
Pin Assignment
The following figure presents the pins of the RJ45 connector:
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Status LED
The following graphic presents the status LED:
Chapter 30
Connecting the M221 Logic Controller to a PC
Overview
To transfer, run, and monitor the applications, connect the controller to a computer, that has
EcoStruxure Machine Expert - Basic 1.0 or later installed, using either a USB cable or an Ethernet
connection (for those references that support an Ethernet port).
NOTICE
INOPERABLE EQUIPMENT
Always connect the communication cable to the PC before connecting it to the controller.
Failure to follow these instructions can result in equipment damage.
WARNING
INSUFFICENT POWER FOR USB DOWNLOAD
Do not use a USB cable longer than 3m (9.8 ft) for USB powered download.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
The USB Mini-B Port is the programming port you can use to connect a PC with a USB host port
using EcoStruxure Machine Expert - Basic software. Using a typical USB cable, this connection is
suitable for quick updates of the program or short duration connections to perform maintenance
and inspect data values. It is not suitable for long-term connections such as commissioning or
monitoring without the use of specially adapted cables to help minimize electromagnetic
interference.
WARNING
UNINTENDED EQUIPMENT OPERATION OR INOPERABLE EQUIPMENT
You must use a shielded USB cable such as a BMX XCAUSBH0•• secured to the functional
ground (FE) of the system for any long-term connection.
Do not connect more than one controller or bus coupler at a time using USB connections.
Do not use the USB port(s), if so equipped, unless the location is known to be non-hazardous.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
The communication cable should be connected to the PC first to minimize the possibility of
electrostatic discharge affecting the controller.
The following illustration shows the USB connection to a PC on a TM221C Logic Controller:
The following illustration shows the USB connection to a PC on a TM221M Logic Controller:
To connect the USB cable to your controller, follow the steps below:
Step Action
1 1a If making a long-term connection using the cable BMXXCAUSBH045, or other cable with a
ground shield connection, be sure to securely connect the shield connector to the functional
ground (FE) or protective ground (PE) of your system before connecting the cable to your
controller and your PC.
1b If making a short-term connection using the cable TCSXCNAMUM3P or other non-grounded
USB cable, proceed to step 2.
2 Connect your USB cable to the computer.
3 Open the hinged access cover.
4 Connect the Mini connector of your USB cable to the controller USB connector.
The following illustration shows the Ethernet connection to a PC on a TM221M Logic Controller:
Step Action
1 Connect your Ethernet cable to the PC.
2 Connect your Ethernet cable to the Ethernet port on the controller.
Glossary
A
analog input
Converts received voltage or current levels into numerical values. You can store and process these
values within the logic controller.
ASCII
(American standard code for Information Interchange) A protocol for representing alphanumeric
characters (letters, numbers, certain graphics, and control characters).
B
bps
(bit per second) A definition of transmission rate, also given in conjunction with multiplicator kilo
(kbps) and mega (mbps).
C
CTS
(clear to send) A data transmission signal and acknowledges the RDS signal from the transmitting
station.
CW/CCW
ClockWise / Counter ClockWise
D
DIN
(Deutsches Institut für Normung) A German institution that sets engineering and dimensional
standards.
E
EIA rack
(electronic industries alliance rack) A standardized (EIA 310-D, IEC 60297, and DIN 41494
SC48D) system for mounting various electronic modules in a stack or rack that is 19 inches
(482.6 mm) wide.
EN
EN identifies one of many European standards maintained by CEN (European Committee for
Standardization), CENELEC (European Committee for Electrotechnical Standardization), or ETSI
(European Telecommunications Standards Institute).
F
FE
(functional Earth) A common grounding connection to enhance or otherwise allow normal
operation of electrically sensitive equipment (also referred to as functional ground in North
America).
In contrast to a protective Earth (protective ground), a functional earth connection serves a purpose
other than shock protection, and may normally carry current. Examples of devices that use
functional earth connections include surge suppressors and electromagnetic interference filters,
certain antennas, and measurement instruments.
FreqGen
(frequency generator) A function that generates a square wave signal with programmable
frequency.
G
GRAFCET
The functioning of a sequential operation in a structured and graphic form.
This is an analytical method that divides any sequential control system into a series of steps, with
which actions, transitions, and conditions are associated.
H
HE10
Rectangular connector for electrical signals with frequencies below 3 MHz, complying with IEC
60807-2.
HSC
(high-speed counter) A function that counts pulses on the controller or on expansion module
inputs.
I
IEC
(international electrotechnical commission) A non-profit and non-governmental international
standards organization that prepares and publishes international standards for electrical,
electronic, and related technologies.
IEC 61131-3
Part 3 of a 3-part IEC standard for industrial automation equipment. IEC 61131-3 is concerned with
controller programming languages and defines 2 graphical and 2 textual programming language
standards. The graphical programming languages are ladder diagram and function block diagram.
The textual programming languages include structured text and instruction list.
IL
(instruction list) A program written in the language that is composed of a series of text-based
instructions executed sequentially by the controller. Each instruction includes a line number, an
instruction code, and an operand (refer to IEC 61131-3).
instruction list language
A program written in the instruction list language that is composed of a series of text-based
instructions executed sequentially by the controller. Each instruction includes a line number, an
instruction code, and an operand (see IEC 61131-3).
IP 20
(ingress protection) The protection classification according to IEC 60529 offered by an enclosure,
shown by the letter IP and 2 digits. The first digit indicates 2 factors: helping protect persons and
for equipment. The second digit indicates helping protect against water. IP 20 devices help protect
against electric contact of objects larger than 12.5 mm, but not against water.
L
ladder diagram language
A graphical representation of the instructions of a controller program with symbols for contacts,
coils, and blocks in a series of rungs executed sequentially by a controller (see IEC 61131-3).
LD
(ladder diagram) A graphical representation of the instructions of a controller program with symbols
for contacts, coils, and blocks in a series of rungs executed sequentially by a controller (refer to
IEC 61131-3).
M
Modbus
The protocol that allows communications between many devices connected to the same network.
N
NEMA
(national electrical manufacturers association) The standard for the performance of various
classes of electrical enclosures. The NEMA standards cover corrosion resistance, ability to help
protect from rain, submersion, and so on. For IEC member countries, the IEC 60529 standard
classifies the ingress protection rating for enclosures.
P
PE
(Protective Earth) A common grounding connection to help avoid the hazard of electric shock by
keeping any exposed conductive surface of a device at earth potential. To avoid possible voltage
drop, no current is allowed to flow in this conductor (also referred to as protective ground in North
America or as an equipment grounding conductor in the US national electrical code).
PTO
(pulse train outputs) A fast output that oscillates between off and on in a fixed 50-50 duty cycle,
producing a square wave form. PTO is especially well suited for applications such as stepper
motors, frequency converters, and servo motor control, among others.
PWM
(pulse width modulation) A fast output that oscillates between off and on in an adjustable duty
cycle, producing a rectangular wave form (though you can adjust it to produce a square wave).
R
RJ45
A standard type of 8-pin connector for network cables defined for Ethernet.
RS-232
A standard type of serial communication bus, based on 3 wires (also known as EIA RS-232C or
V.24).
RS-485
A standard type of serial communication bus, based on 2 wires (also known as EIA RS-485).
RTS
(request to send) A data transmission signal and CTS signal that acknowledges the RTS from the
destination node.
RxD
The line that receives data from one source to another.
S
SFC
(sequential function chart) A language that is composed of steps with associated actions,
transitions with associated logic condition, and directed links between steps and transitions. (The
SFC standard is defined in IEC 848. It is IEC 61131-3 compliant.)
T
terminal block
(terminal block) The component that mounts in an electronic module and provides electrical
connections between the controller and the field devices.
TxD
The line that sends data from one source to another.
Index
Symbols F
Short-circuit or Over-current on Sink Transis- fallback
tor Outputs, 68 configuring modes, 67
features
key features, 20, 25
A Filter
accessories, 49 Bounce Filter, 61
analog input modules
specifications, 40
analog mixed I/O modules G
specifications, 42 Grounding, 122
analog output modules
specifications, 41
I
inductive load, output protection
C output protection, inductive load, 111
certifications and standards, 85 Input Management, 61
Communication Ports, 383 Installation, 79
Ethernet Port, 386 Electrical Requirements, 106
Serial Line 1, 389 Logic Controller Installation, 86
Serial Line 2, 393 intended use, 8
USB Programming Port, 384
connecting the controller to a PC
M221, 397 L
Latching, 62
Logic Controller Installation
D Installation, 86
digital I/O modules
specifications, 37, 37, 39, 45, 46
Digital I/O modules
Specifications, 46
E
Electrical Requirements
Installation, 106
Electromagnetic Susceptibility, 83
Environmental Characteristics, 81
M presentation
TM221M16R / TM221M16RG, 264
M221
TM221M16T / TM221M16TG, 300
connecting the controller to a PC, 397
TM221M32TK, 342
TM221C16R, 129
TM221ME16R / TM221ME16RG, 282
TM221C16T, 139
TM221ME16T / TM221ME16TG, 320
TM221C16U, 147
TM221ME32TK, 362
TM221C24R, 157
programming languages
TM221C24T, 165
IL, LD, 25
TM221C24U, 173
IL, LD, Grafcet, 20
TM221C40R, 185
TM221C40T, 197
TM221C40U, 209 Q
TM221CE16R, 135
qualification of personnel, 8
TM221CE16T, 143
TM221CE16U, 151
TM221CE24R, 161
TM221CE24T, 169
R
TM221CE24U, 179 real time clock, 54
TM221CE40R, 191 regular inputs, 37, 37, 39
TM221CE40T, 203 regular transistor outputs, 37, 37, 39
TM221CE40U, 215 relay outputs, 37, 37, 39
TM221M16R / TM221M16RG, 263 Run/Stop, 69
TM221M16T, 299
TM221M32TK, 341
TM221ME16R / TM221ME16RG, 281
S
TM221ME16T / TM221ME16TG, 319 SD Card, 72
TM221ME32TK, 361 Serial Line 1
mounting positions, 90, 93 Communication Ports, 389
Serial Line 2
Communication Ports, 393
N short-circuit or over-current on relay outputs,
notice 68
loss of application data, 72 short-circuit or over-current on transistor out-
puts, 67
specifications
O analog input modules, 40
analog mixed I/O modules, 42
output management, 65
analog output modules, 41
digital I/O modules, 37, 37, 39, 45
P Specifications
Digital I/O modules, 46, 46
Power Supply, 114, 119
specifications
modules, 42
transmitter and receiver modules, 44
T
Tesys modules
specifications, 42
TM221C16R, 129, 129
TM221C16T, 139, 139, 209
TM221C16U, 147, 147
TM221C24R, 157
TM221C24T, 165, 165
TM221C24U, 173, 173
TM221C40R, 185, 185
TM221C40T, 197, 197
TM221C40U, 209
TM221CE16R, 135
TM221CE16T, 143, 143
TM221CE16U, 151, 151
TM221CE24R, 157, 161, 161
TM221CE24T, 169, 169
TM221CE24U, 179, 179
TM221CE40R, 191, 191
TM221CE40T, 203, 203
TM221CE40U, 215, 215
TMC2, 34
transmitter and receiver modules
specifications, 44
U
USB Programming Port
Communication Ports, 384
W
wiring, 107
EIO0000003321 09/2020
Modicon TMH2GDB
Remote Graphic Display
User Guide
09/2020
EIO0000003321.01
www.schneider-electric.com
The information provided in this documentation contains general descriptions and/or technical
characteristics of the performance of the products contained herein. This documentation is not
intended as a substitute for and is not to be used for determining suitability or reliability of these
products for specific user applications. It is the duty of any such user or integrator to perform the
appropriate and complete risk analysis, evaluation and testing of the products with respect to the
relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or
subsidiaries shall be responsible or liable for misuse of the information contained herein. If you
have any suggestions for improvements or amendments or have found errors in this publication,
please notify us.
You agree not to reproduce, other than for your own personal, noncommercial use, all or part of
this document on any medium whatsoever without permission of Schneider Electric, given in
writing. You also agree not to establish any hypertext links to this document or its content.
Schneider Electric does not grant any right or license for the personal and noncommercial use of
the document or its content, except for a non-exclusive license to consult it on an "as is" basis, at
your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when installing and
using this product. For reasons of safety and to help ensure compliance with documented system
data, only the manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant
instructions must be followed.
Failure to use Schneider Electric software or approved software with our hardware products may
result in injury, harm, or improper operating results.
Failure to observe this information can result in injury or equipment damage.
© 2020 Schneider Electric. All rights reserved.
2 EIO0000003321 09/2020
Table of Contents
Safety Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1 Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Technical Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Certifications and Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Compatibility of The Remote Graphic Display . . . . . . . . . . . . . . . . . . . 19
Chapter 2 Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Installation and Maintenance Requirements . . . . . . . . . . . . . . . . . . . . 22
Dimensions and Clearances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Connecting the Remote Graphic Display . . . . . . . . . . . . . . . . . . . . . . 29
Updating the Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Chapter 3 How to Use the Remote Graphic Display . . . . . . . . . . . . 37
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Navigation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Password Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Chapter 4 Setup Menu Functionality . . . . . . . . . . . . . . . . . . . . . . . . 43
Setup Menu Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Controller Setup Menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Controller State Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Alarm Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Data Table Menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Chapter 5 Creating an Operator Interface with EcoStruxure Machine
Expert - Basic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Prerequisite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
EcoStruxure Machine Expert - Basic Display Tab . . . . . . . . . . . . . . . . 58
General Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Add/Delete a Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
EIO0000003321 09/2020 3
Configure a Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Export/Import a Page . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Alarm Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4 EIO0000003321 09/2020
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with the device
before trying to install, operate, service, or maintain it. The following special messages may appear
throughout this documentation or on the equipment to warn of potential hazards or to call attention
to information that clarifies or simplifies a procedure.
EIO0000003321 09/2020 5
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by qualified
personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of
the use of this material.
A qualified person is one who has skills and knowledge related to the construction and operation
of electrical equipment and its installation, and has received safety training to recognize and avoid
the hazards involved.
6 EIO0000003321 09/2020
About the Book
At a Glance
Document Scope
Use this document to learn how to:
Connect your Remote Graphic Display to your controller.
Commission and maintain your Remote Graphic Display.
Operate your Remote Graphic Display interface with EcoStruxure Machine Expert - Basic.
NOTE: Read and understand this document and all related documents before installing, operating,
or maintaining your Remote Graphic Display.
Validity Note
This document has been updated for the release of EcoStruxureTM Machine Expert - Basic V1.1.
For product compliance and environmental information (RoHS, REACH, PEP, EOLI, etc.), go to
www.schneider-electric.com/green-premium.
The technical characteristics of the devices described in the present document also appear online.
To access the information online:
Step Action
1 Go to the Schneider Electric home page www.schneider-electric.com.
2 In the Search box type the reference of a product or the name of a product range.
Do not include blank spaces in the reference or product range.
To get information on grouping similar modules, use asterisks (*).
3 If you entered a reference, go to the Product Datasheets search results and click on the
reference that interests you.
If you entered the name of a product range, go to the Product Ranges search results and click
on the product range that interests you.
4 If more than one reference appears in the Products search results, click on the reference that
interests you.
5 Depending on the size of your screen, you may need to scroll down to see the data sheet.
6 To save or print a data sheet as a .pdf file, click Download XXX product datasheet.
The characteristics that are presented in the present document should be the same as those
characteristics that appear online. In line with our policy of constant improvement, we may revise
content over time to improve clarity and accuracy. If you see a difference between the document
and online information, use the online information as your reference.
EIO0000003321 09/2020 7
Related Documents
You can download these technical publications and other technical information from our website
at https://www.se.com/ww/en/download/ .
8 EIO0000003321 09/2020
Product Related Information
DANGER
HAZARD OF ELECTRIC SHOCK, EXPLOSION OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires except
under the specific conditions specified in the appropriate hardware guide for this equipment.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
This equipment has been designed to operate outside of any hazardous location. Only install this
equipment in zones known to be free of a hazardous atmosphere.
DANGER
POTENTIAL FOR EXPLOSION
Install and use this equipment in non-hazardous locations only.
Failure to follow these instructions will result in death or serious injury.
EIO0000003321 09/2020 9
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths
and, for certain critical control functions, provide a means to achieve a safe state during and
after a path failure. Examples of critical control functions are emergency stop and overtravel
stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the
implications of unanticipated transmission delays or failures of the link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest
edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
10 EIO0000003321 09/2020
Terminology Derived from Standards
The technical terms, terminology, symbols and the corresponding descriptions in this manual, or
that appear in or on the products themselves, are generally derived from the terms or definitions
of international standards.
In the area of functional safety systems, drives and general automation, this may include, but is not
limited to, terms such as safety, safety function, safe state, fault, fault reset, malfunction, failure,
error, error message, dangerous, etc.
Among others, these standards include:
Standard Description
EN 61131-2:2007 Programmable controllers, part 2: Equipment requirements and tests.
ISO 13849-1:2008 Safety of machinery: Safety related parts of control systems.
General principles for design.
EN 61496-1:2013 Safety of machinery: Electro-sensitive protective equipment.
Part 1: General requirements and tests.
ISO 12100:2010 Safety of machinery - General principles for design - Risk assessment and risk
reduction
EN 60204-1:2006 Safety of machinery - Electrical equipment of machines - Part 1: General
requirements
EN 1088:2008 Safety of machinery - Interlocking devices associated with guards - Principles
ISO 14119:2013 for design and selection
ISO 13850:2006 Safety of machinery - Emergency stop - Principles for design
EN/IEC 62061:2005 Safety of machinery - Functional safety of safety-related electrical, electronic,
and electronic programmable control systems
IEC 61508-1:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: General requirements.
IEC 61508-2:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Requirements for electrical/electronic/programmable
electronic safety-related systems.
IEC 61508-3:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Software requirements.
IEC 61784-3:2008 Digital data communication for measurement and control: Functional safety
field buses.
2006/42/EC Machinery Directive
2014/30/EU Electromagnetic Compatibility Directive
2014/35/EU Low Voltage Directive
EIO0000003321 09/2020 11
In addition, terms used in the present document may tangentially be used as they are derived from
other standards such as:
Standard Description
IEC 60034 series Rotating electrical machines
IEC 61800 series Adjustable speed electrical power drive systems
IEC 61158 series Digital data communications for measurement and control – Fieldbus for use in
industrial control systems
Finally, the term zone of operation may be used in conjunction with the description of specific
hazards, and is defined as it is for a hazard zone or danger zone in the Machinery Directive
(2006/42/EC) and ISO 12100:2010.
NOTE: The aforementioned standards may or may not apply to the specific products cited in the
present documentation. For more information concerning the individual standards applicable to the
products described herein, see the characteristics tables for those product references.
12 EIO0000003321 09/2020
Modicon TMH2GDB
Presentation
EIO0000003321 09/2020
Chapter 1
Presentation
Presentation
Introduction
This chapter provides information related to the description, technical presentation, certifications
and standards of the Remote Graphic Display.
EIO0000003321 09/2020 13
Presentation
Description
Overview
The Remote Graphic Display is a local control unit. It is used in conjunction with the Modicon M221
Logic Controller for monitoring, commissioning, operating, and maintenance activities.
System Description
When connecting the Remote Graphic Display to your logic controller, you can access the Setup
menu (see page 43) page.
You can also define customized pages (see page 55) with EcoStruxure Machine Expert - Basic.
The Remote Graphic Display can be connected to your logic controller by the serial line (Serial or
Serial 1). For more information, refer to Connecting the Remote Graphic Display (see page 29).
Physical Description
This illustration presents the delivery content for a Remote Graphic Display:
14 EIO0000003321 09/2020
Presentation
1 F1 key
2 MOD key
3 ESC key
4 R1 to R4 keys
5 Graphic screen
6 Home key
7 Information key
8 F2 key
9 Touch wheel/OK/Arrows
10 Anti-rotation tee
11 Installation nut
12 Socket wrench (ZB5AZ905)
13 RJ45 serial line (RS-485)
14 Connector for functional ground (earth)
EIO0000003321 09/2020 15
Presentation
Technical Presentation
Enclosure Requirements
The Remote Graphic Display components are designed as Zone B, Class A industrial equipment
according to IEC/CISPR Publication 11. If they are used in environments other than those
described in these standards, or in environments that do not meet the specifications in this manual,
the ability to meet electromagnetic compatibility requirements in the presence of conducted and/or
radiated interference may be reduced.
All Remote Graphic Display components meet European Community (CE) requirements for open
equipment as defined by IEC/EN 61131-2.
Environmental Characteristics
This equipment meets CE requirements as indicated in the table below. This equipment is intended
for use in a pollution degree 2 industrial environment.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Characteristic Specification
Standard compliance IEC/EN 61131-2
IEC/EN 61010-2-201
Ambient operating temperature -15...50 °C (5...122 °F)
Storage temperature -40...70 °C (-40...158 °F)
Relative humidity Transport and storage
95 % (non-condensing)
Operation
Pollution degree IEC/EN 60664-1 2
Protection degree IEC/EN 61131-2 Front face: IP65 (when properly installed as
instructed)
Back face: IP20
Corrosion immunity Atmosphere free from corrosive gases
Operating altitude 0...2000 m (0...6560 ft)
Storage altitude 0...2000 m (0...6560 ft)
Vibration resistance 2 g 3...150 hz maximum 1.5 mm
Mechanical shock resistance 147 m/s2 (482.285 ft/s2), 15 g for 11 ms duration
16 EIO0000003321 09/2020
Presentation
Electromagnetic Susceptibility
The Remote Graphic Display components meet electromagnetic susceptibility specifications as
indicated in this table:
EIO0000003321 09/2020 17
Presentation
Introduction
The Remote Graphic Display is designed to conform to the main national and international
standards concerning electronic industrial control devices:
IEC/EN 61131-2
UL 508C
The Remote Graphic Display has obtained the following conformity marks:
CE
UL
18 EIO0000003321 09/2020
Presentation
Overview
Before using the Remote Graphic Display, verify the compatibility of the Remote Graphic Display
with the version of EcoStruxure Machine Expert - Basic, the controller firmware version, and the
functional level of the application.
EIO0000003321 09/2020 19
Presentation
Incompatibility Detection
If an incompatibility is detected between Remote Graphic Display and the functional level of the
application, the following use cases occur:
20 EIO0000003321 09/2020
Modicon TMH2GDB
Installation
EIO0000003321 09/2020
Chapter 2
Installation
Installation
Introduction
This chapter provides information related to the installation of the Remote Graphic Display.
EIO0000003321 09/2020 21
Installation
Before Starting
Read and understand this chapter before beginning the installation of your system.
The use and application of the information contained herein require expertise in the design and
programming of automated control systems. Only you, the user, machine builder or integrator, can
be aware of all the conditions and factors present during installation and setup, operation, and
maintenance of the machine or process, and can therefore determine the automation and
associated equipment and the related safeties and interlocks which can be effectively and properly
used. When selecting automation and control equipment, and any other related equipment or
software, for a particular application, you must also consider any applicable local, regional, or
national standards and/or regulations.
Pay particular attention in conforming to any safety information, different electrical requirements,
and normative standards that would apply to your machine or process in the use of this equipment.
DANGER
HAZARD OF ELECTRIC SHOCK, EXPLOSION OR ARC FLASH
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Failure to follow these instructions will result in death or serious injury.
Programming Considerations
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
22 EIO0000003321 09/2020
Installation
Operating Environment
This equipment has been designed to operate outside of any hazardous location. Only install this
equipment in zones known to be free of a hazardous atmosphere.
DANGER
POTENTIAL FOR EXPLOSION
Install and use this equipment in non-hazardous locations only.
Failure to follow these instructions will result in death or serious injury.
WARNING
UNINTENDED EQUIPMENT OPERATION
Install and operate this equipment according to the conditions described in the section Technical
Presentation.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Installation Considerations
WARNING
UNINTENDED EQUIPMENT OPERATION
Use appropriate safety interlocks where personnel and/or equipment hazards exist.
Do not use this equipment in safety-critical machine functions unless the equipment is
otherwise designated as functional safety equipment and conforming to applicable regulations
and standards.
Do not disassemble, repair, or modify this equipment.
Do not connect any wiring to reserved, unused connections, or to connections designated as
No Connection (N.C.).
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003321 09/2020 23
Installation
Introduction
This section describes the dimensions and the mounting clearances for the Remote Graphic
Display.
Dimensions
This illustration describes the external dimensions of the Remote Graphic Display:
24 EIO0000003321 09/2020
Installation
Minimum Clearances
WARNING
UNINTENDED EQUIPMENT OPERATION
Place devices dissipating the most heat at the top of the cabinet and ensure adequate
ventilation.
Avoid placing this equipment next to or above devices that might cause overheating.
Install the equipment in a location providing the minimum clearances from all adjacent
structures and equipment as directed in this document.
Install all equipment in accordance with the specifications in the related documentation.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
The Remote Graphic Display has been designed as an IP65 product when properly installed,
excluding the RJ45 connector. The Remote Graphic Display must be installed on the front panel
of the cabinet or enclosure to achieve the IP65 rating. Clearances must be respected when
installing the product.
There are four types of clearances between:
The Remote Graphic Display and all sides of the cabinet (including the panel door).
The Remote Graphic Display connector and the wiring ducts. This distance reduces
electromagnetic interference between the Remote Graphic Display and the wiring ducts.
The Remote Graphic Display and other heat generating devices installed in the same cabinet.
The Remote Graphic Display and other Remote Graphic Display on the same panel door.
NOTE: Keep adequate spacing for proper ventilation and to maintain the operating temperature
specified in the Environmental Characteristics (see page 16).
EIO0000003321 09/2020 25
Installation
Mounting
Overview
This section presents how to install the Remote Graphic Display on the cabinet panel.
26 EIO0000003321 09/2020
Installation
Step Action
1 Insert the anti-rotation tee into the Remote Graphic Display.
NOTE: The rotating torque that can be supported by the Remote Graphic Display is 6 N.m
(53.10 in-lb).
2 Insert the Remote Graphic Display on the cabinet panel.
EIO0000003321 09/2020 27
Installation
Step Action
3 Install the nut and tighten it with the socket wrench (ZB5AZ905).
(1) 1,5...6 mm (0.06...0.24 in) if steel sheet or 3...6 mm (0.12...0.24 in) if glass fiber reinforced
plastic (minimum GF30)
NOTICE
INOPERABLE EQUIPMENT
Do not use any liquids containing acids, organic solvents, alcohol, or abrasive materials to clean
the unit.
Failure to follow these instructions can result in equipment damage.
Care must be taken when wiping the surface of the Remote Graphic Display. Inadvertently
pressing the keys while doing so may unintendedly engage programmed machine operations.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not press any of the keys while cleaning the surface of the equipment.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
28 EIO0000003321 09/2020
Installation
Overview
The Remote Graphic Display must be connected only to the Serial or Serial 1 port of the logic
controller. These serial ports of the logic controllers provide the 5 Vdc power supply of the Remote
Graphic Display. The Remote Graphic Display must be the only device connected to these serial
ports (do not use a Tap-off box). The connection between the Remote Graphic Display and the
logic controller is RS-485 (Modbus protocol).
EIO0000003321 09/2020 29
Installation
30 EIO0000003321 09/2020
Installation
EIO0000003321 09/2020 31
Installation
Pin Assignment
This illustration presents the pin assignment of the RJ45 connector:
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Grounding
The grounding lug of the Remote Graphic Display must be connected to the ground terminal screw
of the cabinet.
This table presents the characteristics of the grounding connection:
Characteristic Description
Minimum wire gauge 2.5 mm² (AWG 14)
Lug size 6.35 x 0.81 mm (0.25 x 0.032 in)
Connection Female spade terminal (AMP 6392-1 or similar)
32 EIO0000003321 09/2020
Installation
Connecting Cables
You can use the following cable for connecting the Remote Graphic Display to the logic controller:
1 No connection 1
2 No connection 2
3 No connection 3
4 D1 4
5 D0 5
6 No connection 6
7 5 Vdc 7
8 0 Vdc 8
Shielding Shield Shielding
EIO0000003321 09/2020 33
Installation
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
34 EIO0000003321 09/2020
Installation
Presentation
Firmware updates can be downloaded to the Remote Graphic Display from the PC that is running
EcoStruxure Machine Expert - Basic.
For details, refer to Downloading Firmware to the Remote Graphic Display (see Modicon M221,
Logic Controller, Programming Guide).
EIO0000003321 09/2020 35
Installation
36 EIO0000003321 09/2020
Modicon TMH2GDB
How to Use the Display
EIO0000003321 09/2020
Chapter 3
How to Use the Remote Graphic Display
Introduction
This chapter provides information related to the graphic screen presentations, the navigation, and
the password protection of the Remote Graphic Display.
EIO0000003321 09/2020 37
How to Use the Display
Description
Home Page
After connecting the Remote Graphic Display, it displays the home page that has been chosen in
EcoStruxure Machine Expert - Basic (see page 55).
The default home page is the Setup Menu that allows you to configure and monitor the general
parameters of your logic controller (see page 43).
38 EIO0000003321 09/2020
How to Use the Display
Navigation
Overview
This table describes the navigation controls of the Remote Graphic Display:
NOTICE
INOPERABLE EQUIPMENT
Do not use hard or pointed objects to operate the device.
Failure to follow these instructions can result in equipment damage.
EIO0000003321 09/2020 39
How to Use the Display
Access Protection
The access to some pages can be restricted by a password. For more information, refer to
Password Protection (see page 41).
40 EIO0000003321 09/2020
How to Use the Display
Password Protection
Overview
You can use EcoStruxure Machine Expert - Basic software to define a password. If enabled, this
unique password helps to protect:
the selected page(s) of the Operator Interface
The Setup pages that can perform an action on the logic controller:
Controller Setup
Controller State
Data Table
Alarm Reset
For more information, refer to Set General Parameters (see page 60).
EIO0000003321 09/2020 41
How to Use the Display
42 EIO0000003321 09/2020
Modicon TMH2GDB
Setup Menu Functionality
EIO0000003321 09/2020
Chapter 4
Setup Menu Functionality
Introduction
This chapter provides information related to the menus present in the Setup of the Remote Graphic
Display.
EIO0000003321 09/2020 43
Setup Menu Functionality
Menu Structure
This table lists the menu and submenus present in the Setup Menu of the Remote Graphic Display:
NOTE: Keeping the backlight ON continuously reduces the lifetime of the device.
NOTICE
INOPERABLE EQUIPMENT
Set the Backlight timeout of the device between 1 and 10 minutes.
Failure to follow these instructions can result in equipment damage.
44 EIO0000003321 09/2020
Setup Menu Functionality
Overview
This table lists the submenus that are present in the Controller Setup menu of the Setup:
Ethernet Allows you to configure the Ethernet If the IP Address and Mask are incorrect, your
(depending on the parameter (1): logic controller is automatically configured with
logic controller IP Mode the default values.
reference) IP Address
Mask
Gateway
Device Name
(1) The entered parameters are saved into the Post Configuration file. The parameters are retained after a
power cycle.
NOTE: For more information on how to modify the Serial 2 or Ethernet parameters, refer to Edit
Pages (see page 46).
EIO0000003321 09/2020 45
Setup Menu Functionality
Edit Pages
This graphic presents the Edit IP page:
This procedure explains how to modify selected parameters in the Serial 2 and Ethernet
submenus:
Step Action
1 Select Setup → Controller Setup.
2 Select Serial 2 or Ethernet.
Result: The Serial 2 or Ethernet page is displayed.
3 Select the parameter with the touch wheel and press OK to modify it.
Result: One of these pages is displayed:
Edit Parameter
Edit IP
Edit Name
NOTE: Press the ESC key to discard the modification and go back to the previous page.
46 EIO0000003321 09/2020
Setup Menu Functionality
Overview
The Controller State menu allows you to see the present state of your logic controller and perform
commands in the logic controller.
WARNING
UNINTENDED EQUIPMENT OPERATION
Place operator devices of the control system near the machine or in a place where you have
full view of the machine.
Protect operator commands against unauthorized access.
If remote control is a necessary design aspect of the application, ensure that there is a local,
competent, and qualified observer present when operating from a remote location.
Configure and install the Run/Stop input, if so equipped, or, other external means within the
application, so that local control over the starting or stopping of the device can be maintained
regardless of the remote commands sent to it.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
WARNING
UNINTENDED MACHINE OR PROCESS START-UP
Verify the state of security of your machine or process environment before applying power to
the Run/Stop input.
Use the Run/Stop input to help prevent the unintentional start-up from a remote location.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003321 09/2020 47
Setup Menu Functionality
Step Action
1 Select Setup → Controller State.
2 Press:
R1 (Run) to start the logic controller
R2 (Stop) to stop the logic controller
R3 (Init) to initialize the logic controller
For more information, refer to the Controller States and Behaviors part of your logic controller
programming guide.
48 EIO0000003321 09/2020
Setup Menu Functionality
Alarm Menu
Overview
The Alarm Menu contains these submenus:
View
History
Delete History
Alarm View
The Alarm View page displays the active alarms. Alarm messages are configured in EcoStruxure
Machine Expert - Basic. For more information, refer to the alarm definition (see page 77).
Alarms are associated with specific memory bits within the logic controller. Those bits are
monitored and, when TRUE, are included in the Alarm View.
When system bit %S122 is set to 1, the Alarm View page is displayed automatically when a rising
edge is detected on an alarm bit.
When system bit %S123 is set to 1, the backlight on the Remote Graphic Display turns red when
an alarm is active. For more information, refer to system bit (%S122 and %S123) description
(see Modicon M221, Logic Controller, Programming Guide).
NOTE: Alarm bit must be ON for at least 50 ms before it is included in the Alarm View.
NOTE: Alarms are not saved when the controller goes through a power cycle.
Alarm History
The History page displays a maximum of 40 alarm messages with the date and time when the
alarm either became active or was resolved, along with an up arrow to indicate when the alarm
became active and a down arrow when it is resolved. The most recent alarm is at the top of the list.
EIO0000003321 09/2020 49
Setup Menu Functionality
Alarm Reset
The Alarm Reset page is used to clear the alarm history:
Step Action
1 Select Setup → Alarm Menu → Delete History.
Result: The Alarm Reset page is opened.
2 Press R1 (Delete) to clear the alarm history.
Result: The Alarm History page is empty.
50 EIO0000003321 09/2020
Setup Menu Functionality
Overview
In the Data Table page, you can add/delete or modify the value of a variable:
Memory objects
System objects
I/O objects
WARNING
UNINTENDED EQUIPMENT OPERATION
Place operator devices of the control system near the machine or in a place where you have
full view of the machine.
Protect operator commands against unauthorized access.
If remote control is a necessary design aspect of the application, ensure that there is a local,
competent, and qualified observer present when operating from a remote location.
Configure and install the Run/Stop input, if so equipped, or, other external means within the
application, so that local control over the starting or stopping of the device can be maintained
regardless of the remote commands sent to it.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003321 09/2020 51
Setup Menu Functionality
Object Types
These memory objects are available:
System bit (%S)
System word (%SW)
Memory bit (%M)
Memory word (%MW)
Constant word (%KW)
Memory double word (%MD)
Add/Delete a Variable
This procedure explains how to add a variable in the Data Table page:
Step Action
1 Select Setup → Data Table.
2 Press R1 (Add).
Result: The Object Type page is displayed.
3 Select the object types.
For more information on object types, refer to the list (see page 52).
4 Press R1 (Select).
5 Enter:
The address for a memory object.
The module and channel values for an I/O object.
NOTE: You can delete a variable from the table by pressing R2 (Delete).
52 EIO0000003321 09/2020
Setup Menu Functionality
Edit a Variable
You can modify the value of an existing variable.
NOTE: Editing a variable is not allowed when the logic controller state is EMPTY.
Follow the procedures below when editing:
A word or double word variable
A memory bit variable
An I/O bit variable
Step Action
1 Select Setup → Data Table.
2 Select the word or double word variable to modify.
3 Press R3 (Edit) to modify the variable.
Result: The Edit Word or Edit DWord page is displayed.
4 Select the digit using the MOD key or right/left arrows.
5 Increment or decrement the selected digit using the touch wheel or up/down arrows.
6 Press:
R1 (Apply) to apply the modification.
R4 (Cancel) to discard the modification.
NOTE: Press the ESC key to discard the modification and go back to the previous page.
7 Repeat steps 2 to 6 to modify another word or double word variable.
Step Action
1 Select Setup → Data Table.
2 Select the memory bit variable to modify.
3 Press R3 (Edit) to modify the variable.
Result: The Edit bit page is displayed.
4 Select Off or On using the touch wheel or up/down arrows.
5 Press:
R1 (Apply) to apply the modification.
R4 (Cancel) to discard the modification.
NOTE: Press the ESC key to discard the modification and go back to the previous page.
6 Repeat steps 2 to 5 to modify another memory bit variable.
EIO0000003321 09/2020 53
Setup Menu Functionality
WARNING
UNINTENDED EQUIPMENT OPERATION
You must have prior knowledge of the process and the controlled equipment before attempting
to force logic controller physical inputs/outputs, or writing values to logic controller memory
locations.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
This procedure explains how to modify the value of an I/O bit variable in the Data Table page:
Step Action
1 Select Setup → Data Table.
2 Select the I/O bit variable to modify.
3 Press R3 (Edit) to modify the variable.
Result: The Edit I/O bit page is displayed.
4 Select Off or On using the touch wheel or up/down arrows.
5 Press:
R1 (Apply) to apply the modification.
R2 (Force) to force the I/O value.
R3 (Unforce) to unforce the I/O value.
R4 (Cancel) to discard the modification.
NOTE: Press the ESC key to discard the modification and go back to the previous page.
6 Repeat steps 2 to 5 to modify another I/O bit variable.
54 EIO0000003321 09/2020
Modicon TMH2GDB
Creating Operator Interface
EIO0000003321 09/2020
Chapter 5
Creating an Operator Interface with EcoStruxure Machine Expert - Basic
Introduction
This chapter provides information on how to build an Operator Interface in the Display tab of
EcoStruxure Machine Expert - Basic.
EIO0000003321 09/2020 55
Creating Operator Interface
Prerequisite
Step Action
1 Select the Configuration tab.
2 Click the SL1 (Serial Line) node in the hardware tree.
3 Select TMH2GDB in the Protocol field.
The Remote Graphic Display uses fixed serial line communication parameters:
4 Click Apply.
Result: The serial line is configured to communicate with your Remote Graphic Display and the
Display tab is activated.
5 Click the Display node that appears below the SL1 (Serial Line) node in the hardware tree to
display device settings.
56 EIO0000003321 09/2020
Creating Operator Interface
This graphic presents the Device settings in the Configuration tab of EcoStruxure Machine Expert
- Basic:
EIO0000003321 09/2020 57
Creating Operator Interface
Overview
The Operator Interface is a component of the application.
For more information on creating projects, refer to Creating Projects With EcoStruxure Machine
Expert - Basic (see EcoStruxure Machine Expert - Basic, Operating Guide).
For more information on transferring applications, refer to Downloading and Uploading
Applications (see EcoStruxure Machine Expert - Basic, Operating Guide).
The Operator Interface is built with the Display tab in EcoStruxure Machine Expert - Basic:
1 Tree
2 Buttons
3 Visualization area
4 Editable area
58 EIO0000003321 09/2020
Creating Operator Interface
Button Description
The buttons apply to the pages of the Operator Interface:
Tree Description
This table lists the menus and submenus present in the tree in the Display tab:
EIO0000003321 09/2020 59
Creating Operator Interface
General Properties
Overview
The General Properties node allows you to set the general parameters of the Remote Graphic
Display.
You may select time and date formats, the home page for the Operator Interface that you have
defined, and the password used for the Remote Graphic Display. The password is effective in
helping to protect the Operator pages that you have selected to be protected, and, if you choose,
the Setup pages that affect the logic controller state and data.
NOTE: The page defined as the home page cannot be protected by password. Setting a page
protected by password as the home page automatically removes its password protection.
A password, randomly selected, is automatically assigned as a default every time you create a new
application. In addition, the Password protect Setup option is selected by default.
60 EIO0000003321 09/2020
Creating Operator Interface
Step Action
1 Select the F1 Key or F2 Key node in the tree.
2 Select the Action type that you want to associate with the key. For more information, refer to
Action (see page 75).
EIO0000003321 09/2020 61
Creating Operator Interface
Add/Delete a Page
Overview
To build your Operator Interface, you need to create pages in the Display tab by using templates.
Add a Page
This table explains how to add a page in the Operator Interface:
Step Action
1
3 Click Ok to validate.
Result: The page is added in the tree (see page 59).
4 Configure the properties of the page as described in Configure a page (see page 71).
5 Repeat steps 1 to 3 to add another page in your Operator Interface.
62 EIO0000003321 09/2020
Creating Operator Interface
Menu Template
A menu page allows the user to navigate between several pages.
The user can press Select (R1) button to display the selected page.
To configure a menu page:
Step Action
1 Select the Elements node in the tree.
2 Enter the text to display.
3 Select a Destination page.
4 Click Add.
5 Repeat steps 2 to 4 to configure other destination pages. You can add a maximum of 30
elements to the page.
6 Configure the R2, R3, and R4 Key assignments (see page 73).
TMH2GDB example:
EIO0000003321 09/2020 63
Creating Operator Interface
Monitor Template
A monitor page allows the user to monitor memory or I/O variables.
If the Write access is activated, the user can press Edit (R1) button to modify the selected variable
value.
To configure the monitor page:
Step Action
1 Select the Elements node in the tree.
2 Enter the text to display.
3 Enter the variable to monitor.
Refer to the available variable type (see page 72) or refer to the text that is displayed when the
pointer is on Variable.
4 Click Add.
5 On the created line, activate the Write access check box to allow the user to modify the variable
value.
6 Repeat steps 2 to 5 to configure other variables to monitor. You can add a maximum of 30
elements to the page.
7 Configure the R2, R3, and R4 Key assignments (see page 73).
TMH2GDB view:
64 EIO0000003321 09/2020
Creating Operator Interface
Step Action
1 Select the Elements node in the tree.
2 Enter the variable to control.
Refer to the available variable type (see page 72) or refer to the text that is displayed when the
pointer is on Variable.
3 Enter the Text when value is TRUE.
4 Enter the Text when value is FALSE.
5 Click Add.
6 On the created line, activate the Write access check box to allow the user to modify the variable
value.
7 Repeat steps 2 to 6 to configure other variables to monitor. You can add a maximum of 30
elements to the page.
8 Configure the R3 and R4 Key assignments (see page 73).
TMH2GDB view:
EIO0000003321 09/2020 65
Creating Operator Interface
Bargraph Template
A bargraph page allows the user to control a memory or I/O variable value with a bargraph
representation of the variable value.
If the Write access is activated, the user can press Edit (R1) button to change the value.
To configure the bargraph page:
Step Action
1 Select the Elements node in the tree.
2 Enter the variable to control.
Refer to the available variable type (see page 72) or refer to the text that is displayed when the
pointer is on Variable.
3 Enter the Unit.
4 Enter the Minimum scale value.
5 Enter the Maximum scale value.
6 Activate the Write access check box to allow the user to modify the variable value.
7 Configure the R2, R3, and R4 Key assignments (see page 73).
TMH2GDB view:
66 EIO0000003321 09/2020
Creating Operator Interface
Step Action
1 Select the Elements node in the tree.
2 Enter the variable to control.
Refer to the available variable type (see page 72) or refer to the text that is displayed when the
pointer is on Variable.
3 Enter the Unit.
4 Enter the Minimum scale value.
5 Enter the Maximum scale value.
6 Activate the Write access check box to allow the user to modify the variable value.
7 Repeat steps 2 to 6 to configure the second variable. You can add a maximum of 30 elements
to the page.
8 Configure the R3 and R4 Key assignments (see page 73).
TMH2GDB view:
EIO0000003321 09/2020 67
Creating Operator Interface
VU Meter Template
A VU meter page allows the user to control a memory or I/O variable value with a VU meter
representation of the variable value.
If the Write access is activated, the user can press Edit (R1) button to change the value.
To configure the VU meter page:
Step Action
1 Select the Elements node in the tree.
2 Enter the variable to control.
Refer to the available variable type (see page 72) or refer to the text that is displayed when the
pointer is on Variable.
3 Enter the Unit.
4 Enter the Minimum scale value.
5 Enter the Maximum scale value.
6 Activate the Write access check box to allow the user to modify the variable value.
7 Configure the R2, R3, and R4 Key assignments (see page 73).
68 EIO0000003321 09/2020
Creating Operator Interface
TMH2GDB view:
Step Action
1 Select the Elements node in the tree.
2 Enter the variable to control.
Refer to the available variable type (see page 72) or refer to the text that is displayed when the
pointer is on Variable.
3 Enter the Text when value is TRUE.
4 Enter the Text when value is FALSE.
5 Click Add.
6 On the created line, activate the Write access check box to allow the user to modify the variable
value.
7 Repeat steps 2 to 6 to configure other variables to control. You can add a maximum of 30
elements to the page.
8 Configure the R2, R3, and R4 Key assignments (see page 73).
EIO0000003321 09/2020 69
Creating Operator Interface
TMH2GDB view:
Delete a Page
This table explains how to delete a page in the Display tab:
Step Action
1 Click the page that you want to delete under the Operator Interface node in the tree.
2
Click the (Delete Page) button, or right-click and choose Delete page.
Result: A confirmation window appears.
3 Click Yes.
Result: The page is deleted.
70 EIO0000003321 09/2020
Creating Operator Interface
Configure a Page
Overview
In the tree, the added page is represented as follows:
Page ID
Elements
R1 key (if available)
R2 key (if available)
R3 key
R4 key (if available)
Page Properties
This procedure explains how to define the Page properties:
The Page index displayed is automatically generated by EcoStruxure Machine Expert - Basic and
can be written in a user program to display the page, or read in a user program to detect the page
currently being displayed.
For more information, refer to system word (%SW184) description (see Modicon M221, Logic
Controller, Programming Guide).
EIO0000003321 09/2020 71
Creating Operator Interface
Elements
The configuration of elements depends on the template.
Enter customized text and/or appropriate values according to each template. For more information,
refer to Template Pages (see page 62).
You can add a maximum of 30 elements to a page.
This table describes the object types that can be entered in the Variable, Unit, Minimum, and
Maximum fields for the template:
%I %Q %IW %QW %IWS %QWS %M or %S %MW %KW %MD %SW Numeric Text
%MWi. value
Xk
Variable/Variable1
Monitor x x x x x x x x x x x x – –
Control x x – – – – x x – – – – – –
table
Toggle x x – – – – x x – – – – – –
Control
table
Bargraph – – x x – – – – x – x x – –
Double – – x x – – – – x – x x – –
Bargraph
VU – – x x – – – – x – x x – –
meter
Variable/Variable2
Double – – x x – – – – x – x x – –
Bargraph
Unit
Bargraph – – – – – – – – – – – – – x
Double – – – – – – – – – – – – – x
Bargraph
VU – – – – – – – – – – – – – x
meter
72 EIO0000003321 09/2020
Creating Operator Interface
%I %Q %IW %QW %IWS %QWS %M or %S %MW %KW %MD %SW Numeric Text
%MWi. value
Xk
Minimum/Maximum
Bargraph – – – – – – – – – – – – x –
Double – – – – – – – – – – – – x –
Bargraph
VU – – – – – – – – – – – – x –
meter
Fill in the fields following the rules described in Language Objects (see EcoStruxure Machine
Expert - Basic, Generic Functions Library Guide).
Step Action
1 Select the key node in the tree.
2 Select the Action type that you want to associate with the key. For more information, refer to
action (see page 75).
3 You can optionally rename the default label that is displayed above the corresponding key of the
Remote Graphic Display. To do so, double-click the node or right-click and choose Rename.
NOTE: The templates have a key configured by default to go to the Alarm View page. You can
choose to change the default action and the label of this key.
EIO0000003321 09/2020 73
Creating Operator Interface
Export/Import a Page
Overview
Any page of the Operator Interface can be:
Exported to the PC
Imported from the PC
Export a Page
Import a Page
74 EIO0000003321 09/2020
Creating Operator Interface
Actions
Overview
An action can be associated to some keys:
R1, R2, R3, or R4 Key (when available) for each page. Refer to R1, R2, R3, and R4 Key
Assignments (see page 73).
F1 Key or F2 Key for all the pages. Refer to F1 and F2 Key Assignments (see page 61).
Defining Actions
There are two types of actions:
Function
Navigation
Function
Forcing input and output values in a running logic controller can have serious consequences to the
operation of a machine or process. Only those who understand the implications in the controlling
logic, and who understand the consequences of forced I/O on the machine or process, should
attempt to use this function.
WARNING
UNINTENDED EQUIPMENT OPERATION
You must have prior knowledge of the process and the controlled equipment before attempting
to force logic controller physical inputs/outputs, or writing values to logic controller memory
locations.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003321 09/2020 75
Creating Operator Interface
%I %Q %IW %QW %IWS %QWS %M or %S %MW %KW %MD %SW Nu- Text
%MWi. meric
Xk value
Variable
WRITE_ – x – x – – x x x – x x – –
VALUE
FORCE x x – – – – – – – – – – – –
UNFORCE x x – – – – – – – – – – – –
INCREMENT – – – x – – – – x – x – – –
NOT – x – – – – x x – – – – – –
Value
WRITE_ x x x x x x x x x x x x x –
VALUE
Increment Step
INCREMENT – – – – – – – – x – – – x –
Minimum/Maximum
INCREMENT – – – – – – – – – – – – x –
Fill in the fields following the rules described in the part Language Objects (see EcoStruxure
Machine Expert - Basic, Generic Functions Library Guide).
Navigation
The Navigation action allows you to go to another page.
In a dropdown list, you can choose a Destination page that corresponds to:
Any page defined in your Operator Interface
A page from the Setup
76 EIO0000003321 09/2020
Creating Operator Interface
Alarm Definition
Overview
The Alarm View page allows you to define a customized set of alarm messages associated with
memory or I/O bits. The text of the alarm is then displayed on the Remote Graphic Display when
a rising edge of the associated bit is detected. You can define a maximum of 20 alarm messages.
NOTE: Alarms are not saved when the controller goes through a power cycle.
For more information on the alarm in the Remote Graphic Display, refer to the Alarm Menu
(see page 49).
Alarms have to be first configured in the Alarm View > Elements page of the Display tab in
EcoStruxure Machine Expert - Basic.
Alarm Configuration
This graphic presents the Alarm View > Elements page of the Display tab:
Fill in the field following the rules described in the part Language Objects (see EcoStruxure
Machine Expert - Basic, Generic Functions Library Guide).
EIO0000003321 09/2020 77
Creating Operator Interface
78 EIO0000003321 09/2020
Modicon TMH2GDB
Glossary
EIO0000003321 09/2020
Glossary
!
%I
According to the IEC standard, %I represents an input bit (for example, a language object of type
digital IN).
%IW
According to the IEC standard, %IW represents an input word register (for example, a language
object of type analog IN).
%KW
According to the IEC standard, %KW represents a constant word.
%MW
According to the IEC standard, %MW represents a memory word register (for example, a language
object of type memory word).
%Q
According to the IEC standard, %Q represents an output bit (for example, a language object of type
digital OUT).
%QW
According to the IEC standard, %QW represents an output word register (for example, a language
object of type analog OUT).
%S
According to the IEC standard, %S represents a system bit.
%SW
According to the IEC standard, %SW represents a system word.
B
Boot application
(boot application) The binary file that contains the application. Usually, it is stored in the controller
and allows the controller to boot on the application that the user has generated.
D
DWORD
(double word) Encoded in 32-bit format.
EIO0000003321 09/2020 79
Glossary
E
EN
EN identifies one of many European standards maintained by CEN (European Committee for
Standardization), CENELEC (European Committee for Electrotechnical Standardization), or ETSI
(European Telecommunications Standards Institute).
Ethernet
A physical and data link layer technology for LANs, also known as IEEE 802.3.
I
I/O
(input/output)
ID
(identifier/identification)
IEC
(international electrotechnical commission) A non-profit and non-governmental international
standards organization that prepares and publishes international standards for electrical,
electronic, and related technologies.
IP
(Internet protocol Part of the TCP/IP protocol family that tracks the Internet addresses of devices,
routes outgoing messages, and recognizes incoming messages.
M
master task
A processor task that is run through its programming software. The master task has 2 sections:
IN: Inputs are copied to the IN section before execution of the master task.
OUT: Outputs are copied to the OUT section after execution of the master task.
ms
(millisecond)
R
RJ45
A standard type of 8-pin connector for network cables defined for Ethernet.
RS-485
A standard type of serial communication bus, based on 2 wires (also known as EIA RS-485).
80 EIO0000003321 09/2020
Glossary
W
WORD
A type encoded in a 16-bit format.
EIO0000003321 09/2020 81
Glossary
82 EIO0000003321 09/2020
Modicon TMH2GDB
Index
EIO0000003321 09/2020
Index
A E
action electromagnetic susceptibility, 17
definition, 75 enclosure requirements, 16
function, 75 environmental characteristics, 16
key assignments, 61, 73
navigation, 76
object types, 76 F
adding/deleting pages in operator interface, function, 75
62 object types, 76
alarm
alarm reset, 50
configuration, 77 G
alarm history, 49 general properties, 60
alarm view, 49 graphic screen, 38
alarms, defining, 77 grounding, 32
B H
bargraph templates, 66 home page, 38
C K
certifications and standards, 18 keys, assigning in operator interface, 75
clearances, 24
connection, 29
control table templates, 65 M
menu templates, 63
monitor templates, 64
D mounting, 26
description
display, 15
physical, 14 O
system, 14 object types, 52
dimensions, 24 operating interface
display tab creating, 55
button description, 59 operator interface
prerequisite, 56 adding/deleting pages in, 62
set properties, 60 assigning keys in, 75
tree description, 59 defining alarms in, 77
double bargraph templates, 67
EIO0000003321 09/2020 83
Index
P U
page updating the Remote Graphic Display firm-
add, 62 ware, 35
configuring, 71
deleting, 70
edit, 46 V
export, 74 variable
home, 38 add, 52
import, 74 delete, 52
properties, 71 edit, 53, 53, 53, 54
password VU meter templates, 68
management, 41
password-protecting the Remote Graphic
Display, 41
pin assignment, 32
properties, general, 60
R
Remote Graphic Display firmware, updating,
35
S
serial line configuration, 56
setup menus, 43
T
template
elements, 72
TMH2GDB
connecting the Remote Graphic Display,
29
creating an operator interface for the, 55
general properties of, 60
operator interface, adding/deleting pages
in, 62
password-protecting the Remote Graphic
Display, 41
setup menus, 43
using the Remote Graphic Display, 37
toggle control table template, 69
84 EIO0000003321 09/2020
Modicon TMC2
EIO0000003329 12/2018
Modicon TMC2
Cartridges
Programming Guide
12/2018
EIO0000003329.00
www.schneider-electric.com
The information provided in this documentation contains general descriptions and/or technical
characteristics of the performance of the products contained herein. This documentation is not
intended as a substitute for and is not to be used for determining suitability or reliability of these
products for specific user applications. It is the duty of any such user or integrator to perform the
appropriate and complete risk analysis, evaluation and testing of the products with respect to the
relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or
subsidiaries shall be responsible or liable for misuse of the information contained herein. If you
have any suggestions for improvements or amendments or have found errors in this publication,
please notify us.
You agree not to reproduce, other than for your own personal, noncommercial use, all or part of
this document on any medium whatsoever without permission of Schneider Electric, given in
writing. You also agree not to establish any hypertext links to this document or its content.
Schneider Electric does not grant any right or license for the personal and noncommercial use of
the document or its content, except for a non-exclusive license to consult it on an "as is" basis, at
your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when installing and
using this product. For reasons of safety and to help ensure compliance with documented system
data, only the manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant
instructions must be followed.
Failure to use Schneider Electric software or approved software with our hardware products may
result in injury, harm, or improper operating results.
Failure to observe this information can result in injury or equipment damage.
© 2018 Schneider Electric. All rights reserved.
2 EIO0000003329 12/2018
Table of Contents
Safety Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1 I/O Configuration General Information . . . . . . . . . . . . . . 9
I/O Configuration General Practices . . . . . . . . . . . . . . . . . . . . . . . . . . 10
General Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Using Cartridges in a Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Configuring Cartridges. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Chapter 2 TMC2 Standard Cartridges Configuration . . . . . . . . . . . 15
TMC2AI2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
TMC2TI2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
TMC2AQ2V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
TMC2AQ2C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
TMC2SL1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Chapter 3 TMC2 Application Cartridges Configuration . . . . . . . . . . 29
TMC2HOIS01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
TMC2PACK01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
TMC2CONV01 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Chapter 4 TMC2 Analog Cartridge Diagnostics . . . . . . . . . . . . . . . 39
TMC2 Analog Cartridge Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Index ......................................... 41
EIO0000003329 12/2018 3
4 EIO0000003329 12/2018
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with the device
before trying to install, operate, service, or maintain it. The following special messages may appear
throughout this documentation or on the equipment to warn of potential hazards or to call attention
to information that clarifies or simplifies a procedure.
EIO0000003329 12/2018 5
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by qualified
personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of
the use of this material.
A qualified person is one who has skills and knowledge related to the construction and operation
of electrical equipment and its installation, and has received safety training to recognize and avoid
the hazards involved.
6 EIO0000003329 12/2018
About the Book
At a Glance
Document Scope
This document describes the software configuration of the TMC2 cartridges for logic controllers
supported by EcoStruxure Machine Expert – Basic. For further information, refer to the separate
documents provided in the EcoStruxure Machine Expert – Basic online help.
Validity Note
This document has been updated for the release of EcoStruxureTM Machine Expert - Basic V1.0.
Related Documents
EIO0000003329 12/2018 7
Title of Documentation Reference Number
Modicon TMC2 Cartridges- Hardware Guide EIO0000003337 (ENG)
EIO0000003338 (FRA)
EIO0000003339 (GER)
EIO0000003340 (SPA)
EIO0000003341 (ITA)
EIO0000003342 (CHS)
EIO0000003343 (POR)
EIO0000003344 (TUR)
You can download these technical publications and other technical information from our website
at https://www.schneider-electric.com/en/download
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths
and, for certain critical control functions, provide a means to achieve a safe state during and
after a path failure. Examples of critical control functions are emergency stop and overtravel
stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the
implications of unanticipated transmission delays or failures of the link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest
edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
8 EIO0000003329 12/2018
Modicon TMC2
I/O Configuration General Information
EIO0000003329 12/2018
Chapter 1
I/O Configuration General Information
Introduction
This chapter provides general information to help you configure TMC2 cartridges in EcoStruxure
Machine Expert – Basic.
EIO0000003329 12/2018 9
I/O Configuration General Information
WARNING
UNINTENDED EQUIPMENT OPERATION
Update the configuration of your program each time you add or delete any type of I/O expansions
on your I/O bus, or you add or delete any devices on your field bus.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
10 EIO0000003329 12/2018
I/O Configuration General Information
General Description
Introduction
The TMC2 cartridges connect to Modicon TM221C Logic Controllers to increase the number of
I/Os or serial lines available on the controller.
Cartridges can be either:
Analog cartridges
Serial line cartridges
Cartridge Features
The following table describes the TMC2 cartridge features:
Reference Description
TMC2AI2 TMC2 cartridge with 2 analog voltage or current inputs (0...10 V, 0...20 mA, 4...20 mA),
(see page 16) 12 bits
TMC2TI2 TMC2 cartridge with 2 analog temperature inputs (thermocouple, RTD), 14 bits
(see page 18)
TMC2AQ2V TMC2 cartridge with 2 analog voltage outputs (0...10 V), 12 bits
(see page 21)
TMC2AQ2C TMC2 cartridge with 2 analog current outputs (4...20 mA), 12 bits
(see page 22)
TMC2SL1 TMC2 cartridge with 1 serial line (RS232 or RS485)
(see page 23)
TMC2HOIS01 TMC2 application cartridge with 2 analog voltage or current inputs for hoisting load
(see page 30) cells
TMC2PACK01 TMC2 application cartridge with 2 analog voltage or current inputs for packaging
(see page 32)
TMC2CONV01 TMC2 application cartridge with 1 serial line for conveying
(see page 34)
EIO0000003329 12/2018 11
I/O Configuration General Information
Adding a Cartridge
TMC2 cartridges can be connected to Modicon TM221C Logic Controller with 1 or 2 cartridge slots.
NOTE: It is not possible to add 2 serial line cartridges to the same logic controller. For more
information on cartridge compatibility with specific controllers, refer to the Hardware Guide of your
logic controller.
The following steps explain how to add a cartridge to a logic controller in an EcoStruxure Machine
Expert - Basic configuration:
Removing a Cartridge
To remove a cartridge from a controller, either click on the cartridge and press the Delete key, or
right-click on the cartridge and click Remove on the contextual menu that appears.
If the cartridge contains at least one address being used in the user logic of the program, a
message appears asking you to confirm the operation. Click Yes to continue.
12 EIO0000003329 12/2018
I/O Configuration General Information
Configuring Cartridges
Overview
You can configure cartridges on:
The Configuration tab
The Programming tab
Step Description
1 Select the Configuration tab.
2 For analog cartridges, select Cartridge 1 or Cartridge 2 in the device tree on the left of the
EcoStruxure Machine Expert - Basic window then click on the Analog inputs or Analog
outputs subnode.
For serial line cartridges, select SL2 (Serial line) in the device tree on the left of the
EcoStruxure Machine Expert - Basic window
The properties of the selected cartridge are displayed.
3 Refer to TMC2 Standard Cartridges Configuration (see page 15) or TMC2 Application
Cartridges Configuration (see page 29) for configuration details.
EIO0000003329 12/2018 13
I/O Configuration General Information
Step Description
1 Select the Programming tab.
2 Click Tools → I/O objects → Analog inputs or Tools → I/O objects → Analog outputs
A list of I/O addresses appears in the lower central area of the EcoStruxure Machine Expert - Basic
window.
3 Scroll down to the range of addresses corresponding to the cartridge you are configuring. The
following properties are displayed:
Used. Whether the address is being used in your program
Address. The analog input or analog output address. Refer to I/O Addressing (see EcoStruxure
Machine Expert - Basic, Generic Functions Library Guide) for details.
Symbol. An optional symbol associated with the address.
Double-click in the Symbol column and type the name of a symbol to associate with this input.
If a symbol already exists, right-click in the Symbol column and choose Search and Replace to
find and replace occurrences of this symbol in the application.
Comment. An optional comment associated with the address.
Double-click in the Comment column and type a comment to associate with this address.
14 EIO0000003329 12/2018
Modicon TMC2
TMC2 Standard Cartridges Configuration
EIO0000003329 12/2018
Chapter 2
TMC2 Standard Cartridges Configuration
Introduction
This chapter describes how to configure the TMC2 standard cartridges.
EIO0000003329 12/2018 15
TMC2 Standard Cartridges Configuration
TMC2AI2
Introduction
The TMC2AI2 is a standard cartridge featuring 2 analog voltage or current input channels with 12-
bit resolution.
The channel input types are:
0...10 V
0...20 mA
4...20 mA
For further hardware information, refer to TMC2AI2 (see Modicon TMC2, Cartridges, Hardware
Guide).
If you have physically wired the analog channel for a voltage signal and you configure the channel
for a current signal in EcoStruxure Machine Expert - Basic, you may damage the analog circuit.
NOTICE
INOPERABLE EQUIPMENT
Verify that the physical wiring of the analog circuit is compatible with the software configuration
for the analog channel.
Failure to follow these instructions can result in equipment damage.
16 EIO0000003329 12/2018
TMC2 Standard Cartridges Configuration
EIO0000003329 12/2018 17
TMC2 Standard Cartridges Configuration
TMC2TI2
Introduction
The TMC2TI2 is a standard cartridge featuring 2 analog input channels with 14-bit resolution.
The channel input types are:
K Thermocouple
J Thermocouple
R Thermocouple
S Thermocouple
B Thermocouple
E Thermocouple
T Thermocouple
N Thermocouple
C Thermocouple
PT100
PT1000
NI100
NI1000
For further hardware information, refer to TMC2TI2 (see Modicon TMC2, Cartridges, Hardware
Guide).
If you have physically wired the analog channel for a voltage signal and you configure the channel
for a current signal in EcoStruxure Machine Expert - Basic, you may damage the analog circuit.
NOTICE
INOPERABLE EQUIPMENT
Verify that the physical wiring of the analog circuit is compatible with the software configuration
for the analog channel.
Failure to follow these instructions can result in equipment damage.
18 EIO0000003329 12/2018
TMC2 Standard Cartridges Configuration
EIO0000003329 12/2018 19
TMC2 Standard Cartridges Configuration
20 EIO0000003329 12/2018
TMC2 Standard Cartridges Configuration
TMC2AQ2V
Introduction
The TMC2AQ2V is a standard cartridge featuring 2 analog voltage output channels with 12-bit
resolution.
The channel output types are:
0...10 V
For further hardware information, refer to TMC2AQ2V (see Modicon TMC2, Cartridges, Hardware
Guide).
If you have physically wired the analog channel for a voltage signal and you configure the channel
for a current signal in EcoStruxure Machine Expert - Basic, you may damage the analog circuit.
NOTICE
INOPERABLE EQUIPMENT
Verify that the physical wiring of the analog circuit is compatible with the software configuration
for the analog channel.
Failure to follow these instructions can result in equipment damage.
EIO0000003329 12/2018 21
TMC2 Standard Cartridges Configuration
TMC2AQ2C
Introduction
The TMC2AQ2C is a standard cartridge featuring 2 analog current output channels with 12-bit
resolution.
The channel output types are:
4...20 mA
For further hardware information, refer to TMC2AQ2C (see Modicon TMC2, Cartridges, Hardware
Guide).
If you have physically wired the analog channel for a voltage signal and you configure the channel
for a current signal in EcoStruxure Machine Expert - Basic, you may damage the analog circuit.
NOTICE
INOPERABLE EQUIPMENT
Verify that the physical wiring of the analog circuit is compatible with the software configuration
for the analog channel.
Failure to follow these instructions can result in equipment damage.
22 EIO0000003329 12/2018
TMC2 Standard Cartridges Configuration
TMC2SL1
Introduction
The TMC2SL1 is a standard cartridge module featuring 1 serial line.
For further hardware information, refer to TMC2SL1 (see Modicon TMC2, Cartridges, Hardware
Guide).
The serial line can be configured for any one of the following protocols:
Modbus RTU
Modbus ASCII
ASCII
You can configure both physical and protocol settings for the serial line. Serial lines are configured
for the Modbus RTU protocol by default.
NOTE: You can only add one serial line cartridge to the controller.
EIO0000003329 12/2018 23
TMC2 Standard Cartridges Configuration
Step Action
1 Click the SL2 (Serial line) node in the Hardware Tree to display the serial line properties.
This figure shows the properties of the serial line for Modbus RTU and Modbus ASCII protocols:
This figure shows the properties of the serial line for ASCII protocol:
24 EIO0000003329 12/2018
TMC2 Standard Cartridges Configuration
EIO0000003329 12/2018 25
TMC2 Standard Cartridges Configuration
26 EIO0000003329 12/2018
TMC2 Standard Cartridges Configuration
EIO0000003329 12/2018 27
TMC2 Standard Cartridges Configuration
28 EIO0000003329 12/2018
Modicon TMC2
TMC2 Application Cartridges Configuration
EIO0000003329 12/2018
Chapter 3
TMC2 Application Cartridges Configuration
Introduction
This chapter describes how to configure the TMC2 application cartridges.
EIO0000003329 12/2018 29
TMC2 Application Cartridges Configuration
TMC2HOIS01
Introduction
The TMC2HOIS01 is an application cartridge module for hoisting, featuring 2 analog voltage or
current input channels with 12-bit resolution.
The channel input types are:
0...10 V
0...20 mA
4...20 mA
For further hardware information, refer to TMC2HOIS01 (see Modicon TMC2, Cartridges,
Hardware Guide).
If you have physically wired the analog channel for a voltage signal and you configure the channel
for a current signal in EcoStruxure Machine Expert - Basic, you may damage the analog circuit.
NOTICE
INOPERABLE EQUIPMENT
Verify that the physical wiring of the analog circuit is compatible with the software configuration
for the analog channel.
Failure to follow these instructions can result in equipment damage.
30 EIO0000003329 12/2018
TMC2 Application Cartridges Configuration
EIO0000003329 12/2018 31
TMC2 Application Cartridges Configuration
TMC2PACK01
Introduction
The TMC2PACK01 is an application cartridge module for packaging, featuring 2 analog voltage or
current input channels with 12-bit resolution.
The channel input types are:
0...10 V
0...20 mA
4...20 mA
For further hardware information, refer to TMC2PACK01 (see Modicon TMC2, Cartridges,
Hardware Guide).
If you have physically wired the analog channel for a voltage signal and you configure the channel
for a current signal in EcoStruxure Machine Expert - Basic, you may damage the analog circuit.
NOTICE
INOPERABLE EQUIPMENT
Verify that the physical wiring of the analog circuit is compatible with the software configuration
for the analog channel.
Failure to follow these instructions can result in equipment damage.
32 EIO0000003329 12/2018
TMC2 Application Cartridges Configuration
EIO0000003329 12/2018 33
TMC2 Application Cartridges Configuration
TMC2CONV01
Introduction
The TMC2CONV01 is an application cartridge module featuring 1 serial line for conveying.
For further hardware information, refer to TMC2CONV01 (see Modicon TMC2, Cartridges,
Hardware Guide).
The serial line can be configured for any one of the following protocols:
Modbus RTU
Modbus ASCII
ASCII
You can configure both physical and protocol settings for the serial line. Serial lines are configured
for the Modbus RTU protocol by default.
NOTE: You can only add one serial line cartridge to the controller.
34 EIO0000003329 12/2018
TMC2 Application Cartridges Configuration
Step Action
1 Click the SL2 (Serial line) node in the Hardware Tree to display the serial line properties.
This figure shows the properties of the serial line for Modbus RTU and Modbus ASCII protocols:
This figure shows the properties of the serial line for ASCII protocol:
EIO0000003329 12/2018 35
TMC2 Application Cartridges Configuration
36 EIO0000003329 12/2018
TMC2 Application Cartridges Configuration
EIO0000003329 12/2018 37
TMC2 Application Cartridges Configuration
38 EIO0000003329 12/2018
Modicon TMC2
TMC2 Analog Cartridge Diagnostics
EIO0000003329 12/2018
Chapter 4
TMC2 Analog Cartridge Diagnostics
Introduction
For analog cartridges, the operating status of each I/O channel is given by the objects:
%IWS0.x0y for input channel y of cartridge x
%QWS0.x0y for output channel y of cartridge x
The real-time values of these objects can be read when in online mode, using either an animation
table (see EcoStruxure Machine Expert - Basic, Operating Guide) or the application.
EIO0000003329 12/2018 39
TMC2 Analog Cartridge Diagnostics
40 EIO0000003329 12/2018
Modicon TMC2
Index
EIO0000003329 12/2018
Index
Symbols E
%IWS input channel status, 39 EcoStruxure Machine Expert - Basic
%QWS output channel status, 39 device tree, 12
project, 12
A
analog cartridges, 11 F
application cartridges features
TMC2CONV01, 34 cartridge, 11
TMC2HOIS01, 30
TMC2PACK01, 32
H
hoisting application cartridge, 30
C
cartridge
adding to an EcoStruxure Machine Expert I
- Basic configuration, 12 I/O configuration general information
configuring, 13 general practices, 10
description, 11 input channel status (%IWS), 39
features, 11
removing, 12
replacing, 12 O
comments output channel status (%QWS), 39
displaying, 14
configuring
cartridges, 13 P
conveying application cartridge, 34 packaging application cartridge, 32
programming details
displaying, 14
D
description
cartridge, 11 R
device tree, 12 removing a cartridge, 12
diagnostic bytes (%IWS, %QWS)), 39 replacing
displaying a cartridge, 12
programming details, 14
EIO0000003329 12/2018 41
Index
S
serial line
configuration, 24, 35
introduction, 23, 34
serial line cartridges, 11, 23, 34
symbols, displaying, 14
T
TMC2 analog cartridges
diagnostics, 39
TMC2 analog I/O modules
TMC2AI2, 16
TMC2AQ2C , 22
TMC2AQ2V , 21
TMC2HOIS01, 30
TMC2PACK01, 32
TMC2TI2 , 18
TMC2 cartridges
adding to a configuration , 12
TMC2AI2, 16
TMC2AQ2C, 22
TMC2AQ2V, 21
TMC2CONV01, 34
TMC2HOIS01, 30
TMC2PACK01, 32
TMC2SL1, 23
TMC2TI2, 18
42 EIO0000003329 12/2018
Modicon TMC2
EIO0000003337 12/2018
Modicon TMC2
Cartridges
Hardware Guide
12/2018
EIO0000003337.00
www.schneider-electric.com
The information provided in this documentation contains general descriptions and/or technical
characteristics of the performance of the products contained herein. This documentation is not
intended as a substitute for and is not to be used for determining suitability or reliability of these
products for specific user applications. It is the duty of any such user or integrator to perform the
appropriate and complete risk analysis, evaluation and testing of the products with respect to the
relevant specific application or use thereof. Neither Schneider Electric nor any of its affiliates or
subsidiaries shall be responsible or liable for misuse of the information contained herein. If you
have any suggestions for improvements or amendments or have found errors in this publication,
please notify us.
You agree not to reproduce, other than for your own personal, noncommercial use, all or part of
this document on any medium whatsoever without permission of Schneider Electric, given in
writing. You also agree not to establish any hypertext links to this document or its content.
Schneider Electric does not grant any right or license for the personal and noncommercial use of
the document or its content, except for a non-exclusive license to consult it on an "as is" basis, at
your own risk. All other rights are reserved.
All pertinent state, regional, and local safety regulations must be observed when installing and
using this product. For reasons of safety and to help ensure compliance with documented system
data, only the manufacturer should perform repairs to components.
When devices are used for applications with technical safety requirements, the relevant
instructions must be followed.
Failure to use Schneider Electric software or approved software with our hardware products may
result in injury, harm, or improper operating results.
Failure to observe this information can result in injury or equipment damage.
© 2018 Schneider Electric. All rights reserved.
2 EIO0000003337 12/2018
Table of Contents
Safety Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Part I TMC2 General Overview . . . . . . . . . . . . . . . . . . . . . 13
Chapter 1 TMC2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
General Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Chapter 2 TMC2 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.1 TMC2 General Rules for Implementing . . . . . . . . . . . . . . . . . . . . . . . . 18
Environmental Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Certifications and Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.2 TMC2 Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Installation and Maintenance Requirements . . . . . . . . . . . . . . . . . . . . 22
TMC2 Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.3 TMC2 Electrical Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Wiring Best Practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Grounding the M221 System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Part II TMC2 Standard Cartridges . . . . . . . . . . . . . . . . . . . . 37
Chapter 3 TMC2AI2 Analog Voltage, Current Inputs . . . . . . . . . . . 39
TMC2AI2 Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
TMC2AI2 Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
TMC2AI2 Wiring Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Chapter 4 TMC2TI2 Analog Temperature Inputs . . . . . . . . . . . . . . 45
TMC2TI2 Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
TMC2TI2 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
TMC2TI2 Wiring Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Chapter 5 TMC2AQ2V Analog Voltage Outputs . . . . . . . . . . . . . . . 51
TMC2AQ2V Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
TMC2AQ2V Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
TMC2AQ2V Wiring Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Chapter 6 TMC2AQ2C Analog Current Outputs . . . . . . . . . . . . . . . 57
TMC2AQ2C Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
TMC2AQ2C Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
TMC2AQ2C Wiring Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
EIO0000003337 12/2018 3
Chapter 7 TMC2SL1 Serial Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
TMC2SL1 Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
TMC2SL1 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
TMC2SL1 Wiring Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Part III TMC2 Application Cartridges . . . . . . . . . . . . . . . . . . 69
Chapter 8 TMC2HOIS01 Hoisting . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
TMC2HOIS01 Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
TMC2HOIS01 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
TMC2HOIS01 Wiring Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Chapter 9 TMC2PACK01 Packaging . . . . . . . . . . . . . . . . . . . . . . . . 77
TMC2PACK01 Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
TMC2PACK01 Characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
TMC2PACK01 Wiring Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Chapter 10 TMC2CONV01 Conveying . . . . . . . . . . . . . . . . . . . . . . . . 83
TMC2CONV01 Presentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
TMC2CONV01 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
TMC2CONV01 Wiring Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
4 EIO0000003337 12/2018
Safety Information
Important Information
NOTICE
Read these instructions carefully, and look at the equipment to become familiar with the device
before trying to install, operate, service, or maintain it. The following special messages may appear
throughout this documentation or on the equipment to warn of potential hazards or to call attention
to information that clarifies or simplifies a procedure.
EIO0000003337 12/2018 5
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by qualified
personnel. No responsibility is assumed by Schneider Electric for any consequences arising out of
the use of this material.
A qualified person is one who has skills and knowledge related to the construction and operation
of electrical equipment and its installation, and has received safety training to recognize and avoid
the hazards involved.
6 EIO0000003337 12/2018
About the Book
At a Glance
Document Scope
This guide describes the hardware implementation of TMC2. It provides the parts description,
characteristics, wiring diagrams, and installation details for TMC2.
Validity Note
The information in this manual is applicable only for TMC2 products.
This document has been updated for the release of EcoStruxureTM Machine Expert - Basic V1.0.
For product compliance and environmental information (RoHS, REACH, PEP, EOLI, etc.), go to
www.schneider-electric.com/green-premium.
The technical characteristics of the devices described in the present document also appear online.
To access the information online:
Step Action
1 Go to the Schneider Electric home page www.schneider-electric.com.
2 In the Search box type the reference of a product or the name of a product range.
Do not include blank spaces in the reference or product range.
To get information on grouping similar modules, use asterisks (*).
3 If you entered a reference, go to the Product Datasheets search results and click on the
reference that interests you.
If you entered the name of a product range, go to the Product Ranges search results and click
on the product range that interests you.
4 If more than one reference appears in the Products search results, click on the reference that
interests you.
5 Depending on the size of your screen, you may need to scroll down to see the data sheet.
6 To save or print a data sheet as a .pdf file, click Download XXX product datasheet.
The characteristics that are presented in the present document should be the same as those
characteristics that appear online. In line with our policy of constant improvement, we may revise
content over time to improve clarity and accuracy. If you see a difference between the document
and online information, use the online information as your reference.
EIO0000003337 12/2018 7
Related Documents
You can download these technical publications and other technical information from our website
at https://www.schneider-electric.com/en/download
DANGER
HAZARD OF ELECTRIC SHOCK, EXPLOSION OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires except
under the specific conditions specified in the appropriate hardware guide for this equipment.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
8 EIO0000003337 12/2018
DANGER
POTENTIAL FOR EXPLOSION
Only use this equipment in non-hazardous locations, or in locations that comply with Class I,
Division 2, Groups A, B, C and D.
Do not substitute components which would impair compliance to Class I, Division 2.
Do not connect or disconnect equipment unless power has been removed or the location is
known to be non-hazardous.
Do not use the USB port(s), if so equipped, unless the location is known to be non-hazardous.
Failure to follow these instructions will result in death or serious injury.
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths
and, for certain critical control functions, provide a means to achieve a safe state during and
after a path failure. Examples of critical control functions are emergency stop and overtravel
stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the
implications of unanticipated transmission delays or failures of the link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1
For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest
edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003337 12/2018 9
Terminology Derived from Standards
The technical terms, terminology, symbols and the corresponding descriptions in this manual, or
that appear in or on the products themselves, are generally derived from the terms or definitions
of international standards.
In the area of functional safety systems, drives and general automation, this may include, but is not
limited to, terms such as safety, safety function, safe state, fault, fault reset, malfunction, failure,
error, error message, dangerous, etc.
Among others, these standards include:
Standard Description
EN 61131-2:2007 Programmable controllers, part 2: Equipment requirements and tests.
ISO 13849-1:2008 Safety of machinery: Safety related parts of control systems.
General principles for design.
EN 61496-1:2013 Safety of machinery: Electro-sensitive protective equipment.
Part 1: General requirements and tests.
ISO 12100:2010 Safety of machinery - General principles for design - Risk assessment and risk
reduction
EN 60204-1:2006 Safety of machinery - Electrical equipment of machines - Part 1: General
requirements
EN 1088:2008 Safety of machinery - Interlocking devices associated with guards - Principles
ISO 14119:2013 for design and selection
ISO 13850:2006 Safety of machinery - Emergency stop - Principles for design
EN/IEC 62061:2005 Safety of machinery - Functional safety of safety-related electrical, electronic,
and electronic programmable control systems
IEC 61508-1:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: General requirements.
IEC 61508-2:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Requirements for electrical/electronic/programmable
electronic safety-related systems.
IEC 61508-3:2010 Functional safety of electrical/electronic/programmable electronic safety-
related systems: Software requirements.
IEC 61784-3:2008 Digital data communication for measurement and control: Functional safety
field buses.
2006/42/EC Machinery Directive
2014/30/EU Electromagnetic Compatibility Directive
2014/35/EU Low Voltage Directive
10 EIO0000003337 12/2018
In addition, terms used in the present document may tangentially be used as they are derived from
other standards such as:
Standard Description
IEC 60034 series Rotating electrical machines
IEC 61800 series Adjustable speed electrical power drive systems
IEC 61158 series Digital data communications for measurement and control – Fieldbus for use in
industrial control systems
Finally, the term zone of operation may be used in conjunction with the description of specific
hazards, and is defined as it is for a hazard zone or danger zone in the Machinery Directive
(2006/42/EC) and ISO 12100:2010.
NOTE: The aforementioned standards may or may not apply to the specific products cited in the
present documentation. For more information concerning the individual standards applicable to the
products described herein, see the characteristics tables for those product references.
EIO0000003337 12/2018 11
12 EIO0000003337 12/2018
Modicon TMC2
TMC2 General Overview
EIO0000003337 12/2018
Part I
TMC2 General Overview
EIO0000003337 12/2018 13
TMC2 General Overview
14 EIO0000003337 12/2018
Modicon TMC2
TMC2 Description
EIO0000003337 12/2018
Chapter 1
TMC2 Description
TMC2 Description
General Description
Introduction
The cartridges are designed to be connected to the Modicon TM221C Logic Controller range.
Cartridges Features
The following table describes the TMC2 cartridges features:
Reference Description
TMC2AI2 TMC2 cartridge with 2 analog voltage or current inputs (0...10 V, 0...20 mA, 4...20 mA),
(see page 39) 12 bits
TMC2TI2 TMC2 cartridge with 2 analog temperature inputs (thermocouple, RTD), 14 bits
(see page 45)
TMC2AQ2V TMC2 cartridge with 2 analog voltage outputs (0...10 V), 12 bits
(see page 51)
TMC2AQ2C TMC2 cartridge with 2 analog current outputs (4...20 mA), 12 bits
(see page 57)
TMC2SL1 TMC2 cartridge with 1 serial line (RS232 or RS485)
(see page 63)
TMC2HOIS01 TMC2 application cartridge with 2 analog voltage or current inputs for hoisting load
(see page 71) cells
TMC2PACK01 TMC2 application cartridge with 2 analog voltage or current inputs for packaging
(see page 77)
TMC2CONV01 TMC2 application cartridge with 1 serial line for conveying
(see page 83)
EIO0000003337 12/2018 15
TMC2 Description
NOTICE
ELECTROSTATIC DISCHARGE
Verify that empty cartridge slots have their covers in place before applying power to the
controller.
Do not touch the contacts of the cartridge.
Only handle the cartridge on the housing.
Take the necessary protective measures against electrostatic discharges.
Failure to follow these instructions can result in equipment damage.
16 EIO0000003337 12/2018
Modicon TMC2
TMC2 Installation
EIO0000003337 12/2018
Chapter 2
TMC2 Installation
TMC2 Installation
EIO0000003337 12/2018 17
TMC2 Installation
Section 2.1
TMC2 General Rules for Implementing
18 EIO0000003337 12/2018
TMC2 Installation
Environmental Characteristics
TMC2
TMC2 cartridge environmental characteristics are the same as the Modicon TM221C Logic
Controller (see Modicon M221 Logic Controller, Hardware Guide).
EIO0000003337 12/2018 19
TMC2 Installation
Introduction
The M221 Logic Controllers are designed to conform to the main national and international
standards concerning electronic industrial control devices:
IEC/EN 61131-2
UL 508
The M221 Logic Controllers have obtained the following conformity marks:
CE
CSA (except for TM221C•••U)
EAC
RCM
UL
cCSAus Hazardous Location (except for TM221C•••U)
For product compliance and environmental information (RoHS, REACH, PEP, EOLI, etc.), go to
www.schneider-electric.com/green-premium.
20 EIO0000003337 12/2018
TMC2 Installation
Section 2.2
TMC2 Installation
TMC2 Installation
EIO0000003337 12/2018 21
TMC2 Installation
Before Starting
Read and understand this chapter before beginning the installation of your system.
The use and application of the information contained herein require expertise in the design and
programming of automated control systems. Only you, the user, machine builder or integrator, can
be aware of all the conditions and factors present during installation and setup, operation, and
maintenance of the machine or process, and can therefore determine the automation and
associated equipment and the related safeties and interlocks which can be effectively and properly
used. When selecting automation and control equipment, and any other related equipment or
software, for a particular application, you must also consider any applicable local, regional or
national standards and/or regulations.
Pay particular attention in conforming to any safety information, different electrical requirements,
and normative standards that would apply to your machine or process in the use of this equipment.
Disconnecting Power
All options and modules should be assembled and installed before installing the control system on
a mounting rail, onto a mounting plate or in a panel. Remove the control system from its mounting
rail, mounting plate or panel before disassembling the equipment.
DANGER
HAZARD OF ELECTRIC SHOCK, EXPLOSION OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires except
under the specific conditions specified in the appropriate hardware guide for this equipment.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
22 EIO0000003337 12/2018
TMC2 Installation
Programming Considerations
WARNING
UNINTENDED EQUIPMENT OPERATION
Only use software approved by Schneider Electric for use with this equipment.
Update your application program every time you change the physical hardware configuration.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
Operating Environment
In addition to the Environmental Characteristics, refer to Product Related Information in the
beginning of the present document for important information regarding installation in hazardous
locations for this specific equipment.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Installation Considerations
WARNING
UNINTENDED EQUIPMENT OPERATION
Use appropriate safety interlocks where personnel and/or equipment hazards exist.
Install and operate this equipment in an enclosure appropriately rated for its intended
environment and secured by a keyed or tooled locking mechanism.
Use the sensor and actuator power supplies only for supplying power to the sensors or
actuators connected to the module.
Power line and output circuits must be wired and fused in compliance with local and national
regulatory requirements for the rated current and voltage of the particular equipment.
Do not use this equipment in safety-critical machine functions unless the equipment is
otherwise designated as functional safety equipment and conforming to applicable regulations
and standards.
Do not disassemble, repair, or modify this equipment.
Do not connect any wiring to reserved, unused connections, or to connections designated as
No Connection (N.C.).
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: JDYX2 or JDYX8 fuse types are UL-recognized and CSA approved.
EIO0000003337 12/2018 23
TMC2 Installation
TMC2 Installation
Installation Considerations
The TMC2 cartridge is designed to operate within the same temperature range as the controllers,
including the controller derating for extended temperature operation, and temperature restrictions
associated with the mounting positions. Refer to the controller mounting position and clearance
(see Modicon M221 Logic Controller, Hardware Guide) for more information.
Installation
DANGER
ELECTRIC SHOCK OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Use protective gloves when installing or removing the cartridges.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
NOTICE
ELECTROSTATIC DISCHARGE
Verify that empty cartridge slots have their covers in place before applying power to the
controller.
Do not touch the contacts of the cartridge.
Only handle the cartridge on the housing.
Take the necessary protective measures against electrostatic discharges.
Failure to follow these instructions can result in equipment damage.
24 EIO0000003337 12/2018
TMC2 Installation
The following table describes the different steps to install a TMC2 cartridge on the controller:
Step Action
1 Disconnect all power from all equipment prior to removing any covers or installing a cartridge.
2 Remove the cartridge from the packaging.
3 Press the locking clip on the top of the cartridge cover with an insulated screwdriver and pull up the
cover gently.
EIO0000003337 12/2018 25
TMC2 Installation
Step Action
5 Place the cartridge in the slot on the controller.
26 EIO0000003337 12/2018
TMC2 Installation
De-installation
DANGER
ELECTRIC SHOCK OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Use protective gloves when installing or removing the cartridges.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
NOTICE
ELECTROSTATIC DISCHARGE
Verify that empty cartridge slots have their covers in place before applying power to the
controller.
Do not touch the contacts of the cartridge.
Only handle the cartridge on the housing.
Take the necessary protective measures against electrostatic discharges.
Failure to follow these instructions can result in equipment damage.
EIO0000003337 12/2018 27
TMC2 Installation
The following table describes the different steps to de-install a TMC2 cartridge from the controller:
Step Action
1 Disconnect all power from all equipment, including connected devices, prior to removing a cartridge.
2 Press the locking clip on the top of the cartridge with an insulated screwdriver and pull up the
cartridge gently.
28 EIO0000003337 12/2018
TMC2 Installation
Step Action
4 Place the cartridge slot cover in the slot on the controller.
5 Push the cartridge slot cover into the slot until it clicks.
EIO0000003337 12/2018 29
TMC2 Installation
Section 2.3
TMC2 Electrical Requirements
30 EIO0000003337 12/2018
TMC2 Installation
Overview
This section describes the wiring guidelines and associated best practices to be respected when
using the M221 Logic Controller system.
DANGER
HAZARD OF ELECTRIC SHOCK, EXPLOSION OR ARC FLASH
Disconnect all power from all equipment including connected devices prior to removing any
covers or doors, or installing or removing any accessories, hardware, cables, or wires except
under the specific conditions specified in the appropriate hardware guide for this equipment.
Always use a properly rated voltage sensing device to confirm the power is off where and when
indicated.
Replace and secure all covers, accessories, hardware, cables, and wires and confirm that a
proper ground connection exists before applying power to the unit.
Use only the specified voltage when operating this equipment and any associated products.
Failure to follow these instructions will result in death or serious injury.
WARNING
LOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes of control paths
and, for certain critical control functions, provide a means to achieve a safe state during and
after a path failure. Examples of critical control functions are emergency stop and overtravel
stop, power outage and restart.
Separate or redundant control paths must be provided for critical control functions.
System control paths may include communication links. Consideration must be given to the
implications of unanticipated transmission delays or failures of the link.
Observe all accident prevention regulations and local safety guidelines.1
Each implementation of this equipment must be individually and thoroughly tested for proper
operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1
For additional information, refer to NEMA ICS 1.1 (latest edition), "Safety Guidelines for the
Application, Installation, and Maintenance of Solid State Control" and to NEMA ICS 7.1 (latest
edition), "Safety Standards for Construction and Guide for Selection, Installation and Operation of
Adjustable-Speed Drive Systems" or their equivalent governing your particular location.
EIO0000003337 12/2018 31
TMC2 Installation
Wiring Guidelines
The following rules must be applied when wiring a M221 Logic Controller system:
I/O and communication wiring must be kept separate from the power wiring. Route these 2 types
of wiring in separate cable ducting.
Verify that the operating conditions and environment are within the specification values.
Use proper wire sizes to meet voltage and current requirements.
Use copper conductors (required).
Use twisted pair, shielded cables for analog, and/or fast I/O.
Use twisted pair, shielded cables for networks, and fieldbus.
Use shielded, properly grounded cables for all analog and high-speed inputs or outputs and
communication connections. If you do not use shielded cable for these connections,
electromagnetic interference can cause signal degradation. Degraded signals can cause the
controller or attached modules and equipment to perform in an unintended manner.
WARNING
UNINTENDED EQUIPMENT OPERATION
Use shielded cables for all fast I/O, analog I/O and communication signals.
Ground cable shields for all analog I/O, fast I/O and communication signals at a single point1.
Route communication and I/O cables separately from power cables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1Multipoint
grounding is permissible if connections are made to an equipotential ground plane
dimensioned to help avoid cable shield damage in the event of power system short-circuit currents.
For more details, refer to Grounding Shielded Cables (see page 34).
NOTE: Surface temperatures may exceed 60 °C (140 °F). To conform to IEC 61010 standards,
route primary wiring (wires connected to power mains) separately and apart from secondary wiring
(extra low voltage wiring coming from intervening power sources). If that is not possible, double
insulation is required such as conduit or cable gains.
The cartridge connectors are not removable.
NOTICE
INOPERABLE EQUIPMENT
Do not attempt to remove the connectors from the cartridge.
Failure to follow these instructions can result in equipment damage.
32 EIO0000003337 12/2018
TMC2 Installation
DANGER
LOOSE WIRING CAUSES ELECTRIC SHOCK
Tighten connections in conformance with the torque specifications.
Failure to follow these instructions will result in death or serious injury.
DANGER
FIRE HAZARD
Use only the correct wire sizes for the current capacity of the I/O channels and power supplies.
For relay output (2 A) wiring, use conductors of at least 0.5 mm2 (AWG 20) with a temperature
rating of at least 80 °C (176 °F).
For common conductors of relay output wiring (7 A), or relay output wiring greater than 2 A,
use conductors of at least 1.0 mm2 (AWG 16) with a temperature rating of at least 80 °C
(176 °F).
Failure to follow these instructions will result in death or serious injury.
EIO0000003337 12/2018 33
TMC2 Installation
Overview
To help minimize the effects of electromagnetic interference, cables carrying the fast I/O, analog
I/O, and field bus communication signals must be shielded.
WARNING
UNINTENDED EQUIPMENT OPERATION
Use shielded cables for all fast I/O, analog I/O, and communication signals.
Ground cable shields for all fast I/O, analog I/O, and communication signals at a single point1.
Route communications and I/O cables separately from power cables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
1Multipoint
grounding is permissible if connections are made to an equipotential ground plane
dimensioned to help avoid cable shield damage in the event of power system short-circuit currents.
The use of shielded cables requires compliance with the following wiring rules:
For protective ground connections (PE), metal conduit or ducting can be used for part of the
shielding length, provided there is no break in the continuity of the ground connections. For
functional ground (FE), the shielding is intended to attenuate electromagnetic interference and
the shielding must be continuous for the length of the cable. If the purpose is both functional and
protective, as is often the case for communication cables, the cable must have continuous
shielding.
Wherever possible, keep cables carrying one type of signal separate from the cables carrying
other types of signals or power.
34 EIO0000003337 12/2018
TMC2 Installation
DANGER
ELECTRIC SHOCK
Make sure that Modbus cables are securely connected to the protective ground (PE).
Failure to follow these instructions will result in death or serious injury.
Step Description
1 Strip the shielding for a length of
15 mm (0.59 in.)
NOTE: The shielding must be clamped securely to the conductive backplane to ensure a good
contact.
EIO0000003337 12/2018 35
TMC2 Installation
Step Description
1 Install the Grounding Bar directly on the conductive
backplane below the M221 Logic Controller system
as illustrated.
NOTE: Use the TM2XMTGB Grounding Bar exclusively for Functional Ground (FE) connections.
WARNING
ACCIDENTAL DISCONNECTION FROM PROTECTIVE GROUND (PE)
Do not use the TM2XMTGB Grounding Plate to provide a protective ground (PE).
Use the TM2XMTGB Grounding Plate only to provide a functional ground (FE).
Failure to follow these instructions can result in death, serious injury, or equipment damage.
36 EIO0000003337 12/2018
Modicon TMC2
TMC2 Standard Cartridges
EIO0000003337 12/2018
Part II
TMC2 Standard Cartridges
EIO0000003337 12/2018 37
TMC2 Standard Cartridges
38 EIO0000003337 12/2018
Modicon TMC2
TMC2AI2 Analog Voltage, Current Inputs
EIO0000003337 12/2018
Chapter 3
TMC2AI2 Analog Voltage, Current Inputs
Overview
This chapter describes the TMC2AI2 cartridge, its characteristics, and its connections.
EIO0000003337 12/2018 39
TMC2AI2 Analog Voltage, Current Inputs
TMC2AI2 Presentation
Overview
The following features are integrated into the TMC2AI2 cartridge:
2 analog inputs (voltage or current)
non-removable screw terminal block, 3.81 mm (0.15 in.) pitch
Main Characteristics
Characteristic Value
Signal type Voltage Current
Number of input channels 2
Input range 0...10 Vdc 0...20 mA
4...20 mA
Resolution 12 bits (4096 steps)
Connection type 3.81 mm (0.15 in.) pitch, non-removable screw terminal block
Weight 15 g (0.53 oz)
40 EIO0000003337 12/2018
TMC2AI2 Analog Voltage, Current Inputs
TMC2AI2 Characteristics
Introduction
This section provides a general description of the TMC2AI2 cartridge characteristics.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Connectors
The following diagram shows a TMC2AI2 cartridge marking and connectors:
EIO0000003337 12/2018 41
TMC2AI2 Analog Voltage, Current Inputs
Input Characteristics
The following table describes the cartridge input characteristics:
Characteristics Value
Signal Type Voltage Current
Rated input range 0...10 Vdc 0...20 mA
4...20 mA
Input impedance > 1 MΩ < 250 Ω
Sample duration time 10 ms per enabled channel
Input type single-ended
Operating mode self-scan
Conversion mode SAR type
Maximum accuracy at ambient ± 0.1 % of full scale
temperature: 25 °C (77 °F)
Temperature drift ± 0.02 % of full scale per 1 °C (1.8 °F)
Repeatability after stabilization time ± 0.5 % of full scale
Non-linearity ± 0.01 % of full scale
Maximum input deviation ± 1.0 % of full scale
Digital resolution 12 bits (4096 steps)
Input value of LSB 2.44 mV (0...10 Vdc range) 4.88 μA (0...20 mA range)
3.91 μA (4...20 mA range)
Data type in application program scalable from –32768 to 32767
Input data out of detection range yes
Noise maximum temporary ± 4.0 % of the full scale maximum when EMC perturbation is
resistance deviation during applied to the power and I/O wiring
perturbations
cable type and maximum twisted-pair shielded
length
< 30 m (98.4 ft)
crosstalk (maximum) 1 LSB
Isolation between inputs and internal logic not isolated
Maximum continuous overload allowed 13 Vdc 40 mA
(without damage)
Input filter software filter: 0...10 s (with 0.1 s increment)
42 EIO0000003337 12/2018
TMC2AI2 Analog Voltage, Current Inputs
Introduction
This cartridge has a non-removable screw terminal block for the connection of the inputs.
Wiring
See Wiring Best Practices (see page 31).
Wiring Diagram
The following figure shows an example of the voltage and current input connection:
EIO0000003337 12/2018 43
TMC2AI2 Analog Voltage, Current Inputs
44 EIO0000003337 12/2018
Modicon TMC2
TMC2TI2 Analog Temperature Inputs
EIO0000003337 12/2018
Chapter 4
TMC2TI2 Analog Temperature Inputs
Overview
This chapter describes the TMC2TI2 cartridge, its characteristics, and its connections.
EIO0000003337 12/2018 45
TMC2TI2 Analog Temperature Inputs
TMC2TI2 Presentation
Overview
The following features are integrated into the TMC2TI2 cartridge:
2 analog temperature inputs (thermocouple or RTD)
non-removable screw terminal block, 3.81 mm (0.15 in.) pitch
Main Characteristics
Characteristic Value
Signal type Thermocouple 3 wires RTD
Number of input channels 2
Input range type: K, J, R, S, B, E, T, N, C type: Pt100, Pt1000, Ni100, Ni1000
Resolution 14 bits
Connection type 3.81 mm (0.15 in.) pitch, non-removable screw terminal block
Weight 15 g (0.53 oz)
46 EIO0000003337 12/2018
TMC2TI2 Analog Temperature Inputs
TMC2TI2 Characteristics
Introduction
This section provides a general description of the TMC2TI2 cartridge characteristics.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Connectors
The following diagram shows a TMC2TI2 cartridge marking and connectors:
EIO0000003337 12/2018 47
TMC2TI2 Analog Temperature Inputs
Input Characteristics
The following table describes the cartridge input characteristics:
Characteristics Value
Signal Type Thermocouple 3 wires RTD
Rated input range thermocouple type: RTD type:
K: –200...+1300 °C Pt100: –200...+850 °C
(–328...+2372 °F) (–328...+1562 °F)
J: –200...+1000 °C Pt1000: –200...+600 °C
(–328...+1832 °F) (–328...+1112 °F)
R: 0...+1760 °C Ni100: –60...+180 °C
(+32...+3200 °F) (–76...+356 °F)
S: 0...+1760 °C Ni1000: –60...+180 °C
(+32...+3200 °F) (–76...+356 °F)
B: 0...+1820 °C
(+32...+3308 °F)
E: –200...+800 °C
(–328...+1472 °F)
T: –200...+400 °C
(–328...+752 °F)
N: –200...+1300 °C
(–328...+2372 °F)
C: 0...+2315 °C
(+32...+4199 °F)
Input impedance > 1 MΩ
Sample duration time 125 ms per enabled channel 250 ms per enabled channel
Input type single-ended
Operating mode self-scan
Conversion mode SAR type
Maximum accuracy K, J, E, T, N: ± 0.1 % of full ± 0.1 % of full scale at ambient
scale at ambient temperature: 25 °C (77 °F)
temperature: 25 °C (77 °F)
± 0.4 % of full scale at
temperature < 0 °C (32 °F)
R, S: ± 6 °C (10.8 °F) of full
scale for measured
temperature range:
0...200 °C (32...392 °F)
B: not specified
C: ± 0.1 % of full scale at
ambient temperature: 25 °C
(77 °F)
Temperature drift ± 0.02 % of full scale per 1 °C (1.8 °F)
Repeatability after stabilization time ± 0.5 % of full scale
Non-linearity ± 0.01 % of full scale
48 EIO0000003337 12/2018
TMC2TI2 Analog Temperature Inputs
Characteristics Value
Signal Type Thermocouple 3 wires RTD
Maximum input deviation ± 1.0 % of full scale
Digital resolution thermocouple type: RTD type:
K: 15000 steps Pt100: 10500 steps
J: 12000 steps Pt1000: 8000 steps
R: 17600 steps Ni100: 2400 steps
S: 17600 steps Ni1000: 2400 steps
B: 18200 steps
E: 10000 steps
T: 6000 steps
N: 15000 steps
C: 23150 steps
Input value of LSB 0.1 °C (0.18 °F)
Data type in application program scalable from –32768 to 32767
Input data out of detection range yes
Noise maximum temporary ± 4.0 % of the full scale maximum when EMC perturbation is
resistance deviation during applied to the power and I/O wiring
perturbations
cable type and maximum shielded
length < 30 m (98.4 ft)
crosstalk (maximum) 1 LSB
Isolation between inputs and internal logic not isolated
Maximum continuous overload allowed 13 Vdc 40 mA
(without damage)
Input filter software filter: 0...10 s (with 0.1 s increment)
Behavior when the temperature sensor is input value = upper limit
disconnected or broken
EIO0000003337 12/2018 49
TMC2TI2 Analog Temperature Inputs
Introduction
This cartridge has a non-removable screw terminal block for the connection of the inputs.
Wiring
See Wiring Best Practices (see page 31).
Wiring Diagram
The following figure shows an example of RTD and thermocouple probe connection:
(1): Thermocouple
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
50 EIO0000003337 12/2018
Modicon TMC2
TMC2AQ2V Analog Voltage Outputs
EIO0000003337 12/2018
Chapter 5
TMC2AQ2V Analog Voltage Outputs
Overview
This chapter describes the TMC2AQ2V cartridge, its characteristics, and its connections.
EIO0000003337 12/2018 51
TMC2AQ2V Analog Voltage Outputs
TMC2AQ2V Presentation
Overview
The following features are integrated into the TMC2AQ2V cartridge:
2 analog voltage outputs
non-removable screw terminal block, 3.81 mm (0.15 in.) pitch
Main Characteristics
Characteristic Value
Signal type Voltage
Number of output channels 2
Output range 0...10 Vdc
Resolution 12 bits (4096 steps)
Connection type 3.81 mm (0.15 in.) pitch, non-removable screw terminal block
Weight 15 g (0.53 oz)
52 EIO0000003337 12/2018
TMC2AQ2V Analog Voltage Outputs
TMC2AQ2V Characteristics
Introduction
This section provides a general description of the characteristics of the TMC2AQ2V cartridge.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Connectors
The following diagram shows a TMC2AQ2V cartridge marking and connectors:
EIO0000003337 12/2018 53
TMC2AQ2V Analog Voltage Outputs
Output Characteristics
The following table describes the cartridge output characteristics:
Characteristics Value
Signal Type Voltage
Rated output range 0...10 Vdc
Load impedance > 2 KΩ
Application load type resistive load
Conversion time 20 ms
Total output system transfer time 40 ms
Maximum accuracy at ambient ± 0.3 % of full scale
temperature: 25 °C (77 °F)
Temperature drift ± 0.02 % of full scale per 1 °C (1.8 °F)
Repeatability after stabilization time ± 0.4 % of full scale
Non-linearity ± 0.01 % of full scale
Overshoot 0%
Maximum output deviation ± 1.0 % of full scale (including ripple)
Digital resolution 12 bits (4096 steps)
Output value of LSB 2.44 mV
Data type in application program 0...4095 scalable from –32768 to 32767
Noise maximum temporary ± 4.0 % of the full scale maximum when EMC perturbation is
resistance deviation during applied to the power and I/O wiring
perturbations
cable type and maximum twisted-pair shielded
length
< 30 m (98.4 ft)
crosstalk (maximum) 1 LSB
Isolation between outputs and internal not isolated
logic
54 EIO0000003337 12/2018
TMC2AQ2V Analog Voltage Outputs
Introduction
This cartridge has a non-removable screw terminal block for the connection of the outputs.
Wiring
See Wiring Best Practices (see page 31).
Wiring Diagram
The following figure shows an example of the voltage output connection:
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003337 12/2018 55
TMC2AQ2V Analog Voltage Outputs
56 EIO0000003337 12/2018
Modicon TMC2
TMC2AQ2C Analog Current Outputs
EIO0000003337 12/2018
Chapter 6
TMC2AQ2C Analog Current Outputs
Overview
This chapter describes the TMC2AQ2C cartridge, its characteristics, and its connections.
EIO0000003337 12/2018 57
TMC2AQ2C Analog Current Outputs
TMC2AQ2C Presentation
Overview
The following features are integrated into the TMC2AQ2C cartridge:
2 analog current outputs
non-removable screw terminal block, 3.81 mm (0.15 in.) pitch
Main Characteristics
Characteristic Value
Signal type Current
Number of output channels 2
Output range 4...20 mA
Resolution 12 bits (4096 steps)
Connection type 3.81 mm (0.15 in.) pitch, non-removable screw terminal block
Weight 15 g (0.53 oz)
58 EIO0000003337 12/2018
TMC2AQ2C Analog Current Outputs
TMC2AQ2C Characteristics
Introduction
This section provides a general description of the TMC2AQ2C cartridge characteristics.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Connectors
The following diagram shows a TMC2AQ2C cartridge marking and connectors:
EIO0000003337 12/2018 59
TMC2AQ2C Analog Current Outputs
Output Characteristics
The following table describes the cartridge output characteristics:
Characteristics Value
Signal Type Current
Rated output range 4...20 mA
Load impedance < 500 Ω
Application load type resistive load
Conversion time 20 ms
Total output system transfer time 40 ms
Maximum accuracy at ambient ± 0.3 % of full scale
temperature: 25 °C (77 °F)
Temperature drift ± 0.02 % of full scale per 1 °C (1.8 °F)
Repeatability after stabilization time ± 0.4 % of full scale
Non-linearity ± 0.01 % of full scale
Overshoot 0%
Maximum output deviation ± 1.0 % of full scale (including ripple)
Digital resolution 12 bits (4096 steps)
Output value of LSB 3.91 μA
Data type in application program 0...4095 scalable from –32768 to 32767
Noise maximum temporary ± 4.0 % of the full scale maximum when EMC perturbation is
resistance deviation during applied to the power and I/O wiring
perturbations
cable type and maximum twisted-pair shielded
length
< 30 m (98.4 ft)
crosstalk (maximum) 1 LSB
Isolation between outputs and internal not isolated
logic
60 EIO0000003337 12/2018
TMC2AQ2C Analog Current Outputs
Introduction
This cartridge has a non-removable screw terminal block for the connection of the outputs.
Wiring
See Wiring Best Practices (see page 31).
Wiring Diagram
The following figure shows an example of the current output connection:
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect wires to unused terminals and/or terminals indicated as “No Connection (N.C.)”.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
EIO0000003337 12/2018 61
TMC2AQ2C Analog Current Outputs
62 EIO0000003337 12/2018
Modicon TMC2
TMC2SL1 Serial Line
EIO0000003337 12/2018
Chapter 7
TMC2SL1 Serial Line
Overview
This chapter describes the TMC2SL1 cartridge, its characteristics, and its connections.
EIO0000003337 12/2018 63
TMC2SL1 Serial Line
TMC2SL1 Presentation
Overview
The following features are integrated into the TMC2SL1 cartridge:
1 serial line (RS232 or RS485)
non-removable screw terminal block, 3.81 mm (0.15 in.) pitch
Main Characteristics
Characteristic Value
Standard Serial line RS232 Serial line RS485
Number of channels 1
Connection type 3.81 mm (0.15 in.) pitch, non-removable screw terminal block
Weight 15 g (0.53 oz)
64 EIO0000003337 12/2018
TMC2SL1 Serial Line
TMC2SL1 Characteristics
Introduction
This section provides a general description of the TMC2SL1 cartridge characteristics.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Connectors
The following diagram shows a TMC2SL1 cartridge marking and connectors:
EIO0000003337 12/2018 65
TMC2SL1 Serial Line
Characteristics Value
Software configurable standard RS232 RS485
Baudrate 1200...115200 bps
Wires Rx, Tx, common DA, DB, common
Protocol selection software programmable
Line polarization – software programmable
Line end adapter in the cartridge no
cable type shielded
length < 3 m (9.8 ft) < 15 m (49.2 ft)
Isolation between lines and internal logic not isolated
66 EIO0000003337 12/2018
TMC2SL1 Serial Line
Introduction
This cartridge has a non-removable screw terminal block for the connection of the serial line wires.
Wiring
See Wiring Best Practices (see page 31).
Wiring Diagram
The following figure shows an example of RS232 serial line connection:
NOTE: Only 1 serial line (RS232 or RS485) can be connected to the cartridge.
NOTE: Only 1 TMC2SL1 cartridge is managed per logic controller.
EIO0000003337 12/2018 67
TMC2SL1 Serial Line
68 EIO0000003337 12/2018
Modicon TMC2
TMC2 Application Cartridges
EIO0000003337 12/2018
Part III
TMC2 Application Cartridges
EIO0000003337 12/2018 69
TMC2 Application Cartridges
70 EIO0000003337 12/2018
Modicon TMC2
TMC2HOIS01 Hoisting
EIO0000003337 12/2018
Chapter 8
TMC2HOIS01 Hoisting
TMC2HOIS01 Hoisting
Overview
This chapter describes the TMC2HOIS01 cartridge, its characteristics, and its connections.
EIO0000003337 12/2018 71
TMC2HOIS01 Hoisting
TMC2HOIS01 Presentation
Overview
The following features are integrated into the TMC2HOIS01 cartridge:
2 analog inputs (voltage or current) for hoisting load cells
non-removable screw terminal block, 3.81 mm (0.15 in.) pitch
Main Characteristics
Characteristic Value
Signal type Voltage Current
Number of input channels 2
Input range 0...10 Vdc 0...20 mA
4...20 mA
Resolution 12 bits (4096 steps)
Connection type 3.81 mm (0.15 in.) pitch, non-removable screw terminal block
Weight 15 g (0.53 oz)
72 EIO0000003337 12/2018
TMC2HOIS01 Hoisting
TMC2HOIS01 Characteristics
Introduction
This section provides a general description of the TMC2HOIS01 cartridge characteristics.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Connectors
The following diagram shows a TMC2HOIS01 cartridge marking and connectors:
EIO0000003337 12/2018 73
TMC2HOIS01 Hoisting
Input Characteristics
The following table describes the cartridge input characteristics:
Characteristics Value
Signal Type Voltage Current
Rated input range 0...10 Vdc 0...20 mA
4...20 mA
Input impedance > 1 MΩ < 250 Ω
Sample duration time 10 ms per enabled channel
Input type single-ended
Operating mode self-scan
Conversion mode SAR type
Maximum accuracy at ambient ± 0.1 % of full scale
temperature: 25 °C (77 °F)
Temperature drift ± 0.02 % of full scale per 1 °C (1.8 °F)
Repeatability after stabilization time ± 0.5 % of full scale
Non-linearity ± 0.01 % of full scale
Maximum input deviation ± 1.0 % of full scale
Digital resolution 12 bits (4096 steps)
Input value of LSB 2.44 mV (0...10 Vdc range) 4.88 μA (0...20 mA range)
3.91 μA (4...20 mA range)
Data type in application program scalable from –32768 to 32767
Input data out of detection range yes
Noise maximum temporary ± 4.0 % of the full scale maximum when EMC perturbation is
resistance deviation during applied to the power and I/O wiring
perturbations
cable type and maximum twisted-pair shielded
length
< 30 m (98.4 ft)
crosstalk (maximum) 1 LSB
Isolation between inputs and internal logic not isolated
Maximum continuous overload allowed 13 Vdc 40 mA
(without damage)
Input filter software filter: 0...10 s (with 0.1 s increment)
74 EIO0000003337 12/2018
TMC2HOIS01 Hoisting
Introduction
This cartridge has a non-removable screw terminal block for the connection of the inputs.
Wiring
See Wiring Best Practices (see page 31).
Wiring Diagram
The following figure shows an example of the voltage and current input connection:
EIO0000003337 12/2018 75
TMC2HOIS01 Hoisting
76 EIO0000003337 12/2018
Modicon TMC2
TMC2PACK01 Packaging
EIO0000003337 12/2018
Chapter 9
TMC2PACK01 Packaging
TMC2PACK01 Packaging
Overview
This chapter describes the TMC2PACK01 cartridge, its characteristics, and its connections.
EIO0000003337 12/2018 77
TMC2PACK01 Packaging
TMC2PACK01 Presentation
Overview
The following features are integrated into the TMC2PACK01 cartridge:
2 analog inputs (voltage or current) for packaging
non-removable screw terminal block, 3.81 mm (0.15 in.) pitch
Main Characteristics
Characteristic Value
Signal type Voltage Current
Number of input channels 2
Input range 0...10 Vdc 0...20 mA
4...20 mA
Resolution 12 bits (4096 steps)
Connection type 3.81 mm (0.15 in.) pitch, non-removable screw terminal block
Weight 15 g (0.53 oz)
78 EIO0000003337 12/2018
TMC2PACK01 Packaging
TMC2PACK01 Characteristics
Introduction
This section provides a general description of the TMC2PACK01 cartridge characteristics.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Connectors
The following diagram shows a TMC2PACK01 cartridge marking and connectors:
EIO0000003337 12/2018 79
TMC2PACK01 Packaging
Input Characteristics
The following table describes the cartridge input characteristics:
Characteristics Value
Signal Type Voltage Current
Rated input range 0...10 Vdc 0...20 mA
4...20 mA
Input impedance > 1 MΩ < 250 Ω
Sample duration time 10 ms per enabled channel
Input type single-ended
Operating mode self-scan
Conversion mode SAR type
Maximum accuracy at ambient ± 0.1 % of full scale
temperature: 25 °C (77 °F)
Temperature drift ± 0.02 % of full scale per 1 °C (1.8 °F)
Repeatability after stabilization time ± 0.5 % of full scale
Non-linearity ± 0.01 % of full scale
Maximum input deviation ± 1.0 % of full scale
Digital resolution 12 bits (4096 steps)
Input value of LSB 2.44 mV (0...10 Vdc range) 4.88 μA (0...20 mA range)
3.91 μA (4...20 mA range)
Data type in application program scalable from –32768 to 32767
Input data out of detection range yes
Noise maximum temporary ± 4.0 % of the full scale maximum when EMC perturbation is
resistance deviation during applied to the power and I/O wiring
perturbations
cable type and maximum twisted-pair shielded
length
< 30 m (98.4 ft)
crosstalk (maximum) 1 LSB
Isolation between inputs and internal logic not isolated
Maximum continuous overload allowed 13 Vdc 40 mA
(without damage)
Input filter software filter: 0...10 s (with 0.1 s increment)
80 EIO0000003337 12/2018
TMC2PACK01 Packaging
Introduction
This cartridge has a non-removable screw terminal block for the connection of the inputs.
Wiring
See Wiring Best Practices (see page 31).
Wiring Diagram
The following figure shows an example of the voltage and current input connection:
EIO0000003337 12/2018 81
TMC2PACK01 Packaging
82 EIO0000003337 12/2018
Modicon TMC2
TMC2CONV01 Conveying
EIO0000003337 12/2018
Chapter 10
TMC2CONV01 Conveying
TMC2CONV01 Conveying
Overview
This chapter describes the TMC2CONV01 cartridge, its characteristics, and its connections.
EIO0000003337 12/2018 83
TMC2CONV01 Conveying
TMC2CONV01 Presentation
Overview
The following features are integrated into the TMC2CONV01 cartridge:
1 serial line (RS232 or RS485) for conveying
non-removable screw terminal block, 3.81 mm (0.15 in.) pitch
Main Characteristics
Characteristic Value
Standard Serial line RS232 Serial line RS485
Number of channels 1
Connection type 3.81 mm (0.15 in.) pitch, non-removable screw terminal block
Weight 15 g (0.53 oz)
84 EIO0000003337 12/2018
TMC2CONV01 Conveying
TMC2CONV01 Characteristics
Introduction
This section provides a general description of the TMC2CONV01 cartridge characteristics.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not exceed any of the rated values specified in the environmental and electrical characteristics
tables.
Failure to follow these instructions can result in death, serious injury, or equipment damage.
NOTE: For important safety information and the environment characteristics of the TMC2
cartridges, see the M221 Logic Controller Hardware Guide.
Connectors
The following diagram shows a TMC2CONV01 cartridge marking and connectors:
EIO0000003337 12/2018 85
TMC2CONV01 Conveying
Characteristics Value
Software configurable standard RS232 RS485
Baudrate 1200...115200 bps
Wires Rx, Tx, common DA, DB, common
Protocol selection software programmable
Line polarization – software programmable
Line end adapter in the cartridge no
cable type shielded
length < 3 m (9.8 ft) < 15 m (49.2 ft)
Isolation between lines and internal logic not isolated
86 EIO0000003337 12/2018
TMC2CONV01 Conveying
Introduction
This cartridge has a non-removable screw terminal block for the connection of the serial line wires.
Wiring
See Wiring Best Practices (see page 31).
Wiring Diagram
The following figure shows an example of RS232 serial line connection:
NOTE: Only 1 serial line (RS232 or RS485) can be connected to the cartridge.
NOTE: Only 1 TMC2CONV01 cartridge is managed per logic controller.
EIO0000003337 12/2018 87
TMC2CONV01 Conveying
88 EIO0000003337 12/2018
Modicon TMC2
Glossary
EIO0000003337 12/2018
Glossary
M
Modbus
The protocol that allows communications between many devices connected to the same network.
P
PE
(Protective Earth) A common grounding connection to help avoid the hazard of electric shock by
keeping any exposed conductive surface of a device at earth potential. To avoid possible voltage
drop, no current is allowed to flow in this conductor (also referred to as protective ground in North
America or as an equipment grounding conductor in the US national electrical code).
EIO0000003337 12/2018 89
Glossary
90 EIO0000003337 12/2018
Modicon TMC2
Index
EIO0000003337 12/2018
Index
C T
cartridge TMC2
compatibility, 16 cartridge, 37, 69
description, 15 TMC2AI2
features, 15 cartridge, 39
TMC2, 37, 69 TMC2AQ2C
TMC2AI2, 39 cartridge, 57
TMC2AQ2C, 57 TMC2AQ2V
TMC2AQ2V, 51 cartridge, 51
TMC2CONV01, 83 TMC2CONV01
TMC2HOIS01, 71 cartridge, 83
TMC2PACK01, 77 TMC2HOIS01
TMC2SL1, 63 cartridge, 71
TMC2TI2, 45 TMC2PACK01
certifications and standards, 20 cartridge, 77
compatibility TMC2SL1
cartridge, 16 cartridge, 63
TMC2TI2
cartridge, 45
D
description
cartridge, 15 W
wiring, 31
E
environment, 19
F
features
cartridge, 15
G
Grounding, 34
R
RS232, 63
RS485, 63
EIO0000003337 12/2018 91
Index
92 EIO0000003337 12/2018