Professional Documents
Culture Documents
EIO0000000016 04/2014
EIO0000000016.07
04/2014
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.
No part of this document may be reproduced in any form or by any means, electronic or
mechanical, including photocopying, without express written permission of Schneider Electric.
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.
2014 Schneider Electric. All rights reserved.
EIO0000000016 04/2014
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
About the Book. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 1 About the Modicon M238 Logic Controller . . . . . . . . .
Modicon M238 Logic Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Communication Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fast Input/Output Functions and Availability . . . . . . . . . . . . . . . . . . . .
RTC Drift . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Programming Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Physical Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Additional Modules and Maximum Hardware Configuration . . . . . . . .
Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 2 Installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Installation and Maintenance Requirements . . . . . . . . . . . . . . . . . . . .
First Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Internal and External Backup Batteries . . . . . . . . . . . . . . . . . . . . . . . .
Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mounting Positions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Minimum Clearances . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
The DIN Rail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mounting on a DIN Rail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mounting on a Metallic Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Environmental Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
EIO0000000016 04/2014
5
7
11
12
14
15
17
18
19
21
23
25
26
29
30
34
35
38
39
40
43
45
47
48
49
54
58
61
63
64
67
70
71
75
3
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4
80
81
85
89
89
91
91
95
95
99
100
103
107
112
117
118
119
122
124
126
127
131
132
133
134
135
136
137
139
140
142
144
145
146
151
159
EIO0000000016 04/2014
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, 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.
EIO0000000016 04/2014
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.
EIO0000000016 04/2014
NOTE: Read and understand this document and all related documents before installing, operating,
or maintaining your Modicon M238 Logic Controller.
The new Modicon M238 Logic Controller users should read through the entire document to
understand all features.
Validity Note
This document has been updated with the release of SoMachine V4.1.
The technical characteristics of the devices described in this document also appear online. To
access this information online:
Step
Action
In the Search box type the reference of a product or the name of a product range.
Do not include blank spaces in the model number/product range.
To get information on grouping similar modules, use asterisks (*).
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.
If more than one reference appears in the Products search results, click on the reference that
interests you.
Depending on the size of your screen, you may need to scroll down to see the data sheet.
To save or print a data sheet as a .pdf file, click Download XXX product datasheet.
The characteristics that are presented in this manual 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 manual and online information,
use the online information as your reference.
EIO0000000016 04/2014
Related Documents
Title of Documentation
Reference Number
EIO0000000384 (ENG);
EIO0000000385 (FRE);
EIO0000000386 (GER);
EIO0000000387 (ITA);
EIO0000000388 (SPA);
EIO0000000389 (CHS)
EIO0000000028 (ENG);
EIO0000000029 (FRE);
EIO0000000030 (GER);
EIO0000000031 (SPA);
EIO0000000032 (ITA);
EIO0000000033 (CHS)
EIO0000000034 (ENG);
EIO0000000035 (FRE);
EIO0000000036 (GER);
EIO0000000037 (ITA);
EIO0000000038 (SPA);
EIO0000000039 (CHS)
EIO0000000022 (ENG);
EIO0000000023 (FRE);
EIO0000000024 (GER);
EIO0000000025 (SPA);
EIO0000000026 (ITA);
EIO0000000027 (CHS)
EIO0000000608 (ENG);
EIO0000000609 (FRE);
EIO0000000610 (GER);
EIO0000000611 (SPA);
EIO0000000612 (ITA);
EIO0000000613 (CHS)
EIO0000000414 (ENG);
EIO0000000415 (FRE);
EIO0000000416 (GER);
EIO0000000417 (SPA);
EIO0000000418 (ITA);
EIO0000000419 (CHS)
AAV87521
BBV4422600
EIO0000000016 04/2014
You can download these technical publications and other technical information from our website
at www.schneider-electric.com.
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.
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.
EIO0000000016 04/2014
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.
10
EIO0000000016 04/2014
Chapter 1
About the Modicon M238 Logic Controller
Page
12
Communication Features
14
15
RTC Drift
17
Programming Software
18
Physical Description
19
21
Accessories
23
EIO0000000016 04/2014
11
Modicon M238 Logic Controller - About the Modicon M238 Logic Controller
12
EIO0000000016 04/2014
M238 DC Range
TM238LFDC24DT
TM238LDD24DT
24 Vdc
SL1:
RS232/RS485
SL2: RS485
Yes
24 Vdc
SL1:
RS232/RS485
No
100...240 Vac
SL1:
RS232/RS485
SL2: RS485
Yes
100...240 Vac
SL1:
RS232/RS485
No
4 transistor fast
8 fast inputs(1) outputs(2)
+
+
6 regular inputs 6 transistor
regular outputs
2 MB
1 MB
M238 AC Range
TM238LFAC24DR
TM238LDA24DR
4 transistor
8 fast inputs(1) outputs
+
+
6 regular inputs 6 relay outputs
2 MB
1 MB
(1) The fast inputs can be used either as regular inputs or as fast inputs for counting or event
functions.
(2) The fast outputs can be used either as regular outputs or as fast outputs for PTO (Pulse Train
Output), HSC (High Speed Counter), PWM (Pulse Width Modulation), or FG(Frequency
Generator) functions.
EIO0000000016 04/2014
13
Modicon M238 Logic Controller - About the Modicon M238 Logic Controller
Communication Features
Port SL1
On TM238LFDC24DT and TM238LFAC24DR, the first serial line connector supports RS232- and
RS485-based communications:
supports the ASCII protocol for communication with devices such as modems, printers, and
barcode readers.
supports the SoMachine protocol.
can act as either master or slave on a Modbus network.
does not support the Ethernet/Modbus gateway 499TWD01100.
On TM238LDD24DT and TM238LDA24DR, the serial line connector supports RS232- and RS485based communications:
supports the ASCII protocol for communication with devices such as modems, printers, and
barcode readers.
supports the SoMachine protocol.
provides 5 Vdc power supply on the serial line, for HMI connection.
can act as either master or slave on a Modbus network.
supports the Ethernet/Modbus gateway 499TWD01100.
For more information, refer to serial line connection (see page 91).
Port SL2
On TM238LFDC24DT and TM238LFAC24DR, the second serial line connector supports RS485based communications:
supports the ASCII protocol for communication with devices such as modems, printers, and
barcode readers.
supports the SoMachine protocol.
can act as either master or slave on a Modbus network.
provides 5 Vdc power on the serial line, which makes it the preferred port for HMI connections.
supports the Ethernet/Modbus gateway 499TWD01100.
For more information, refer to serial line connection (see page 91).
Port CANopen
On TM238LFDC24DT and TM238LFAC24DR, the CANopen Master can manage:
digital and analog input/output modules (DS401)
motor drives (DS402)
control devices (DSP403)
encoders (DS406)
closed loop controllers (DSP404)
controllers (DS405)
Radio Frequency Identification Devices (RFID)
third-party devices such as standard slaves
EIO0000000016 04/2014
EIO0000000016 04/2014
15
Modicon M238 Logic Controller - About the Modicon M238 Logic Controller
Availability Table
This table shows the available fast I/O functions:
Reference
Power Supply
HSC
PTO
PWM
FG
DC Reference
TM238LFDC24DT
24 Vdc
Yes
Yes
Yes
Yes
TM238LDD24DT
24 Vdc
Yes
Yes
Yes
Yes
DC Reference
TM238LFAC24DR
100...240 Vac
Yes
No
No
No
TM238LDA24DR
100...240 Vac
Yes
No
No
No
The fallback settings that may be configured (fallback to 0, fallback to 1, or fallback to the current
state) do not apply to outputs Q0, Q1, Q2 or Q3 if these outputs are configured for PTO, PWM, FG,
or HSC operation. If an error is detected and results in the controller entering a fallback state, these
outputs will assume a value of 0 regardless of the configured fallback setting.
WARNING
UNINTENDED EQUIPMENT OPERATION
Design and program your system so that controlled equipment assumes a safe state when the
controller enters a fallback state if you use outputs Q0, Q1, Q2, or Q3 for PTO, PWM, FG, or HSC
operation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
NOTE:
16
Fallback configuration for outputs does not apply when outputs Q0,Q1, Q2, and Q3 are used for
PTO, PWM, FG or HSC operation. In these cases fallback value is always 0.
In case of fallback for PTO operation, any ongoing move is aborted and ramp-down to 0
(controlled stop feature).
EIO0000000016 04/2014
RTC Drift
Overview
The controller includes an RTC to provide system date and time information, and to support related
functions requiring a real-time clock. Backup batteries (see page 30) retain the internal clock when
power is off.
RTC Characteristics
The following table shows how RTC drift is managed:
RTC characteristics
Description
RTC drift
RTC drift with user logic Less than or equal to 6 seconds per month with user calibration
assistance
through application software when the controller is in RUN mode.
EIO0000000016 04/2014
17
Modicon M238 Logic Controller - About the Modicon M238 Logic Controller
Programming Software
SoMachine
Use the SoMachine software to program the Controller.
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.
SoMachine is a professional, efficient and open OEM software solution that helps you to develop,
configure and commission the entire machine in a single environment (including logic, motor
control, HMI and related network automation functions).
All information about SoMachine is included in the global online help.
18
EIO0000000016 04/2014
Physical Description
Physical Description
6
7
10
1
2
3
4
5
USB Mini-B port, marked Prg. Port, for connecting the programming terminal
Hinged access cover with 2 cable guides (1 removable for Prg. Port and 1 for the CANopen cable)
Removable screw terminal block (12 terminals) for connecting the sensors (24 Vdc fast inputs)
Removable screw terminal block (7 terminals) for connecting the sensors (24 Vdc inputs)
Connector for digital I/O TM2 D, analog I/O TM2 A, counter TM200 HSC206D, and AS-Interface
TWDNOI10M3 expansion modules (7 modules max.)
6 Display showing the controller status
7 Display showing the I/O states (I0...I13 and Q0...Q9)
8 Removable screw terminal block (10 terminals) for connecting the 6 pre-actuators
9 Removable screw terminal block (6 terminals) for connecting the 4 pre-actuators
10 Removable screw terminal block (5 terminals marked CANopen) for connecting the CANopen bus, with
model TM238LFDC24DT or TM238LFAC24DR
EIO0000000016 04/2014
19
Modicon M238 Logic Controller - About the Modicon M238 Logic Controller
11
12
13
8 Removable screw terminal block (10 terminals) for connecting the 6 pre-actuators
9 Removable screw terminal block (6 terminals) for connecting the 4 pre-actuators
11 Removable screw terminal block (3 terminals):
On TM238LFDC24DT and TM238LDD24DT: +, -, t marked 24 VDC for connecting the 24 Vdc power
supply
On TM238LFAC24DR and TM238LDA24DR: L, N, t marked 100-240 VAC for connecting the
100...240 Vac power supply
12 1 RJ 45 connector marked SL1 (with model TM238LDD24DT or TM238LDA24DR) or 2 RJ 45 connectors
(with model TM238LFDC24DT or TM238LFAC24DR) marked SL1 and SL2 for connecting serial links.
13 Hinged cover for accessing the optional backup battery for the RAM memory and the real-time clock inside
the controller.
20
EIO0000000016 04/2014
Description
Characteristics
Hardware Guide
TM2D
TM2A
TM200 HSC206D
Communication Modules
The following table shows the communication modules available for the Modicon M238 Logic
Controller:
Module Number
Protocol
Ethernet/Modbus
LUF P7
Profibus DP/Modbus
LUF P9
DeviceNet/Modbus
EIO0000000016 04/2014
21
Modicon M238 Logic Controller - About the Modicon M238 Logic Controller
WARNING
UNEXPECTED EQUIPMENT OPERATION
Verify that the controller and its expansion modules are securely locked together when adding
or removing an expansion module before mounting to the DIN rail.
Positively confirm that all expansion modules are fully connected before placing your device
into service.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
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
EIO0000000016 04/2014
Accessories
Overview
This section describes accessories for the Modicon M238 Logic Controller and their characteristics
followed by details for solutions based on Modicon M238 Logic Controller with RS 485 and
CANopen communications.
Accessories Supplied with the Modicon M238 Logic Controller
Description
Use
Quantity
Reference
Removable screw
connectors
TM238 RSSCT
TM238 CNTLSCT
Accessories
Description
Use
Quantity
Reference
Terminal port/USB
port cordset
3m
(10 ft)
3m
(10 ft)
3m
(10 ft)
TM238 RSSPT
USB/RS 485
converter
Modbus
communication
gateways
Ethernet/Modbus
Profibus DP/Modbus
LUF P7
DeviceNet/Modbus
LUF P9
Modbus cordset
2 RJ 45 connector
2.5 m
(8.3 ft)
XBTZ9980
1m
(3.3 ft)
3m
(10 ft)
0.3 m
(1 ft)
1m
(3.3 ft)
HMI ZSUSBB
1 RJ 45 connector and 1
RS 232 serial link
cordset for DTE/DCE SUB-D 9 connector
terminal device
EIO0000000016 04/2014
23
Modicon M238 Logic Controller - About the Modicon M238 Logic Controller
Description
Use
Quantity
Reference
Removable backup
batteries
Single
TSX PLP 01
10 pack
End brackets
AB1AB8P35
Grounding Bar
TM2 XMTGB
Shielding take-up
clip
25 pack
TM200 RSRCEMC
24
EIO0000000016 04/2014
Chapter 2
Installation
Installation
Introduction
This chapter provides installation safety guidelines, device dimensions, mounting instructions, and
environmental specifications.
What Is in This Chapter?
This chapter contains the following topics:
Topic
Page
26
First Startup
29
30
Dimensions
34
Mounting Positions
35
Minimum Clearances
38
39
40
43
Environmental Specifications
45
EIO0000000016 04/2014
25
M238 - Installation
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.
NOTICE
ELECTROSTATIC DISCHARGE
Store all components in their protective packaging until immediately before assembly.
Never touch exposed conductive parts such as contacts or terminals.
26
EIO0000000016 04/2014
M238 - Installation
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.
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.
EIO0000000016 04/2014
27
M238 - 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
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.
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.
Do not disassemble, repair, or modify this equipment.
Do not connect any wiring to 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.
WARNING
UNINTENDED EQUIPMENT OPERATION
Install and operate this equipment according to the environmental conditions described in this
document.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
28
EIO0000000016 04/2014
M238 - Installation
First Startup
Introduction
This procedure will help you through the first installation and start up of your Modicon M238 Logic
Controller.
Startup Procedure
Step
Action
Comment
8 Turn on power.
10 Create an application.
EIO0000000016 04/2014
29
M238 - Installation
In the event of a power outage, both backup batteries will retain the internal clock, system data and
the values of variables associated with your SoMachine application.
Internal Backup Battery
Use: In the event of a transient power outage or while replacing the external backup battery, the
internal backup battery will retain data.
Backup Time: 3 days
Battery Monitoring Features: None
Rechargeable: 22 hours to reach full charge
Replaceable: No
NOTE: For most applications, the internal backup battery is sufficient. For specific applications that
require long-term backup of data, the external backup battery (see page 31) option provides
extended backup duration.
30
EIO0000000016 04/2014
M238 - Installation
Rechargeable: No
Replaceable: Yes
While lithium batteries are preferred due to their slow discharge and long life, they can present
hazards to personnel, equipment and the environment and must be handled properly.
DANGER
EXPLOSION, FIRE, OR CHEMICAL BURNS
EIO0000000016 04/2014
31
M238 - Installation
NOTICE
LOSS OF DATA
Verify that the controller has had power applied for at least 24 continuous hours to charge the
internal battery before removing the external battery.
Failure to follow these instructions can result in equipment damage.
To install or replace the external backup battery, follow these steps:
Step
32
Action
Open the cover to access the backup battery compartment as shown below.
EIO0000000016 04/2014
M238 - Installation
Step
Action
Insert the new battery in the compartment in accordance with the polarity markings
in the compartment and on the battery.
Close the cover and verify that the latch clicks into place.
EIO0000000016 04/2014
33
M238 - Installation
Dimensions
Dimensions
mm
in
157
6.18
86
3.39
G0 1
G2
G4
G6
FAST INPUTS
10
11 12 13 C8
INPUTS
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
prg.
Port.
BATT
RUN
ERR
SL1
CAN R
SL2
CAN E
118
4.64
PWR
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
Q9
Remove this
sticker to connect
Expansion Module.
CAN open
M238
Master
TM 238 D1 DDT24C
SL1
SL2
34
OUTPUTS
FAST OUTPUTS
V0+ V0- 0
2 3
V1+ V1- 4
V2+ V2- 7
EIO0000000016 04/2014
M238 - Installation
Mounting Positions
Introduction
This section describes the correct mounting positions for the Modicon M238 Logic Controller.
NOTE: Keep adequate spacing for proper ventilation and to maintain an ambient temperature
between -10 C (14 F) and 55 C (131 F).
Correct Mounting Position
Whenever possible, the Modicon M238 Logic Controller should be mounted horizontally on a
vertical plane as shown in the illustration below:
G0 1
G2
G4
G6
FAST INPUTS
10
11 12 13 C8
INPUTS
Remove this
sticker to connect
Expansion Module.
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
prg.
Port.
BATT
RUN
ERR
SL1
CAN R
SL2
CAN E
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
Q9
PWR
CANopen
M238
Master
TM 238 D1 DDT24C
SL1
SL2
EIO0000000016 04/2014
OUTPUTS
FAST OUTPUTS
V0+ V0- 0
2 3
V1+ V1- 4
V2+ V2- 7
35
M238 - Installation
CAN E
1
V0+ V0- 0
FAST OUTPUTS
2 3
V1+ V1- 4
V2+ V2- 7
CAN R
SL2
SL2
ERR
SL1
SL1
BATT
RUN
OUTPUTS
M238
Master
CANopen
prg.
Port.
PWR
G6
6
5
G4
4
3
FAST INPUTS
G2
2
G0 1
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
Q9
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
TM 238 D1 DDT24C
INPUTS
10
11 12 13 C8
The Modicon M238 Logic Controller can also be mounted sideways on a vertical plane as shown
below.
36
EIO0000000016 04/2014
M238 - Installation
RUN
PWR
CAN R
ERR
BATT
G0 1
G2
3
4
G4
2 3
FAST INPUTS
157
6.18
FAST OUTPUTS
V0+ V0- 0
88
3.46
SL1
CAN E
SL2
SL2
6
G6
7
V1+ V1- 4
8
9
11 12 13 C8
INPUTS
10
M238
V2+ V2- 7
TM 238 D1 DDT24C
OUTPUTS
EIO0000000016 04/2014
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
Remove this
sticker to connect
Expansion Module.
Master
CANopen
SL1
Remove this
sticker to connect
Expansion Module.
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
Q9
37
M238 - Installation
Minimum Clearances
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.
NOTE: Keep adequate spacing for proper ventilation and to maintain an ambient temperature
between -10 C (14 F) and 55 C (131 F).
The Modicon M238 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 Modicon M238 Logic Controller and all sides of the cabinet (including the panel door). This
type of clearance allows proper circulation of air around the controller, and therefore keeps the
sides of cabinet at the ambient temperature.
The Modicon M238 Logic Controller terminal blocks and the wiring ducts. This distance avoids
electromagnetic impulse between the controller and the wiring ducts.
The Modicon M238 Logic Controller and other heat generating devices installed in the same
cabinet.
Front Panel
20
0.79
20
0.79
G0 1
G2
G4
G6
FAST INPUTS
80
3.15
11 12 13 C8
INPUTS
40
1.57
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
prg.
Port.
10
PWR
BATT
RUN
ERR
SL1
CAN R
SL2
CAN E
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
Q9
Remove this
sticker to connect
Expansion Module.
40
1.57
CANopen
Master
M238
TM 238 D1 DDT24C
SL1
SL2
FAST OUTPUTS
V0+ V0- 0
mm
in
38
20
0.79
2 3
V1+ V1- 4
OUTPUTS
5
V2+ V2- 7
20
0.79
EIO0000000016 04/2014
M238 - Installation
Recommended Equipment
You can order the suitable DIN rail from Schneider Electric:
Rail depth
15 mm (0.59 in.)
AM1DE200
EIO0000000016 04/2014
39
M238 - Installation
40
EIO0000000016 04/2014
M238 - Installation
Action
Place the top groove of the Modicon M238 Logic Controller on the DIN rail and press
the controller against the DIN rail until you hear the retaining clamp click into place.
Place end brackets on each side of the controller and its associated I/O.
AB1AB8P35
Note: Use end brackets to help prevent the Modicon M238 Logic Controller and its
I/O expansion modules assembly from moving sideways. It also provides better
resistance to shock and vibration.
EIO0000000016 04/2014
41
M238 - Installation
Action
Remove all power from the controller and disconnect all wired I/O connectors.
Using a screwdriver, pull down the retaining clamp located on the bottom of the
Modicon M238 Logic Controller.
Pull the Modicon M238 Logic Controller off the DIN rail from the bottom.
NOTE: Before re-installing the Modicon M238 Logic Controller on the DIN rail, push up the
retaining clamp.
42
EIO0000000016 04/2014
M238 - Installation
EIO0000000016 04/2014
43
M238 - Installation
44
EIO0000000016 04/2014
M238 - Installation
Environmental Specifications
Environmental Specifications
Temperature
Operation
Storage
Relative humidity
Degree of pollution
Degree of protection
IP 20
Altitude
Operation
Storage
Vibration
resistance
Shock resistance
Weight
NOTE: Please see catalog for more specific information on the environmental specifications.
EIO0000000016 04/2014
45
M238 - Installation
46
EIO0000000016 04/2014
Chapter 3
Wiring and Electrical Specifications
Topic
Page
3.1
48
3.2
63
3.3
70
3.4
80
EIO0000000016 04/2014
47
Section 3.1
AC/DC Power Supply Wiring and Specifications
48
Page
Wiring Requirements
49
54
58
61
EIO0000000016 04/2014
Wiring Requirements
Overview
There are several rules that must be followed when wiring a Modicon M238 Logic Controller.
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.
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.
EIO0000000016 04/2014
49
Rules
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.
WARNING
UNINTENDED EQUIPMENT OPERATION
Use shielded cables for all input, output and communication types specified above.
Properly ground the cable shields as indicated in the related documentation.
Route communications and I/O cables separately from power cables.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
For more details, refer to Grounding Shielded Cables (see page 61).
50
EIO0000000016 04/2014
6
0.23
mm
in
mm 2
AWG
0,21,5
0,251,5
0,21
0,21,5
0,251
0,5...1,5
2414
2414
2616
2414
2416
20...14
N.m
lb-in
0,6
5.3
6
0.23
mm
in.
mm 2
AWG
0,21,5
0,251,5
0,251
0,5...1,5
2414
2414
2416
20...14
DANGER
LOOSE WIRING CAUSES ELECTRIC SHOCK
Do not insert more than one wire per connector of the terminal block without a double wire cable
end.
Failure to follow these instructions will result in death or serious injury.
EIO0000000016 04/2014
51
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.
Protective circuit A: this protection circuit can be used for both AC and DC load power circuits.
Output Q
Inductive load
C
COM
52
or
EIO0000000016 04/2014
Protective circuit B: this protection circuit can be used for DC load power circuits.
Output Q
COM
Inductive load
Protective circuit C: this protection circuit can be used for both AC and DC load power circuits.
Output Q
Inductive load
Varistor
COM
or
In applications where the inductive load is switched on and off frequently and/or rapidly, ensure
that varistors continuous energy rating (J) exceeds the peak load energy by 20% or more.
NOTE: The above schematics show sinking DC outputs, but would apply equally to source outputs.
EIO0000000016 04/2014
53
DANGER
FIRE HAZARD
Use only the recommended wire sizes for the current capacity of the I/O channels and power
supplies.
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.
54
EIO0000000016 04/2014
TM238LFDC24DT
rated voltage (Un)
24 Vdc
19.2...28.8 Vdc
External 24 Vdc
35 A
10 ms
17.2 W
Dielectric
Strength
Isolation
Resistance
TM238LDD24DT
20.4...28.8 Vdc
(1) The Modicon M238 Logic Controller has been designed to continue operation during short transient power
interruptions.
The duration of the interruptions where the Modicon M238 Logic Controller continues normal
operation is variable depending upon the load on the power supply of the Modicon M238 Logic
Controller, but generally a minimum of 10 ms is maintained as specified by IEC standards.
If there is a minimum load on the Modicon M238 Logic Controller power supply, the duration can
be as great as 400 ms.
When planning the management of the power supplied to the controller, you must consider this
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.
EIO0000000016 04/2014
55
WARNING
UNINTENDED EQUIPMENT OPERATION
Individually monitor each source of power used in the Modicon M238 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.
Power Supply Wiring Diagram
The power supply of this equipment does not have built-in reverse polarity protection. Incorrectly
connecting polarity can permanently damage the output circuits and the internal backup battery or
otherwise result in unintended operation of the equipment.
NOTICE
INOPERABLE EQUIPMENT
Verify the wiring conforms to the polarity markings on the connections of this equipment and as
described in the related documentation.
Failure to follow these instructions can result in equipment damage.
The following illustration shows the power supply wiring diagram:
24 VDC
l y 80 mm
(3.15 in.)
1,5 mm2 min.
AWG 14 max.
c 24 V
Use an external fast-blow fuse 2 A type F (UL recognized and CSA approved).
56
EIO0000000016 04/2014
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Wire Stripping and Cable Size
For the cable types and wire sizes, refer to Wiring Requirements (see page 49).
EIO0000000016 04/2014
57
DANGER
FIRE HAZARD
Use only the recommended wire sizes for the current capacity of the I/O channels and power
supplies.
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.
58
EIO0000000016 04/2014
TM238LFDC24DT, TM238LDD24DT
rated voltage (Un)
100...240 Vac
85...264 Vac
35 A
10 ms
25 W at 100 Vac
42 W at 264 Vac
Dielectric
Strength
Isolation
Resistance
(1) The Modicon M238 Logic Controller has been designed to continue operation during short transient power
interruptions.
The duration of the interruptions where the Modicon M238 Logic Controller continues normal
operation is variable depending upon the load on the power supply of the Modicon M238 Logic
Controller, but generally a minimum of 10 ms is maintained as specified by IEC standards.
If there is a minimum load on the Modicon M238 Logic Controller power supply, the duration can
be as great as 400 ms.
When planning the management of the power supplied to the controller, you must consider this
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.
EIO0000000016 04/2014
59
WARNING
UNINTENDED EQUIPMENT OPERATION
Individually monitor each source of power used in the Modicon M238 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.
Power Supply Wiring Diagram
The following illustration shows the power supply wiring diagram:
100-240 VAC
l y 80 mm
(3.15 in.)
1,5 mm2 min.
AWG 14 max.
a 100...240V
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Wire Stripping and Cable Size
For the cable types and wire sizes, refer to Wiring Requirements (see page 49).
60
EIO0000000016 04/2014
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
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 should have continuous
shielding.
Wherever possible, keep cables carrying one type of signal separate from the cables carrying
other types of signals or power.
EIO0000000016 04/2014
61
The following illustration shows the proper method for wiring an Modicon M238 Logic Controllers
shielded cables to ground:
8
G0 1
G2
G4
G6
FAST INPUTS
10
11 12 13 C8
INPUTS
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
prg.
Port.
BATT
RUN
ERR
SL1
CAN R
SL2
CAN E
2
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
Q9
PWR
CANopen
M238
Master
TM 238 D1 DDT24C
SL
OUTPUTS
FAST OUTPUTS
V0+ V0- 0
2 3
V1+ V1- 4
V2+ V2- 7
7 6
1
2
3
4
5
6
7
8
Metal plate or metal panel (ground casing) connected to the Frame Ground terminal.
Modicon M238 Logic Controller.
Shielding take-up clip TM200 RSRCEMC: attach the shielding for the cables (4) and (8) as close as
possible to the controller base and after stripping the cable insulation from the shielding. Then attach the
cable to the metal support (1) by attaching the clamp to the exposed shielding. The shielding must be
clamped tightly enough to the metal support to permit good contact.
Shielded cables for connecting the outputs to the actuators with PTO/PWM/FG signals.
Shielded cordset for connecting the serial links SL1 and/or SL2 for TM238LFDC24DT and
TM238LFAC24DR. TCS MCN 3M42 serial communication cords include the grounding lug.
Shielded cable for connecting the CANopen bus.
Unshielded power supply wires or cable (2 conductors + ground).
Shielded cable for connecting the encoder and sensor signals used on the fast outputs in counter mode.
NOTE: The shielding of the shielded cables for connecting sensors/actuators to the analog I/O
modules should be secured and grounded as shown in (3) (identical to cables 4 and 8) using
TM2 XMTGB ground connection plate.
62
EIO0000000016 04/2014
Section 3.2
Input Wiring Specifications for AC/DC Controllers
Page
64
67
EIO0000000016 04/2014
63
DANGER
FIRE HAZARD
Use only the recommended wire sizes for the current capacity of the I/O channels and power
supplies.
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.
64
EIO0000000016 04/2014
TM238LFDC24DT, TM238LDD24DT
TM238LFAC24DR, TM238LDA24DR
Common
19.2...30 Vdc
10.4 mA
Input Impedance
Input Limit Values
2.3 k
at state 1 (voltage / current)
at state 0 (voltage / current)
15 Vdc / 2 mA
5 Vdc / 1.5 mA
0 - 1.5 - 4 or 12 ms
Turn on Time
< 1 ms
< 1 ms
between channels
None
500 Vdc
Input Type
sink/source
30 m (98.4 ft)
EIO0000000016 04/2014
65
(3)
(2) +
I8
I9
(1)
PNP
(1)
(1)
(2)
(3)
NPN
I13 C8
(1)
I9 I10
I13 C8
Inputs
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Wire Stripping and Cable Size
For the cable types and wire sizes, refer to Wiring Requirements (see page 49).
66
EIO0000000016 04/2014
DANGER
FIRE HAZARD
Use only the recommended wire sizes for the current capacity of the I/O channels and power
supplies.
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.
EIO0000000016 04/2014
67
TM238LFDC24DT, TM238LDD24DT
TM238LFAC24DR, TM238LDA24DR
24 Vdc
Common
19.2...30 Vdc
8 mA
Input Impedance
3 k
15 V / 2 mA
5 V / 1.5 mA
0 - 1.5 - 4 or 12 ms
Turn on Time
300 ns
300 ns
between channels
500 Vdc
sink
10 m (32.8 ft)
WARNING
UNINTENDED EQUIPMENT OPERATION
Properly ground the cable shields as indicated in the related documentation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
68
EIO0000000016 04/2014
(1)
I0 G0 I1
(1)
I2 G2 I3
(1)
I4 G4 I5
I6 G6 I7
Fast Inputs
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Wire Stripping and Cable Size
For the cable types and wire sizes, refer to Wiring Requirements (see page 49).
EIO0000000016 04/2014
69
Section 3.3
Output Wiring Specifications for DC Controllers
70
Page
71
75
EIO0000000016 04/2014
DANGER
FIRE HAZARD
Use only the recommended wire sizes for the current capacity of the I/O channels and power
supplies.
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.
EIO0000000016 04/2014
71
TM238LFDC24DT,
TM238LDD24DT
rated voltage
24 Vdc
limit
500 mA
Commons
Response Time
< 1 ms
Protection
No
Isolation
500 Vdc
between channels
NOTICE
DAMAGED OUTPUT CIRCUITS
Verify the wiring conforms to the polarity markings on the output connections of this equipment
and as described in the related documentation.
Failure to follow these instructions can result in equipment damage.
The following illustration shows the regular outputs wiring diagram:
Outputs
(1)
(2)
EIO0000000016 04/2014
In the case of a short-circuit or current overload, the common group of outputs automatically enter
into thermal protection mode (all outputs 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 inhibited. For this controller, use the GetShortcutStatus function to force the group of regular outputs to remain at 0 (OFF).
Depending on the load, a protection circuit may be needed for the outputs on the controllers and
certain modules. Inductive loads using DC voltages may create voltage reflections resulting in
overshoot that will damage or shorten the life of output devices.
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.
Choose a protection circuit from the following diagrams according to the power supply used.
Connect the protection circuit to the outside of the controller or relay output module.
U
Refer to Wiring Requirements for more information about protecting outputs from inductive load
damage (see page 52).
EIO0000000016 04/2014
73
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Wire Stripping and Cable Size
For the cable types and wire sizes, refer to Wiring Requirements (see page 49).
74
EIO0000000016 04/2014
DANGER
FIRE HAZARD
Use only the recommended wire sizes for the current capacity of the I/O channels and power
supplies.
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.
EIO0000000016 04/2014
75
TM238LFDC24DT,
TM238LDD24DT
rated voltage
24 Vdc
limit
regular mode
500 mA
PWM/FG/PTO modes
100 mA
Commons
Response Time
1
regular mode
< 1 ms
< 0.25 ms
0.3 mA
No
against short-circuits to 0 V
and overloads
Yes
regular mode
30 m (98.4 ft)
PWM/FG/PTO modes
between channels
500 Vdc
500 Vdc
Selecting Cables
To select the correct cables for your application, proceed as follows:
If...
76
Then...
EIO0000000016 04/2014
WARNING
UNINTENDED EQUIPMENT OPERATION
Properly ground the cable shields as indicated in the related documentation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
Fast Output Wiring Diagram
The following illustration shows the fast outputs source wiring diagram:
Fast Ouputs
V0+ V0- Q0 Q1 Q2 Q3
(1)
(3)
(4)
(5)
The outputs of this equipment do not have built-in reverse polarity protection. Incorrectly
connecting polarity can permanently damage the output circuits or otherwise result in unintended
operation of the equipment.
EIO0000000016 04/2014
77
NOTICE
DAMAGE TO FAST OUTPUTS
Ensure the use of adequate protection against short-circuits on the power supply to the fast
outputs.
Do not connect positive voltage to any of the DC fast output terminals.
Comply with the wiring diagrams immediately that follow this message.
Q2
V0+ V0(2)
(2)
(1)
In the case of a short-circuit or current overload, the common group of outputs automatically enter
into thermal protection mode (all outputs 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 inhibited. For this controller, use the GetShortcutStatus function to force the group of fast outputs to remain at 0 (OFF).
Depending on the load, a protection circuit may be needed for the outputs on the controllers and
certain modules. Inductive loads using DC voltages may create voltage reflections resulting in
overshoot that will damage or shorten the life of output devices.
78
EIO0000000016 04/2014
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.
Choose a protection circuit from the following diagrams according to the power supply used.
Connect the protection circuit to the outside of the controller or relay output module.
U
Refer to Wiring Requirements for more information about protecting outputs from inductive load
damage (see page 52).
Terminal Tightening Torque
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Wire Stripping and Cable Size
For the cable types and wire sizes, refer to Wiring Requirements (see page 49).
EIO0000000016 04/2014
79
Section 3.4
Output Wiring Specifications for AC Controllers
80
Page
81
85
EIO0000000016 04/2014
DANGER
FIRE HAZARD
Use only the recommended wire sizes for the current capacity of the I/O channels and power
supplies.
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.
EIO0000000016 04/2014
81
TM238LFAC24DR, TM238LDA24DR
Output Current
rated voltage
limit
rated current
limit
Commons
50m
resistive
20x106 operations
See note 1.
resistive
Isolation
20x106 operations
See note 1.
between channels
Carefully read the information concerning inductive and capacitive loads in the Relay Output Wiring
Diagram below.
82
EIO0000000016 04/2014
C4
Q4 Q5
(3)
L1
+
-
(1)
(2)
(3)
(4)
(5)
L1
(1)
(1)
L1
C6
Q6 Q7 C8
(3) (1)
+
-
(1)
L1
Q8
(4)
+
-
C9
Q9
(5)
L1
+
-
L (2)
2 A fast-blow fuse
Load protected against inductive charge
4 A slow-blow fuse
2 A slow-blow fuse
5 A slow-blow fuse
All relays use the same phase across relay groups for alternate current connections
Depending on the load, a protection circuit may be needed for the relay outputs. Inductive loads
using DC voltages may create voltage reflections resulting in overshoot that will damage or shorten
the life of output devices.
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.
EIO0000000016 04/2014
83
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.
Choose a protection circuit from the following diagrams according to the power supply used.
Connect the protection circuit to the outside of the controller or relay output module.
Refer to Wiring Requirements for more information about protecting outputs from inductive load
damage (see page 52).
Terminal Tightening Torque
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Wire Stripping and Cable Size
For the cable types and wire sizes, refer to Wiring Requirements (see page 49).
84
EIO0000000016 04/2014
DANGER
FIRE HAZARD
Use only the recommended wire sizes for the current capacity of the I/O channels and power
supplies.
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.
EIO0000000016 04/2014
85
TM238LFAC24DR,
TM238LDA24DR
rated voltage
24 Vdc
limit
500 mA
Commons
Response Time
Protection
86
< 0.25 ms
against reverse polarity
No
Yes
No
Isolation
between channels
500 Vdc
500 Vdc
EIO0000000016 04/2014
NOTICE
DAMAGED OUTPUT CIRCUITS
Verify the wiring conforms to the polarity markings on the output connections of this equipment
and as described in the related documentation.
Failure to follow these instructions can result in equipment damage.
The following illustration shows the transistor outputs wiring diagram:
Transistor Outputs
V0+ V0- Q0 Q1 Q2 Q3
(1)
L (2)
+
-
In the case of a short-circuit or current overload, the common group of outputs automatically enter
into thermal protection mode (all outputs 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 inhibited. For this controller, use the GetShortcutStatus function to force the group of transistor outputs to remain at 0 (OFF).
EIO0000000016 04/2014
87
Depending on the load, a protection circuit may be needed for the outputs on the controllers and
certain modules. Inductive loads using DC voltages may create voltage reflections resulting in
overshoot that will damage or shorten the life of output devices.
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.
Choose a protection circuit from the following diagrams according to the power supply used.
Connect the protection circuit to the outside of the controller or relay output module.
Refer to Wiring Requirements for more information about protecting outputs from inductive load
damage (see page 52).
Terminal Tightening Torque
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Wire Stripping and Cable Size
For the cable types and wire sizes, refer to Wiring Requirements (see page 49).
88
EIO0000000016 04/2014
Chapter 4
Connecting the Modicon M238 Logic Controller to a PC
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.
USB Mini-B Port Connection
TCSXCNAMUM3P: This USB cable is suitable for short duration connections such as quick
updates or retrieving data values.
BMXXCAUSBH045: Grounded and shielded, this USB cable is suitable for long duration
connections.
NOTE: You can only connect 1 controller to the PC at any one time.
The USB Mini-B Port is the programming port you can use to connect a PC with a USB host port
using SoMachine 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
INOPERABLE EQUIPMENT OR UNINTENDED EQUIPMENT OPERATION
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 at a time using USB connections.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
EIO0000000016 04/2014
89
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:
BMXXCAUSBH045
So
Machine
USB
USB Mini-B
FAST INPUTS
TCSXCNAMUM3P
(3 m / 9.8 ft)
USB
INPUTS
Prog.
Port
USB Mini-B
CANopen
SL1 SL2
TRANSISTOR
OUTPUTS
RELAY OUTPUTS
100-240VAC
To connect the USB cable to your controller, follow the steps below:
Step
1
Action
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.
23
BAT
R
PW
RU
.
prg .
rt
po
SL1
ERR
NR
CA
NE
CA
SL2
CAN
ope
SL1
24
1
2
90
SL2
C
VD
Connect the Mini connector of your USB cable to the M238 USB connector.
EIO0000000016 04/2014
Chapter 5
Serial Line Connection
EIO0000000016 04/2014
91
SL1
Pin
RS232
RS485
Description
RXD
N.C.
received data
TXD
N.C.
transmitted data
RTS
N.C.
request to send
D1 (A+)
differential pair
D0 (B-)
CTS
N.C.
+ 5 Vdc / 200 mA
0V
(1)
clear to send
HMI power supply (1)
Signal Common
NOTE:
92
(1) Pin 7 is dedicated to supply power to HMI devices such as XBT Nx00/R400/RT500 or small
equipment such as Ethernet Gateway through the serial link cable.
The Ethernet Gateway is only supported on the SL1 port for the TM238LDD24DT and
TM238LDA24DR controllers.
EIO0000000016 04/2014
SL2
Pin
RS485
Description
N.C.
N.C.
N.C.
N.C.
N.C.
N.C.
D1 (A+)
differential pair
D0 (B-)
N.C.
N.C.
+ 5 Vdc / 200 mA
0V
(1)
NOTE: (1) Pin 7 is dedicated to supply power to HMI devices such as XBT Nx00/R400/RT500 or
small equipment such as Ethernet Gateway, through serial link cable.
Serial Line Specifications
Characteristics
Serial Line 1 1
Model Number
TM238LDD24DT,
TM238LDA24DR
Type
Standards
RS485/RS232
Protocol selection
Number of wires
RS485: 4
RS232: 5
Connector
RJ45 female
Supply output
5 Vdc/200 mA
Yes
Overload protection
Yes
No
Serial Line 2 1
TM238LFDC24DT,
TM238LFAC24DR
TM238LFDC24DT,
TM238LFAC24DR
RS485
4
5 Vdc/200 mA
1 Serial link 1 and serial link 2 are not isolated from one another
EIO0000000016 04/2014
93
Characteristics
Serial Line 1 1
Model Number
TM238LDD24DT,
TM238LDA24DR
TM238LFDC24DT,
TM238LFAC24DR
TM238LFDC24DT,
TM238LFAC24DR
Data rate
1.2...115.2 Kbps
(115.2 Kbps by default)
1.2...115.2 Kbps
(115.2 Kbps by default)
Line Polarization
Shield ground
Yes
Serial Line 2 1
Modbus
Character Mode
Physical Interface
RS232
Structure
Transmission
RS485,
2-wire
RS232
RS485,
2-wire
Full duplex
Half duplex
Type
Access method
Master/slave type
Mode
Frame
Data rate
Format
Parity
Medium
Single or
double
shielded
twisted pair
Shielded twisted
pair
Configuration
Number of devices
2 (point to point
32 max per
segment
2 (point to
point)
32 max per
segment
Services
Frame
Security, check
parameter
Monitoring
94
EIO0000000016 04/2014
Chapter 6
CANopen Connection
CANopen Connection
CANopen Connection
CANopen Capabilities
The Modicon M238 Logic Controller CANopen master has the following features:
Maximum number of slaves on the bus
Although SoMachine does not restrict you from doing so, you should not exceed more than 16
CANopen slave modules (and/or 32 TPDOs and 32 RPDOs) in order to have a sufficient
performance tolerance and to avoid any performance degradation.
WARNING
UNINTENDED EQUIPMENT OPERATION
Do not connect more than 16 CANopen slave devices to the controller.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
NOTICE
DEGRADATION OF PERFORMANCE
Do not exceed more than 32 TPDOs and 32 RPDOs for the Modicon M238 Logic Controller.
Failure to follow these instructions can result in equipment damage.
EIO0000000016 04/2014
95
GND
CAN_L
CanL
Shld
CAN_H
CanH
N.C.
NC
CAN_SHLD
Signal
Description
Color of Cable
CAN_GND
CAN Ground
black
CAN_L
blue
CAN_SHLD
CAN_H
white
Not used
Reserved
red
NOTE: Maximum torque required to tighten screws terminals is 0.5 Nm (4.4 lb-in).
NOTICE
INOPERABLE EQUIPMENT
Do not tighten screw terminals beyond the specified maximum torque (Nm / lb-in.).
Failure to follow these instructions can result in equipment damage.
Cable Length
Transmission speed is limited by the bus length and the type of cable used.
The following table describes the relationship between the maximum transmission speed and the
bus length (on a single CAN segment without a repeater).
Maximum transmission baud rate
96
Bus length
1000 Kbps
20 m (65 ft)
800 Kbps
40 m (131 ft)
500 Kbps
250 Kbps
125 Kbps
50 Kbps
20 Kbps
EIO0000000016 04/2014
CANopen Wiring
The CANopen network cable is a shielded twisted double-pair cable that complies with the
CANopen standard CiA DR-303-1.
The CANopen network cable must be properly grounded to the Modicon M238 Logic Controller
Shield Ground (Shld) or CANopen communications may be interrupted or operate improperly.
The following illustration shows the wiring of the cable CANopen to the Modicon M238 Logic
Controller
1
2
3
4
5
1
2
3
4
5
CAN_GND
CAN_L
CAN_SHLD
CAN_H
N.C.
EIO0000000016 04/2014
97
98
EIO0000000016 04/2014
Chapter 7
Controller Diagnostic and I/O Management
Page
100
Input Management
103
107
112
EIO0000000016 04/2014
99
PWR
Batt
PWR
Batt
RUN
Err
RUN
Err
SL1
CAN Run
SL1
SL2
CAN Err
Display 1
Display 2
Color
Description
PWR
green
ON: power on
OFF: power off
Batt
red
100
green
EIO0000000016 04/2014
LED
Color
Description
Err
red
controller.
Slow flashes (25% ON, 75 % OFF), Non-blocking detected error:
(1)
yellow
yellow
red
CAN Err.
EIO0000000016 04/2014
green
red
Status
Meaning
off
flashing
on
off
flashing
on
101
Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9
The LEDs indicate the logic state of each input and output:
ON: Input or output state is active.
OFF: Input or output state is inactive.
102
EIO0000000016 04/2014
Input Management
Introduction
The Modicon M238 Logic Controller includes 14 digital inputs, of which 8 are fast inputs.
The following functions are configurable on regular and/or fast inputs:
TM238LFAC24DR,
TM238LDA24DR
HSC/PTO/PWM/FG
None
RUN/STOP
Latch
Event
Integrator
Integrator
Bounce
Bounce
I0
HSC
I1
HSC
I2
HSC
I3
HSC
I4
HSC
I5
HSC
I6
HSC
I7
HSC
I8
PWM/FG
I9
PWM/FG/PTO
I10
I11
PWM/FG
Filter type
Regular
Input
TM238LFDC24DT,
TM238LDD24DT
Input function
Function
Fast
Input
TM238LFDC24DT, TM238LDD24DT
TM238LFAC24DR, TM238LDA24DR
I12
PWM/FG/PTO
I13
EIO0000000016 04/2014
103
NOTE: The value selected for the filters time parameter specifies the cumulative time in ms that
must elapse before the input can be 1.
Bounce Filter Principle
The bounce filter is designed to reduce the bouncing effect at the inputs. Setting a bounce filter
value allows the controller to ignore some sudden changes of input levels caused by noise. The
bounce filter is only available on the fast inputs.
The following timing diagram illustrates the anti-bounce filter effects:
Input
Delay
Delay
Filtered Signal
104
EIO0000000016 04/2014
Latching
Latching is a function that can be assigned to the Modicon M238 Logic Controller fast inputs. This
function is used to memorize (or latch) any pulse with a duration that is less than the Modicon M238
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 with the I/O configuration
window (see Modicon M238 Logic Controller, Programming Guide).
The following timing diagram illustrates the latching effects:
Event
An input configured for Event can be associated with an External Task (see Modicon M238 Logic
Controller, Programming Guide).
EIO0000000016 04/2014
105
RUN/STOP
The RUN/STOP function is used to start or stop a program using an input:
When the configured RUN/STOP input is at logic 0, the controller is put into a STOP state and
any other outside command to enter the RUN state is ignored.
A rising edge (passing from 0 to 1) of the RUN/STOP input provokes automatically a start-up of
the application as the controller enters a RUN state.
When the configured RUN/STOP input is at logic 1, then the controller program is running
unless otherwise commanded by SoMachine (RUN/STOP commands from SoMachine are
allowed).
WARNING
UNINTENDED MACHINE OR PROCESS START-UP
Be sure 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.
For more information, refer to Embedded I/O configuration (see Modicon M238 Logic Controller,
Programming Guide).
106
EIO0000000016 04/2014
The Modicon M238 Logic Controller with DC power supply includes 10 digital outputs, including 4
fast outputs.
The following output functions are configurable on regular and/or fast outputs:
HSC (reflex features on HSC threshold)
PTO
PWM
FG
EIO0000000016 04/2014
107
HSC
PWM
FG
PTO
Type
Main
Simple(1)
Main
Simple(2)
Channel
Number
0...3
4...7
PTO0
PTO1
PWM0
FG0
PWM1
FG1
Q0
PTO0
Output0
PWM0/FG0
Output
Q1
PTO0
Output1
Q2
PTO1
Output0
PWM1/FG
1 Output
Q3
PTO1
Output1
Q4
HSC0
reflex
Fast
Output
output0(3)
Q5
HSC0
reflex
Output1(3)
Regular
Output
Q6
Q7
HSC4
reflex
Output0(3)
Q8
HSC4
reflex
Output1(3)
Q9
(1) Channels HSC0 to HSC3 are usable as a Simple HSC only if HSC0 is not used as a Main HSC
(see page 119).
(2) Channels HSC4 to HSC7 are usable as a Simple HSC only if HSC4 is not used as a Main HSC
(see page 119).
(3) Reflex output used or not according to configuration. If not configured, the output is a regular
output by default.
108
EIO0000000016 04/2014
WARNING
UNINTENDED EQUIPMENT OPERATION
Design and program your system so that controlled equipment assumes a safe state when the
controller enters a fallback state if you use outputs Q0, Q1, Q2, or Q3 for PTO, PWM, FG, or HSC
operation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
NOTE:
Fallback configuration for outputs does not apply when outputs Q0,Q1, Q2, and Q3 are used for
PTO, PWM, FG or HSC operation. In these cases fallback value is always 0.
In case of fallback for PTO operation, any ongoing move is aborted and ramp-down to 0
(controlled stop feature).
EIO0000000016 04/2014
109
then...
you have a short-circuit at 0V on group 2 or 3 the impacted group automatically go into thermal protection
mode (all regular or HSC outputs set to 0) and are then
periodically rearmed every 10 seconds to test the connection
state (see hazard message below).
For more information, refer to regular output wiring diagram
(see page 71).
you have short-circuit at 24V on group 2 or 3 nothing is detected and no heating.
the current crossing the group 1, 2, or 3 is too a thermal disjunction occurs shutting down the outputs.The
high
outputs are forced to 0, and cannot be set to 1 until the
temperature decreases.
NOTE: The short-circuit diagnostic for each group is provided by the function GetshortcutStatus
(see Modicon M238 Logic Controller, System Functions and Variables, M238 PLCSystem Library
Guide).
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 inhibited. For this controller, use the GetshortcutStatus function to force the group of outputs to remain at 0 (OFF).
110
EIO0000000016 04/2014
The outputs of this equipment do not have built-in reverse polarity protection. Incorrectly
connecting polarity can permanently damage the output circuits or otherwise result in unintended
operation of the equipment.
NOTICE
DAMAGE TO FAST OUTPUTS
Ensure the use of adequate protection against short-circuits on the power supply to the fast
outputs.
Do not connect positive voltage to any of the DC fast output terminals.
Comply with the wiring diagrams immediately that follow this message.
Q2
V0+ V0(2)
(2)
(1)
EIO0000000016 04/2014
111
The Modicon M238 Logic Controller with AC power supply includes 10 digital outputs, including 6
relay outputs.
The following output function is configurable on transistor outputs:
HSC (reflex features on HSC threshold)
NOTE: All outputs by default can be used as regular outputs.
Output Management Functions Availability
Function
HSC
Type
Main
Channel Number
0
HSC0 reflex
Q0
Main
Simple(2)
0...3
4...7
HSC4 reflex
Simple
(1)
Output0(3)
Q1
Transistor
Output
HSC0 reflex
Output1(3)
Q2
Output0(3)
Q3
HSC4 reflex
Output1(3)
(1) Channels HSC0 to HSC3 are usable as a Simple HSC only if HSC0 is not used as a Main HSC
(see page 119).
(2) Channels HSC4 to HSC7 are usable as a Simple HSC only if HSC4 is not used as a Main HSC
(see page 119).
(3) Reflex output used or not according to configuration. If not configured, the output is a regular
output by default.
112
EIO0000000016 04/2014
WARNING
UNINTENDED EQUIPMENT OPERATION
Design and program your system so that controlled equipment assumes a safe state when the
controller enters a fallback state if you use outputs Q0, Q1, Q2, or Q3 for PTO, PWM, FG, or HSC
operation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
NOTE:
Fallback configuration for outputs does not apply when outputs Q0,Q1, Q2, and Q3 are used for
PTO, PWM, FG or HSC operation. In these cases fallback value is always 0.
In case of fallback for PTO operation, any ongoing move is aborted and ramp-down to 0
(controlled stop feature).
EIO0000000016 04/2014
113
then...
NOTE: The short-circuit diagnostic for each group is provided by the function GetshortcutStatus
(see Modicon M238 Logic Controller, System Functions and Variables, M238 PLCSystem Library
Guide).
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 inhibited. For this controller, use the GetshortcutStatus function to force the group of outputs to remain at 0 (OFF).
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.
114
EIO0000000016 04/2014
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.
EIO0000000016 04/2014
115
116
EIO0000000016 04/2014
Chapter 8
Fast Inputs/Outputs
Fast Inputs/Outputs
Introduction
This chapter provides information about the Fast I/Os (Input/Outputs) and their associated
functions.
What Is in This Chapter?
This chapter contains the following sections:
Section
Topic
Page
8.1
118
8.2
126
8.3
132
8.4
FG (Frequency Generator)
135
EIO0000000016 04/2014
117
Section 8.1
HSC (High Speed Counter)
118
Page
HSC Overview
119
Modes
122
124
EIO0000000016 04/2014
HSC Overview
Introduction
Modicon M238 Logic Controller includes embedded HSC inputs which can be activated and setup
using the HSC counting modes.
Concept
The HSC function is used for counting pulses, and depending on the configuration, update outputs,
regardless of the scan time of the application. The maximum frequency is 100 kHz.
The Simple HSC only uses 1 counting input and no output. Two counting modes allow to program
an action in the context of an application task (no event management) when a predefined count is
reached.
The Main HSC can use up to 4 inputs and 2 outputs, depending on the input mode and configured
functions: 5 counting modes are supported, with optional capture, thresholds and event
management.
NOTE: The fallback settings that may be configured (fallback to 0, fallback to 1, or fallback to the
current state) do not apply to outputs Q0, Q1, Q2 or Q3 if these outputs are configured for HSC
operation. If an error is detected and results in the controller entering a fallback state, these outputs
will fallback to a value of 0 irrespective of the configured fallback setting.
WARNING
UNINTENDED EQUIPMENT OPERATION
Design and program your system so that controlled equipment assumes a safe state when the
controller enters a fallback state if you use outputs Q0, Q1, Q2, or Q3 for PTO, PWM, FG, or HSC
operation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
EIO0000000016 04/2014
119
1 Main HSC
2 Main HSC
I0
I1
B/EN
B/EN
Synchronization
Synchronization
Capture
Capture
HSC0
I2
Fast Inputs
1 Main HSC
I3
I4
I5
B/EN
B/EN
Synchronization
Synchronization
Capture
Capture
HSC4
I6
I7
Fast Inputs
HSC
Channel
8
Simple HSC
I0
HSC0
I1
HSC1
I2
HSC2
I3
HSC3
I4
HSC4
I5
HSC5
I6
HSC6
I7
HSC7
NOTE: An HSC channel can be assigned any fast input address. There is no preferred addressing
order.
120
EIO0000000016 04/2014
I1
Fast Inputs
HSC0
I3
4 Simple HSC
+ 1 Main HSC
I0
HSC0
B/EN
I1
HSC1
Synchronization
I2
HSC2
I3
HSC3
Capture
Fast Inputs
I0
I2
HSC
Channel
1 Main HSC
+ 4 Simple HSC
A
A
I4
HSC4
I5
HSC5
I5
I6
HSC6
I6
Synchronization
I7
HSC7
I7
Capture
EIO0000000016 04/2014
I4
HSC4
B/EN
121
Modes
Introduction
This section provides information about the following HSC modes:
One Shot
Modulo Loop
Free Large
Event Counting
Frequency Meter
One Shot
The One Shot counter mode allows you to count a predefined number of pulses and stop.
Principle: The counter decreases from a preset value and stops when its current value reaches
0. At this point, the done bit is set and the current counter value is not modified by any new pulses
from the input. The counter waits for the next synchronization to restart.
Example: The preset value may be a number of pieces to be packaged.
Modulo Loop
The Modulo Loop counter mode is used for applications for which actions are repetitive.
Principle: In this mode the counter repeatedly counts from 0 to a user-defined maximum value
then returns to 0 and moves on, in a direct way. In reverse, the counter counts down from the
maximum value to 0 then presets to the maximum value and continues to decrease. This mode
can be used with a single Encoder.
Free Large
The Free Large Counter mode is for axis monitoring or labeling when the incoming position of each
part has to be known.
Principle: In the Free Large Counter mode, the module behaves like a high-range Up/Down
counter. This mode can be used with a single Encoder.
Event Counting
The Event Counting mode is used to count a sequence of events over a given period of time.
Principle: The counter assesses the number of pulses applied on the input for a predefined period
of time. The counting register is updated at the end of each period with the number of events
received.
122
EIO0000000016 04/2014
Frequency Meter
The Frequency Meter mode allows the measurement of an events frequency, speed, rate or flow.
Principle: The measured frequency is a mean frequency: number of events in the time interval
converted to number of events per second (Hz).
Implementation in SoMachine
To configure HSC parameters, refer to the HSC Library (see Modicon M238 Logic Controller,
Programming Guide) Online Help.
EIO0000000016 04/2014
123
Main
Channel
Fast
Input
Regular
Output
HSC
Main
Simple(1)
Simple(2)
I0
I1
B(3)(4)
I2
(4)
Sync
I3
Cap(4)
I4
I5
I6
Sync(4)
I7
Cap(4)
Q4
Q5
Q6
Q7
HSC4 reflex
(3)(4)
Output0(4)
Q8
HSC4 reflex
Output1(4)
Q9
(1) Channels HSC0 to HSC3 are usable as a Simple HSC only if HSC0 is not used as a Main HSC
(see page 119).
(2) Channels HSC4 to HSC7 are usable as a Simple HSC only if HSC4 is not used as a Main HSC
(see page 119).
(3) A and B functions depend on the configuration of Main HSC mode (see page 122).
(4) Used or not according to the configuration of Main HSC mode.
124
EIO0000000016 04/2014
HSC
Type
Main
Channel
Fast
Input
Simple
Main
(1)
Simple(2)
I0
A(3)
I1
B(3)(4)
I2
Sync(4)
I3
Cap(4)
I4
A(3)
I5
B(3)(4)
I6
Sync(4)
I7
Cap(4)
Q0
HSC0 reflex
HSC4 reflex
Output0(4)
Q1
Transistor
Output
HSC0 reflex
Output1(4)
Q2
Output0(4)
Q3
HSC4 reflex
Output1(4)
(1) Channels HSC0 to HSC3 are usable as a Simple HSC only if HSC0 is not used as a Main HSC
(see page 119).
(2) Channels HSC4 to HSC7 are usable as a Simple HSC only if HSC4 is not used as a Main HSC
(see page 119).
(3) A and B functions depend on the configuration of Main HSC mode (see page 122).
(4) Optional: used or not according to the configuration of Main HSC mode.
EIO0000000016 04/2014
125
Section 8.2
PTO (Pulse Train Output)
126
Page
PTO Overview
127
131
EIO0000000016 04/2014
PTO Overview
Introduction
The information below refers to the following model numbers:
TM238LFDC24DT
TM238LDD24DT
The PTO (Pulse Train Output) function implements digital technology for precise positioning tasks.
Concept
Pulse Train Output (PTO) function is used to control a stepper or servo motor. It provides a square
wave output for a specified number of pulses and frequency, with controlled acceleration and
deceleration.
A set of function blocks are provided with the PTO library to command a move: PTOMoveVelocity,
PTOMoveRelative, PTOHome, PTOStop (see M238 PTO Library) (see Modicon M238 Logic
Controller, Pulse Train Output, Pulse Width Modulation, M238 PTOPWM Library Guide).
The following diagram gives an example of a move:
Target Frequency
Start/Stop Frequency
Target Position
Trapezoidal Profile
EIO0000000016 04/2014
127
M 238
0 G0 1 2 G2
4 G4
6 G6 7
FAST INPUTS
9 10 11 12 13 C8
INPUTS
Servo Drive
Motor
Speed
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
M238
PulseTrain Output
Variable frequency
Up to 100 kHz
BATT
RUN
ERR
SL1
CAN R
SL2
CAN E
Pulses
Integrator
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
Q9
PWR
Position
loop
Speed
loop
Torque
loop
TM 238 D1 DDT24C
Position completed
SL 1
SL 2
FAST OUTPUTS
V0+ V0- 0 1
2 3
OUTPUTS
V1+ V1- 4 5 6
V2+ V2- 7 8 9
A pulse profile can be used to control a stepper motor through a basic ramp up, run, and ramp
down sequence or more complicated sequences. The control positioning is relative without
feedback. The position loop may be integrated in the servo-drive.
The Hardware
2 PTO channels are available on the controller. Each PTO channel is associated to 2 fast outputs
and 1 regular auxiliary input (see page 131).
Modes
4 PTO modes are available to drive a motor:
Pulse/Direction
Direction/Pulse
ClockWise/CounterClockWise
CounterClockWise/ClockWise
128
EIO0000000016 04/2014
The following table determines the signal applied on each PTO output:
PTO mode
PTO Output0
PTO Output1
Pulse/Direction
Pulse
Direction
Direction/Pulse
Pulse
Direction
ClockWise/CounterClockWise
ClockWise
CounterClockWise
ClockWise
CounterClockWise
CounterClockWise/ClockWise
Motion Functions
4 motion functions are available:
Move Velocity: moving at a programmed speed
Move Relative: moving of a programmed distance
Homing: moving to the reference position
Stop: stop moving
Performance
The maximum generated frequency is 100 kHz.
The 2 PTO channels can be used simultaneously but can only control independent axes.
Therefore, the embedded PTO function can be used for:
single axis point-to-point motion
2-axis simultaneous point-to-point motion (each axis is managed independently)
But you should not use it for:
2-axis synchronized point-to-point motion
2-axis interpolation motion
WARNING
UNEXPECTED EQUIPMENT OPERATION
Do not use the PTO channels to perform 2-axis synchronized point-to-point motion control or 2axis motion interpolation.
Failure to follow these instructions can result in death, serious injury, or equipment
damage.
EIO0000000016 04/2014
129
Implementation in SoMachine
To configure PTO parameters, refer to the PTO/PWM Library (see Modicon M238 Logic Controller,
Pulse Train Output, Pulse Width Modulation, M238 PTOPWM Library Guide).
130
EIO0000000016 04/2014
PTO
Channel
Regular
Input
Fast
Output
EIO0000000016 04/2014
PTO0
PTO1
I8
I9
I10
I11
I12
I13
Q0
PTO0 Output0
Q1
PTO0 Output1
Q2
PTO1 Output0
Q3
PTO1 Output1
131
Section 8.3
PWM (Pulse Width Modulation)
132
Page
PWM Overview
133
134
EIO0000000016 04/2014
PWM Overview
Introduction
The information below refers to the following model numbers:
TM238LFDC24DT
TM238LDD24DT
The Pulse Width Modulation (PWM) function generates a square wave signal with programmable
frequency and variable width (duty cycle). The module uses one internal clock generator and
provides an output signal on a dedicated output channel. This output signal can directly command
a variable motion of the axis. The target frequency is always positive.
For more information on the PWM functionality. (see Modicon M238 Logic Controller, Pulse Train
Output, Pulse Width Modulation, M238 PTOPWM Library Guide)
Main Characteristics
The signal form depends on the following output parameters:
Frequency: configurable from 0.1 Hz to 20 kHz with a 0.1 Hz step
Duty Cycle: of the output signal from 0% to 100%
The Hardware
2 PWM channels are available on the controller. Each PWM channel is associated to 1 fast output
and 2 regular auxiliary inputs (see page 134).
Implementation in SoMachine
To configure PWM parameters, refer to the PTO/PWM Library (see Modicon M238 Logic
Controller, Pulse Train Output, Pulse Width Modulation, M238 PTOPWM Library Guide).
EIO0000000016 04/2014
133
PWM
Channel
Regular
Input
Fast
Output
134
PWM0
PWM1
I8
I9
I10
I11
I12
I13
Q0
PWM0 Output
Q1
Q2
PWM1 Output
Q3
EIO0000000016 04/2014
Section 8.4
FG (Frequency Generator)
FG (Frequency Generator)
Overview
This section will help you use the FG functions (see Modicon M238 Logic Controller, Pulse Train
Output, Pulse Width Modulation, M238 PTOPWM Library Guide) and the mapping of I/O.
Fast Input/Outputs that are not configured by the FG functions can be used as regular
Input/Outputs (see Modicon M238 Logic Controller, Programming Guide).
What Is in This Section?
This section contains the following topics:
Topic
Page
Frequency Generator
136
FG I/O Mapping
137
EIO0000000016 04/2014
135
Frequency Generator
Introduction
The information below refers to the following model numbers:
TM238LFDC24DT
TM238LDD24DT
The Frequency Generator (FG) function generates a square wave signal with programmable
frequency and duty cycle equal to 50%. The controller uses an internal clock generator and
provides an output signal on a dedicated output channel. This output signal can directly command
a constant motion of the axis. The target frequency is always positive.
For more information on the FG functionality. (see Modicon M238 Logic Controller, Pulse Train
Output, Pulse Width Modulation, M238 PTOPWM Library Guide)
Main characteristics
The signal form depends on the following input parameter:
Frequency: configurable from 1 Hz to 100 kHz with a 1 Hz step
The Hardware
2 FG channels are available on the controller. Each FG channel is associated to 1 fast output and
2 regular auxiliary inputs (see page 137).
Implementation in SoMachine
To configure FG parameters, refer to the PTO/PWM Library (see Modicon M238 Logic Controller,
Pulse Train Output, Pulse Width Modulation, M238 PTOPWM Library Guide).
136
EIO0000000016 04/2014
FG I/O Mapping
FG I/O Mapping
The table below shows the availability of the FG functions according to the inputs and outputs:
Function
FG
Channel
Regular
Input
Fast
Output
EIO0000000016 04/2014
FG0
FG1
I8
I9
I10
I11
I12
I13
Q0
FG0 Output
Q1
Q2
FG1 Output
Q3
137
138
EIO0000000016 04/2014
Chapter 9
Wiring Diagram Examples
Page
140
142
144
145
Wiring the Modicon M238 Logic Controller to the LEXIUM 05 via the Universal Signal Interface
Converter (USIC)
146
EIO0000000016 04/2014
139
(4)
(2)
A
0V
I0 G0 I1
Incremental Encoder with Phase-Shifted Signals with TDC and 3-Wire PNP Detector
I2 G2 I3
PNP
I4 G4 I5
I6 G6 I7
Fast Inputs
NOTE:
140
Use a specific auxiliary power supply for the encoders and sensors connected to the fast inputs
and used in fast counter mode.
Use cordsets with mandatory shielding to connect to the metal support for mounting the
Modicon M238 Logic Controller: 10 m (32.8 ft) max.
Use a 0.5 A fast-blow fuse.
EIO0000000016 04/2014
Incremental Encoder with Phase-Shifted Signals without TDC and Electromechanical Sensor
(3)
(1)
0V
I0 G0 I1
I2 G2 I3
I4 G4 I5
I6 G6 I7
Fast Inputs
NOTE:
Use a specific auxiliary power supply for the encoders and sensors connected to the fast inputs
and used in fast counter mode.
Use cordsets with mandatory shielding to connect to the metal support for mounting the
Modicon M238 Logic Controller: 10 m (32.8 ft) max.
Use a 0.5 A fast-blow fuse.
EIO0000000016 04/2014
141
(2)
0V
I0 G0 I1
I2 G2 I3
(2)
0V
I4 G4 I5
I6 G6 I7
Fast Inputs
NOTE:
142
Use a specific auxiliary power supply for the encoders and sensors connected to the fast inputs
and used in the fast counter mode.
Use cordsets with mandatory shielding to connect to the metal support for mounting the
Modicon M238 Logic Controller: 10 m (32.8 ft) max.
Use a 0.5 A fast-blow fuse.
EIO0000000016 04/2014
(1)
A
0V
I0 G0 I1
I2 G2 I3
(1)
0V
I4 G4 I5
I6 G6 I7
Fast Inputs
NOTE:
Use a specific auxiliary power supply for the encoders and sensors connected to the fast inputs
and used in the fast counter mode.
Use cordsets with mandatory shielding to connect to the metal support for mounting the
Modicon M238 Logic Controller: 10 m (32.8 ft) max.
Use a 0.5 A fast-blow fuse.
EIO0000000016 04/2014
143
PNP
+
(2)
I9 I10
I13 C8
(3)
NPN
(1)
I9 I10
I13 C8
NOTE:
144
For improved electromagnetic compatibility (EMC), use the same power supply for the inputs as
the Modicon M238 Logic Controller.
EIO0000000016 04/2014
1
2
White
Brown
V0+ V0- Q0 Q1 Q2 Q3
Green
Yellow
24VDC
CN1
NOTE: Use cordsets with mandatory shielding to connect to the metal support for mounting the
Modicon M238 Logic Controller: 10 m (32.8 ft) max.
EIO0000000016 04/2014
145
Wiring the Modicon M238 Logic Controller to the LEXIUM 05 via the Universal
Signal Interface Converter (USIC)
Introduction
This section provides an example of an implementation with the PTO function.
The information below refers to the following model numbers:
TM238LFDC24DT
TM238LDD24DT
Principle
The pulse/direction input of a drive receives pulses and converts them to make the motor move.
146
EIO0000000016 04/2014
Hardware Configuration
The following illustration shows the connections between the different parts of the hardware
configuration.
0
G0 1
G2
G4
G6
FAST INPUTS
10
11 12 13 C8
INPUTS
I0
I1
I2
I3
I4
I5
I6
I7
I8
I9
I10
I11
I12
I13
prg.
Port.
BATT
RUN
ERR
SL1
CAN R
SL2
CAN E
Q0
Q1
Q2
Q3
Q4
Q5
Q6
Q7
Q8
Q9
PWR
CANopen
M238
Master
TM 238 D1 DDT24C
OUTPUTS
FAST OUTPUTS
SL2
SL1
2
CN2
CN4
CN3
CN2
R-network
CN1
CN4
0162501532009
CN5
0162501532009
CN5
USIC
VW3M3102
CN2
R-network
CN1
USIC
VW3M3102
CN2
CN3
CN1
CN4
CN3
3
CN1
CN4
CN3
4
CN5 Resistor network
Label
Description
Reference
TM238LFDC24DT or
TM238LDD24DT
VW3M8210R30
USIC
VW3M3102
Lexium 05
USIC/Lexium05 cable
cable length = 3 m (9.8 ft)
VW3M8209R30
EIO0000000016 04/2014
Quantity
147
CAUTION
UNINTENDED EQUIPMENT OPERATION OR INOPERABLE EQUIPMENT
Remove the CN5 Resistor Network from the Universal Signal Interface Converter (USIC).
Failure to follow these instructions can result in injury or equipment damage.
Wiring the Modicon M238 Logic Controller to USIC
The VW3M8210R30 cable is required for this wiring.
FAST OUTPUTS
24VDC
White
V0+ V0- Q0 Q1 Q2 Q3
Green
1
2
CN1
White
Yellow
Yellow
4 5 6 7 8
11 12 13 14 15
Pink
10
Brown
NOTE: Use cordsets with mandatory shielding to connect to the metal support for mounting the
Modicon M238 Logic Controller: 10 m (32.8 ft) max.
148
EIO0000000016 04/2014
USIC
CN2
CN5
Active2 8
4 Active2_OUT
Pulse 1
1 Pulse
Pulse 9
6 Pulse
Dir 2
2 Dir
Dir 10
7 Dir
Enable 3
3 Enable
Enable 11
8 Enable
0 VDC 15
9 POS_0V
5 Shield
PG
NOTE: Use cordsets with mandatory shielding to connect to the metal support for mounting the
Modicon M238 Logic Controller: 10 m (32.8 ft) max.
Wiring USIC
The CN4 and CN3 USIC pins need to be wired as shown:
CN4
1
CN3
4
9 10 11 12
+24 VDC
0 VDC
USIC Implementation
PTO signals generated by the Modicon M238 Logic Controller are in 24 Vdc. The USIC (Universal
Signal Interface Converter) converts 24 Vdc signal into 5 Vdc signal.
For more information, refer to the documentation of the USIC.
EIO0000000016 04/2014
149
Lexium Implementation
Refer to the documentation of the Lexium 05.
150
EIO0000000016 04/2014
Glossary
A
analog input
Converts received voltage or current levels into numerical values. You can store and process these
values within the logic controller.
application
A program including configuration data, symbols, and documentation.
ASCII
(American standard code for Information Interchange) A protocol for representing alphanumeric
characters (letters, numbers, certain graphics, and control characters).
B
Boot application
(boot application) The binary file that contains the application. Usually, it is stored in the PLC and
allows PLC to boot on the application that the user has generated.
byte
A type that is encoded in an 8-bit format, ranging from 16#00 to 16#FF in hexadecimal
representation.
C
CANopen
An open industry-standard communication protocol and device profile specification (EN 50325-4).
CFC
(continuous function chart) A graphical programming language (an extension of the IEC 61131-3
standard) based on the function block diagram language that works like a flowchart. However, no
networks are used and free positioning of graphic elements is possible, which allows feedback
loops. For each block, the inputs are on the left and the outputs on the right. You can link the block
outputs to the inputs of other blocks to create complex expressions.
CiA
(CAN in automation) A non-profit group of manufacturers and users dedicated to developing and
supporting CAN-based higher layer protocols.
controller
Automates industrial processes (also known as programmable logic controller or programmable
controller).
EIO0000000016 04/2014
151
Glossary
CRC
(cyclical redundancy check) A method used to determine the validity of a communication
transmission. The transmission contains a bit field that constitutes a checksum. The message is
used to calculate the checksum by the transmitter according to the content of the message.
Receiving nodes, then recalculate the field in the same manner. Any discrepancy in the value of
the 2 CRC calculations indicates that the transmitted message and the received message are
different.
CSA
(Canadian standards association) The Canadian standard for industrial electronic equipment in
hazardous environments.
CTS
(clear to send) A data transmission signal and acknowledges the RDS signal from the transmitting
station.
D
DCE
(data communications equipment) Describes devices (often modems) that start, stop, and sustain
network sessions.
DIN
(Deutsches Institut fr 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.
encoder
A device for length or angular measurement (linear or rotary encoders).
Ethernet
A physical and data link layer technology for LANs, also known as IEE 802.3.
expansion I/O module
(expansion input/output module) Either a digital or analog module that adds additional I/O to the
base controller.
152
EIO0000000016 04/2014
Glossary
F
FAST I/O
FAST input/output Specific I/O modules with some electrical features (for example, response time)
while the treatment of these channels are done directly by the controller
FBD
(function block diagram) One of 5 languages for logic or control supported by the standard IEC
61131-3 for control systems. Function block diagram is a graphically oriented programming
language. It works with a list of networks, where each network contains a graphical structure of
boxes and connection lines, which represents either a logical or arithmetic expression, the call of
a function block, a jump, or a return instruction.
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.
FG
(frequency generator) A function that generates a square wave signal with programmable
frequency.
firmware
Represents the BIOS, data parameters, and programming instructions that constitute the operating
system on a controller. The firmware is stored in non-volatile memory within the controller.
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)
function block
A programming unit that has 1 or more inputs and returns 1 or more outputs. FBs are called through
an instance (function block copy with dedicated name and variables) and each instance has a
persistent state (outputs and internal variables) from 1 call to the other.
Examples: timers, counters
EIO0000000016 04/2014
153
Glossary
H
HMI
(human machine interface) An operator interface (usually graphical) for human control over
industrial equipment.
HSC
(high-speed counter)
I
I/O
(input/output)
I/O terminal
(input/output terminal) A collection of connection points between the field wiring and the I/O
modules or those integrated into the controller.
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).
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.
154
EIO0000000016 04/2014
Glossary
L
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).
LED
(light emitting diode) An indicator that illuminates under a low-level electrical charge.
LRC
(longitudinal redundancy checking) An error-detection method for determining the correctness of
transmitted and stored data.
M
MAST
A processor task that is run through its programming software. The MAST task has 2 sections:
IN: Inputs are copied to the IN section before execution of the MAST task.
OUT: Outputs are copied to the OUT section after execution of the MAST task.
master/slave
The single direction of control in a network that implements the master/slave mode.
Modbus
The protocol that allows communications between many devices connected to the same network.
ms
(millisecond)
N
NC
(not connected)
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.
network
A system of interconnected devices that share a common data path and protocol for
communications.
node
An addressable device on a communication network.
EIO0000000016 04/2014
155
Glossary
P
PDO
(process data object) An unconfirmed broadcast message or sent from a producer device to a
consumer device in a CAN-based network. The transmit PDO from the producer device has a
specific identifier that corresponds to the receive PDO of the consumer devices.
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).
power supply terminals
The power supply is connected to these terminals to provide power to the controller.
Profibus DP
(Profibus decentralized peripheral) An open bus system uses an electrical network based on a
shielded 2-wire line or an optical network based on a fiber-optic cable. DP transmission allows for
high-speed, cyclic exchange of data between the controller CPU and the distributed I/O devices.
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. The 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). The
PTO is well adapted to simulate or approximate an analog output in that it regulates the voltage of
the output over its period making it useful in light dimming or speed control applications, among
others.
156
EIO0000000016 04/2014
Glossary
R
reflex output
Among the outputs of HSC are the reflex outputs associated to a threshold value that is compared
to the counter value depending on the configuration of the HSC. The reflex outputs switch to either
on or off depending on the configured relationship with the threshold.
RFID
(radio frequency identification) An automatic identification method that relies on the storage and
remote retrieval of data by using RFID tags or transponders.
RPDO
(receive process data object An unconfirmed broadcast message or sent from a producer device
to a consumer device in a CAN-based network. The transmit PDO from the producer device has a
specific identifier that corresponds to the receive PDO of the consumer devices.
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.
RTU
(remote terminal unit ) A device that interfaces with objects in the physical world to a distributed
control system or SCADA system by transmitting telemetry data to the system and/or altering the
state of connected objects based on control messages received from the system.
run
A command that causes the controller to scan the application program, read the physical inputs,
and write to the physical outputs according to solution of the logic of the program.
RxD
The line that receives data from one source to another.
EIO0000000016 04/2014
157
Glossary
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.)
SL
(serial line)
SoMachine
A comprehensive controller development system software tool for configuring and programming
the Modicon logic controller and devices compliant with IEC 61131-3.
ST
(structured text) A language that includes complex statements and nested instructions (such as
iteration loops, conditional executions, or functions). ST is compliant with IEC 61131-3.
STOP
A command that causes the controller to stop running an application program.
system variable
A variable that provides controller data and diagnostic information and allows sending commands
to the controller.
T
task
A group of sections and subroutines, executed cyclically or periodically for the MAST task or
periodically for the FAST task.
A task possesses a level of priority and is linked to inputs and outputs of the controller. These I/O
are refreshed in relation to the task.
A controller can have several tasks.
TPDO
(transmit process data object) An unconfirmed broadcast message or sent from a producer device
to a consumer device in a CAN-based network. The transmit PDO from the producer device has a
specific identifier that corresponds to the receive PDO of the consumer devices.
TxD
The line that sends data from one source to another.
V
variable
A memory unit that is addressed and modified by a program.
158
EIO0000000016 04/2014
Index
A
AC power supply
wiring, 58
accessories, 23
allocation, I/Os, 124, 125, 131, 134, 137
B
battery, backup
external, 30
internal, 30
C
CANopen communication, 14, 95, 101
clearance, minimum, 38, 38
communication
CAN LEDs, 101
CANopen, 14, 95
serial line, 14, 91
communication modules, 21
connect a AC power supply, 58
connect a DC power supply, 54
connect fast input, 67
connect fast output, 75
connect regular input, 64
connect regular output, 71
connect relay output, 81
connect transistor output, 85
connections
to CANopen slaves, 95
to external devices, 91
cooling, 38
D
DC Physical Description, 19
DC power supply
wiring, 54
EIO0000000016 04/2014
E
electrical specification
fast input, 68
fast output, 76
regular inputs, 65
regular output, 72
relay output, 82
transistor output, 86
end bracket, 40
environmental specifications, 45
Example
Wiring the controller and the Lexium, 146
expansion modules, 21
external backup battery, 31
F
fast input
specifications, 68
fast inputs
wiring diagram, 69
fast output
specifications, 76
wiring diagram, 77
features
communication, 14
fast I/Os, 15
key features, 12
filtering, input, 104
159
Index
G
Grounding Shielded Cables, 61
H
high speed counter, 119
HSC, 119
features, 119
modes, 122
I
I/O allocation
FG, 137
HSC, 124, 125
PTO, 131
PWM, 134
input specifications
fast, 68
regular, 65
inputs wiring diagram
fast, 69
regular, 66
Installation and Maintenance Requirements
installation, 26
installation preparation, 29
installing
on a DIN rail, 40
on a metallic panel, 43
L
latching input, 105
LEDs
status, 100
M
maximum hardware configuration, 21
modules, communication, 21
modules, expansion, 21
mounting holes layout, 43
mounting positions, 35
160
mounting procedure
on a DIN rail, 40
on a metallic panel, 43
O
Output Management
AC controller, 112
DC controller, 107
output specification
fast, 76
regular, 72
relay, 82
transistor, 86
output wiring diagram
fast, 77
regular, 72
relay, 83
transistor, 87
P
programming
software, 18
programming languages
IL, ST, FBD, SFC, LD, CFC, 12
PTO, 127, 127
pulse train output, 127
pulse width modulation, 133
PWM, 133, 133
R
regular inputs
specifications, 65
wiring diagram, 66
regular output
specifications, 72
wiring diagram, 72
relay output
specifications, 82
wiring diagram, 83
RUN/STOP input, 106
EIO0000000016 04/2014
Index
safety guidelines
external battery disposal, 30
wiring, 49
serial line
specifications, 93
serial line communication, 91
software, programming, 18
SoMachine, 18
special functions
Frequency Generator, 136
HSC, 119
latching input, 105
PTO, 127
PWM, 133
RUN/STOP input, 106
special I/Os, 117
specifications
environmental, 45
fast input, 68
fast output, 76
regular inputs, 65
regular output, 72
relay output, 82
serial line, 93
transistor output, 86
starting, 29
status, LEDs, 100
system diagnostic, using LEDs, 100
wiring diagrams
AC power supply, 58
DC power supply, 54
fast inputs, 69
fast output, 77
regular inputs, 66
regular output, 72
relay output, 83
transistor output, 87
wiring rules, 49
T
tightening torque
inputs terminals, 66, 69
outputs terminals, 74, 79, 84, 88
transistor output
specifications, 86
wiring diagram, 87
U
USIC, 146, 149
EIO0000000016 04/2014
161
Index
162
EIO0000000016 04/2014