All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or
by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of
OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change without
notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility
for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in
this publication.
Page 4
Page 5
SYSMAC CJ Series
CJ2M-CPU@@
+
CJ2M-CPU@@
(Pulse I/O Module)
CJ2M CPU Unit Pulse I/O Module
User’s Manual
Produced July 2010
Page 6
Page 7
Introduction
Thank you for purchasing a CJ2M-CPU@@ CPU Unit for a CJ-series Programmable Controller.
This manual provides information that is necessary to use a CJ2M-MD211 or CJ2M-MD212 Pulse I/O
Module connected to a CJ2M CPU Unit.
Read this manual completely and be sure you understand the contents before attempting to use a
Pulse I/O Module.
Intended Audience
This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems
• Personnel in charge of designing FA systems.
• Personnel in charge of managing FA systems and facilities.
Applicable Products
CJ-series CP2 CPU Units
•CJ2M-CPU3@
•CJ2M-CPU1@
Note This manual refers to one or more CPU Units using the generic model number CJ2M-CPU@@.
CJ2 Series
CJ2 CPU Units
CJ2H CPU Units
CJ2H-CPU6@-EIP
CJ2H-CPU6@
CJ2M CPU Units
CJ2M-CPU3@
CJ2M-CPU1@
Pulse I/O Module for
CJ2M CPU Units
CJ1-H CPU Units
CJ1H-CPU@@H-R
CJ1H-CPU@@H
CJ1G-CPU@@H
CJ1G -CPU@@P
(Loop CPU Units)
CJ1M CPU Units
CJ1M-CPU@@
CJ1 CPU Units
CJ1G-CPU@@
CJ-series Basic I/O Units
CJ-series Special I/O Units
CJ-series CPU Bus Units
CJ-series Power Supply Units
NSJ Series
NSJ Controllers
NSJ5-TQ@@(B)-G5D
NSJ5-SQ@@(B)-G5D
NSJ8-TV@@(B)-G5D
NSJ10-TV@@(B)-G5D
NSJ12-TS@@(B)-G5D
NSJ Controllers
NSJ5-TQ@@(B)-M3D
NSJ5-SQ@@(B)-M3D
NSJ8-TV@@(B)-M3D
NSJ-series Expansion Units
CS Series
CS1-H CPU Units
CS1H-CPU@@H
CS1G-CPU@@H
CS1D CPU Units
CS1D CPU Units
for Duplex Systems
CS1D-CPU@@H
CS1D CPU Units
for Simplex Systems
CS1D-CPU@@S
CS1D Process-control CPU Units
CS1D-CPU@@P
CS1 CPU Units
CS1H-CPU@@(-V)
CS1G-CPU@@(-V)
CS-series Basic I/O Units
CS-series Special I/O Units
CS-series CPU Bus Units
CS-series Power Supply Units
Note: A special Power Supply Unit must
be used for CS1D CPU Units.
CJ2M CPU Unit Pulse I/O Module User’s Manual
1
Page 8
CJ2 CPU Unit Manuals
Information on the CJ2 CPU Units is provided in the following manuals. Refer to the appropriate manual
for the information that is required.
Mounting
and Setting
1
Hardware
2
Wiring
CJ-series CJ2 CPU Unit
Hardware User’s Manual
(Cat. No. W472)
• Unit part names and
specifications
• Basic system
configuration
• Unit mounting
procedure
• Setting procedure for
DIP switch and rotary
switches on the front of
the CPU Unit
For details on built-in
EtherNet/IP port, refer to
the EtherNet/IP Unit Operation Manual (W465)
CJ-series CJ2 CPU Unit
Software User’s Manual
(Cat. No. W473)
CS/CJ/NSJ Series
Instructions Reference
Manual (Cat. No. W474)
This Manual
CJ2M CPU Unit Pulse
I/O Module User's
Manual (Cat. No. W486)
•
Specifications and wiring
of Pulse I/O Modules
•
Available pulse I/O
functions and allocations
Connecting
Online to
3
the PLC
Software
4
Setup
Creating the
5
Program
Checking
and
Debugging
6
Operation
• Wiring the Power
Supply Unit
• Wiring Basic I/O Units
and external I/O
devices
CX-Programmer Support
Software Connecting
Cables
Procedures for connecting
the CX-Programmer
Support Software
Software setting methods for the
CPU Unit (including I/O memory
allocation, PLC Setup settings,
Special I/O Unit parameters,
CPU Bus Unit parameters, and
routing tables.)
For details on built-in EtherNet/IP
port, refer to the EtherNet/IP Unit Operation Manual (W465).
• Program types and basic
information
• CPU Unit operation
• Internal memory
• Data management using
file memory in the CPU
Unit
• Built-in CPU functions
• Settings
Detailed information
on programming
instructions
•
Wiring methods between
Pulse I/O Modules and
external I/O devices
Software setting
procedures for Pulse
I/O Modules (I/O
memory allocations
and PLC Setup
settings)
Pulse I/O functions
Maintenance
and
7
Troubleshooting
2
• Checking I/O wiring, setting the
Auxiliary Area settings, and
performing trial operation
• Monitoring and debugging with
the CX-Programmer
Error codes and
remedies if a problem
occurs
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 9
Manual Configuration
The CJ2 CPU manuals are organized in the sections listed in the following tables. Refer to the appropriate section in the manuals as required.
Hardware User’s Manual (Cat. No. W472)
SectionContent
Section 1 Overview
Section 2 Basic System Configuration and Devices
Section 3 Nomenclature and
Functions
Section 4 Support Software
Section 5 Installation
Section 6 Troubleshooting
Section 7 Inspection and Maintenance
Section 8 Backup OperationsThis section describes the procedure to back up PLC data.
Appendices
This section gives an overview of the CJ2 CPU Units and describes the features and
specifications.
This section describes the system configuration for the CJ2 CPU Unit.
This section describes the part names and functions of the CPU Unit and Configuration
Units.
This section describes the types of Support Software to use to perform programming and
debugging and how to connect the PLC to the Support Software.
This section describes the installation locations and how to wire CPU Units and Configuration Units.
This section describes how to check the status for errors that occur during system operation and the remedies for those errors.
This section describes periodic inspection, the service life of the Battery and Power Supply Unit, and how to replace the Battery.
The appendices provide Unit dimensions, details on fatal and non-fatal errors, information on connecting to serial ports on the CPU Unit, the procedure for installing the USB
driver on a computer, and information on load short-circuit protection and line disconnection detection.
Software User’s Manual (Cat. No. W473)
SectionContent
Section 1 Overview
Section 2 Internal Memory in the
CPU Unit
Section 3 CPU Unit OperationThis section describes the internal operation of the CPU Unit.
Section 4 CPU Unit InitializationThis section describes the initial setup of the CPU Unit.
Section 5 Understanding Programming
Section 6 I/O Memory AreasThis section describes the I/O memory areas in the CPU Unit.
Section 7 File Operations
Section 8 I/O Allocations and
Unit Settings
Section 9 PLC Setup
Section 10 CPU Unit FunctionsThis section describes functions that are built into the CPU Unit.
Section 11 Programming Devices
and Communications
Section 12 CPU Unit Cycle TimeThis section describes how to monitor and calculate the cycle time.
Appendices
This section gives an overview of the CJ2 CPU Units and describes the features and
specifications.
This section describes the types of memory in the CPU Unit and the data that is stored.
This section describes program types and programming details, such as symbols and
programming instructions.
This section describes the files that can be stored in the CPU Unit, the storage destination for those files, and file operations.
This section describes the I/O allocations used to exchange data between the CPU Unit
and other Units.
This section describes details on the PLC Setup settings, which are used to perform
basic settings for the CPU Unit.
This section describes the procedure for connecting the CJ2 CPU Unit to the CX-Programmer or other Support Software and to other devices.
The appendices provide information on programming instructions, execution times, number of steps, Auxiliary Area words and bits, a memory map of the continuous PLC memory addresses, I/O memory operation when power is interrupted, and a comparison of
CJ-series and CS-series PLCs.
CJ2M CPU Unit Pulse I/O Module User’s Manual
3
Page 10
Instructions Reference Manual (Cat. No. W474)
SectionContent
Section 1 Basic Understanding
of Instructions
Section 2 Summary of Instructions
Section 3 Instructions
Section 4 Instruction Execution
Times and Number of Steps
Appendices
This section provides basic information on designing ladder programs for a CS/CJ/NSJseries CPU Unit.
This section provides a summary of instructions used with a CS/CJ/NSJ-series CPU
Unit.
This section describes the functions, operands and sample programs of the instructions
that are supported by a CS/CJ/NSJ-series CPU Unit.
This section provides the instruction execution times for each CS/CJ/NSJ-series CPU
Unit instruction.
The appendices provide a list of instructions by function code and by mnemonic and an
ASCII table for the CS/CJ/NSJ-series CPU Units.
This section lists the pulse functions of the CJ2M CPU Units and describes the overall
application flow and the allocation of the functions.
This section provides the specifications and describes the wiring of the Pulse I/O Module.
This section describes the quick-response function that can be used to input signals that
are shorter than the cycle time.
This section describes positioning functions, such as trapezoidal control, S-curve control,
jogging, and origin search functions.
The appendices provide a table of flag changes for pulse outputs, a comparison table
with other models, and a performance table.
4
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 11
Manual Structure
Page Structure
The following page structure is used in this manual.
Level 2 heading
Level 3 heading
A step
in a procedure
Special Information
(See below.)
5-2Installation
5-2-1 Connecting PLC Components
The Units that make up a CJ-series PLC can be connected simply by pressing the Units together and
locking the sliders by moving them toward the back of the Units. The End Cover is connected in the
same way to the Unit on the far right side of the PLC.
1. Join the Units so that the connectors fit exactly.
2. The yellow sliders at the top and bottom of each Unit lock the Units together. Move the sliders
toward the back of the Units as shown below until they click into place.
Precautions for Correct UsePrecautions for Correct Use
If the locking tabs are not secured properly, the connectors may become loose and not function
properly. Be sure to slide the locking tabs until they are securely in place.
Hook
Connector
Move the sliders toward the back
until they lock into place.
Hook holes
Release
Lock
Slider
5 Installation
Level 1 heading
Level 2 heading
Level 3 heading
Gives the current
headings.
noitallatsnI 2-5
5
Page tab
Gives the number
of the section.
gnitcennoC 1-2-5
P
opmoC CL
stnen
Manual name
CJ2 CPU Unit Hardware User’s Manual
This illustration is provided only as a sample and may not literally appear in this manual.
Special Information
Special information in this manual is classified as follows:
Precautions for Safe Use
Precautions on what to do and what not to do to ensure using the product safely.
Precautions for Correct Use
Precautions on what to do and what not to do to ensure proper operation and performance.
Additional Information
Additional information to increase understanding or make operation easier.
5-13
CJ2M CPU Unit Pulse I/O Module User’s Manual
5
Page 12
6
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 13
Sections in this Manual
1
2
1
2
3
4
5
6
Overview
I/O Application Procedures and Function Allocations
I/O Specifications and Wiring for Pulse I/O Modules
Please read and understand this manual before using the product. Please consult your OMRON representative
if you have any questions or comments.
Warranty and Limitations of Liability
WARRANTY
OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for a
period of one year (or other period if specified) from date of sale by OMRON.
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING NONINFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE
PRODUCTS. ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS
DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR
INTENDED USE. OMRON DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED.
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES,
LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS,
WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT
LIABILITY.
In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which
liability is asserted.
IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS
REGARDING THE PRODUCTS UNLESS OMRON'S ANALYSIS CONFIRMS THAT THE PRODUCTS
WERE PROPERLY HANDLED, STORED, INSTALLED, AND MAINTAINED AND NOT SUBJECT TO
CONTAMINATION, ABUSE, MISUSE, OR INAPPROPRIATE MODIFICATION OR REPAIR.
CJ2M CPU Unit Pulse I/O Module User’s Manual
13
Page 20
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the
combination of products in the customer's application or use of the products.
At the customer's request, OMRON will provide applicable third party certification documents identifying
ratings and limitations of use that apply to the products. This information by itself is not sufficient for a
complete determination of the suitability of the products in combination with the end product, machine,
system, or other application or use.
The following are some examples of applications for which particular attention must be given. This is not
intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses
listed may be suitable for the products:
• Outdoor use, uses involving potential chemical contamination or electrical interference, or conditions or
uses not described in this manual.
• Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical
equipment, amusement machines, vehicles, safety equipment, and installations subject to separate
industry or government regulations.
• Systems, machines, and equipment that could present a risk to life or property.
Please know and observe all prohibitions of use applicable to the products.
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO
ADDRESS THE RISKS, AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND
INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable product, or any
consequence thereof.
14
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 21
Disclaimers
CHANGE IN SPECIFICATIONS
Product specifications and accessories may be changed at any time based on improvements and other
reasons.
It is our practice to change model numbers when published ratings or features are changed, or when
significant construction changes are made. However, some specifications of the products may be changed
without any notice. When in doubt, special model numbers may be assigned to fix or establish key
specifications for your application on your request. Please consult with your OMRON representative at any
time to confirm actual specifications of purchased products.
DIMENSIONS AND WEIGHTS
Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when
tolerances are shown.
PERFORMANCE DATA
Performance data given in this manual is provided as a guide for the user in determining suitability and does
not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must
correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and
Limitations of Liability.
ERRORS AND OMISSIONS
The information in this manual has been carefully checked and is believed to be accurate; however, no
responsibility is assumed for clerical, typographical, or proofreading errors, or omissions.
CJ2M CPU Unit Pulse I/O Module User’s Manual
15
Page 22
16
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 23
Safety Precautions
Definition of Precautionary Information
The following notation is used in this manual to provide precautions required to ensure safe usage of a
CJ-series PLC. The safety precautions that are provided are extremely important to safety. Always read
and heed the information provided in all safety precautions.
WARNING
Caution
Precautions for Safe Use
Indicates precautions on what to do and what not to do to ensure using the product safely.
Precautions for Correct Use
Indicates precautions on what to do and what not to do to ensure proper operation and performance.
Indicates a potentially hazardous situation which, if not avoided,
could result in death or serious injury. Additionally, there may be
severe property damage.
Indicates a potentially hazardous situation which, if not avoided,
may result in minor or moderate injury, or property damage.
CJ2M CPU Unit Pulse I/O Module User’s Manual
17
Page 24
Symbols
The triangle symbol indicates precautions (including warnings).
The specific operation is shown in the triangle and explained in
text. This example indicates a precaution for electric shock.
The circle and slash symbol indicates operations that you must
not do. The specific operation is shown in the circle and
explained in text.
The filled circle symbol indicates operations that you must do.
The specific operation is shown in the circle and explained in
text. This example shows a general precaution for something
that you must do.
The triangle symbol indicates precautions (including warnings).
The specific operation is shown in the triangle and explained in
text. This example indicates a general precaution.
The triangle symbol indicates precautions (including warnings).
The specific operation is shown in the triangle and explained in
text. This example indicates a precaution for hot surfaces.
18
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 25
WARNING
Do not attempt to take any Unit apart or touch the inside of any Unit while the
power is being supplied. Doing so may result in electric shock.
Do not touch any of the terminals or terminal blocks while the power is being
supplied. Doing so may result in electric shock.
Provide safety measures in external circuits (i.e., not in the Programmable
Controller), including the following items, to ensure safety in the system if an
abnormality occurs due to malfunction of the Programmable Controller or
another external factor affecting the operation of the Programmable Controller. “Programmable Controller” indicates the CPU Unit and all other Units and
is abbreviated “PLC” in this manual. Not doing so may result in serious accidents.
• Emergency stop circuits, interlock circuits, limit circuits, and similar safety
measures must be provided in external control circuits.
• The PLC will turn OFF all outputs when its self-diagnosis function detects
any error or when a severe failure alarm (FALS) instruction is executed.
Unexpected operation, however, may still occur for errors in the I/O control
section, errors in I/O memory, and other errors that cannot be detected by
the self-diagnosis function. As a countermeasure for all such errors, external safety measures must be provided to ensure safety in the system.
• The PLC outputs may remain ON or OFF due to deposition or burning of
the output relays or destruction of the output transistors. As a countermeasure for such problems, external safety measures must be provided to
ensure safety in the system.
• Provide measures in the computer system and programming to ensure
safety in the overall system even if communications errors or malfunctions
occur in data link communications or remote I/O communications.
Confirm safety before transferring data files stored in the file memory (Memory Card or EM file memory) to the I/O area (CIO) of the CPU Unit using a
peripheral tool. Otherwise, the devices connected to the output unit may malfunction regardless of the operation mode of the CPU Unit.
Fail-safe measures must be taken by the customer to ensure safety in the
event of incorrect, missing, or abnormal signals caused by broken signal
lines, momentary power interruptions, or other causes. Serious accidents
may result from abnormal operation if proper measures are not provided.
CJ2M CPU Unit Pulse I/O Module User’s Manual
19
Page 26
Caution
Execute online edit only after confirming that no adverse effects will be
caused by extending the cycle time. Otherwise, the input signals may not be
readable.
Confirm safety at the destination node before transferring a program, PLC
Setup, I/O tables, I/O memory contents, or parameters to another node or
changing contents of the any of these items. Transferring or changing data
can result in unexpected system operation.
The CJ2 CPU Units automatically back up the user program and parameter
data to flash memory when these are written to the CPU Unit. I/O memory
including the DM, EM, and Holding Areas), however, is not written to flash
memory.
The DM, EM, and Holding Areas can be held during power interruptions with
a battery. If there is a battery error, the contents of these areas may not be
accurate after a power interruption. If the contents of the DM, EM, and Holding Areas are used to control external outputs, prevent inappropriate outputs
from being made whenever the Battery Error Flag (A402.04) is ON.
Tighten the terminal screws on the AC Power Supply Unit to the torque specified in the operation manual. The loose screws may result in burning or malfunction.
Do not touch the Power Supply Unit when power is being supplied or immediately after the power supply is turned OFF. The Power Supply Unit will be hot
and you may be burned.
When connecting a personal computer or other peripheral device to a PLC to
which a non-insulated Power Supply Unit (CJ1W-PD022) is mounted, either
ground the 0 V side of the external power supply or do not ground the external power supply at all ground. A short-circuit will occur in the external power
supply if incorrect grounding methods are used. Never ground the 24 V side,
as shown below.
Wiring in Which the 24-V Power Supply Will Short
Non-insulated
DC power supply
24 V
Peripheral
0 V
cable
0 V
20
FG
Power Supply
Unit
CPU Unit
Peripheral device (e.g.,
personal computer)
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 27
Application Precautions
Observe the following precautions when using a CJ-series PLC.
z Power Supply
• Always use the power supply voltages specified in the user’s manuals. An incorrect voltage may
result in malfunction or burning.
• Exceeding the capacity of the Power Supply Unit may prevent the CPU Unit or other Units from
starting.
• Take appropriate measures to ensure that the specified power with the rated voltage and frequency is supplied. Be particularly careful in places where the power supply is unstable. An incorrect power supply may result in malfunction.
• Always turn OFF the power supply to the PLC before attempting any of the following. Not turning
OFF the power supply may result in malfunction or electric shock.
• Mounting or dismounting Power Supply Units, I/O Units, CPU Units, Option Boards, Pulse I/O
Modules or any other Units.
• Assembling the Units.
• Setting DIP switches or rotary switches.
• Connecting cables or wiring the system.
• Connecting or disconnecting the connectors.
• When cross-wiring terminals, the total current for all the terminal will flow in the wire. Make sure
that the current capacity of the wire is sufficient.
• Observe the following precautions when using a Power Supply Unit that supports the Replacement Notification Function.
• Replace the Power Supply Unit within six months if the display on the front of the Power Supply Unit alternates between 0.0 and A02, or if the alarm output automatically turns OFF.
• Keep the alarm output cable separated from power line and high-voltage lines.
• Do not apply a voltage or connect a load exceeding the specifications to the alarm output.
• When storing the Power Supply Unit for more than three months, store it at −20 to 30°C and
25% to 70% humidity to preserve the Replacement Notification Function.
• If the Power Supply Unit is not installed properly, heat buildup may cause the replacement notification signal to appear at the wrong time or may cause interior elements to deteriorate or
become damaged. Use only the standard installation method.
• Do not touch the terminals on the Power Supply Unit immediately after turning OFF the power
supply. Residual voltage may cause electrical shock.
• Observe the following precautions to prevent failure due to difference in electrical potential if the
computer is connected to the PLC.
• Before connecting a laptop computer to the PLC, disconnect the power supply plug of the
computer from the AC outlet. Residual current in the AC adaptor may cause difference in electrical potential to occur between the computer and the PLC. After you connect the computer
and PLC, supply the power again from the AC adaptor.
• If the computer has an FG terminal, make the connections so that it has the same electrical
potential as the FG (GR) terminal on the PLC.
• If the computer is grounded to a separate location, difference in electrical potential may occur
depending on the grounding conditions.
z Installation
• Do not install the PLC near sources of strong high-frequency noise.
• Before touching a Unit, be sure to first touch a grounded metallic object in order to discharge any
static build-up. Not doing so may result in malfunction or damage.
CJ2M CPU Unit Pulse I/O Module User’s Manual
21
Page 28
• Be sure that the terminal blocks, connectors, Memory Cards, Option Boards, Pulse I/O Modules,
expansion cables, and other items with locking devices are properly locked into place.
• The sliders on the tops and bottoms of the Power Supply Unit, CPU Unit, I/O Units, Special I/O
Units, CPU Bus Units, and Pulse I/O Modules must be completely locked (until they click into
place) after connecting to adjacent Units. It may not be possible to achieve proper functionality if
the sliders are not locked.
z Wiring
• Follow the instructions in this manual to correctly perform wiring.
• Double-check all wiring and switch settings before turning ON the power supply. Incorrect wiring
may result in burning.
• Be sure that all terminal screws, and cable connector screws are tightened to the torque specified
in the relevant manuals. Incorrect tightening torque may result in malfunction.
• Mount terminal blocks and connectors only after checking the mounting location carefully.
• Leave the label attached to the Unit when wiring. Removing the label may result in malfunction if
foreign matter enters the Unit.
• Remove the label after the completion of wiring to ensure proper heat dissipation. Leaving the
label attached may result in malfunction.
• Use crimp terminals for wiring. Do not connect bare stranded wires directly to terminals. Connection of bare stranded wires may result in burning.
• Do not apply voltages to the Input Units in excess of the rated input voltage. Excess voltages may
result in burning.
• Always connect to a ground of 100 Ω or less when installing the Units. Not connecting to a ground
of 100 Ω or less may result in electric shock.
A ground of 100 Ω or less must be installed when shorting the GR and LG terminals on the Power
Supply Unit.
• Do not apply voltages or connect loads to the Output Units in excess of the maximum switching
capacity. Excess voltage or loads may result in burning.
• Do not pull on the cables or bend the cables beyond their natural limit. Doing either of these may
break the cables.
• Do not place objects on top of the cables or other wiring lines. Doing so may break the cables.
• Do not use commercially available RS-232C personal computer cables. Always use the special
cables listed in this manual or make cables according to manual specifications. Using commercially available cables may damage the external devices or CPU Unit.
• Never connect pin 6 (5-V power supply) on the RS-232C port on the CPU Unit to any device other
than an NT-AL001 Link Adapter, CJ1W-CIF11 Converter, and Programmable Terminals (NV3WM@20L). The external device or the CPU Unit may be damaged.
22
z Handling
• The Power Supply Unit may possibly be damaged if the entire voltage for a dielectric strength test
is applied or shut OFF suddenly using a switch. Use a variable resistor to gradually increase and
decrease the voltage.
• Separate the line ground terminal (LG) from the functional ground terminal (GR) on the Power
Supply Unit before performing withstand voltage tests or insulation resistance tests. Not doing so
may result in burning.
• Make sure that the DIP switches and DM Area are set correctly before starting operation.
• After replacing the CPU Unit, a Special I/O Unit, or a CPU Bus Unit, make sure that the required
data for the DM Area, Holding Area, and other memory areas has been transferred to the new
Unit before restarting operation.
• Confirm that no adverse effect will occur in the system before attempting any of the following. Not
doing so may result in an unexpected operation.
• Changing the operation mode of the PLC (including the setting of the startup operation mode).
• Force-setting/force-resetting any bit in memory.
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 29
• Changing the present value of any word or any set value in memory.
• Do not attempt to disassemble, repair, or modify any Units. Any attempt to do so may result in malfunction, fire, or electric shock.
• Do not drop the PLC or subject abnormal vibration or shock to it.
• The life of the battery will be reduced if the PLC is left for a period of time without a battery
installed and without power supply, and then a battery is installed without turning ON the power
supply.
• Replace the battery as soon as a battery error occurs or as soon as the specified battery backup
time expires. Be sure to install a replacement battery within two years of the production date
shown on the battery's label.
• Before replacing the battery, turn ON power for at least 5 minutes before starting the replacement
procedure and complete replacing the battery within 5 minutes of turning OFF the power supply.
Memory contents may be corrupted if this precaution is not obeyed.
• If the Battery Error Flag is used in programming the application, confirm system safety even if the
system detects a battery error before you replace the battery while the power is ON.
• Do not short the battery terminals or charge, disassemble, heat, or incinerate the battery. Do not
subject the battery to strong shocks. Doing any of these may result in leakage, rupture, heat generation, or ignition of the battery. Dispose of any battery that has been dropped on the floor or otherwise subjected to excessive shock. Batteries that have been subjected to shock may leak if they
are used.
• UL standards require that only an experienced engineer can replace the battery. Make sure that
an experienced engineer is in charge of battery replacement. Follow the procedure for battery
replacement given in this manual.
• Dispose of the product and batteries according to local ordinances as they apply.
• If the I/O Hold Bit is turned ON, the outputs from the PLC will not be turned OFF and will maintain
their previous status when the PLC is switched from RUN or MONITOR mode to PROGRAM
mode. Make sure that the external loads will not produce dangerous conditions when this occurs.
(When operation stops for a fatal error, including those produced with the FALS(007) instruction,
all outputs from Output Unit will be turned OFF and only the internal output status will be maintained.)
• Unexpected operation may result if inappropriate data link tables or parameters are set. Even if
appropriate data link tables and parameters have been set, confirm that the controlled system will
not be adversely affected before starting or stopping data links.
• Write programs so that any data that is received for data link communications is used only if there
are no errors in the CPU Units that are the sources of the data. Use the CPU Unit error information in the status flags to check for errors in the source CPU Units. If there are errors in source
CPU Units, they may send incorrect data.
• All CPU Bus Units will be restarted when routing tables are transferred from a Programming
Device to the CPU Unit. Restarting these Units is required to read and enable the new routing
tables. Confirm that the system will not be adversely affected before transferring the routing
tables.
• Tag data links will stop between related nodes while tag data link parameters are being transferred during PLC operation. Confirm that the system will not be adversely affected before transferring the tag data link parameters.
• If there is interference with network communications, output status will depend on the devices that
are being used. When using devices with outputs, confirm the operation that will occur when there
is interference with communications, and implement safety measures as required.
CJ2M CPU Unit Pulse I/O Module User’s Manual
23
Page 30
• When creating an AUTOEXEC.IOM file from a Programming Device (a Programming Console or
the CX-Programmer) to automatically transfer data at startup, set the first write address to
D20000 and be sure that the size of data written does not exceed the size of the DM Area. When
the data file is read from the Memory Card at startup, data will be written in the CPU Unit starting
at D20000 even if another address was set when the AUTOEXEC.IOM file was created. Also, if
the DM Area is exceeded (which is possible when the CX-Programmer is used), the remaining
data will be written to the EM Area.
• The user program and parameter area data in the CJ2 CPU Units are backed up in the built-in
flash memory. The BKUP indicator will light on the front of the CPU Unit when the backup operation is in progress. Do not turn OFF the power supply to the CPU Unit when the BKUP indicator is
lit. The data will not be backed up if power is turned OFF.
• Check the user program and Unit parameter settings for proper execution before actually running
them on the Unit. Not checking the program and parameter settings may result in an unexpected
operation.
• When setting a Special I/O Unit or CPU Bus Unit in the I/O tables, carefully check the safety of the
devices at the connection target before restarting the Unit.
• Do not turn OFF the power supply to the PLC when reading or writing a Memory Card. Also, do
not remove the Memory Card when the BUSY indicator is lit. Doing so may make the Memory
Card unusable.
To remove a Memory Card, first press the memory card power supply switch and then wait for the
BUSY indicator to go out before removing the Memory Card.
• When restoring data, carefully check that the selected data is the correct data to be restored
before executing the restore operation. Depending on the contents of the selected data, the control system may operate unexpectedly after the data is restored.
• Some Special I/O Units and CPU Bus Units operate with parameters stored in the CPU Unit (e.g.,
words allocated in DM Area, data link tables, or Ethernet settings). Information on restrictions will
be displayed in the Information Area in the PLC Backup Tool if there are any restrictions for the
selected CPU Bus Unit or Special I/O Unit. Check the restrictions, and then be sure to select both
the CPU Unit and the CPU Bus Unit or Special I/O Unit when backing up or restoring data. The
control system may operate unexpectedly if the equipment is started with the data backed up or
restored without selecting both Units.
• Information on restrictions will be displayed in the Information Area in the PLC Backup Tool if the
data to be stored includes a Unit that has restrictions on backup. Check the information on restrictions and take the required countermeasures. The control system may operate unexpectedly
when the equipment is operated after the data is restored
• Before restoring data during PLC operation, be sure that there will be no problem if PLC operation
stops. If the PLC stops at an unexpected time, the control system may operate unexpectedly.
• Be sure to turn the PLC power supply OFF and then back ON after restoring data. If the power is
not reset, the system may not be updated with the restored data, and the control system may
operate unexpectedly.
• Data on forced status can be backed up but it cannot be restored. Perform the procedure to forceset or force-reset bits from the CX-Programmer as required before starting operation after restoring data that includes forced status. Depending on the difference in the forced status, the control
system may operate unexpectedly.
• If a symbol or memory address (only symbols are allowed for ST programming) is specified for the
suffix of an array variable in ladder or ST programming, be sure that the specified element number
does not exceed the maximum memory area range.
Specifying an element number that exceeds the maximum range of the memory area specified for
the symbol will result accessing data in a different memory area, and may result in unexpected
operation.
• If a symbol or address is specified for an offset in a ladder diagram, program so that the memory
area of the start address is not exceeded when the offset is specified indirectly using a word
address or symbol.
If an indirect specification causes the address to exceed the area of the start address, the system
will access data in other area, and unexpected operation may occur.
24
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 31
z External Circuits
• Always turn ON power to the PLC before turning ON power to the control system. If the PLC
power supply is turned ON after the control power supply, temporary errors may result in control
system signals because the output terminals on DC Output Units and other Units will momentarily
turn ON when power is turned ON to the PLC.
• Install external breakers and take other safety measures against short-circuiting in external wiring.
Insufficient safety measures against short-circuiting may result in burning.
CJ2M CPU Unit Pulse I/O Module User’s Manual
25
Page 32
Operating Environment Precautions
z Follow the instructions in this manual to correctly perform installation.
z Do not operate the control system in the following locations:
• Locations subject to direct sunlight.
• Locations subject to temperatures or humidity outside the range specified in the specifications.
• Locations subject to condensation as the result of severe changes in temperature.
• Locations subject to corrosive or flammable gases.
• Locations subject to dust (especially iron dust) or salts.
• Locations subject to exposure to water, oil, or chemicals.
• Locations subject to shock or vibration.
z Take appropriate and sufficient countermeasures when installing systems in the
following locations:
• Locations subject to static electricity or other forms of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radioactivity.
• Locations close to power supplies.
26
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 33
Regulations and Standards
Conformance to EC Directives
Applicable Directives
• EMC Directives
• Low Voltage Directive
Concepts
z EMC Directives
OMRON devices that comply with EC Directives also conform to the related EMC standards so that
they can be more easily built into other devices or the overall machine. The actual products have
been checked for conformity to EMC standards (see the following note). Whether the products conform to the standards in the system used by the customer, however, must be checked by the customer.
EMC-related performance of the OMRON devices that comply with EC Directives will vary depending on the configuration, wiring, and other conditions of the equipment or control panel on which the
OMRON devices are installed.
The customer must, therefore, perform the final check to confirm that devices and the overall
machine conform to EMC standards.
* Applicable EMC (Electromagnetic Compatibility) standards are as follows:
EMS (Electromagnetic Susceptibility):
EN 61000-6-2
* EMI (Electromagnetic Interference):
EN 61000-6-4 (Radiated emission: 10-m regulations)
z Low Voltage Directive
Always ensure that devices operating at voltages of 50 to 1,000 VAC and 75 to 1,500 VDC meet the
required safety standards for the PLC (EN 61131-2).
z Conformance to EC Directives
The CJ-series PLCs comply with EC Directives. To ensure that the machine or device in which the
CJ-series PLC is used complies with EC Directives, the PLC must be installed as follows:
• The CJ-series PLC must be installed within a control panel.
• You must use reinforced insulation or double insulation for the DC power supplies connected to
DC Power Supply Units and I/O Units.
• CJ-series PLCs complying with EC Directives also conform to the Common Emission Standard
(EN 61000-6-4). Radiated emission characteristics (10-m regulations) may vary depending on the
configuration of the control panel used, other devices connected to the control panel, wiring, and
other conditions. You must therefore confirm that the overall machine or equipment complies with
EC Directives.
CJ2M CPU Unit Pulse I/O Module User’s Manual
27
Page 34
Conformance to Shipbuilding Standards
This product conforms to the following shipbuilding standards. Applicability to the shipbuilding standards is based on certain usage conditions. It may not be possible to use the product in some locations. Contact your OMRON representative before attempting to use a PLC on a ship.
Usage Conditions for NK and LR Shipbuilding Standards
z Usage Conditions for Applications Other Than on the Bridge or Deck
• The PLC must be installed in a control panel.
• Gaps in the door to the control panel must be completely filled or covered with gaskets or other
material.
z Usage Conditions for Bridge and Deck (Certified Only by NK)
• The PLC must be installed in a control panel.
• Gaps in the door to the control panel must be completely filled or covered with gaskets or other
material.
• The following noise filter must be connected to the power supply line.
Noise Filter
ManufacturerCosel Co., Ltd.
ModelTAH-06-683
Conformance to UL and CSA Standards
This product complies with applicable UL and CSA standards. The following application conditions were
specified for compliance. Refer to Precaution for Compliance with Standards and CSA Standards provided with the product in advance.
Application Conditions for the CJ2M-MD21@
z The temperature inside the control panel must be 50°C or less.
z The following Connector-Terminal Block Conversion Unit and Connecting
Information on communications for CS/CJ/CPseries CPU Units and NSJseries Controllers
Installing software from the
CX-One
dows computers
CX-Programmer operating
procedure
CX-Simulator Simulation
Support Software for Windows computers
Using simulation in the CXProgrammer with CX-Programmer version 6.1 or
higher
Network setup and monitoring
Describes C-mode commands and FINS commands
Refer to this manual for a detailed description of
commands for communications with the CPU
Unit using C mode commands or FINS commands.
Note This manual describes the communica-
tions commands that are addressed to
CPU Units. The communications path that
is used is not relevant and can include any
of the following: serial ports on CPU Units,
communications ports on Serial Communications Units/Boards, and Communications Units. For communications
commands addressed to Special I/O Units
or CPU Bus Units, refer to the operation
manual for the related Unit.
Provides an overview of the CX-One FA Integrated Tool Package and describes the installation procedure.
Describes operating procedures for the CX-Programmer.
Also refer to the Software User’s Manual (W473)
and CS/CJ/NSJ-series Instructions Reference Manual (W474) when you do programming.
Describes the operating procedures for the CXSimulator.
A Pulse I/O Module is required as the interface between the CJ2M and external devices when using
CJ2M pulse I/O. Up to two Pulse I/O Modules can be connected to the left side of a CJ2M CPU Unit.
Connecting One Pulse I/O ModuleConnecting Two Pulse I/O Modules
Pulse I/O Module
I/O Module 0
Connected
CJ2M Simple or
Standard CPU Unit
Pulse I/O Modules
Connected
Connected
I/O Module 0
I/O Module 1
CJ2M Simple or
Standard CPU Unit
The following models are supported.
NameModelModel with transistor outputsSpecifications
Pulse I/O ModuleCJ2M-MD211Sinking outputs40-pin MIL connectors
CJ2M-MD212Sourcing outputs
1-2
Note The connector for the Connecting Cable is not provided with the Pulse I/O Module. Purchase and use a Con-
nector or Connecting Cable (sold separately). Refer to 3-2-3 Wiring for details.
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 41
1 Overview
Detection of Pulse I/O Modules
• The CJ2M CPU Unit detects the configuration of mounted Pulse I/O Modules each time the power
supply is turned ON. An error will not occur even if the number or models of the mounted Pulse I/O
Modules are different from the last time the PLC was operated.
• A fatal error (too many I/O points) will occur and the CPU Unit will not operate if three or more Pulse
I/O Modules are mounted.
1-1 Pulse I/O Modules
z Configuration Example of a CJ2M System with a Pulse I/O Module
Connecting One Servo Drive
Pulse I/O Module
XW2Z-100J-A@@
Connecting Cable for
Servo Drive
One-axis Servo Relay Unit
for Servo Drive
CJ2M CPU Unit
Connecting Cable for
Servo Drive
Servo Drive
Servomotor
1
Additional Information
• Pulse I/O Modules can be connected only to CJ2M CPU Units. They cannot be used with
CJ2H CPU Units.
• The pin arrangement of the I/O connected on the CJ2M-MD211 (sinking outputs) is compatible
with the built-in I/O connector on the CJ1M-CPU2@ CPU Unit.
CJ2M CPU Unit Pulse I/O Module User’s Manual
1-3
Page 42
1 Overview
1-2Overview of the Functions of CJ2M
Pulse I/O
The following functions of the pulse I/O of the CJ2M can be used by installing a Pulse I/O Module.
Select which function to use for each input and output in the PLC Setup.
Functions of Normal I/O
The inputs and outputs on the Pulse I/O Module can be used as normal inputs and normal outputs.
(Each Pulse I/O Module provides up to 10 inputs and 6 outputs.) The input time constant can be set to
0 ms (no filter), 0.5 ms, 1 ms, 2 ms, 4 ms, 8 ms, 16 ms, or 32 ms. The same setting is used for all 20
inputs. Chattering and the effects of external noise can be reduced by increasing the input time constant.
Quick-response Inputs
By setting an input on the Pulse I/O Module to quick-response input operation, inputs with signal widths
as small as 30 µs can be read with certainty regardless of the cycle time. Up to four quick-response
inputs can be used for each Pulse I/O Module (eight for the entire CJ2M PLC).
Interrupt Inputs
An interrupt task can be started when an input on the Pulse I/O Module turns ON or OFF (Direct Mode).
Alternatively, the rising or falling edge of the inputs can be counted. When the count reaches a specified
value, an interrupt task can be started. This is called Counter Mode. Up to four interrupt inputs can be
used for each Pulse I/O Module (eight for the entire CJ2M PLC).
High-speed Counters
A rotary encoder can be connected to the Pulse I/O Module input to accept differential phase or singlephase high-speed pulse counter inputs.
High-speed counter inputs (differential phase: 50 kHz, single-phase: 100 kHz) for up to 2 axes can be
used for each Pulse I/O Module (up to 4 axes for the entire CJ2M PLC).
z Use the Linear Mode or Ring Mode for the Counting Mode
The maximum value of the ring counter can be changed during operation using the MODE CONTROL (INI(880)) instruction.
1-4
z Start Interrupt Tasks Using Target Value Comparison or Range Comparison
for High-speed Processing
Interrupt tasks can be started when the PV reaches a target value for target value comparison, or
when it enters a specified range for range comparison.
z Frequency Measurement
The input pulse frequency can be measured by executing the HIGH-SPEED COUNTER PV READ
(PRV(881)) instruction. (Applicable only to high-speed counter 0.) It is possible to convert the frequency to a rotational speed by executing the COUNTER FREQUENCY CONVERT (PRV2(883))
instruction.
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 43
1 Overview
1-2 Overview of the Functions
z Maintain or Refresh (Selectable) High-speed Counter PVs
The High-speed Counter Gate Bit can be turned ON/OFF from the ladder program to select whether
the high-speed counter PVs will be maintained or refreshed.
Pulse Outputs
Fixed duty ratio pulse outputs can be output from the Pulse I/O Module outputs and used to perform
position or speed control with a Servo Drive or a stepping motor that accepts pulse inputs. Each Pulse
I/O Module provides 100-kHz pulse outputs for up to 2 axes (up to 4 axes for entire CJ2M PLC).
z Trapezoidal or S-curve Acceleration and Deceleration for Positioning
Trapezoidal or S-curve acceleration and deceleration can be used for position control using the
PULSE OUTPUT (PLS2(887)) instruction.
z Triangular Control for Pulse Outputs
If the target frequency cannot be reached when the setting is changed with a PLS2(887) or
ACC(888) instruction, triangular control will be performed. If the target position is exceeded using
the specified deceleration ratio, the deceleration ratio will be automatically corrected.
z Jogging Can Be Performed
Jogging can be performed by executing the SPED(885) or ACC(888) instruction.
of CJ2M Pulse I/O
1
z Pulse Output Frequency Tracing
Changes in the pulse output frequency can be checked graphically by using the CX-Programmer's
Data Trace Window.
z Easy Interrupt Feeding
An interrupt input can be used as a trigger to switch from speed control to position control and output the specified number of pulses, then decelerate to a stop using the INTERRUPT FEEDING
(IFEED(892)) instruction.
z Origin Searches and Origin Returns Can Be Performed Using the ORIGIN
SEARCH Instruction
An accurate origin search combining all I/O signals can be executed with a single instruction. It is
also possible to move directly to an established origin using the ORIGIN SEARCH (ORG(889))
instruction. It is also possible to perform origin returns by directly moving to a defined origin.
The origin search and origin return settings can be changed during operation using the MODE
CONTROL (INI(880)) instruction.
PWM Outputs
Lighting and power control can be performed by outputting variable duty ratio pulse (PWM) output signals from the outputs of the Pulse I/O Module.
Up to two PWM outputs can be used for each Pulse I/O Module (four for the entire CJ2M PLC).
CJ2M CPU Unit Pulse I/O Module User’s Manual
1-5
Page 44
1 Overview
1-3Functions of CJ2M Pulse I/O
The following functions of the CJ2M can be used by installing a Pulse I/O Module.
Additional Information
For information on installing Pulse I/O Modules, the number of Blocks and their positions, indicators, part names, part functions, and the external dimensions, refer to the CJ2 CPU Unit Hard-ware User's Manual (Cat. No. W472).
ItemFunctionReference
InputsNormal inputsThe status of input signals for normal I/O is read and
stored in I/O memory during the I/O refresh period.
Interrupt inputs in
Direct Mode
Interrupt inputs in
Counter Mode
High-speed
counter inputs
OutputsNormal outputsOutputs according to the content of the I/O memory
Pulse outputsThe specified number of pulses are output at a fixed
PWM outputs
(variable duty ratio
pulse outputs)
Defining the originDefines the machine origin by actually executing
The input signal triggers an interrupt task when it
turns ON or OFF.
The number of ON transitions or OFF transitions in
the input signal is counted and an interrupt task is
started when the specified count is reached.
High-speed counter inputs can be used to count
high-speed pulse signals. Interrupt tasks can also
be started.
and refresh timing.
duty ratio (50%) at the specified frequency.
Pulse are output at the specified duty ratio.Section 9 PWM Outputs
pulse output based on the pattern specified in the
origin search parameters, using the origin proximity
input and origin input signals as conditions. (Inputs
and outputs are used in combination.)
4-1 Normal Inputs
6-2 Interrupt Inputs
Section 7 High-speed
Counters
4-2 Normal Outputs
Section 8 Pulse Outputs
8-5 Defining the Origin
1-6
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 45
I/O Application Procedures and
Function Allocations
This section describes the procedures for using the I/O functions of the Pulse I/O Module and how to allocate functions to the I/O.
2 I/O Application Procedures and Function Allocations
2-1Pulse I/O Module Application
Procedure
The following procedure shows how to use the I/O functions of the Pulse I/O Module.
1
Assign functions.
2
Install the Pulse I/O
Assign the functions to be used to the I/O terminals on the Pulse I/O Unit.
Connect up to two Pulse I/O Modules to the
left of the CJ2M CPU Unit.
Refer to 2-2 Allocat-ing I/O Functions.
Modules.
3
Wire the Pulse I/O
Modules.
4
Make the settings
in PLC Setup.
• Normal connection: Connect with XW2Z-
@@@K Connecting Cable to the XW2D/B40@G Connector-Terminal Block Conversion Unit.
• Connecting with OMRON Servo Drives:
Connect with the special Connecting Cable
via a special Servo Relay Unit.
Set the port numbers for functions using the
CX-Programmer.
Example: When Using Interrupt Input IN03
and High-speed Counter 0
Parameters in the PLC Setup must be set for
the following functions.
Refer to 3-2-3 Wir-ing.
Refer to 2-2 Allocat-ing I/O Functions
and the section on
the PLC Setup in the
section for each
function.
• Interrupt Inputs
• Quick-response
Inputs
• High-speed
Counter Inputs
• Origin Search
2-2
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 47
2 I/O Application Procedures and Function Allocations
2-1 Pulse I/O Module Application Procedure
5
Create Ladder
Write ladder programs using the CX-Programmer.
Programming.
Example: Enable interrupts with the
Special Instructions
Write related
Auxiliary Area bits.
Read related
Auxiliary Area bits.
6
Transfer the PLC
Setup and ladder
MSKS(690) instruction and program highspeed counters with the CTBL(882) instruction.
Example: Resetting a high-speed counter.
Example: Reading the present value of a
high-speed counter.
Transfer the PLC Setup and ladder programs
from the CX-Programmer to the CJ2M CPU
Unit.
Refer to the information on the Auxiliary
Area in the CJ2 CPU
Unit Software User's
Manual (Cat. No.
W473).
2
programs.
7
Restart the CJ2M
Turn OFF the power supply to the CJ2M
PLC, then turn it ON again.
PLC.
8
Start the operation of the CJ2M CPU Unit.
Start operation.
CJ2M CPU Unit Pulse I/O Module User’s Manual
2-3
Page 48
2 I/O Application Procedures and Function Allocations
2-2Allocating I/O Functions
2-2-1Specifying the Functions to Use
Each of the Pulse I/O Module inputs and outputs are used for one of the I/O functions.
Some I/O terminals may support more than one function. However, only one function can be
assigned to each terminal. Specify the input functions in the PLC Setup from the CX-Programmer,
and specify the output functions in PLC Setup and programming instructions.
Multiple terminals are sometimes used in combination depending on the function, so some functions
cannot be combined. Allocate functions to be used to terminals in the CX-Programmer's PLC Setup.
The CX-Programmer automatically displays the combination of terminals that can be selected so
that there is no need to be concerned about allocating more than one function to the same terminal.
To see which functions can be allocated to which I/O terminals, refer to 2-2-3 Allocating Functions toInput Terminals and 2-2-4 Allocating Functions to Output Terminals.
2-2-2Selecting Functions in the PLC Setup
• Inputs can be selected on the I/O Module Tab Page.
2-4
Click the Set Button in the Interrupt Inputs and Quick-response Inputs Area to display a dialog box to
allocate functions to interrupt inputs and quick-response inputs.
The order of preference for allocating functions to inputs is as follows:
Origin Search > High-speed Counter (Phase Z/Reset) > Normal Inputs, Interrupt Inputs, and Quickresponse Inputs
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 49
2 I/O Application Procedures and Function Allocations
2-2-3Allocating Functions to Input Terminals
Allocating Functions to Input Terminals
Input terminals are allocated functions by setting parameters in the PLC Setup. Do not allocate more
than one function to the same input terminal.
Interrupt
Pulse I/O
Module
No.
0 (on the
right)
Input
terminal
symbol
IN00CIO
IN01CIO
IN02CIO
IN03CIO
IN04CIO
IN05CIO
IN06CIO
IN07CIO
IN08CIO
IN09CIO
address
2960.00
2960.01
2960.02
2960.03
2960.04
2960.05
2960.06
2960.07
2960.08
2960.09
Bit
Normal
inputs
Normal
input 0
Normal
input 1
Normal
input 2
Normal
input 3
Normal
input 4
Normal
input 5
Normal
input 6
Normal
input 7
Normal
input 8
Normal
input 9
inputs*
(Direct
Mode/Coun
ter Mode)
Interrupt
input 0
Interrupt
input 1
Interrupt
input 2
Interrupt
input 3
---------Pulse output 0
---------Pulse output 1
------Counter 1 phase
------Counter 1 phase
------Counter 0 phase
------Counter 0 phase
Quick-
response
inputs
Quickresponse
input 0
Quickresponse
input 1
Quickresponse
input 2
Quickresponse
input 3
High-speed
counter inputs
---Pulse output 0
---Pulse output 0
Counter 1 phase
Z or reset
Counter 0 phase
Z or reset
A, increment, or
count input
B, decrement, or
direction input
A, increment, or
count input
B, decrement, or
direction input
Pulse output
origin search
inputs
origin input signal
origin proximity
input signal
Pulse output 1
origin input signal
Pulse output 1
origin proximity
input signal
positioning completed signal
positioning completed signal
---
---
---
---
2-2 Allocating I/O Functions
2
2-2-3 Allocating Functions to Input Terminals
CJ2M CPU Unit Pulse I/O Module User’s Manual
2-5
Page 50
2 I/O Application Procedures and Function Allocations
Interrupt
Pulse I/O
Module
No.
1 (on the
left)
* Only specific pairs of interrupt inputs and pulse outputs can be used together when using interrupt
inputs with the INTERRUPT FEEDING (IFEED(892))) instruction. For details, refer to 8-4-4 INTER-RUPT FEEDING Instruction: IFEED(892).
Input
terminal
symbol
IN10CIO
IN11CIO
IN12CIO
IN13CIO
IN14CIO
IN15CIO
IN16CIO
IN17CIO
IN18CIO
IN19CIO
address
2962.00
2962.01
2962.02
2962.03
2962.04
2962.05
2962.06
2962.07
2962.08
2962.09
Bit
Normal
inputs
Normal
input 10
Normal
input 11
Normal
input 12
Normal
input 13
Normal
input 14
Normal
input 15
Normal
input 16
Normal
input 17
Normal
input 18
Normal
input 19
inputs*
(Direct
Mode/Coun
ter Mode)
Interrupt
input 4
Interrupt
input 5
Interrupt
input 6
Interrupt
input 7
---------Pulse output 2
---------Pulse output 3
------Counter 3 phase
------Counter 3 phase
------Counter 2 phase
------Counter 2 phase
Quickresponse
input 4
Quickresponse
input 5
Quickresponse
input 6
Quickresponse
input 7
Quick-
response
inputs
High-speed
counter inputs
---Pulse output 2
---Pulse output 2
Counter 3 phase
Z or reset
Counter 2 phase
Z or reset
A, increment, or
count input
B, decrement, or
direction input
A, increment, or
count input
B, decrement, or
direction input
Pulse output
origin search
inputs
origin input signal
origin proximity
input signal
Pulse output 3
origin input signal
Pulse output 3
origin proximity
input signal
positioning completed signal
positioning completed signal
---
---
---
---
2-6
Prohibition of Duplicated Use of Input Terminal Numbers
The bits 00 to 09 of CIO 2960 and CIO 2962 are used for interrupt inputs, quick-response inputs, highspeed counters, origin searches, and normal inputs. The same input terminal can be used for only one
of these functions. For example, if quick-response input 2 is used, then input terminal 02 cannot be
used for normal input 2, interrupt input 2, counter 1 phase Z/reset, or pulse output 1 origin input signal.
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 51
2 I/O Application Procedures and Function Allocations
2-2-4Allocating Functions to Output Terminals
Allocating Functions to Output Terminals
Functions are assigned to output terminals when an instruction is executed for an output bit. (The
instructions that can be used include OUT, ORG(889), and PWM(891).) If the origin search operation is
set to mode 1 or mode 2 in the PLC Setup, PWM outputs cannot be used for the output terminals that
are used for error counter reset outputs.
Pulse I/O
Module
No.
0 (on the
right)
1 (on the
left)
* The pulse output method is specified with an operand in the Pulse Output Instruction.
Output
terminal
symbol
OUT00CIO
OUT01CIO
OUT02CIO
OUT03CIO
OUT04CIO
OUT05CIO
OUT10CIO
OUT11CIO
OUT12CIO
OUT13CIO
OUT14CIO
OUT15CIO
address
2961.00
2961.01
2961.02
2961.03
2961.04
2961.05
2963.00
2963.01
2963.02
2963.03
2963.04
2963.05
Bit
Normal
outputs
Normal
output 0
Normal
output 1
Normal
output 2
Normal
output 3
Normal
output 4
Normal
output 5
Normal
output 6
Normal
output 7
Normal
output 8
Normal
output 9
Normal
output 10
Normal
output 11
CW/CCW
outputs
CW pulse
output 0
CCW pulse
output 0
CW pulse
output 1
CCW pulse
output 1
------Pulse output 0
------Pulse output 1
CW pulse
output 2
CCW pulse
output 2
CW pulse
output 3
CCW pulse
output 3
------Pulse output 2
------Pulse output 3
Pulse outputs*
Pulse +
direction
outputs
Pulse output 0
Pulse output 1
Direction
output 0
Direction
output 1
Pulse output 2
Pulse output 3
Direction
output 2
Direction
output 3
Origin search
output
------
------
------
------
error counter
reset output
error counter
reset output
------
------
------
------
error counter
reset output
error counter
reset output
PWM output
PWM output
0
PWM output
1
PWM output
2
PWM output
3
2-2 Allocating I/O Functions
2
2-2-4 Allocating Functions to Output Terminals
CJ2M CPU Unit Pulse I/O Module User’s Manual
2-7
Page 52
2 I/O Application Procedures and Function Allocations
2-3PLC Setup
The following dialog box will be displayed when the I/O Module Tab Page is opened in the PLC Setup.
I/O Module 0 Allocations and I/O Module 1 Allocations
The current settings of the I/O terminals on the Pulse I/O Modules are displayed here. Settings made
on the dialog boxes that are accessed from this dialog box are shown here so that you can see the current I/O terminal functions settings.
Normal Input Operation Setting
The input constant is set here.
Interrupt Inputs and Quick-response Inputs
The interrupt inputs and quick-response inputs are set here.
High-speed Counters
The functions and operating parameters of the high-speed counters are set here.
Pulse Outputs and Origin Searches
The functions and operating parameters of pulse outputs and the origin search function are set here.
2-8
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 53
2 I/O Application Procedures and Function Allocations
2-3-1Normal Input Operation Setting
Param ete rSettingDefaultDescription
Input Time
Constant
• Default (8 ms)
•No filter
• 0.5 ms
•1 ms
•2 ms
•4 ms
•8 ms
•16 ms
•32 ms
Default
(8 ms)
Set the input time constant for normal
inputs IN00 to IN19.
Note The input constant is ignored for
input terminals that are set for interrupt inputs, quick-response inputs,
and high-speed counters.
Related Auxiliary
Area words and bits
---Refreshed when
Update timing in
power is turned ON.
2-3-2Interrupt Input and Quick-response Input Detailed Settings
The following dialog box will be displayed if the Set Button in the Interrupt Inputs and Quick-response
Inputs Area of the I/O Module Tab Page in the PLC Setting Dialog Box. Items that cannot be set will be
grayed out. The items that are grayed out can be set if the required Input Operation is set.
CPU Unit
2-3 PLC Setup
2
2-3-1 Normal Input Operation Setting
Param ete rSettingDefaultDescription
Input Operation • Normal Input
• Quick-response
Input
• Interrupt Input
Edge • Rising Edge
• Falling Edge
Latch • Do not Use
• Pulse Output 0
• Pulse Output 1
• Pulse Output 2
• Pulse Output 3
• High-speed
Counter 0
• High-speed
Counter 1
• High-speed
Counter 2
• High-speed
Counter 3
Normal InputSet the function of the inter-
nal input.*
Rising EdgeThis setting is valid only
when the input is set to
Interrupt Input.
Set whether an interrupt will
occur when the input turns
ON or OFF.
Do not UseThis setting is valid only
when the input is set to
Interrupt Input.
Select the item to latch
when using the software
latch for the input for a
pulse output/high-speed
counter.
Related Auxiliary
Area words and bits
---Refreshed when
---Refreshed when
Latched PV: A10144
to A10159
Update timing in
CPU Unit
power is turned ON.
operation is started.
Refreshed when
power is turned ON.
* Only specific pairs of interrupt inputs and pulse outputs can be used together when using interrupt
inputs with the INTERRUPT FEEDING (IFEED(892))) instruction. For details, refer to 8-4-4 INTER-RUPT FEEDING Instruction: IFEED(892).
CJ2M CPU Unit Pulse I/O Module User’s Manual
2-9
Page 54
2 I/O Application Procedures and Function Allocations
2-3-3High-speed Counter Settings
The following dialog box will be displayed if the Set Button is clicked in the High-speed Counters Area of
the I/O Module Tab Page in the PLC Setting Dialog Box. Items that cannot be set will be grayed out. The
items that are grayed out can be set if the required Counter Setting and Counting Mode are set.
Param eterSettingDefaultDescription
Counter Setting• Not Use
• Input pulse frequency (60 kHz
max.)
• Input pulse frequency (100 kHz
max.)
Counting Mode• Linear mode
• Ring mode
Ring Counter
Max. Value
Reset Method• Z phase, soft-
Comparing After
Counter Reset
Pulse Input
Mode
0 to 4,294,967,2950Set the maximum value of the ring
ware reset
• Software reset
•Stop
•Continue
• Differential
Phase
• Pulse + Direction
• Up/Down pulses
• Increment pulse
Not UseSet whether to use the high-speed
Linear modeSet whether to use the counter as a
Z phase,
software
reset
StopSet whether to stop the comparison
Differential
Phase
counter.
When using the high-speed counter,
set the upper limit of the input frequency.
Note The frequency of the noise fil-
ter will change.
linear counter or a ring counter.
*This setting is valid only when using
the high-speed counter is enabled.
counter. The PV of the counter will
return to 0 when this value is
exceeded.
*This setting is valid only when using
the high-speed counter is enabled
and it is set to Ring mode.
*If 0 is set, the maximum value of the
counter will be 4,294,967,295.
Set the reset method for the PV of
the high-speed counter.
*This setting is valid only when using
the high-speed counter is enabled.
operation or continue it when the
counter is reset.
*This setting is valid only when using
the high-speed counter is enabled.
Set the counting method for the highspeed counter.
*This setting is valid only when using
the high-speed counter is enabled.
Refreshed when
power is turned ON or
operation is started.
Refreshed when
power is turned ON.
Refreshed when
power is turned ON.
power is turned ON.
2-10
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 55
2 I/O Application Procedures and Function Allocations
The settings for one high-speed counter can be copied to another high-speed counter.
Use the following procedure to copy the settings.
1. Click the Copy High-speed Counter Settings Button in the High-speed Counter Detailed Set-
tings Dialog Box.
The Copy High-speed Counter Settings Dialog Box will be displayed.
2. Select a high-speed counter to be copied in the box in the Copy Source Area and select another
high-speed counter in the Copy Destination Area.
2-3 PLC Setup
2
2-3-4 Pulse Output and Origin Search Settings
3. Click the OK Button.
The settings in the High-speed Counter Detailed Settings Dialog Box will be updated.
To initialize the settings of the high-speed counters, click the Defaults Button in the High-speed
Counter Detailed Settings Dialog Box.
2-3-4Pulse Output and Origin Search Settings
The following dialog box will be displayed if the Set Button in the Pulse Outputs and Origin Searches
Area is selected from the I/O Module Tab Page in the PLC Setting Dialog Box. Items that cannot be set
will be grayed out. The items that are grayed out can be set if the required Origin Search Setting and
Operation Mode are set.
CJ2M CPU Unit Pulse I/O Module User’s Manual
2-11
Page 56
2 I/O Application Procedures and Function Allocations
ParameterSettingDefaultDescription
Internal Pulse
Control Cycle
•4 ms
•1 ms
4 msSet the control frequency of the pulse output.
This setting affects the response to speed
changes when accelerating or decelerating and
to change instructions. If 1 ms is set, acceleration and deceleration will be performed in 1-ms
increments, providing a faster response for
change instructions for pulse outputs when
pulses are being output.
*Acceleration and deceleration rates are set in 4ms increments, but internal processing is performed in 1-ms increments.
Related Auxiliary
Area words and bits
---Refreshed when
Update timing in
CPU Unit
operation is started.
The following operation will be performed for the HUNDRED-MS TIMER (TIM/TIMX(550)), TEN-MS
TIMER (TIMH(015)/TIMHX(551)), and ONE-MS TIMER (TMHH(540)/TMHHX(552)) instructions if the
pulse control cycle is set to 1 ms.
• An error of up to one cycle time will occur in the timer PV accuracy.
• The timers will not operate correctly if the cycle time exceeds 100 ms.
• If the instructions above are in a task that is stopped or is not executed because it is jumped by a
JMP(004), CJMP(510), or CJPN(511) instruction, the timer will not operate correctly.
z Base Settings
Param eterSettingDefaultDescription
Limit Input Signal
Operation
Limit Input Signal
Ty pe
Clear Origin at
Limit Input Signal
Search/Return
Initial Speed (pps)
Speed Curve• Linear
• Search Only
•Always
• NC (Normally
Closed)
• NO (Normally Open)
• Hold Origin
• Clear Origin
0 to 100,0000Set the starting speed when
•S-curve
Search Only Set whether to enable the
NC (Normally
Closed)
Hold OriginSet whether to hold or clear
LinearSet the profile for accelera-
CW/CCW limit input signals
all the time or only for origin
searches.
Set the contact form for the
origin input signal.
the origin when the CW or
CCW limit input is received.
performing an origin search
or origin return.
tion/deceleration for pulse
outputs with acceleration/deceleration.
*This setting is used for
acceleration/deceleration for
all ports.
Related Auxiliary Area
words and bits
CW Limit Input Signal
Flags:
A540.08
A541.08
A542.08
A543.08
CCW Limit Input Signal
Flags:
A540.09
A541.09
A542.09
A543.09
No-origin Flags:
A280.05
A281.05
A326.05
A327.05
---Refreshed when
---Refreshed when
Update timing in
CPU Unit
Refreshed when
operation is started.
Refreshed when
operation is started.
Refreshed when
operation is started.
operation is started.
operation is started.
2-12
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 57
Origin Search
2 I/O Application Procedures and Function Allocations
ParameterSettingDefaultDescription
Origin Search
Setting
Search Direction• CW
Origin Detected
after Prox Input
Origin Search at
Limit Input
Operation Mode• Mode 0: Stepping
Origin Input Signal Type
Proximity Input
Signal Type
• Disable
• Enable
•CCW
• 0: Turns ON and
then OFF
• 1: Turns ON
• 2: Proximity Input
Not Used
•0: Reverse
• 1: Stop with Error
Motor
• Mode 1: Servomotor
• Mode 2: Servomotor with INP
• NC (Normally
Closed)
• NO (Normally
Open)
• NC (Normally
Closed)
• NO (Normally
Open)
DisableSet whether to use origin
CWSet the direction in which to detect
0: Turns ON
and then OFF
0: ReverseSet the operation to perform when
Mode 0:
Stepping
Motor
NC (Normally Closed)
NC (Normally Closed)
searches.
signals for origin searches.
*This setting is valid only when the
origin search function is enabled.
Set the timing for detecting the origin during origin searches.
*This setting is valid only when the
origin search function is enabled.
a CW/CCW limit input is received
during an origin search.
*This setting is valid only when the
origin search function is enabled.
Set the type of motor drive to use.
This setting affects the signals that
are used for origin searches and
positioning.
*This setting is valid only when the
origin search function is enabled.
Set the contact form for the origin
input signal.
*This setting is valid only when the
origin search function is enabled.
Set the contact form for the proximity input signal.
*This setting is valid only when the
origin search function is enabled.
Related Auxiliary
Area words and bits
---Refreshed when
---Refreshed when
---Refreshed when
---Refreshed when
---Refreshed when
---Refreshed when
---Refreshed when
Update timing in
CPU Unit
power is turned ON.
operation is started.
power is turned ON.
operation is started.
operation is started.
operation is started.
operation is started.
2-3 PLC Setup
2
2-3-4 Pulse Output and Origin Search Settings
High Speed (pps) 1 to 100,000 pps0 ppsSet to speed to use in origin
Proximity Speed
(pps)
Correction Value−2,147,483,648 to
1 to 100,000 pps0 ppsSet to speed to use in origin
0Set the correction to apply after
+2,147,483,647
searches until the proximity input
signal is received.
*This setting is valid only when the
origin search function is enabled.
searches until the origin input signal is received.
*This setting is valid only when the
origin search function is enabled.
detecting the origin input signal.
*This setting is valid only when the
origin search function is enabled.
---Refreshed when
operation is started.
---Refreshed when
operation is started.
---Refreshed when
operation is started.
CJ2M CPU Unit Pulse I/O Module User’s Manual
2-13
Page 58
2 I/O Application Procedures and Function Allocations
Param eterSettingDefaultDescription
Acceleration Rate 1 to 65,5350Set the acceleration rate in pps
Deceleration Rate 1 to 65,5350Set the deceleration rate in pps
Positioning Monitor Time (ms)
0 to 9,999 ms0Set the time to monitor for the
per 4 ms for accelerating during
origin searches.
*This setting is valid only when the
origin search function is enabled.
per 4 ms for decelerating during
origin searches.
*This setting is valid only when the
origin search function is enabled.
positioning completed signal after
pulse output has been completed.
A Positioning Timeout Error (error
code 0300) will occur if the positioning completed signal is not
received within the positioning
monitor time.
*This setting is valid only when the
origin search function is enabled
and operation mode 2 is set.
Origin Return
ParameterSettingDefaultDescription
Target Speed (pps)1 to 100,000 pps0 ppsSet the operating speed for
Acceleration Rate1 to 65,5350Set the acceleration rate in
Deceleration Rate1 to 65,5350Set the deceleration rate in
origin returns.
pps per 4 ms for accelerating
during origin returns.
pps per 4 ms for decelerating
during origin returns.
3 I/O Specifications and Wiring for Pulse I/O Modules
3-1I/O Specifications
3-1-1Input Specifications
z Normal Inputs
Inputs
Input form24-VDC inputLine driver inputs
Input current6.0 mA typical5.5 mA typical13 mA typical10 mA typical
Input voltage
range
Input impedance 3.6 kΩ4.0 kΩ---
Number of cir-
cuits
ON voltage/cur-
rent
OFF voltage/cur-
rent
ON response
time
OFF response
time
*1 The power supply voltage on the line driver side is 5 V ±5%.
*2 The input time constant can be set in the PLC Setup. When it is set to 0 ms, the delay due to internal compo-
nents results in an ON delay of 30 µs max. for IN00 to IN05 and IN10 to IN15 (2 µs max. for IN06 to IN09 and
IN16 to IN19) and an OFF delay of 150 µs max. for IN00 to IN05 and IN10 to IN15 (2 µs max. for IN06 to IN09
and IN16 to IN19).
IN00 to IN05 and
IN10 to IN15
24 VDC +10%/−15%RS-422A line driver
1 common, 1 circuit
17.4 VDC min., 3 mA min.---
1 mA max. at 5 VDC max. ---
8 ms max. (The input time constant can be set to 0, 0.5, 1, 2, 4, 8, 16, or 32 ms.)
8 ms max. (The input time constant can be set to 0, 0.5, 1, 2, 4, 8, 16, or 32 ms.)
IN06 to IN09 and
IN16 to IN19
IN00 to IN05 and
IN10 to IN15
AM26LS31 or equivalent
IN06 to IN09 and
IN16 to IN19
*1
*2
*2
z Interrupt Input and Quick-response Input Specifications
(IN00 to IN03 and IN10 to IN13)
ItemSpecifications
ON response time30 µs max.
OFF response
time
Response pulse
150 µs max.
30 µs min.150 µs min.
ON
OFF
3-2
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 61
3 I/O Specifications and Wiring for Pulse I/O Modules
z High-speed Counter Input Specifications (IN06 to IN09 and IN16 to IN19)
24-VDC inputLine driver input
Encoder input phase A or B, single-phase
60-kHz pulse input with 50% duty ratio
Changes in phases A and B must be
separated by at least 2.5 µs.
ON
50%
OFF
ON
50%
OFF
20.0 µs min.
T1T 2
T1, T2, T3, T4: 2.5 µs min.
T3 T4
3-1 I/O Specifications
3
3-1-1 Input Specifications
Encoder input phase Z (IN02/IN03 or IN12/IN13)
Maintain an ON time of 30 µs min.
Phase
Z/reset
input
and an OFF time of 150 µs min.
ON
50%
OFF
30 µs min.
Additional Information
For the counter inputs, it is necessary to check the factors that can affect the pulses, such as the type of output driver
in the encoder, cable length, and count pulse frequency. When counting pulses that exceed 60 kHz, we recommend
using an encoder with a line-driver output. To ensure that pulses can be counted stably, use a shielded twisted-pair
cable and keep the cable to 3 m or less in length.
CJ2M CPU Unit Pulse I/O Module User’s Manual
150 µs min.
Encoder input phase Z (IN02/IN03 or IN12/IN13)
Maintain an ON time of 30 µs min.
and an OFF time of 150 µs min.
30 µs min.150 µs min.
ON
50%
OFF
3-3
Page 62
3 I/O Specifications and Wiring for Pulse I/O Modules
3-1-2Output Specifications for Sinking Transistor Outputs
z Normal Outputs (OUT00 to OUT05 and OUT10 to OUT15)
OutputSpecifications
Rated voltage5 to 24 VDC
Allowable voltage range4.75 to 26.4 VDC
Maximum switching current0.3 A/output; 1.8 A/Unit
Number of circuits6 outputs (6 outputs/common)
Maximum inrush current3.0 A/output, 10 ms max.*
Leakage current0.1 mA max.
Residual voltage0.6 V max.
ON response time0.1 ms max.
OFF response time0.1 ms max.
FuseNone
External power supply (power
supply input +V for outputs)
*Refer to 4-3-2 Wiring Examples for details on suppressing the load's inrush current and modify the circuit if nec-
essary.
10.2 to 26.4 VDC 20 mA min.
z Pulse Outputs (OUT00 to OUT03 and OUT10 to OUT13)
ItemSpecifications
Rated voltage5 to 24 VDC
Allowable voltage range4.75 to 26.4 VDC
Maximum switching capacity30 mA
Minimum switching capacity7 mA
Maximum output frequency100 kHz
Output waveform
Note The ON/OFF status given above is for the output element.
Additional Information
• The load for the above values is assumed to be the resistance load, and does not take into
account the impedance for the connecting cable to the load.
• Due to distortions in pulse waveforms resulting from connecting cable impedance, the pulse
widths in actual operation may be smaller than the values shown above.
OFF
ON
90%
10%
2 µs min.
4 µs min.
3-4
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 63
3 I/O Specifications and Wiring for Pulse I/O Modules
z PWM Outputs (OUT04, OUT05, OUT14, and OUT15)
ItemSpecifications
Rated voltage5 to 24 VDC
Allowable voltage range4.75 to 26.4 VDC
Maximum switching capacity6.5535 kHz or less: 300 mA, 6.5535 to 32.8 kHz: 100 mA
Maximum output frequency32,800 Hz
PWM output accuracy (for ON
pulse width of 2 µs or longer)
Output waveform
ON duty at 6.5535 kHz or less: −0.2% to +1%, ON duty at
32.8 kHz: −1% to +5% (at switching current of 30 mA)
OFF
50%
3-1 I/O Specifications
ON
t
ON
T
ON duty =
t
ON
X 100%
T
Note The ON/OFF status given above is for the output element.
3-1-3Output Specifications for Sourcing Transistor Outputs
z Normal Outputs (OUT00 to OUT05 and OUT10 to OUT15)
OutputOUT0 to OUT5
Rated voltage5 to 24 VDC
Operating load voltage range4.75 to 26.4 VDC
Maximum switching current0.3 A/output, 1.8 A/Unit
Number of circuits6 outputs (6 outputs/common)
Maximum inrush current2.0 A/output, 10 ms max.*
Leakage current0.1 mA max.
Residual voltage0.6 V max.
ON response time0.1 ms max.
OFF response time0.1 ms max.
FuseNone
External supply power (power
supply input −V for outputs)
10.2 to 26.4 VDC, 20 mA min.
3
3-1-3 Output Specifications for Sourcing Transistor Outputs
*Refer to 4-3-2 Wiring Examples for details on suppressing the load's inrush current and modify the circuit if nec-
essary.
z Pulse Outputs (OUT00 to OUT03 and OUT10 to OUT13)
ItemSpecifications
Rated voltage5 to 24 VDC
Allowable voltage range4.75 to 26.4 VDC
Maximum switching capacity30 mA
Minimum switching capacity7 mA
Maximum output frequency100 kHz
Output waveform
Note The ON/OFF status given above is for the output element.
CJ2M CPU Unit Pulse I/O Module User’s Manual
ON
OFF
90%
10%
4 µs min.
2 µs min.
3-5
Page 64
3 I/O Specifications and Wiring for Pulse I/O Modules
Additional Information
• The load for the above values is assumed to be the resistance load, and does not take into
account the impedance for the connecting cable to the load.
• Due to distortions in pulse waveforms resulting from connecting cable impedance, the pulse
widths in actual operation may be smaller than the values shown above.
z PWM Outputs (OUT04, OUT05, OUT14, and OUT15)
ItemSpecifications
Rated voltage5 to 24 VDC
Allowable voltage range4.75 to 26.4 VDC
Maximum switching capacity6.5535 kHz or less: 300 mA, 6.5535 to 32.8 kHz: 100 mA
Maximum output frequency32,800 Hz
PWM output accuracy (for ON
pulse width of 2 µs or longer)
Output waveform
ON duty at 6.5535 kHz or less: ±0.5%, ON duty at 32.8 kHz:
±2.5% (at switching current of 30 mA)
ON
50%
OFF
t
ON
T
Note The ON/OFF status given above is for the output element.
ON duty =
t
ON
X 100%
T
3-6
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 65
3 I/O Specifications and Wiring for Pulse I/O Modules
3-2Wiring
3-2-1Connector Pin Allocations
z Connector on Sinking-type I/O Module (CJ2M-MD211)
* Terminals numbers on the XW2D-@@G@ Connector-Terminal Block Conversion Unit.
2
4
6
8
10
IN04/IN1424 VDC13A7IN05/IN1524 VDC14B7
12
14
16
18
20
IN06/IN1624 VDC19A10IN07/IN1724 VDC20B10
22
24
26
28
30
IN08/IN1824 VDC25A13IN09/IN1924 VDC26B13
32
34
36
38
40
OUT00/OUT10---31A16OUT01/OUT11---32B16
OUT02/OUT12---33A17OUT03/OUT13---34B17
OUT04/OUT14---35A18OUT05/OUT15---36B18
Power supply input +V
for outputs
COM---39A20COM---40B20
There are the following three methods for wiring a Pulse I/O Module.
• Using Connector-Terminal Block Conversion Units
Connector-Terminal Block Conversion Units are used when using normal I/O, quick-response
inputs, interrupt inputs, PWM outputs, or pulse outputs to stepping motors or other manufacturer's
Servo Drives.
• Using Servo Relay Units
Servo Relay Units are used when using OMRON's Servo Drives.
• Directly Connecting a Self-made Cable with a Connector
A self-made cable with a Connector can be used to directly connect the I/O.
Isolation
circuit
COM
Internal circuits
Isolation
circuit
Rated
voltage
circuit
OUT
−V
3-8
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 67
3 I/O Specifications and Wiring for Pulse I/O Modules
Precautions for Safe Use
• Never apply a voltage that exceeds the input voltage of the I/O circuits or the maximum switching capacity of the output circuits.
• When the power supply has positive and negative terminals, always wire them correctly.
• Use reinforced insulation or double insulation for the DC power supplies used for I/O to comply
with the EC Low Voltage Directive.
• Always double-check the connector wiring before turning ON the power.
• Do not pull on the cable. Doing so will damage the cable.
• Do not bend the cable past its natural bending radius. Doing so will damage the cable.
• The connector pin allocation of the CJ1W-ID232/262 and OD233/263 connectors is not compatible. The Unit's internal circuits may be damaged if one of these connectors is connected.
• Do not connect a 24-VDC output device to a line driver input. Doing so may damage the internal circuits.
• Do not connect a line driver output device to the DC input. Doing so will not damage the internal circuits, but the input will not be recognized.
3-2 Wiring
3
3-2-3 Wiring
Using Connector-Terminal Block Conversion Units
A special OMRON Connecting Cable with a connector is used to connect the Connector-Terminal
Block Conversion Unit.
z Cables for Connector-Terminal Block Conversion Units
Applicable Connector-Terminal Block Conversion Units
Connecting Cable
XW2Z-@@@K
@@@: 100: 1 m
150: 1.5 m
200: 2 m
300: 3 m
500: 5 m
Compatible Con-
nector-Terminal
Block Conversion
Unit
XW2D-40G6Slim type
XW2B-40G4Through cable
XW2B-40G5Through cable
Type
(M3 screw terminals)
(M3 screw terminals)
(M3.5 screw terminals)
Num-
ber of
pins
40PCom-
Size
pact
Standard
Tempera-
ture (°C)
0 to 55
0 to 55
CJ2M CPU Unit Pulse I/O Module User’s Manual
3-9
Page 68
3 I/O Specifications and Wiring for Pulse I/O Modules
z Corresponding Connector-Terminal Block Conversion Unit Terminals
The following figure shows the corresponding terminals on the Connector-Terminal Block Conversion Unit when it is connected to a Pulse I/O Module.
XW2D-40G6 Connector-Terminal
Block Conversion Unit
39
37
35
33
31
29
27
25
23
21
19
17
15
13
11
9
7
5
3
1
Pulse I/O Module
connector pin numbers
40
38
36
34
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
3-10
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 69
3 I/O Specifications and Wiring for Pulse I/O Modules
z Connection Example When Using a Connector-Terminal Block Conversion
Unit
CJ2M
Pulse I/O Module
CPU Unit
XW2Z-@@@K Connecting Cable
for Connector-Terminal Block
Conversion Unit
@@@: Indicates the cable length.
Examples: 100 = 1 m, 150 = 1.5 m
XW2@-40G@
Connector-Terminal Block
Conversion Unit
Normal outputs, quick-response inputs,
interrupt inputs, PWM outputs, and
pulse outputs to stepping motors or
other manufacturer's Servo Drives.
Using Servo Relay Units (Sinking Outputs Only)
Use special OMRON Connecting Cables with Connectors to connect between the Sinking-type
Pulse I/O Module and the Servo Relay Unit and between the Servo Relay Unit and Servo Drive.
z Connecting Cable for Servo Relay Units
OMRON Servo Drive
SMARTSTEP A Series
(pulse string input)
SMARTSTEP Junior
(pulse string input)
W Series
(pulse string input)
G Series
(pulse string input)
G5 Series
(pulse string input)
SMARTSTEP 2 Series
(pulse string input)
Connecting Cable for
Pulse I/O Module to
Servo Relay Unit
XW2Z-100J-A26
1 m:
1 m: XW2Z-100J-A261 m:
0.5 m:
XW2Z-050J-A27
1 m:
XW2Z-100J-A27
0.5 m:
XW2Z-050J-A33
1 m:
XW2Z-100J-A33
0.5 m:
XW2Z-050J-A33
1 m:
XW2Z-100J-A33
0.5 m:
XW2Z-050J-A33
1 m:
XW2Z-100J-A33
Servo Relay Unit
Connecting one axis:
XW2B-20J6-8A
Connecting two axes:
XW2B-40J6-9A
Connecting Cable for
Servo Relay Unit to
Servo Drive
XW2Z-100J-B5
1 m:
2 m:
XW2Z-200J-B5
XW2Z-100J-B17
2 m:
XW2Z-200J-B17
1 m:
XW2Z-100J-B4
2 m:
XW2Z-200J-B4
1 m:
XW2Z-100J-B31
2 m:
XW2Z-200J-B31
1 m:
XW2Z-100J-B31
2 m:
XW2Z-200J-B31
1 m:
XW2Z-100J-B32
2 m:
XW2Z-200J-B32
3-2 Wiring
3
3-2-3 Wiring
CJ2M CPU Unit Pulse I/O Module User’s Manual
3-11
Page 70
3 I/O Specifications and Wiring for Pulse I/O Modules
z Connection Example When Using a Servo Relay Unit
This is a connection example when the Servo Drive is connected to one or two axes using the Servo
Relay Unit. In the connection example, the positioning/origin search connections (origin input signal,
origin proximity input signal, and error counter reset output) with the Servo Drive are also wired.
Connecting One Servo Drive Using Pulse Output 0
Connecting to SMARTSTEP A-series or SMARTSTEP Junior Servo Drives
The status of input signals for normal inputs are read and stored in I/O memory during the I/O refresh
period in the same way as it is for Input Units. The input time constant (ON/OFF response time) can
also be set.
Bits 00 to 09 of CIO 2960 and CIO 2962 can be allocated as normal inputs.
Select the inputs in the PLC Setup.
4-1-2Application Procedure
1
2
Write the ladder program.
PLC Setup
• The input terminals that are used for normal inputs on a
Pulse I/O Module are also used for interrupt inputs,
quick-response inputs, high-speed counter inputs, and
origin searches.
• In the default settings for the PLC Setup, all input terminals are set for use as normal inputs.
• The input terminals that can be used as normal inputs
can be checked in the Pulse I/O Module 0 or 1 assignments on the I/O Module Tab Page.
• Set the Normal Input Operation Setting (Input Time
Constant Setting) in the PLC Setup to set the input time
constant (ON/OFF response time). The settings are the
same for IN00 to IN09 and IN10 to IN19.
The default is 8 ms.
Select from 0 ms (no filter), 0.5 ms, 1 ms, 2 ms, 4 ms, 8
ms, 16 ms, and 32 ms.
• Read the status using the LD instruction or other
instructions.
• Use !LD instructions and other immediate refreshing
version of instructions when immediate refreshing is
required.
Note: Immediate refreshing cannot be performed by the
IORF(097) instruction.
4-2
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 77
4 Normal I/O
Applicable Input Terminals
The inputs listed in the following table can be used as normal inputs.
The input terminals that are used for normal inputs are also used for interrupt inputs, quick-response
inputs, high-speed counter inputs, and origin searches. The same input terminal can be used for
only one of these functions. For example, if normal output 2 is used, the high-speed counter 1
phase-Z signal + software reset, quick-response input 2, interrupt input 2, and pulse output 1 origin
input (when performing origin searches) cannot be used.
Other functions that cannot be used at the same time
Pulse I/O
Module
No.
0 (on the
right)
Termi nal
symbol
IN00CIO
IN0101Nor mal input 1---Quick-response
IN0202Nor mal input 2Counter 1 phase
IN0303Nor mal input 3Counter 0 phase
IN0404Nor mal input 4---------Pulse output 0
IN0505Nor mal input 5---------Pulse output 1
IN0606Nor mal input 6Counter 1 phase
IN0707Nor mal input 7Counter 1 phase
IN0808Nor mal input 8Counter 0 phase
IN0909Nor mal input 9Counter 0 phase
WordBitFunction
00Normal input 0---Quick-response
2960
High-speed
counter inputs
Z or reset input
Z or reset input
A, increment, or
count input
B, decrement, or
direction input
A, increment, or
count input
B, decrement, or
direction input
Quick-
response
inputs
input 0
input 1
Quick-response
input 2
Quick-response
input 3
---------
---------
---------
---------
Interrupt
inputs
Interrupt
input 0
Interrupt
input 1
Interrupt
input 2
Interrupt
input 3
Origin search
inputs for
pulse outputs
0 to 3
Pulse output 0
origin input signal
Pulse output 0
origin proximity
input signal
Pulse output 1
origin input signal
Pulse output 1
origin proximity
input signal
positioning
completed signal
positioning
completed signal
4-1 Normal Inputs
4
4-1-2 Application Procedure
CJ2M CPU Unit Pulse I/O Module User’s Manual
4-3
Page 78
4 Normal I/O
Pulse I/O
Module
No.
1 (on the
left)
Other functions that cannot be used at the same time
Termi nal
symbol
IN10CIO
IN1101Nor mal input 11---Quick-response
IN1202Nor mal input 12Counter 3 phase
IN1303Nor mal input 13Counter 2 phase
IN1404Nor mal input 14---------Pulse output 2
IN1505Nor mal input 15---------Pulse output 3
IN1606Nor mal input 16Counter 3 phase
IN1707Nor mal input 17Counter 3 phase
IN1808Nor mal input 18Counter 2 phase
IN1909Nor mal input 19Counter 2 phase
WordBitFunction
00Normal input 10---Quick-response
2962
High-speed
counter inputs
Z or reset input
Z or reset
A, increment, or
count input
B, decrement, or
direction input
A, increment, or
count input
B, decrement, or
direction input
Quick-
response
inputs
input 4
input 5
Quick-response
input 6
Quick-response
input 7
---------
---------
---------
---------
Interrupt
inputs
Interrupt
input 4
Interrupt
input 5
Interrupt
input 6
Interrupt
input 7
Origin search
inputs for
pulse outputs
0 to 3
Pulse output 2
origin input signal
Pulse output 2
origin proximity
input signal
Pulse output 3
origin input signal
Pulse output 3
origin proximity
input signal
positioning
completed signal
positioning
completed signal
Specifications
ItemSpecifications
Number of inputs20 inputs
Allocated bitCIO 2960 and CIO 2962, bits 00 to 09
Input time constant
(ON/OFF response
time)
Default: 8 ms
The following settings can be made in the PLC Setup: 0 ms (no filter), 0.5 ms, 1 ms, 2
ms, 4 ms, 8 ms, 16 ms, or 32 ms.
4-4
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 79
4-2Normal Outputs
4-2-1Overview
Normal outputs are used to output standard output signals. The output point is refreshed when the allocated bit goes ON or OFF. Normal outputs are allocated to bits 00 to 05 of CIO 2961 and CIO 2963.
4 Normal I/O
4-2-2Flow of Operation
1
2
Determine the normal outputs to use.
Write the ladder program.
• Functions are assigned to output terminals when an
instruction (such as OUT, ORG(889), or PWM(891)) is
executed for an output bit.
• Execute the OUT instruction or other instructions.
• Use !OUT instructions and other immediate refreshing
version of instructions when immediate refreshing is
required.
Note: Immediate refreshing cannot be performed by the
IORF(097) instruction.
4-2 Normal Outputs
4
4-2-1 Overview
CJ2M CPU Unit Pulse I/O Module User’s Manual
4-5
Page 80
4 Normal I/O
Applicable Output Terminals
The outputs listed in the following table can be used as normal outputs.
The output terminals that are used for normal outputs are also used for pulse outputs, origin
searches, and PWM outputs. The same output terminal can be used for only one of these functions.
For example, if normal output 4 is used, PWM output 0 and the error counter reset for pulse output 0
(when performing origin searches) cannot be used.
Pulse I/O
Module
No.
0 (on the
right)
1 (on the
left)
Termi-
nal
symbol
OUT00CIO
OUT0101Normal
OUT0202Normal
OUT0303Normal
OUT0404Normal
OUT0505Normal
OUT10CIO
OUT1101Normal
OUT1202Normal
OUT1303Normal
OUT1404Normal
OUT1505Normal
WordBitFunction
00Normal
2961
00Normal
2963
output 0
output 1
output 2
output 3
output 4
output 5
output 6
output 7
output 8
output 9
output 10
output 11
Other functions that cannot be used at the same time
Pulse outputs
CW/CCW
outputs
CW pulse
output 0
CCW pulse
output 0
CW pulse
output 1
CCW pulse
output 1
------Pulse output 0
------Pulse output 1
CW pulse
output 2
CCW pulse
output 2
CW pulse
output 3
CCW pulse
output 3
------Pulse output 2
------Pulse output 3
Pulse +
direction
outputs
Pulse output 0------
Pulse output 1------
Direction output 0
Direction output 1
Pulse output 2------
Pulse output 3------
Direction output 2
Direction output 3
Origin search
outputs
------
------
error counter
reset output
error counter
reset output
------
------
error counter
reset output
error counter
reset output
PWM out-
puts
PWM output 0
PWM output 1
PWM output 2
PWM output 3
4-6
Specifications
ItemSpecifications
Number of outputs12 outputs
Allocated bitCIO 2961 and CIO 2963, bits 00 to 05
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 81
4-3Wiring
4-3-1Connector Pin Assignments
Normal Inputs
Pulse I/O Module No. 0 (on the right)Pulse I/O Module No. 1 (on the left)
Input type
and num-
ber
Normal
input 0
Normal
input 1
Normal
input 2
Normal
input 3
Normal
input 4
Normal
input 5
Normal
input 6
Normal
input 7
Normal
input 8
Normal
input 9
* Terminals numbers on the XW2D-@@G@ Connector-Terminal Block Conversion Unit.
Termi-
nal
symbol
IN001A124-VDC
IN012B124-VDC
IN027A424-VDC
IN038B424-VDC
IN0413A724-VDC
IN0514B724-VDC
IN0619A1024-VDC
IN0720B1024-VDC
IN0825A1324-VDC
IN0926B1324-VDC
Pin(*)
input
5 A30 V 5 A30 V
input
6 B30 V 6 B30 V
input
11A60 V 11A60 V
input
12B60 V 12B60 V
input
17A90 V 17A90 V
input
18B90 V 18B90 V
input
23A120 V 23A120 V
input
24B120 V 24B120 V
input
29A150 V 29A150 V
input
30B150 V 30B150 V
Descrip-
tion
Input type
and num-
ber
Normal
input 10
Normal
input 11
Normal
input 12
Normal
input 13
Normal
input 14
Normal
input 15
Normal
input 16
Normal
input 17
Normal
input 18
Normal
input 19
4 Normal I/O
Ter mi-
nal
symbol
IN101A124-VDC
IN112B124-VDC
IN127A424-VDC
IN138B424-VDC
IN1413A724-VDC
IN1514B724-VDC
IN1619A1024-VDC
IN1720B1024-VDC
IN1825A1324-VDC
IN1926B1324-VDC
Pin(*)
Descrip-
tion
input
input
input
input
input
input
input
input
input
input
4-3 Wiring
4
4-3-1 Connector Pin Assignments
CJ2M CPU Unit Pulse I/O Module User’s Manual
4-7
Page 82
4 Normal I/O
Normal Outputs
z Sinking-type Pulse I/O Module (CJ2M-MD211)
Output
type and
number
Normal
output 0
Normal
output 1
Normal
output 2
Normal
output 3
Normal
output 4
Normal
output 5
---37A19Power supply input +V
---39A20COM---39A20COM
* Terminals numbers on the XW2D-@@G@ Connector-Terminal Block Conversion Unit.
Pulse I/O Module No. 0 (on the right)Pulse I/O Module No. 1 (on the left)
Ter mi-
nal
symbol
OUT0031A16Output 0Normal
OUT0132B16Output 1Normal
OUT0233A17Output 2Normal
OUT0334B17Output 3Normal
OUT0435A18Output 4Normal
OUT0536B18Output 5Normal
Pin(*)Description
38B1938B19
40B2040B20
for outputs
Output
type and
number
output 6
output 7
output 8
output 9
output 10
output 11
---37A19Power supply input
Ter mi-
nal
symbol
OUT1031A16Output 0
OUT1132B16Output 1
OUT1233A17Output 2
OUT1334B17Output 3
OUT1435A18Output 4
OUT1536B18Output 5
Pin(*)Description
+V for outputs
z Sourcing-type Pulse I/O Module (CJ2M-MD212)
Pulse I/O Module No. 0 (on the right)Pulse I/O Module No. 1 (on the left)
Output
type and
number
Normal
output 0
Normal
output 1
Normal
output 2
Normal
output 3
Normal
output 4
Normal
output 5
---37A19COM---37A19COM
---39A20Power supply input −V
* Terminals numbers on the XW2D-@@G@ Connector-Terminal Block Conversion Unit.
Ter mi-
nal
symbol
OUT0031A16Output 0Normal
OUT0132B16Output 1Normal
OUT0233A17Output 2Normal
OUT0334B17Output 3Normal
OUT0435A18Output 4Normal
OUT0536B18Output 5Normal
Pin(*)Description
38B1938B19
40B2040B20
for outputs
Output
type and
number
output 6
output 7
output 8
output 9
output 10
output 11
---39A20Power supply input −V
Ter mi-
nal
symbol
OUT1031A16Output 0
OUT1132B16Output 1
OUT1233A17Output 2
OUT1334B17Output 3
OUT1435A18Output 4
OUT1536B18Output 5
Pin(*)Description
for outputs
4-8
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 83
4-3-2Wiring Examples
Examples for DC Input Devices
4 Normal I/O
• Device with Contact Outputs
IN (24 VDC)
Input in Pulse I/O
IN (0 V)
Module I/O
• Device with NPN Open Collector Output
+
Sensor
Power Supply
Output
0 V
IN (0 V)
IN (24 VDC)
Input in Pulse I/O
Module I/O
• Device with PNP Current Output
+
Sensor
power supply
Output
0 V
IN (24 VDC)
IN (0 V)
Input in Pulse I/O
Module I/O
• Two-wire DC Sensor
• Device with NPN Current Output
Rated
current
circuit
• Device with Voltage Output
Note: Do not use the following wiring with voltage-output devices.
+
Output
0 V
Sensor
power
supply
IN (24 VDC)
IN (0 V)
Input in Pulse I/O
Module I/O
+
Output
0 V
+
Output
0 V
Sensor
Power Supply
Sensor
power supply
Sensor
power supply
+
+
IN (0 V)
IN (24 VDC)
IN (0 V)
IN (24 VDC)
IN (24 VDC)
IN (0 V)
Input in Pulse I/O
Module I/O
Input in Pulse I/O
Module I/O
Input in Pulse I/O
Module I/O
4-3 Wiring
4
4-3-2 Wiring Examples
Precautions for Correct UsePrecautions for Correct Use
The Pulse I/O Module inputs have polarity. The inputs will not go ON if the wiring is reversed.
Always double-check the wiring before turning ON the power.
CJ2M CPU Unit Pulse I/O Module User’s Manual
4-9
Page 84
4 Normal I/O
Precautions When Connecting a Two-wire DC Sensor
When using a two-wire sensor, check that the following conditions have been met. Failure to meet
these conditions may result in operating errors.
(1) Relation between voltage when the input is ON and the sensor residual voltage:
≤ VCC − V
V
ON
R
(2) Relation between current when the input is ON and the sensor control output (load
current):
(min.) ≤ ION ≤ I
I
OUT
I
= (VCC − VR − 1.5 [Internal residual voltage of input])/R
ON
OUT
(max.)
IN
When ION is smaller than I
(min), connect a bleeder resistor R. The bleeder resistor con-
OUT
stant can be calculated as follows:
R ≤ (V
Power W ≥ (V
− VR)/(I
CC
(min.) − ION)
OUT
− VR)2/R × 4 (allowable margin)
CC
(3) Relation between current when the input is OFF and the sensor leakage current:
≥ I
I
OFF
leak
Connect a bleeder resistor if I
is greater than I
leak
OFF
.
Use the following equation to calculate the bleeder resistance constant.
R ≤ R
Power W ≥ (V
× V
IN
2-wire sensor
VCC: Power supply voltageVR: Sensor’s output residual voltage
VON: Input’s ON voltage
V
: Input's OFF voltage
OFF
ION: Input's ON currentI
I
: Input's OFF currentI
OFF
R
: Input's impedanceR:Bleeder resistance
IN
/(I
OFF
CC
× RIN − V
leak
− VR)2/R × 4 (allowable margin)
RVRRIN
VCC
)
OFF
: Sensor’s control current (load current)
OUT
: Sensor’s leakage current
leak
Input in Pulse I/O
Module
4-10
(4) Precautions on Sensor Inrush Current
An incorrect input may occur due to sensor inrush current if a sensor is turned ON after the
PLC has started up to the point where inputs are possible.
Determine the time required for sensor operation to stabilize after the sensor is turned ON
and take appropriate measures, such as inserting into the program a timer delay after turning ON the sensor.
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 85
4 Normal I/O
Programming Example
In this example, the sensor's power supply voltage is used as the input to CIO 0.00. A 100-ms timer
delay (the time required for an OMRON Proximity Sensor to stabilize) is created in the program.
After the Completion Flag for the timer turns ON, the sensor input on input bit CIO 0.01 will cause
output bit CIO 1.00 to turn ON.
0.00
TIM
0
#1
0.01T0
1.00
Output Wiring Precautions
z Output Short Protection
4-3 Wiring
If a load connected to the output terminals is short-circuited, output components and the printed circuit boards may be damaged. To guard against this, incorporate a fuse in the external circuit. Use a
fuse with a capacity of about twice the rated output.
Precautions on Inrush Current
When switching a load with a high inrush current, such as an incandescent light bulb, there is a risk of
damaging the output transistor. Use either of the following methods to reduce the inrush current.
Method 1
This method draws a dark current that is approximately
one-third of the rated value of the light bulb.
OUT
Output in Pulse I/O
Module
COM
R
Method 2
This method uses a limiting resistor.
OUT
Output in Pulse I/O
Module
COM
R
L
L
+
+
4
4-3-2 Wiring Examples
CJ2M CPU Unit Pulse I/O Module User’s Manual
4-11
Page 86
4 Normal I/O
4-12
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 87
Quick-response Inputs
This section describes the quick-response inputs that can be used to read signals that
are shorter than the cycle time.
By setting an input on the Pulse I/O Module to quick-response input operation, inputs with signal widths
as small as 30 µs can be read with certainty regardless of the cycle time. Use the quick-response inputs
to read signals shorter than the cycle time, such as inputs from photomicrosensors.
CJ2M CPU UnitPulse I/O Module
ConnectorTerminal Block
Conversion Unit
Pulse signal from photomicrosensor or other device
Connecting Cable
Cyclic task
(ladder program)
END
I/O refresh
Cycle time
Pulse signal
Input bit
Cycle time
Can read ON signals
shorter than this time.
I/O refresh
ON for one scan
in the next cycle
The pulse widths of quick-response input signals must meet the following conditions.
30 µs min.
ON
OFF
150 µs min.
5-2
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 89
5-2Application Procedure
5 Quick-response Inputs
1
2
5-2-1PLC Setup
Click the Set Button in the Interrupt Inputs and Quick-response Inputs Area on the I/O Module Tab Page
of the PLC Setup. Select Quick-response Input for the input operation in the Interrupt Input and Quickresponse Input Detailed Settings Dialog Box.
Create
ladder
program.
PLC Setup
Cyclic task or
interrupt task
• Select Quick-response Input in the Interrupt Input and
Quick-response Input Detailed Settings Dialog Box
that is accessed from the I/O Module Tab Page of the
PLC Setup using the CX-Programmer.
• IN00 to IN03 and IN10 to IN13 can be used for quickresponse inputs.
Read bit status using the LD instruction or other instructions.
5-2 Application Procedure
5
5-2-1 PLC Setup
CJ2M CPU Unit Pulse I/O Module User’s Manual
5-3
Page 90
5 Quick-response Inputs
Interrupt Input and Quick-response Input Detailed Settings
Pulse I/O
Module No.
0 (on the right) IN00Select Quick for IN00
IN01CIO 2960.01
IN02CIO 2960.02
IN03CIO 2960.03
1 (on the left)IN10CIO 2962.00
IN11CIO 2962.01
IN12CIO 2962.02
IN13CIO 2962.03
Note The power supply must be restarted after the PLC Setup is transferred in order to validate the quick-
response input settings.
Input Operation
to IN03 or IN10 to
IN13.
Corresponding bit
address
CIO 2960.00
5-4
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 91
5-2-2Applicable Input Terminals
The following terminals can be used for quick-response inputs.
The input terminals that are used for quick-response inputs are also used for normal inputs, interrupt
inputs, high-speed counter inputs, and origin searches. The same input terminal can be used for only
one of these functions. For example, if quick-response input 2 is used, normal input 2, the phase
Z/reset method for high-speed counter 1, interrupt input 2, and the origin input signal for pulse output 1
(when performing origin searches) cannot be used.
Pulse I/O
Module
No.
0 (on the
right)
1 (on the
left)
Terminal
symbol
IN00CIO
IN0101Quick-response
IN0202Quick-response
IN0303Quick-response
IN10CIO
IN1101Quick-response
IN1202Quick-response
IN1303Quick-response
Word BitsFunction
00Quick-response
2960
00Quick-response
2962
input 0
input 1
input 2
input 3
input 4
input 5
input 6
input 7
5 Quick-response Inputs
Other functions that cannot be used at the same
time
High-speed
counter
inputs
---Normal
---Normal
Counter 1
phase Z or
reset
Counter 0
phase Z or
reset
---Normal
---Normal
Counter 3
phase Z or
reset
Counter 2
phase Z or
reset
Normal
inputs
input 0
input 1
Normal
input 2
Normal
input 3
input 10
input 11
Normal
input 12
Normal
input 13
Interrupt
inputs
Interrupt
input 0
Interrupt
input 1
Interrupt
input 2
Interrupt
input 3
Interrupt
input 4
Interrupt
input 5
Interrupt
input 6
Interrupt
input 7
Origin search
inputs for
pulse out-
puts 0 to 3
Pulse output 0
origin input
signal
Pulse output 0
origin proximity input signal
Pulse output 1
origin input
signal
Pulse output 1
origin proximity input signal
Pulse output 2
origin input
signal
Pulse output 2
origin proximity input signal
Pulse output 3
origin input
signal
Pulse output 3
origin proximity input signal
5-2 Application Procedure
5
5-2-2 Applicable Input Terminals
Related Auxiliary Area Bits
There are no Auxiliary Area bits or words that are related to the quick-response inputs.
Applicable Instructions
There are no instructions that are related to the quick-response inputs.
CJ2M CPU Unit Pulse I/O Module User’s Manual
5-5
Page 92
5 Quick-response Inputs
5-3Wiring
5-3-1Connector Pin Assignments
The following terminals can be used for quick-response inputs.
Pulse I/O Module No. 0 (on the right)Pulse I/O Module No. 1 (on the left)
Input type
and num-
ber
Quickresponse
input 0
Quickresponse
input 1
Quickresponse
input 2
Quickresponse
input 3
Terminal
symbol
IN001A124-VDC inputQuick-
IN012B124-VDC inputQuick-
IN027A424-VDC inputQuick-
IN038B424-VDC inputQuick-
Pin(*)Description
5A30 V5A30 V
6B30 V6B30 V
11A60 V11A60 V
12B60 V12B60 V
Input type
and num-
ber
response
input 4
response
input 5
response
input 6
response
input 7
Terminal
symbol
IN101A124-VDC input
IN112B124-VDC input
IN127A424-VDC input
IN138B424-VDC input
Pin(*)Description
* Terminals numbers on the XW2D-@@G@ Connector-Terminal Block Conversion Unit.
5-6
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 93
5 Quick-response Inputs
5-4Creating Ladder Programs
Pulse inputs shorter than the cycle time can be read in the CPU Unit I/O memory using normal instructions by selecting Quick-response Input for the input terminal in the PLC Setup.
The status of CIO 2960.00 to CIO 2960.03 and CIO 2962.00 to CIO 2962.03 can be read using instructions such as the LD instruction.
Example: Setting IN02 to Quick-response Input in the PLC Setup
Even if the signal that is input to input terminal 02 is shorter than
the cycle time, the signal will be latched in one cycle and the
status will be stored in CIO 2960.02.
2960.02
5-4 Creating Ladder Programs
• The minimum pulse width (ON time) that can be read for a quick-response input is 30 µs.
• The status of the input that is stored in the I/O memory for a short input will be cleared during the next
I/O refresh period.
5
5-3-1 Connector Pin Assignments
CJ2M CPU Unit Pulse I/O Module User’s Manual
5-7
Page 94
5 Quick-response Inputs
5-8
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 95
Interrupts
This section gives an overview of the interrupt function and how to use it, as well as a
description of the wiring method.
CJ2M CPU Units normally repeat processes in the following order: overseeing processes, program execution, I/O refreshing, peripheral servicing. During the program execution stage, cyclic tasks (ladder
programs) are executed.
The interrupt function, on the other hand, allows a specified condition to interrupt a cycle and execute a
specified program. Interrupts can thus be used to perform high-speed processing that is not restricted
by the cycle time. The CJ2M CPU Unit performs the following:
(1) When an interrupt occurs, execution of the ladder programs in cyclic tasks is interrupted.
(2) The ladder program in the interrupt task is executed.
(3) When the interrupt task is finished, the ladder program that was being executed is returned to.
CJ2M CPU Unit
(2) Interrupt task executed.
Ladder program
END
Cycle
Cyclic task
(ladder program)
END
I/O refresh
(1) Interrupt occurs.
(3) When the interrupt task is finished, the
ladder diagram that was being
executed is returned to.
Interrupt Factors and Types of Interrupts
Interrupts are classified by the interrupt factor. There are the following three types of interrupts.
• Changes in status of inputs on Pulse I/O Module → 6-2 Interrupt Inputs
• PVs of high-speed counters→ 7-3 High-speed Counter Interrupts
• Specified time interval for timer in the CPU Unit→ Scheduled interrupts
(Refer to the CJ2 CPU Unit Software Manual
(Cat. No. W473).)
Additional Information
6-2
For information on using interrupt tasks, refer to the CJ2 CPU Unit Software User's Manual (Cat.
No. W473).
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 97
6-2Interrupt Inputs
6-2-1Overview
Interrupt inputs can be used in either Direct Mode or Counter Mode.
Interrupt Input in Direct Mode:
A corresponding interrupt task can be executed when an Pulse I/O Module input turns ON or turns OFF.
The PLC Setup or MSKS(690) instruction determines whether the interrupt is triggered when the input
turns ON or when it turns OFF.
Interrupt Input in Counter Mode:
A corresponding interrupt task can be executed when the number of times the Pulse I/O Module input
turns ON or turns OFF reaches the set value (A532 to A535 and A544 to A547) in Increment Mode, or
when it reaches zero in Decrement Mode.
The number of the interrupt tasks started by interrupt inputs must be between 140 and 147.
Interrupt input
6 Interrupts
6-2 Interrupt Inputs
Cycle
Connecting
Cable
Cyclic task
(ladder program)
I/O refresh
END
Connector-Terminal Block
Conversion Unit
Pulse I/O Module
CJ2M CPU Unit
Interrupt input turns ON or OFF (Direct Mode)
Or when the ON or OFF count is
counted out (for Increment or
Decrement Mode)
Interrupt occurs.
6
6-2-1 Overview
Interrupt task
Ladder program
END
CJ2M CPU Unit Pulse I/O Module User’s Manual
6-3
Page 98
6 Interrupts
z Direct Mode
Interrupt enable
condition
Example: IN02
(interrupt input 2)
Cyclic task execution
MSKS instruction
executed to enable
interrupts
Processing
interrupted.
Cyclic task program
execution
Processing
interrupted.
z Counter Mode
Interrupt enable
condition
Example: IN02
(interrupt input 2)
A534
(for interrupt input 2)
Increment Mode
A534
(for interrupt input 2)
Decrement Mode
MSKS instruction executed
to enable interrupts
Cyclic task program execution
Interrupt task 142
program execution
Interrupt task 142
program execution
Interrupt task 142
program execution
Cyclic task program
execution
6-4
Cyclic task program execution
Interrupt task 142
program execution
Cyclic task program
execution
The pulse widths of interrupt input signals must meet the following conditions.
30 µs min.
ON
OFF
150 µs min.
CJ2M CPU Unit Pulse I/O Module User’s Manual
Page 99
6-2-2Application Procedure
1
PLC Setup
6 Interrupts
• Select Quick-response Input in the Quick-response
Input Detailed Settings Dialog Box that is accessed from
the I/O Module Tab Page of the PLC Setup using the
CX-Programmer.
• This will allocate inputs IN00 to IN03 or IN10 to IN13 for
interrupt inputs.
• Specify when changing from PROGRAM mode to RUN
mode whether to detect ON or OFF transitions in inputs.
• Specify whether to latch the PV of a pulse output/highspeed counter when an interrupt task is started.
2
Set parameters in the Auxiliary
Area (for Counter Mode only).
3
Create interrupt
Create
ladder
program.
6-2-3Specifications
Number of interrupt inputs8 inputs
Allocated bitCIO 2960 and CIO 2962, bits 00 to 03
Interrupt detection methodON-to-OFF or OFF-to-ON transitions
Interrupt task numbers140 to 147 (fixed)
Counting method---Incrementing or decrementing
Counting range---0001 to FFFF hex (16 bits)
Response frequency---Single-phase: 3 kHz x 8 inputs
Storage locations for PVs for
interrupt inputs in Counter Mode
tasks.
Execute MSKS in
a cyclic task.
ItemDirect ModeCounter Mode
• When using Counter Mode, set the counter set values
for interrupt input counters 0 to 7 in Auxiliary Area words
A532 to A535 and A544 to A547.
• Write the program in the interrupt task. Interrupt tasks
140 to 147 correspond to IN00 to IN03 and IN10 to
IN13. The following are specified using two MSKS(690)
instructions.
• Specify whether to detect OFF or ON transitions to use
a different setting from the one in the PLC Setup.
Specify N to 110 to 117 in the MSKS(690) instruction.
• Select the type of interrupt input (Direct Mode or
Counter Mode). If Counter Mode is selected, select
Increment or Decrement Counter Mode and enable
interrupts. Set N to 100 to 107 in the MSKS(690)
instruction.
(Set with the MSKS(690) instruction.)
(Set in A532 to A535 and A544 to A547.)
---A536 to A539 and A548 to A551
6-2 Interrupt Inputs
6
6-2-2 Application Procedure
CJ2M CPU Unit Pulse I/O Module User’s Manual
6-5
Page 100
6 Interrupts
Precautions for Correct UsePrecautions for Correct Use
• In Counter Mode, the PV of the interrupt counter in the Auxiliary Area is updated every cycle
as well as when the interrupt task is started. For this reason, the PV of the interrupt counter in
the Auxiliary Area changes irregularly.
Use the PRV(881) instruction to read the latest PV of the interrupt counter.
• Execute the following instructions to change the SV of the counter in Counter Mode.
• If the direction is the same direction (increment/decrement), change the SV of the interrupt
counter in the Auxiliary Area (A532 to A535 and A544 to A547), and then execute the
MSKS(690) (SET INTERRUPT MASK) instruction in the same direction (increment/decrement) to enable interrupt inputs.
• To change the direction from increment to decrement or decrement to increment, disable
interrupt inputs with the MSKS(690) instruction. Change the SV of the interrupt counter in
the Auxiliary Area, and then execute the MSKS(690) instruction to enable interrupt inputs.
Additional Information
In Counter Mode, interrupt tasks will not be started between the execution of a DI(693) instruction and the corresponding EI(694) instruction. Counting will be continued.
6-2-4PLC Setup
Click the Set Button in the Interrupt Inputs and Quick-response Inputs Area on the I/O Module Tab Page
of the PLC Setup. Select Interrupt Input for the input operation in the Interrupt Input and Quickresponse Input Detailed Settings Dialog Box.
6-6
CJ2M CPU Unit Pulse I/O Module User’s Manual
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.