OMRON products are manufactured for use according to proper procedures
by a qualified operator and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this
manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or damage to property.
!DANGERIndicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury. Additionally, there may be severe property damage.
!WARNINGIndicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury. Additionally, there may be severe property damage.
!CautionIndicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury, or property damage.
OMRON Product References
All OMRON products are capitalized in this manual. The word “Unit” is also
capitalized when it refers to an OMRON product, regardless of whether or not
it appears in the proper name of the product.
The abbreviation “Ch,” which appears in some displays and on some OMRON
products, often means “word” and is abbreviated “Wd” in documentation in
this sense.
The abbreviation “PLC” means Programmable Controller. “PC” is used, however, in some Programming Device displays to mean Programmable Controller.
Visual Aids
OMRON, 2001
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, o
by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission o
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.
The following headings appear in the left column of the manual to help you
locate different types of information.
Note Indicates information of particular interest for efficient and convenient opera-
tion of the product.
1,2,3...1. Indicates lists of one sort or another, such as procedures, checklists, etc.
v
Unit Versions of CS/CJ-series CPU Units
Unit VersionsA “unit version” has been introduced to manage CPU Units in the CS/CJ
Series according to differences in functionality accompanying Unit upgrades.
This applies to the CS1-H, CJ1-H, CJ1M, and CS1D CPU Units.
Notation of Unit Versions
on Products
CS/CJ-series CPU Unit
The unit version is given to the right of the lot number on the nameplate of the
products for which unit versions are being managed, as shown below.
Product nameplate
CS1H-CPU67H
CPU UNIT
Lot No.
Lot No. 040715 0000 Ver.3.0
OMRON Corporation MADE IN JAPAN
Unit version
Example for Unit version 3.0
• CS1-H, CJ1-H, and CJ1M CPU Units manufactured on or before November 4, 2003 do not have a unit version given on the CPU Unit (i.e., the
location for the unit version shown above is blank).
• The unit version of the CJ1-H-R CPU Units begins at version 4.0.
• The unit version of the CS1-H, CJ1-H, and CJ1M CPU Units, as well as
the CS1D CPU Units for Single-CPU Systems, begins at version 2.0.
• The unit version of the CS1D CPU Units for Duplex-CPU Systems, begins
at version 1.1.
• CPU Units for which a unit version is not given are called Pre-Ver. @.@CPU Units, such as Pre-Ver. 2.0 CPU Units and Pre-Ver. 1.1 CPU Units.
Confirming Unit Versions
with Support Software
CX-Programmer version 4.0 can be used to confirm the unit version using one
of the following two methods.
• Using the PLC Information
• Using the Unit Manufacturing Information (This method can be used for
Special I/O Units and CPU Bus Units as well.)
Note CX-Programmer version 3.3 or lower cannot be used to confirm unit versions.
PLC Information
• If you know the device type and CPU type, select them in the Change
PLC Dialog Box, go online, and select PLC - Edit - Information from the
menus.
• If you don't know the device type and CPU type, but are connected
directly to the CPU Unit on a serial line, select PLC - Auto Online to go
online, and then select PLC - Edit - Information from the menus.
In either case, the following PLC Information Dialog Box will be displayed.
vi
Unit version
Use the above display to confirm the unit version of the CPU Unit.
Unit Manufacturing Information
In the IO Table Window, right-click and select Unit Manufacturing information - CPU Unit.
The following Unit Manufacturing information Dialog Box will be displayed.
vii
Unit version
Use the above display to confirm the unit version of the CPU Unit connected
online.
Using the Unit Version
Labels
The following unit version labels are provided with the CPU Unit.
These labels can be attached to the front of previous CPU Units to differentiate between CPU Units of different unit versions.
viii
Unit Version NotationIn this manual, the unit version of a CPU Unit is given as shown in the follow-
ing table.
Product nameplate
Meaning
Designating individual
CPU Units (e.g., the
CS1H-CPU67H)
Designating groups of
CPU Units (e.g., the
CS1-H CPU Units)
Designating an entire
series of CPU Units
(e.g., the CS-series CPU
Units)
CPU Units on which no unit version is
given
Lot No. XXXXXX XXXX
OMRON CorporationMADE IN JAPAN
Pre-Ver. 2.0 CS1-H CPU UnitsCS1H-CPU67H CPU Unit Ver. @.@
Pre-Ver. 2.0 CS1-H CPU UnitsCS1-H CPU Units Ver. @.@
Pre-Ver. 2.0 CS-series CPU UnitsCS-series CPU Units Ver. @.@
Units on which a version is given
Lot No. XXXXXX XXXX
(Ver. @.@)
Ver. @ @ .@
ix
Unit Versions
CJ Series
UnitsModelsUnit version
CJ1-H CPU UnitsCJ1H-CPU@@H-RUnit version 4.2
Unit version 4.1
Unit version 4.0
CJ1M CPU Units
NSJ Series
UnitsUnit version
NSJ@-TQ@@(B)-G5D
NSJ@-TQ@@(B)-M3D
CJ1@-CPU@@H
CJ1@-CPU@@P
CJ1M-CPU12/13
CJ1M-CPU22/23
CJ1M-CPU11/21Unit version 4.0
Unit version 3.0
Unit version 4.0
Unit version 3.0
Unit version 2.0
Pre-Ver. 2.0
Unit version 4.0
Unit version 3.0
Unit version 2.0
Pre-Ver. 2.0
Unit version 3.0
Unit version 2.0
x
Function Support by Unit Version
• Functions Supported for Unit Version 4.0 or Later
CX-Programmer 7.0 or higher must be used to enable using the functions
added for unit version 4.0.
Additional functions are supported if CX-Programmer version 7.2 or higher is
used.
CJ1-H/CJ1M CPU Units
FunctionCJ1H-CPU@@H-R, CJ1@-CPU@@H,
Online editing of function blocks
OK---
Note This function cannot be used for simulations on the
CX-Simulator.
Input-output variables in function blocksOK--Text strings in function blocksOK---
New application
instructions
ST programming in task programsOK with CX-Program-
SFC programming in task programs OK with CX-Program-
Number-Text String Conversion Instructions:
NUM4, NUM8, NUM16, STR4, STR8, and STR16
TEXT FILE WRITE (TWRIT)OK---
OK---
mer version 7.2 or
higher
mer version 7.2 or
higher
CJ1G-CPU@@P, C J 1 M - C P U @@
Unit version 4.0 or
later
Other unit versions
---
---
User programs that contain functions supported only by CPU Units with unit
version 4.0 or later cannot be used on CS/CJ-series CPU Units with unit version 3.0 or earlier. An error message will be displayed if an attempt is made to
download programs containing unit version 4.0 functions to a CPU Unit with a
unit version of 3.0 or earlier, and the download will not be possible.
If an object program file (.OBJ) using these functions is transferred to a CPU
Unit with a unit version of 3.0 or earlier, a program error will occur when operation is started or when the unit version 4.0 function is executed, and CPU
Unit operation will stop.
xi
• Functions Supported for Unit Version 3.0 or Later
CX-Programmer 5.0 or higher must be used to enable using the functions
added for unit version 3.0.
CJ1-H/CJ1M CPU Units
FunctionCJ1H-CPU@@H-R
CJ1@-CPU@@H,
CJ1G-CPU@@P,
CJ1M-CPU@@
Unit version 3.0 or
later
Function blocksOK--Serial Gateway (converting FINS commands to CompoWay/F
commands at the built-in serial port)
Comment memory (in internal flash memory)OK--Expanded simple backup dataOK--New application
instructions
Additional
instruction functions
TXDU(256), RXDU(255) (support no-protocol
communications with Serial Communications
Units with unit version 1.2 or later)
Model conversion instructions: XFERC(565),
DISTC(566), COLLC(567), MOVBC(568),
BCNTC(621)
Special function block instructions: GETID(286)OK--PRV(881) and PRV2(883) instructions: Added
high-frequency calculation methods for calculating pulse frequency. (CJ1M CPU Units only)
OK---
OK---
OK---
OK---
Other unit versions
User programs that contain functions supported only by CPU Units with unit
version 3.0 or later cannot be used on CS/CJ-series CPU Units with unit version 2.0 or earlier. An error message will be displayed if an attempt is made to
download programs containing unit version 3.0 functions to a CPU Unit with a
unit version of 2.0 or earlier, and the download will not be possible.
If an object program file (.OBJ) using these functions is transferred to a CPU
Unit with a unit version of 2.0 or earlier, a program error will occur when operation is started or when the unit version 3.0 function is executed, and CPU
Unit operation will stop.
xii
• Functions Supported for Unit Version 2.0 or Later
CX-Programmer 4.0 or higher must be used to enable using the functions
added for unit version 2.0.
CJ1-H/CJ1M CPU Units
Function
Downloading and Uploading Individual Tasks OK---OK---OK
Improved Read Protection Using Passwords OK---OK---OK
Write Protection from FINS Commands Sent
to CPU Units via Networks
Online Network Connections without I/O
Ta bl e s
Communications through a Maximum of 8
Network Levels
Connecting Online to PLCs via NS-series
PTs
Setting First Slot WordsOK for up to
Automatic Transfers at Power ON without a
Parameter File
Automatic Detection of I/O Allocation Method
for Automatic Transfer at Power ON
Operation Start/End TimesOK---OK---OK
New Applica-
ported if I/O
tables are
automatically
generated at
startup.)
number
030201
OK for up to 8
groups
number
030201
CJ1M-CPU12/13/22/23CJ1M-
Unit version
2.0 or
later
OK--- (Sup-
OKOK from lot
OK for up to
64 groups
OKOK from lot
for CPU Units
with built-in
I/O
Other unit
versions
ported if I/O
tables are
automatically
generated at
startup.)
number
030201
OK fo r up to 8
groups
number
030201
---OK, but only
CPU11/21
Other unit
version 2.0
or later
OK
OK
OK for up to
64 groups
OK
for CPU Units
with built-in
I/O
xiii
User programs that contain functions supported only by CPU Units with unit
version 2.0 or later cannot be used on CS/CJ-series Pre-Ver. 2.0 CPU Units.
An error message will be displayed if an attempt is made to download programs containing unit version s.0 functions to a Pre-Ver. 2.0 CPU Unit, and
the download will not be possible.
If an object program file (.OBJ) using these functions is transferred to a PreVer. 2.0 CPU Unit, a program error will occur when operation is started or
when the unit version 2.0 function is executed, and CPU Unit operation will
stop.
xiv
Unit Versions and Programming Devices
The following tables show the relationship between unit versions and CX-Programmer versions.
Unit Versions and Programming Devices
CPU Unit Functions (See note 1.)CX-ProgrammerProgram-
CS/CJ-series unit
version 4.0
CS/CJ-series unit
version 3.0
CS/CJ-series unit
version 2.0
Ver. 3. 3
or lower
Functions added
for unit version
4.0
Functions added
for unit version
3.0
Functions added
for unit version
2.0
Using new functions---------OK (See
Not using new functionsOKOKOKOK
Using new functions------OKOK
Not using new functionsOKOKOKOK
Using new functions---OKOKOK
Not using new functionsOKOKOKOK
Note1. As shown above, there is no need to upgrade to CX-Programmer version
as long as the functions added for unit versions are not used.
2. CX-Programmer version 7.1 or higher is required to use the new functions
added for unit version 4.0 of the CJ1-H-R CPU Units. CX-Programmer version 7.22 or higher is required to use unit version 4.1 of the CJ1-H-R CPU
Units. CX-Programmer version 7.0 or higher is required to use unit version
4.2 of the CJ1-H-R CPU Units. You can check the CX-Programmer version
using the About menu command to display version information.
Ver. 4.0 Ver. 5.0
Ver. 6.0
Ver. 7.0
or higher
notes 2
and 3.)
ming Con-
sole
No
restrictions
3. CX-Programmer version 7.0 or higher is required to use the functional improvements made for unit version 4.0 of the CS/CJ-series CPU Units. With
CX-Programmer version 7.2 or higher, you can use even more expanded
functionality.
Device Type SettingThe unit version does not affect the setting made for the device type on the
CX-Programmer. Select the device type as shown in the following table
regardless of the unit version of the CPU Unit.
SeriesCPU Unit groupCPU Unit modelDevice type setting on
CJ SeriesCJ1-H CPU Units CJ1G-CPU@@H
CJ1G-CPU@@P
CJ1H-CPU@@H-R
(See note.)
CJ1H-CPU@@H
CJ1M CPU UnitsCJ1M-CPU@@CJ1M
CX-Programmer Ver. 4.0 or higher
CJ1G-H
CJ1H-H
Note Select one of the following CPU types: CPU67-R, CPU66-R, CPU65-R, or
CPU64-R.
xv
Troubleshooting Problems with Unit Versions on the CX-Programmer
ProblemCauseSolution
An attempt was made to download a program containing
instructions supported only by
later unit versions or a CPU Unit
to a previous unit version.
After the above message is displayed, a compiling
error will be displayed on the Compile Tab Page in the
Output Window.
An attempt was to download a
PLC Setup containing settings
supported only by later unit versions or a CPU Unit to a previous
unit version.
Check the program or change
to a CPU Unit with a later unit
version.
Check the settings in the PLC
Setup or change to a CPU Unit
with a later unit version.
“????” is displayed in a program transferred from the
PLC to the CX-Programmer.
An attempt was made to upload a
program containing instructions
supported only by higher versions
of CX-Programmer to a lower version.
New instructions cannot be
uploaded to lower versions of
CX-Programmer. Use a higher
version of CX-Programmer.
xvi
CJ1-H-R CPU Units (High-speed)
OverviewThe CJ1-H-R CPU Units (CJ1H-CPU@@H-R) are high-speed versions of unit
version 4.0 of the CJ1-H CPU Units (CJ1H-CPU@@H).
Models
ModelUnit versionSpecifications
CJ1H-CPU67H-RVer. 4.2Equivalent to CJ1H-CPU67H
CJ1H-CPU66H-REquivalent to CJ1H-CPU66H
CJ1H-CPU65H-REquivalent to CJ1H-CPU65H
CJ1H-CPU64H-REquivalent to CJ1H-CPU64H
Note In the CX-Programmer, set the device type to CJ1H-H and the CPU type to
CPU67-R, CPU66-R, CPU65-R, or CPU64-R.
(Program capacity: 250K steps)
(Program capacity: 120K steps)
(Program capacity: 60K steps)
(Program capacity: 30K steps)
Differences Compared to
CJ1-H CPU Units
ItemCJ1-H-R CPU Units
Instruction execution
time
I/O
refreshing
New
instructions
Overhead processing time0.13 ms0.3 ms
Unit for setting scheduled interrupt
intervals
Software interval response time 40 µs124 µs
Function block startup time3.3 µs6.8 µs
Clock pulses0.1 ms, 1 ms, 0.01 s (See note 2.),
Maximum number of relay networks
that can be set in routing tables
(See note 1.)
Basic instructions0.016 µs min.0.02 µs min.
Special instructions0.048 µs min.0.06 µs min.
Floating-point math calcu-
lations (e.g., FLOATINGPOINT ADD (+F(454))
Basic I/O Units (e.g., 16point Input Unit)
Special I/O Units (e.g.,
Analog Input Unit)
Timer instructions• TENTH-MS TIMER (TIMU/TIMUX)
I/O Unit Instructions• SPECIAL I/O UNIT I/O REFRESH
Floating-point math and
conversion instructions
The CJ1-H-R CPU Units (CJ1H-CPU@@H-R) have the following differences
in comparison to the CJ1-H CPU Units (CJ1H-CPU@@H).
(CJ1H-CPU@@H-R)
0.24 µs8 µs
1.4 µs3 µs
50 µs120 µs
Not supported.
• HUNDREDTH-MS TIMER
(TIMUH/TMUHX)
Not supported.
(FIORF(225))
• SINQ
• COSQ
• TAN Q
• MOVF
0.1, 1, or 10 ms1 or 10 ms
0.02 s, 0.1 s, 0.2 s, 1 s, 1 min
6420
Not supported.
0.02 s, 0.1 s, 0.2 s, 1 s, 1 min
CJ1-H CPU Units
(CJ1H-CPU@@H)
Note1. Refer to the CX-Integrator Operation Manual (Cat. No. W445) and the
Communication Unit operation manuals for details.
2. The 0.01 s Clock Pulse cannot be used with unit version 4.1 of the CJ1-HR
CPU Units. The 0.01 s Clock Pulse can be used with all other unit versions.
xvii
CJ1H-CPU@@H-R Version 4.1 Specifications Change
The following specifications changes have been made for CJ1H-CPU@@H-R
version 4.1.
The following specifications for unit version 4.2 and later are the same as the
specifications for unit version 4.0.
Functionality Changes
CPU Unit versionCJ1-H
Timer numbers that can be used with ONE-MS
TIMER instructions
0.01-s clock pulse Not sup-
• If ONE-MS TIMER instructions (TMHH(540)/TMHHX(552)) with timer
numbers 0 to 15 are used in existing programs with CJ1H-CPU@@H-R
version 4.1, the timer numbers must be changed to timer numbers
between 0016 and 4095.
Performance Changes
CPU Unit versionCJ1-H
Timing precision of HUNDRED-MS TIMER
instructions (TIM/TIMX(550))
Timing precision of ONE-MS TIMER instructions (TMHH(540)/TMHHX(522))
Ver. 4.0
0000 to
0015
ported
Ver. 4.0
−10 to
0ms
−1 to
0ms
CJ1-H-R
Ver. 4.0
0000 to
4095
Supported
CJ1-H-R
Ver. 4.0
−10 to
0ms
−1 to
0ms
CJ1-H-R
Ver. 4.1
0016 to
4095
Not supported
CJ1-H-R
Ver. 4.1
−100 to
0ms
−10 to
0ms
Note1. The timing precision of version 4.0 and version 4.1 are different. Be sure
to check the effect on the application.
2. There have been no changes in the timing precision of TEN-MS TIMER instructions (TIMH(015)/TIMHX(551)) and TENTH-MS TIMER instructions
(TIMU(541)/TIMUX(556)) since version 4.0. Use TEN-MS TIMER instructions and TENTH-MS TIMER instructions if accuracy is a problem when
using HUNDRED-MS TIMER instructions and ONE-MS TIMER instructions.
■ Programming Devices
Use CX-Programmer version 7.1 or higher for the CJ1-H-R CPU Units. Set
the device type to CJ1H-H and the CPU type to one of the CPU types ending
in “-R.” Use the following procedure.
1,2,3...1. Select New from the File Menu.
2. Select CJ1H-H in the Change PLC Dialog Box.
3. Select one of the following for the CPU type: CPU67-R, CPU66-R, CPU65R, or CPU64-R.
Note1. If CX-Programmer version 7.0 or lower is used, the new features of the
CJ1-H-R CPU Units will not be supported, i.e., functionality will be the
same as the CJ1-H CPU Units.
2. CX-Programmer version 7.22 or higher is required to use unit version 4.1
of the CJ1-H-R CPU Units. CX-Programmer version 7.0 or higher is required to use unit version 4.2 of the CJ1-H-R CPU Units. CX-Programmer
version 7.22 or higher has added functionality that will provide a warning
when performing a program check or when transferring the program if a
ONE-MS TIMER instruction ((TMHH(540)/TMHHX(552)) is set to timer
numbers 0000 to 0015 or if a 0.01-second clock pulse is used. Version 7.22
or higher can be obtained using the auto-update function. If you are not
sure how to obtain CX-Programmer version 7.22, contact your OMRON
representative.
xix
Loop-control CPU Units
OverviewLoop-control CPU Units are CPU Units with a pre-installed Loop Controller
functional element.
Note The Loop Controller functional element is an inseparable part of the CPU Unit
and cannot be removed.
Model Numbers,
Functional Elements,
and Versions
Product nameProduct model
Loop-control
CPU Units
number
CJ1G-CPU45PCJ1G-CPU45HVer. 3.0 or higher LCB03Ver. 2.0
CJ1G-CPU44PCJ1G-CPU44HVer. 3.0 or higher LCB03Ver. 2.0
CJ1G-CPU43PCJ1G-CPU43HVer. 3.0 or higher LCB03Ver. 2.0
CJ1G-CPU42PCJ1G-CPU42HVer. 3.0 or higher LCB01Ver. 2.0
Note A single unit version for the Loop-control CPU Unit as a whole is not provided.
Differences between
CJ1G-CPU@@H and
CPU Unit Elements
Note The functions added in the version upgrade for unit version 3.0 and later are
The CJ1G-CPU@@P Loop-control CPU Unit is comprised of a CPU Unit element with the same functionality as a CJ1G-CPU@@H CPU Unit with version
3.0 or later (see note) and a Loop Controller element. The following table lists
the model numbers for CJ1G Loop-control CPU Units, the types of CPU Unit
element, Loop Controller element, and the functional element version codes.
Configuration
CPU Unit elementLoop Controller element
CPU Unit model
with same function-
ality
Functional ele-
ment unit ver-
sion
Functional ele-
ment name
Functional ele-
ment version
The unit versions for the CJ1-H CPU Unit with unit version 3.0 or later and the
functional element version code.
The differences between the CPU Unit element in the Loop-control CPU Unit
and the CJ1G-CPU@@H CPU Unit are shown here. The two types of CPU
Unit are otherwise the same.
also the same.
Additional Auxiliary Area
Flags and Bits
xx
Loop-control CPU Units can use the following Auxiliary Area flags and bits,
which are not supported for CJ1G-CPU@@H CPU Units.
AddressName
WordBi t
A42400Inner Board WDT Error Flag (fatal error)
01Inner Board Bus Error Flag (fatal error)
02Cyclic Monitor Error Flag (fatal error)
03Flash Memory Data Error Flag (fatal error)
04Incompatible CPU Unit Error Flag (non-fatal error)
08Loop Controller High Load Flag (non-fatal error)
11Backup Data (Flash Memory) Error Flag
12Specified EM Bank Unusable Error Flag
A60800Inner Board Restart Bit
A60901Start Mode at Power ON: Hot Start
A60902Start Mode at Power ON: Cold Start
For details on the Auxiliary Area bits and flags, refer to the section on SYS-
MAC CS/CJ Series Loop Control Boards, Process-control CPU Units, Loopcontrol CPU Units Operation Manual (W406).
Loop-control CPU Unit
Dimensions
Product name and modelW
CJ1G-CPU45P/44P/43P/42P
Loop-control CPU Unit
CJ1G-CPU45H/44H/43H/42H
CJ1-H CPU Unit (reference)
2.7
(mm)H (mm)
D (mm)
699065 (not including connector)
73.9 (including connector)
62
Indicators
LCB03
EXEC
RDY
65
90
2.7
SYSMAC
CJ1G-CPU44P
PROGRAMMABLE
CONTROLLER
OPEN
MCPWR
BUSY
RUN
ERR/ALM
INH
PRPHL
COMM
PERIPHERAL
PORT
INNER LOOP CONTROLLER
6973.9
RDY
EXEC
IndicatorNameColorStatusDescription
RDYReadyGreen Not litThe Loop Control Board is not operating for one of the fol-
lowing reasons:
• A Fatal Inner Board Error occurred (A40112 ON.)
• Initialization is not completed yet.
• A fatal error occurred.
• The flash memory backup data is invalid.
• The Loop Control Board is initializing.
• A hardware failure occurred in the Loop Control Board.
• Power is not being supplied from the Power Supply Unit.
• A Loop Control Board WDT error occurred.
Flashing • A WDT error occurred in the CPU Unit.
LitThe Loop Control Board is ready for operation.
xxi
IndicatorNameColorStatusDescription
EXECRunningGreen Not litThe system is stopped for one of the following reasons:
Current Consumption and
Weight
Common Processing Time
(Overhead Time)
• The Loop Control Board is initializing.
• A hardware failure occurred in the Loop Control Board.
• Power is not being supplied from the Power Supply Unit.
• A Loop Control Board WDT error occurred.
• The Loop Control Board is not running.
• Data is being written to flash memory.
Flashing
(at 0.5-s
intervals)
Flashing
(0.2-s
intervals)
LitThe Loop Control Board is not running.
Product name and modelCurrent consumptionWeight
CJ1G-CPU45P/44P/43P/42P
Loop-control CPU Unit
CJ1G-CPU45H/44H/43H/42H
CJ1-H CPU Unit (reference)
Product name and modelCommon processing time
CJ1G-CPU45P/44P/43P/42P
Loop-control CPU Unit
CJ1G-CPU45H/44H/43H/42H
CJ1-H CPU Unit (reference)
Erasing flash memory.
Backup operation to function block flash memory in
progress
1.06 A220 g max.
0.91 A190 g max.
0.8 ms max.
0.3 ms
Battery Backup TimeAt 25
whether or not power is supplied to the CPU Unit while the battery is installed.
This is the same as for CJ1G-CPU@@H CPU Units. The following table shows
the approximate minimum lifetimes and typical lifetimes for the backup battery
(total time with power not supplied).
CJ1G-CPU45P/44P/43P/42P
Loop-control CPU Unit
CJ1G-CPU45H/44H/43H/42H
CJ1-H CPU Unit (reference)
Note The minimum lifetime is the memory backup time at an ambient temperature
of 55
ature of 25
°C, the battery life (maximum service life) for batteries is five years
ModelApprox.
maximum
lifetime
5 years5,600 hours
5 years6,500 hours
Approx.
minimum
lifetime
(See note.)
(approximately
0.64 years)
(approximately
0.75 years)
Typical lifetime
(See note.)
43,000 hours
(approximately
5 years)
43,000 hours
(approximately
5 years)
°C. The typical lifetime is the memory backup time at an ambient temper-
°C.
xxii
Programming Devices
Loop Controller ElementUsing CX-Process Tool Ver. 4.0 or later, select the Loop-control CPU
Unit/Process-control CPU Unit from the LC Type field in the LCB/LC001 Dia-
log Box. Then select either CJ1G-CPU42P, CJ1G-CPU43P, CJ1G-CPU44P,
orCJ1G-CPU45P, from the Number-Model pull-down list in the Unit Informa-tion field.
CPU Unit ElementUse CX-Programmer Ver. 5.0 or later. The CPU Unit functions are the same
as the CJ1G-CPU@@H, except for the differences provided in the previous
table. Therefore, select CJ1G-H as the device type when using CX-Programmer.
1,2,3...1. Select New from the File Menu.
2. Select one of the following CPU Unit types in the Change PLC Dialog Box.
This manual describes the installation and operation of the CJ-series Programmable Controllers
(PLCs) and includes the sections described on the following page. The CS Series, CJ Series and NSJ
Series are subdivided as shown in the following figure.
CS Series
CJ Series
NSJ Series
CS1-H CPU Units
CS1H-CPU@@H
CS1G-CPU@@H
CS1 CPU Units
CS1H-CPU@@(-V1)
CS1G-CPU@@(-V1)
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
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.
CJ2 CPU Units
CJ2H-CPU@@-@@@
CJ1-H CPU Units
CJ1H-CPU@@H-R
CJ1H-CPU@@H
CJ1G-CPU@@H
CJ1G -CPU@@P
(Loop-control CPU Units)
For information in this manual on the Controller Section of NSJ-series Controllers, refer to the information of the equivalent CJ-series PLC. The following models are equivalent.
NSJ-series Controllers Equivalent CJ-series CPU Unit
NSJ@-TQ@@(B)-G5D CJ1G-CPU45H CPU Unit with unit version 3.0
NSJ@-TQ@@(B)-M3D CJ1G-CPU45H CPU Unit with unit version 3.0 (See note.)
Note: The following points differ between the NSJ@-@@@@(B)-M3D and the CJ1G-CPU45H.
ItemCJ-series CPU Unit
CJ1G-CPU45H
I/O capacity1280 points640 points
Program capacity60 Ksteps20 Ksteps
No. of Expansion Racks3 max.1 max.
EM Area32 Kwords x 3 banks
E0_00000 to E2_32767
Function blocksMax. No. of definitions 1024128
Max. No. of instances 2048256
Capacity in built-in
file memory
FB program memory1024 KB256 KB
Variable tables128 KB64 KB
Controller Section in
NSJ@-@@@@(B)-M3D
None
xxix
Please read this manual and all related manuals listed in the following table and be sure you understand information provided before attempting to install or use CJ-series CPU Units CPU Units in a PLC
System.
NameCat. No.Contents
SYSMAC CJ Series
CJ1H-CPU@@H-R, CJ1G/H-CPU@@H, CJ1G-CPU@@P,
CJ1G-CPU@@, CJ1M-CPU@@
Programmable Controllers Operation Manual
W395Describes the functions of the built-in I/O for
W340Describes the ladder diagram programming
W341Provides information on how to program and
W342Describes the C-series (Host Link) and FINS
W452Provides the following information about the NSJ-
W446Provides information on how to use the CX-Pro-
Provides an outlines of and describes the design,
installation, maintenance, and other basic operations for the CJ-series PLCs.
methods to use the functions of the CS/CJ-series
and NSJ-series PLCs.
CJ1M CPU Units.
instructions supported by CS/CJ-series and NSJseries PLCs.
operate CS/CJ-series PLCs using a Programming
Console.
communications commands used with CS/CJseries PLCs.
series NSJ Controllers:
Overview and features
Designing the system configuration
Installation and wiring
I/O memory allocations
Troubleshooting and maintenance
Use this manual in combination with the following
manuals: SYSMAC CS Series Operation Manual
(W339), SYSMAC CJ Series Operation Manual
(W393), SYSMAC CS/CJ Series Programming
Manual (W394), and NS-V1/-V2 Series Setup
Manual (V083)
grammer for all functionality except for function
blocks.
xxx
NameCat. No.Contents
SYSMAC WS02-CX@@-V@
CX-Programmer Operation Manual
Function Blocks
(CS1G-CPU
CJ1G-CPU@@H, CJ1H-CPU@@H,
CJ1M-CPU@@, CP1H-X@@@@-@,
CP1H-XA
CPU Units)
SYSMAC CS/CJ Series
CS1W-SCB
CJ1W-SCU
Serial Communications Boards/Units Operation Manual
SYSMAC WS02-PSTC1-E
CX-Protocol Operation Manual
Precautions provides general precautions for using the CJ-series Programmable Controllers (PLCs)
and related devices.
Section 1 introduces the special features and functions of the CJ-series PLCs and describes the differences between these PLCs and the earlier C200HX/HG/HE PLCs.
Section 2 provides tables of standard models, Unit specifications, system configurations, and a comparison between different Units.
Section 3 provides the names of components and their functions for various Units. Unit dimensions
are also provided.
Section 4 outlines the steps required to assemble and operate a CJ-series PLC System.
Section 5 describes how to install a PLC System, including mounting the various Units and wiring the
System. Be sure to follow the instructions carefully. Improper installation can cause the PLC to malfunction, resulting in very dangerous situations.
Section 6 describes the initial hardware settings made on the CPU Unit’s DIP switch.
Section 7 describes initial software settings made in the PLC Setup.
Section 8 describes I/O allocations to Basic I/O Units, Special I/O Units, and CPU Bus Units, and data
exchange with CPU Bus Units.
Section 9 describes the structure and functions of the I/O Memory Areas and Parameter Areas.
Section 10 describes the internal operation of the CPU Unit and the cycle used to perform internal
processing.
Section 11 provides information on hardware and software errors that occur during PLC operation.
Section 12 provides inspection and maintenance information.
The Appendices provide Unit specifications, current/power consumptions, Auxiliary Area words and
bits, internal I/O addresses, and PLC Setup settings, and information on RS-232C ports,.
W447Describes the functionality unique to the CX-Pro-
grammer and CP-series CPU Units or CS/CJseries CPU Units with unit version 3.0 or later
based on function blocks. Functionality that is the
same as that of the CX-Programmer is described
in W446 (enclosed).
W336Describes the use of Serial Communications Unit
and Boards to perform serial communications
with external devices, including the usage of standard system protocols for OMRON products.
W344Describes the use of the CX-Protocol to create
protocol macros as communications sequences
to communicate with external devices.
W464Describes operating procedures for the CX-Inte-
grator Network Configuration Tool for CS-, CJ-,
CP-, and NSJ-series Controllers.
W463Installation and overview of CX-One FA Inte-
grated Tool Package.
xxxi
xxxii
Read and Understand this Manual
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.
xxxiii
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.
xxxiv
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.
xxxv
xxxvi
PRECAUTIONS
This section provides general precautions for using the CJ-series Programmable Controllers (PLCs) and related devices.
The information contained in this section is important for the safe and reliable application of Programmable
Controllers. You must read this section and understand the information contained before attempting to set up or
operate a PLC system.
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.
2General Precautions
The user must operate the product according to the performance specifications described in the operation manuals.
Before using the product under conditions which are not described in the
manual or applying the product to nuclear control systems, railroad systems,
aviation systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used
improperly, consult your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide
the systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the Unit. Be
sure to read this manual before attempting to use the Unit and keep this manual close at hand for reference during operation.
!WARNING It is extremely important that a PLC and all PLC Units be used for the speci-
fied purpose and under the specified conditions, especially in applications that
can directly or indirectly affect human life. You must consult with your OMRON
representative before applying a PLC System to the above-mentioned applications.
3Safety Precautions
!WARNING The CPU Unit refreshes I/O even when the program is stopped (i.e., even in
PROGRAM mode). Confirm safety thoroughly in advance before changing the
status of any part of memory allocated to I/O Units, Special I/O Units, or CPU
Bus Units. Any changes to the data allocated to any Unit may result in unexpected operation of the loads connected to the Unit. Any of the following operation may result in changes to memory status.
• Transferring I/O memory data to the CPU Unit from a Programming
Device.
• Changing present values in memory from a Programming Device.
• Force-setting/-resetting bits from a Programming Device.
• Transferring I/O memory files from a Memory Card or EM file memory to
the CPU Unit.
• Transferring I/O memory from a host computer or from another PLC on a
network.
xxxviii
!WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing
so may result in electric shock.
Safety Precautions3
!WARNING Do not touch any of the terminals or terminal blocks while the power is being
supplied. Doing so may result in electric shock.
!WARNING Do not attempt to disassemble, repair, or modify any Units. Any attempt to do
so may result in malfunction, fire, or electric shock.
!WARNING Do not touch the Power Supply Unit while power is being supplied or immedi-
ately after power has been turned OFF. Doing so may result in electric shock.
!WARNING 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 PLC or another external factor
affecting the PLC operation. 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.
As a countermeasure for 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.
• When the 24-V DC output (service power supply to the PLC) is overloaded or short-circuited, the voltage may drop and result in the outputs
being turned OFF. As a countermeasure for such problems, external
safety measures must be provided to ensure safety in the system.
!Caution Confirm safety before transferring data files stored in the file memory (Mem-
ory Card or EM file memory) to the I/O area (CIO) of the CPU Unit using a
Programming Device. Otherwise, the devices connected to the output unit
may malfunction regardless of the operation mode of the CPU Unit.
!Caution 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.
!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.
!Caution Confirm safety at the destination node before transferring a program to
another node or changing contents of the I/O memory area. Doing either of
these without confirming safety may result in injury.
!Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the
torque specified in the operation manual. The loose screws may result in
burning or malfunction.
xxxix
Operating Environment Precautions4
!Caution A CJ1-H or CJ1M CPU Unit 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 HR Areas), however, is not written to
flash memory. The DM, EM, and HR 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
HR Areas are used to control external outputs, prevent inappropriate outputs
from being made whenever the Battery Error Flag (A40204) is ON. Areas
such as the DM, EM, and HR Areas, the contents of which can be held during
power interrupts, is backed up by a battery. If a battery error occurs, the contents of the areas that are set to be held may not be accurate even though a
memory error will not occur to stop operation. If necessary for the safety of the
system, take appropriate measures in the ladder program whenever the Battery Error Flag (A40204) turns ON, such as resetting the data in these areas.
!Caution When connecting a personal computers or other peripheral devices 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
cable
Peripheral device (e.g.,
personal computer)
FG
0 V
Power Supply
Unit
CPU Unit
4Operating Environment Precautions
!Caution 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.
0 V
xl
!Caution 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.
Application Precautions5
!Caution The operating environment of the PLC System can have a large effect on the
longevity and reliability of the system. Improper operating environments can
lead to malfunction, failure, and other unforeseeable problems with the PLC
System. Be sure that the operating environment is within the specified conditions at installation and remains within the specified conditions during the life
of the system.
5Application Precautions
Observe the following precautions when using the PLC System.
• You must use the CX-Programmer (programming software that runs on
Windows) if you need to program more than one task. A Programming
Console can be used to program only one cyclic task plus interrupt tasks.
A Programming Console can, however, be used to edit multitask programs originally created with the CX-Programmer.
!WARNING Always heed these precautions. Failure to abide by the following precautions
could lead to serious or possibly fatal injury.
• Always connect to a ground of 100
connecting to a ground of 100
• A ground of 100
terminals on the Power Supply Unit.
• 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, or
any other Units.
• Assembling the Units.
• Setting DIP switches or rotary switches.
• Connecting cables or wiring the system.
• Connecting or disconnecting the connectors.
!Caution Failure to abide by the following precautions could lead to faulty operation of
the PLC or the system, or could damage the PLC or PLC Units. Always heed
these precautions.
• A CJ-series CPU Unit is shipped with the battery installed and the time
already set on the internal clock. It is not necessary to clear memory or
set the clock before application, as it is for the CS-series CPU Units.
• The user program and parameter area data in CJ1-H/CJ1M CPU Units is
backed up in the internal 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.
• If, when using a CJ-series CPU Unit, the PLC Setup is set to specify using
the mode set on the Programming Console and a Programming Console
is not connected, the CPU Unit will start in RUN mode. This is the default
setting in the PLC Setup. (A CS1 CPU Unit will start in PROGRAM mode
under the same conditions.)
Ω or less must be installed when shorting the GR and LG
Ω or less when installing the Units. Not
Ω or less may result in electric shock.
xli
Application Precautions5
• 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.
• 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.
• Fail-safe measures must be taken by the customer to ensure safety in the
event that outputs from Output Units remain ON as a result of internal circuit failures, which can occur in relays, transistors, and other elements.
• 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.
• Interlock circuits, limit circuits, and similar safety measures in external circuits (i.e., not in the Programmable Controller) must be provided by the
customer.
• Do not turn OFF the power supply to the PLC when data is being transferred. In particular, do not turn OFF the power supply when reading or
writing a Memory Card. Also, do not remove the Memory Card when the
BUSY indicator is lit. 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.
• 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.)
• The contents of the DM, EM, and HR Areas in the CPU Unit are backed
up by a Battery. If the Battery voltage drops, this data may be lost. Provide
countermeasures in the program using the Battery Error Flag (A40204) to
re-initialize data or take other actions if the Battery voltage drops.
• Always use the power supply voltages specified in the operation manuals.
An incorrect voltage may result in malfunction or burning.
• 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.
• Install external breakers and take other safety measures against short-circuiting in external wiring. Insufficient safety measures against short-circuiting may result in burning.
• Install Units as far as possible away from devices that generate strong,
high-frequency noise.
• Do not apply voltages to the Input Units in excess of the rated input voltage. Excess voltages may result in burning.
xlii
Application Precautions5
• 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.
• 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.
• Change the applied voltage gradually using the adjuster on the Tester. If
full dielectric strength voltage is applied or turned OFF using the switch on
the Tester, the generated impulse voltage may damage the Power Supply
Unit.
• Install the Units properly as specified in the operation manuals. Improper
installation of the Units may result in malfunction.
• Do not apply a force greater than 100 N on the terminal block when tightening the terminals.
• Do not drop the product or subject it to excessive vibration or shock.
• Be sure that all the terminal screws, and cable connector screws are tightened to the torque specified in the relevant manuals. Incorrect tightening
torque may result in malfunction.
• 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.
• Wire all connections correctly.
• Double-check all wiring and switch settings before turning ON the power
supply. Incorrect wiring may result in burning.
• Mount Units only after checking terminal blocks and connectors completely.
• Be sure that the terminal blocks, Memory Units, expansion cables, and
other items with locking devices are properly locked into place. Improper
locking may result in malfunction.
• Check switch settings, the contents of the DM Area, and other preparations before starting operation. Starting operation without the proper settings or data may result in an unexpected operation.
• Check the user program for proper execution before actually running it on
the Unit. Not checking the program may result in an unexpected 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 operating mode of the PLC (including the setting of the
startup operating mode).
• Force-setting/force-resetting any bit in memory.
• Changing the present value of any word or any set value in memory.
• Resume operation only after transferring to the new CPU Unit the contents of the DM Area, HR Area, and other data required for resuming
operation. Not doing so may result in an unexpected operation.
• Do not pull on the cables or bend the cables beyond their natural limit.
Doing either of these may break the cables.
xliii
Application Precautions5
• 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.
• Do not connect pin 6 (+5 V power supply line) of the RS-232C port on the
CPU Unit to any external device except the CJ1W-CIF11 RS-422A
Adapter or NT-AL001 RS-232C/RS-422A Adapter. Doing so may damage
the external device or CPU Unit.
• When replacing parts, be sure to confirm that the rating of a new part is
correct. Not doing so may result in malfunction or burning.
• 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.
• When transporting or storing circuit boards, cover them in antistatic material to protect them from static electricity and maintain the proper storage
temperature.
• Do not touch circuit boards or the components mounted to them with your
bare hands. There are sharp leads and other parts on the boards that
may cause injury if handled improperly.
• 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 required that batteries be replaced only by experienced
technicians. Do not allow unqualified persons to replace batteries.
• Dispose of the product and batteries according to local ordinances as they apply. Have qualified specialists properly
dispose of used batteries as industrial waste.
xliv
• After connecting Power Supply Units, CPU Units, I/O Units, Special I/O
Units, or CPU Bus Units together, secure the Units by sliding the sliders at
the top and bottom of the Units until they click into place. Correct operation may not be possible if the Units are not securely properly. Be sure to
attach the end cover provided with the CPU Unit to the rightmost Unit. CJseries PLCs will not operate properly if the end cover is not attached.
• 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.
• 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 allowing the CPU Bus Units to be reset.
• When wiring crossovers between terminals, the total current for both terminals will flow in the line. Check the current capacities of all wires before
wiring crossovers.
Conformance to EC Directives6
• When wiring crossovers between terminals, the total current for both terminals will flow in the line. Check the current capacities of all wires before
wiring crossovers.
• The following precautions apply to Power Supply Units with Replacement
Notification.
• When the LED display on the front of the Power Supply Unit starts to
alternately display “0.0” and “A02” or the alarm output automatically
turns OFF, replace the Power Supply Unit within 6 months.
• Separate the alarm output cables from power lines and high-voltage
lines.
• Do not apply a voltage or connect a load to the alarm output that exceeds the rated voltage or load.
• Maintain an ambient storage temperature of
of 25% to 70% when storing the product for longer than 3 months to
keep the replacement notification function in optimum working condition.
• Always use the standard installation method. A nonstandard installation will decrease heat dissipation, delay the replacement notification
signal, and may degrade or damage the internal elements.
• Design the system so that the power supply capacity of the Power Supply
Unit is not exceeded.
• Do not touch the terminals on the Power Supply Unit immediately after
turning OFF the power supply. Electric shock may occur due to the residual voltage.
−20 to 30°C and humidity
6Conformance to EC Directives
6-1Applicable Directives
•EMC Directives
• Low Voltage Directive
6-2Concepts
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.
Note Applicable EMC (Electromagnetic Compatibility) standards are as follows:
Always ensure that devices operating at voltages of 50 to 1,000 V AC and 75
to 1,500 V DC meet the required safety standards for the PLC (EN61131-2).
6-3Conformance 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:
1,2,3...1. The CJ-series PLC must be installed within a control panel.
2. You must use reinforced insulation or double insulation for the DC power
supplies used for the communications power supply and I/O power supplies.
3. CJ-series PLCs complying with EC Directives also conform to the Common Emission Standard (EN61000-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.
6-4Relay Output Noise Reduction Methods
Countermeasures
The CJ-series PLCs conforms to the Common Emission Standards
(EN61000-6-4) of the EMC Directives. However, noise generated by relay output switching may not satisfy these Standards. In such a case, a noise filter
must be connected to the load side or other appropriate countermeasures
must be provided external to the PLC.
Countermeasures taken to satisfy the standards vary depending on the
devices on the load side, wiring, configuration of machines, etc. Following are
examples of countermeasures for reducing the generated noise.
(Refer to EN61000-6-4 for more details.)
Countermeasures are not required if the frequency of load switching for the
whole system with the PLC included is less than 5 times per minute.
Countermeasures are required if the frequency of load switching for the whole
system with the PLC included is more than 5 times per minute.
xlvi
Conformance to EC Directives6
a
v
r
Countermeasure Examples
When switching an inductive load, connect an surge protector, diodes, etc., in
parallel with the load or contact as shown below.
CircuitCurrentCharacteristicRequired element
ACDC
CR method
Power
supply
Diode method
Power
supply
Varistor method
Power
supply
YesYesIf the load is a relay or solenoid, there is
a time lag between the moment the circuit is opened and the moment the load
is reset.
If the supply voltage is 24 or 48 V, insert
Inductive
load
the surge protector in parallel with the
load. If the supply voltage is 100 to
200 V, insert the surge protector
between the contacts.
NoYesThe diode connected in parallel with
the load changes energy accumulated
by the coil into a current, which then
flows into the coil so that the current will
be converted into Joule heat by the
Inductive
load
resistance of the inductive load.
This time lag, between the moment the
circuit is opened and the moment the
load is reset, caused by this method is
longer than that caused by the CR
method.
YesYesThe varistor method prevents the impo-
sition of high voltage between the contacts by using the constant voltage
characteristic of the varistor. There is
time lag between the moment the cir-
Inductive
load
cuit is opened and the moment the load
is reset.
If the supply voltage is 24 or 48 V, insert
the varistor in parallel with the load. If
the supply voltage is 100 to 200 V,
insert the varistor between the contacts.
The capacitance of the capacitor must
be 1 to 0.5 µF per contact current of
1 A and resistance of the resistor must
be 0.5 to 1 Ω per contact voltage of 1 V.
These values, however, vary with the
load and the characteristics of the
relay. Decide these values from experiments, and take into consideration that
the capacitance suppresses spark discharge when the contacts are separated and the resistance limits the
current that flows into the load when
the circuit is closed again.
The dielectric strength of the capacitor
must be 200 to 300 V. If the circuit is an
AC circuit, use a capacitor with no
polarity.
The reversed dielectric strength value
of the diode must be at least 10 times
as large as the circuit voltage value.
The forward current of the diode must
be the same as or larger than the load
current.
The reversed dielectric strength value
of the diode may be two to three times
larger than the supply voltage if the
surge protector is applied to electronic
circuits with low circuit voltages.
---
When switching a load with a high inrush current such as an incandescent
lamp, suppress the inrush current as shown below.
Countermeasure 1Countermeasure 2
OUT
R
COM
Providing a dark current of
pprox. one-third of the rated
alue through an incandescent
lamp
OUT
COM
Providing a limiting resisto
R
xlvii
Conformance to EC Directives6
xlviii
SECTION 1
Introduction
This section introduces the special features and functions of the CJ-series PLCs and describes the differences between these
PLCs and the earlier C200HX/HG/HE PLCs.
The CJ-series PLCs are very small-sized Programmable Controllers that feature high speed and advanced functions with the same architecture as the
CS-series PLCs.
• Only 90 x 65 mm (H x D) for mounting in small spaces in machines and
on the same DIN Track as components, contributing to machine downsizing, increased functionality, and modularization.
• Basic instructions executed at 0.016 µs min. and special instructions at
0.048 µs min (for the CJ1H-CPU
• Support the DeviceNet open network and protocol macros (for serial communications) to enable information sharing in machines. Machine-tomachine connections with Controller Link and host connections with
Ethernet are also supported for even more advanced information sharing,
including seamless message communications across Ethernet, Controller
Link, and DeviceNet networks.
@@H-R Units).
Same or Better
Performance as CSseries PLCs
Basic instructions: 0.016 µs
Special instructions: 0.048 µs
(using CJ1H-CPU@@H-R)
Same high-speed CPU bus
as CS Series.
Large data memory:
256 Kwords
Program compatibility with
CS-series PLCs
PA205R
POWER
L1
AC100-240V
INPUT
L2/N
RUN
OUTPUT
AC240V
DC24V
Protocol Macro Function Serves
Multiple Ports
Up to 32 ports can be connected (Serial
Communications Units).
Different Protocol Macros can be allocated to
each port.
Personal
computer
CJ-series PLC
CPU Unit
RUN
SYSMAC
ERR/ALM
CJ1G-CPU44
INH
PROGRAMMABLE
PRPHL
CONTROLLER
COMM
OPEN
MCPWR
BUSY
PERIPHERAL
PORT
Memory Card
Programmable
Terminal or
other device
Other Units
Structured Programming
The program is divided into tasks. Symbols
can be used in programming.
The overall performance of the system is improved by executing only the required tasks.
Modification and debugging are simplified.
The program arrangement can be changed.
Step control and block programming instruc-
tions can be used.
Comments can be added to make the program easier to understand.
Program
Task
Task
Task
Remote Programming, Monitoring
and Seamless Links between Networks
FINS commands allow communications between nodes in different networks: Ethernet,
Controller Link, and DeviceNet
Remote programming and monitoring can be
performed.
Minimum (fixed) cycle time function
I/O refreshing method selection
Programming
Console
Full Complement of Versatile Functions
Generalpurpose I/O
device
PLC Setup functions
Use Windows tools to create multiple environments in a
single personal computer.
Memory Card and file processing functions
Simplify programs with specialized instructions such as
the table data and text string processing instructions
Troubleshooting functions
Data tracing function
2
CJ-series FeaturesSection 1-2
The CJ-series PLCs support the same task-based programming structure,
instructions, high-speed instruction execution, I/O memory, functionality, and
message communications as the CS-series PLCs. The main differences of
the CJ-series in comparison to the CS-series PLCs are as follows (refer to
page 67 for details):
• No Backplanes are required.
• Screw mounting is not supported (only DIN Track mounting).
• Smaller size (30% to 35% in terms of volume).
• Inner Boards are not supported.
• I/O interrupt tasks and external interrupt tasks are not supported by CJ1
CPU Units. (They are supported by CJ1-H CPU Units.)
• C200H Special I/O Units are not supported (e.g., SYSMAC BUS Remote
I/O Units).
• It is not necessary to create I/O tables unless desired, i.e., I/O tables can
be created automatically when power is turned ON.
• The startup mode when a Programming Console is not connected is RUN
mode (rather than PROGRAM mode, as it is for CS1 CPU Units).
• Only version 2.04 or higher versions of CX-Programmer can be connected for CJ1 CPU Units, version 2.1 or higher for CJ1-H CPU Units,
and version 3.0 or higher for CJ1M CPU Units.
1-2CJ-series Features
1-2-1Special Features
Improvements in Basic Performance
The CJ Series provides high speed, high capacity, and more functions in
micro-size PLCs.
Only 30% to 35% of the
Volume of CS-series PLCs
Mount to DIN TrackThe CJ-series PLCs can be mounted to DIN Track along with power supplies
Faster Instruction
Execution and Peripheral
Servicing
At 90 x 65 mm (height x depth), the CJ-series Units have on 70% the height
and half the depth of CS-series Units, contributing to machine downsizing.
and other components when there is limited installation space in a machine
(e.g., limited space between top and bottom ducts).
Processing for overhead, I/O refreshes, and peripheral servicing is also much
faster.
With up to 250 Ksteps of program capacity, 256 Kwords of DM Memory, and
2,560 I/O points, there is sufficient capacity for added-value programs including machine interfaces, communications, data processing, etc.
3
CJ-series FeaturesSection 1-2
Program and PLC Setup
Compatibility with CSseries CPU Units
No Backplanes for Greater
Space Efficiency
Up to 3 Expansion Racks
and 40 Units
Two I/O Allocation
Methods
There is almost 100% compatibility with CS-series CPU Units for programming and internal settings (PLC Setup).
Note Because of physical differences in the CJ-series PLCs, they do not
support all of the features of the CS-series PLC.
A flexible system configuration that requires less space is made possible
because Backplanes are not required for CJ-series PLCs.
By connecting an I/O Control Unit to the CPU Rack and I/O Interface Units to
Expansion Racks, up to three Expansion Racks (but only one for CJ1M CPU
Units) can be connected. The CPU Rack can contain up to 10 Units, as can
each of the three Expansion Racks, enabling a total of up to 40 Units.
The need for Backplanes was eliminated, enabling the following two methods
for allocating I/O.
1. Automatic I/O Allocation at Startup
I/O is allocated to the connected Units each time the power is turned ON
(same as CQM1H PLCs).
2. User-set I/O Allocation
If desired, the user can set I/O tables in the same way as for the CS-series
PLCs.
The default setting is for automatic I/O allocation at startup, but the user can
set the PLC to automatically use I/O tables to enable checking for Unit connection errors or to allocate unused words.
Allocate Unused WordsThe CX-Programmer can be used to allocate unused words in I/O tables for
transfer to the CPU Unit. This enables keeping words unallocated for future
use or to enable system standardization/modularization.
Structured Programming
Division of the Program
into Tasks
When the program is divided into tasks that handle separate functions, control
systems, or processes, several programmers can develop these separate
tasks simultaneously.
There can be up to 32 normal (cyclic) tasks and 256 interrupt tasks. There are
four types of interrupts: the Power OFF Interrupt, Scheduled Interrupts, I/O
Interrupts, and External Interrupts (interrupts from Special I/O Units or CPU
Bus Units).
Task
Earlier program
Task
Task
Task
When a new program is being created, standard programs can be combined
as tasks to create an entire program.
4
CJ-series FeaturesSection 1-2
Standard programs
Program ABC
Task 1 (A)
Task 2 (B)
Task 3 (C)
Program ABD
Task 1 (A)
Task 2 (B)
Task 3 (D)
Using SymbolsArbitrary symbols (names up to 32 characters) that are independent of I/O ter-
minal allocations can be used in programming. Standard programs created
with symbols are more general and easier to reuse as tasks in different programs.
Symbols specified for bit address:
SW1VALVE
Global and Local Symbols
Supported
I/O names are handled as symbols which can be defined as global symbols,
which apply to all of the programs in all tasks, or as local symbols, which apply
to just the local task.
When the symbols are defined, you can choose to have the local symbols
allocated to addresses automatically.
Improve Overall System
Response Performance
The response performance of the system can be improved by dividing the
program into a system-management task and tasks used for control, and executing only those control tasks that need to be executed.
Simplify Program Modification
• Debugging is more efficient when the job of modifying and debugging the
tasks can be divided among several individuals.
• Program maintenance is easier because only the tasks affected by
changes have to be modified when there are changes (such as changes
in specifications).
• Several consecutive program lines can be modified with online editing.
• The amount the cycle time is extended during online editing has been
reduced.
Change Program
Arrangement Easily
When separate tasks have been programmed for different production models,
the task control instructions can be used to switch the program quickly from
production of one model to another.
Step Control and Block
Programming
The step control and block programming instructions can be used to control
repetitive processes that are difficult to program with ladder programming
alone.
CommentsSeveral types of comments can be added to the program to make it easier to
understand, including Rung comments, and I/O comments.
Section FunctionThe section function can be used to make the program easier to visualize
(CX-Programmer version 2.0 or higher).
5
CJ-series FeaturesSection 1-2
Port-specific Protocol Macros
Create Protocol Macros
for All Ports
Protocol macros can be used to create versatile communications functions for
any of the PLC’s communications ports. The communications functions can
have host link, NT Link, or protocol macro configurations and can be directed
to RS-232C and RS-422/485 ports on any of the Units.
All together, a CPU Unit can support a maximum of 32 ports.
Host Computer Programming Device
CPU Unit
Up to 32 ports are possible
Standard Serial Communications with External Devices
Messages can be transferred to and from standard serial devices with the protocol macro function (according to preset parameter settings). The protocol
macro function supports processing options such as retries, timeout monitoring, and error checks.
Symbols that read and write data to the CPU Unit can be included in the communications frames, so data can be exchanged with the CPU Unit very easily.
OMRON components (such as Temperature Controllers, ID System Devices,
Bar Code Readers, and Modems) can be connected to a Serial Communications Unit with the standard system protocol. It is also possible to change the
settings if necessary.
Serial Communications
Unit
External device
with serial port
PT
Note The Serial Communications Unit must be purchased separately to take
advantage of this function.
Multilevel Network Configurations
Different network levels can be connected as shown in the following diagram.
The multilevel configuration provides more flexibility in networking from the
manufacturing site to production management.
OA network:Ethernet
FA network:Controller Link
Open network:DeviceNet
Transmit or receive data with just one instruction.
External device
6
CJ-series FeaturesSection 1-2
Message communications
possible among Ethernet,
Controller Link, and DeviceNet.
Ethernet
CJ-series PLC
CJ-series PLC
Controller Link
I/O Terminal
Remote Monitoring and Programming
1,2,3...1. The host link function can operate through a modem, which allows moni-
toring of a distant PLC’s operation, data transfers, or even online editing of
a distant PLC’s program by phone.
2. PLCs in a network can be programmed and monitored through the Host
Link.
3. It is possible to communicate through 3 network levels even with different
types of networks.
Remote programming/monitoring
of a distant PLC
CS-series PLC
DeviceNet
CJ-series PLC
Controller
Remote programming/monitoring of a
PLC on the network through Host Link
Robot, etc.Temperature
ModemModem
Remote programming/monitoring of a PLC on a network up to
3 levels away (including the local net-work) for the same or
different types of networks is possible through Host Link.
Controller Link Network
Network 3
Network 1
Network 2
7
CJ-series FeaturesSection 1-2
Message transfer between PLCs on a network 3 levels away (including
the local network) for the same or different types of networks.
Network 3
Network 1
Network 2
Seamless message communications are possible across Ethernet, Controller Link, and DeviceNet networks,
enabling easy information integration on machine, machine-to-machine, and machine-to-host levels.
Note1. With CS/CJ-series CPU Units Ver. 2.0 or later, remote programming/mon-
itoring is possible up to 8 levels away. Refer to
tection Using Passwords
for details.
1-6-2 Improved Read Pro-
2. NT Link communications between an NT31/NT631-V2 PT and a CJ-series
PLC are now possible at high speed.
1-2-2Versatile Functions
Memory Card and File Management Functions
Transfer Data to and from
Memory Cards
Convert EM Area Banks to
File Memory (CJ1-H and
CJ1 CPU Units Only)
Automatic File Transfer at
Start-up
I/O Memory Files in CSV
and Text Format
Data area data, program data, and PLC Setup data can be transferred as files
between the Memory Card (compact flash memory) and a Programming
Device, program instructions, a host computer, or via FINS commands.
I/O Memory, program,
and parameter areas
stored as files.
Part of the EM Area can be converted to file memory to provide file management capabilities without a Memory Card and with much faster access time
than a Memory Card. (The EM Area can be very useful for storing data such
as trend data as files.)
The PLC can be set up to transfer the program and/or PLC Setup files from
the Memory Card when the PLC is turned ON. With this function, the Memory
Card provides a flash-ROM transfer. This function can also be used to store
and change PLC configurations quickly and easily.
It is now possible to save production results and other data (hexadecimal)
from the CPU Unit I/O memory in a Memory Card in CSV or text format. The
data can then be read and edited using personal computer spreadsheet software by means of a Memory Card Adapter.
I/O memory data stored
in CSV or text format
FWRIT
Via Memory Card Adapter
Spread sheet software
File Operations (Format,
Delete, etc.) from Ladder
Programs
8
Memory Card
It is possible to format files, delete, copy, change file names, create new directories, and perform similar operations on a Memory Card from the ladder program during PLC operation.
CJ-series FeaturesSection 1-2
Program Replacement
during Operation
It is now possible to replace the entire user program in the CPU Unit from the
Memory Card during operation. In this way, it is possible to switch PLC operation without stopping the PLC.
PLC operation
.OBJ
Replacement
Easy Backups It is now possible to back up all data (user programs, parameters, and I/O
memory) to the Memory Card by pressing the Memory Card power supply
switch. In this way, if a malfunction arises, it is possible to back up all data in
the CPU Unit at the time without using a Programming Device.
Specialized Instructions Simplify Programming
Text String InstructionsThe text string instructions allow text processing to be performed easily from
the ladder program. These instructions simplify the processing required when
creating messages for transmission or processing messages received from
external devices with the protocol macro function.
Processing of text string
data
External device with
standard serial port
Loop InstructionsThe FOR(512), NEXT(513), and BREAK(514) instructions provide a very
powerful programming tool that takes up little program capacity.
Index RegistersSixteen Index Registers are provided for use as pointers in instructions. An
Index Register can be used to indirectly address any word in I/O memory. The
CJ-series PLCs also support the auto-increment, auto-decrement, and offset
functions.
The Index Registers can be a powerful tool for repetitive processing (loops)
when combined with the auto-increment, auto-decrement, and offset functions. Index Registers can also be useful for table processing operations such
as changing the order of characters in text strings.
Table Data Processing Instructions
Stack Instructions
A region of I/O memory can be defined as a stack region. Words in the stack
are specified by a stack pointer for easy FIFO (first-in first-out) or LIFO (last-in
first-out) data processing.
Stack region
Pointer
Range Instructions
These instructions operate on a specified range of words to find the maximum
value or minimum value, search for a particular value, calculate the sum or
FCS, or swap the contents of the leftmost and rightmost bytes in the words.
9
CJ-series FeaturesSection 1-2
Range specified
in the instruction
Data
Search, find maximum,
find minimum, etc.
Record-table Instructions
Record-table instructions operate on specially defined data tables. The record
table must be defined in advance with DIM(631), which declares the number
of words in a record and the number of records in the table. Up to 16 record
tables can be defined.
Record tables are useful when data is organized in records. As an example, if
temperatures, pressures, or other set values for various models have been
combined into a table, the record-table format makes it easy to store and read
the set values for each model.
The SETR(635) can be used to store the first address of the desired record in
an Index Register. Index Registers can then be used to simplify complicated
processes such as changing the order of records in the record table, searching for data, or comparing data.
Table
Record 2
Set values for model A
Troubleshooting Functions
Failure Diagnosis:
FAL(006) and FALS(007)
Failure Point Detection:
FPD(269)
The FAL(006) and FALS(007) can be used to generate a non-fatal or fatal
error when the user-defined conditions are met. Records of these errors are
stored in the error log just like system-generated errors.
Diagnoses a failure in an instruction block by monitoring the time between
execution of FPD(269) and execution of a diagnostic output and finding which
input is preventing an output from being turned ON.
Record 2
Record 3
User-defined
error condition
Temperature setting
Pressure setting
Time setting
FAL(006) or FALS(007) error
Input preventing
diagnostic output
from going ON
FPD
Error Log FunctionsThe error log contains the error code and time of occurrence for the most
recent 20 errors (user-defined or system-generated errors).
Maintenance FunctionsThe CJ-series PLCs record information useful for maintenance, such as the
number of power interruptions and the total PLC ON time.
10
CJ-series FeaturesSection 1-2
Other Functions
Data Trace FunctionThe content of the specified word or bit in I/O memory can be stored in trace
memory by one of the following methods: scheduled sampling, cyclic sampling, or sampling at execution of TRSM(045).
Trace memory
Specified address
in I/O memory
Fixed Cycle Time Function
A fixed (minimum) cycle time can be set to minimize variations in I/O response
times.
I/O Refreshing Methods
I/O refreshing can be performed cyclically and immediately by programming
the immediate-refreshing variation of the instruction.
PLC Setup Functions
PLC operation can be customized with PLC Setup settings, such as the maximum cycle time setting (watch cycle time) and the instruction error operation
setting, which determines whether instruction processing errors and access
errors are treated as non-fatal or fatal errors.
Binary Refreshing of Timer/Counter Instruction PVs
Present values of timer/counter instructions can now be refreshed in binary, in
addition to the existing BCD capability. (Binary refreshing, however, can be
specified with only CX-Programmer Ver. 3.0 and higher.) This allows the timer/
counter setting time to be expanded to a range of 0 to 65535 (from the existing 0 to 9,999). Also, results calculated by other instructions can be used as is
for timer/counter set values.
Windows-based Support Software
The single-port multiple-access (SPMA) function can be used to program and
monitor other CPU Bus Units on the same bus (CPU Rack or Expansion
The PLC’s initial settings can be
customized with the PLC Setup.
11
CJ-series FeaturesSection 1-2
Racks) or other CPU Units on the same network from a serial port on the CPU
Unit.
Programming Device
Several CPU Bus Units on the same
bus or other CPU Units on the same
network can be accessed from a
Controller Link
single port.
Power Supply Units with Replacement Notification
The CJ1W-PA205C Power Supply Units with Replacement Notification provide six display levels using a 7-segment display on the front panel of the Unit
to indicate the remaining service life of the Power Supply Unit. An alarm output also notifies when the estimated remaining service life drops to 6 months
or shorter. This function enables Power Supply Unit replacement before the
power supply reaches the end of its service life resulting in a system failure.
AC100-240V
L1
L2/N
NC
NC
CJ1W-PA205C
TEST
ALARM
OUTPUT
DC30V,50mA
L
NORMAL:ON
+
ALARM :OFF
POWER
Years
CJ1W-PA205C Power
Supply Unit with
Replacement Notification
Alarm output turns OFF
when remaining service
life is 6 months.
12
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
1-3CJ1-H and CJ1M CPU Unit Features
1-3-1CJ1-H-R CPU Unit Features
The CJ1-H-R (high-speed) CPU Units (CJ1H-CPU@@H-R) have the following
features.
The CJ1-H-R CPU Units are completely upwardly compatible from the CJ1HCPU@@H Units, and yet they are much faster overall.
Example 1: A program consisting of 30K steps of only basic instructions with
128 inputs and 128 outputs executes in 0.7 ms, or 1.43 times faster (1 ms for
a CJ1-H CPU Unit).
Example 2: A program consisting of 30K steps of basic and special instructions in a 7:3 ratio with 128 inputs and 128 outputs executes in 0.9 ms, or 1.33
times faster (1.2 ms for a CJ1-H CPU Unit).
Example 3: A program consisting of 30K steps of basic, special, and floatingpoint math instructions in a 6:3:1 ratio with 128 inputs, 128 outputs, two Analog Input Units, and Two Position Control Units (4 axes) executes in 1.5 ms, or
5.4 times faster (8.1 ms for a CJ1-H CPU Unit).
High-speed Overhead Processing (Less Than Half of Previous Models)
Overhead processing time has been reduced from 0.3 to 0.13 ms.
High-speed I/O Refreshing (Less Than Half of Previous Models)
On average, the refresh time for Basic I/O Units and Special I/O Units has
been cut in half or more.
Examples:
16-point Input Unit: Reduced from 3
Analog Input Unit: Reduced from 120
µs to 1.4 µs
µs to 50 µs
High-speed Interrupts (Approximately Three Times Faster Than Previous Models)
The software interrupt response time has been reduced from 124 µs to 40 µs.
Scheduled Interrupts Set in Increments of 0.1 ms
A setting unit 0.1 ms has been added for scheduled interrupts.
High-speed Timer Instructions (Ten Times Faster Than Previous Models)
Although high precision was provided for the previous 1-ms timer instruction,
0.1-ms and 0.01-ms timer instructions have been added.
High-speed Clock Pulses (More Than Five Times Faster Than Previous Models)
Clock pulses of 0.1 ms, 1 ms, and 0.01 s (see note) have been added to the
previous pulses of 0.02 s, 0.1 s, 0.2 s, 1 s, and 1 min.
Note The 0.01 s Clock Pulse cannot be used with unit version 4.1 of the
CJ1-H-R CPU Units. The 0.01 s Clock Pulse can be used with all other unit versions.
High-speed Floating-point Math (Up to 70 Times Faster Than Previous Models
Floating-point calculations of sine, cosine, and tangent functions are up to 70
times faster than previous models.
Example: SIN: 42.0
reduced to 0.59
times faster).
µs reduced to 0.59 µs (71 times faster), COS: 31.5 µs
µs (53 times faster), TAN: 16.3 µs reduced to 1.18 µs (13.8
13
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
New Instruction Added
The following instructions have been added.
• High-speed sine calculation: SINQ(475)
• High-speed cosine calculation: COSQ(476)
• High-speed tangent calculation: TANQ(462)
• Floating-point move: MOVF(469)
• High-speed Special I/O Unit refresh: FIORF(225)
More Relays in Relay Network Tables in Routing Tables
The number of relays that can be set in a relay network table has been
increased from 20 to 64. Refer to the CX-Integrator Operation Manual (W445)
and the Communication Unit operation manuals for details.
1-3-2CJ1-H CPU Unit Features
Faster in Essentially Every Way
Ultra High-speed Cycle
Time
1,2,3...1. Instruction execution times: Only about 1/2 the time required for basic in-
The CJ1-H CPU Units provide a cycle time that is three to four times faster
than that of the CJ1 CPU Units.
For example, a program consisting of 38 Ksteps of only basic instructions with
128 inputs and 128 outputs executes in 1 ms (4.9 ms for the CJ1 CPU Units);
a program consisting of 20 Ksteps of basic and special instructions in a 1:1
ratio with 128 inputs and 128 outputs executes in 1 ms (2.7 ms for the CJ1
CPU Units); and a program consisting of 8 Ksteps of basic and special
instructions in a 1:2 ratio with 64 inputs and 64 outputs executes in 0.5 ms
(1.4 ms for the CJ1 CPU Units).
The following factors give the CJ1-H CPU Units their high speed.
structions, and only about 1/3 the time required for special instructions.
2. Better bus performance: Data transfers between the CPU Unit and Special
I/O or Communications Units is about twice as fast, providing greater overall system performance.
3. Instruction execution is performed in parallel with peripheral servicing.
4. Other factors, including background execution of text string processing and
table data processing instructions.
14
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
Faster Execution of
Common Instructions
System Bus Speed
Doubled
Parallel Processing of
Instructions and
Peripheral Servicing
Extensive research on applications of CJ1 CPU Units was used to identify the
20 most commonly used instructions of the more than 400 supported instructions (see below), and execution speed for these instructions was increased
by 10 to 20 times previous performance.
The speed of transferring data between the CPU Unit and CPU Bus Units has
been doubled to increase overall system performance.
A special mode is supported that enables parallel processing of instruction
execution and peripheral device servicing to support the following types of
application.
• Extensive data exchange with a host not restricted by the program capacity in the CJ1-H CPU Unit
• Consistently timed data exchange with SCADA software
• Eliminating the effects on cycle time of future system expansion or
increases in communications
Less Cycle Time
Fluctuation for Data
Processing
Better Data Link and
Remote I/O Refreshing
Immediate Refreshing for
CPU Bus Units
Table data processing and text string processing, which often require time,
can be separated over several cycles to minimize fluctuations in the cycle time
and achieve stable I/O response.
CPU Bus Unit refresh response has been increased both by reductions in the
cycle time itself and by the addition of an immediate I/O refresh instruction for
CPU Bus Units (DLNK(226)). This instruction will refresh data links,
DeviceNet remote I/O, protocol macros, and other special data for CPU Bus
Units.
The response of a CJ1-H CPU Unit is approximately 2.4 times that of a CJ1
CPU Unit. And, for a cycle time of approximately 100 ms or higher, the
increase in the data link response is comparable to that for the cycle time.
Although previously, I/O refreshing for CPU Bus Units was possible only after
program executions, a CPU BUS I/O REFRESH instruction (DLNK(226)) has
been added to enable immediate I/O refreshing for CPU Bus Units. Data links,
DeviceNet remote I/O, an other unique CPU Bus Unit refreshing can be
refreshed along with words allocated to the CPU Bus Unit in the CIO and DM
Areas whenever DLNK(226) is executed. This is particularly effective for
longer cycle times (e.g., 100 ms or longer). (Data exchange for data links,
DeviceNet remote I/O, and other network communications are also affected
by the communications cycle time, i.e., DLNK(226) refreshes data only
between the CPU Bus Units and the CPU Unit, not the data on the individual
networks.)
15
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
Function Block (FB)
When using a CPU Unit with unit version 3.0 or later, standard processes can
be encapsulated as easily reusable function blocks as long as those processes only exchange I/O data externally. The function blocks can be written
in ladder language or ST (structured text) language. Mathematical processing
that is difficult to write in ladder language can be written easily in the ST language.
OMRON function blocks can be written in ladder language or ST (structured
text) language, and conform to IEC 61131-3 standards (JIS B3503). The function blocks provide functions for more efficient design and debugging of the
user equipment, as well as easier maintenance.
Smart FB LibraryThe Smart FB Library is a set of function blocks that improve interoperability
between OMRON PLC Units and FA components. Since it isn't necessary to
create a ladder program to use basic Unit and FA component functions, the
user can concentrate on more important work, such as determining how to
make the most of device functions.
Online Editing of FB
Definitions
NestingNot only can programs be created with nested OMRON FBs, it is possible to
Protecting FB DefinitionsIt is possible to prevent unauthorized manipulation, editing, or misappropria-
Offline Debugging with
the Simulator
Variable Support for
String Operations (CPU
Units with Unit Version 4.0
or Later)
FB Generation FunctionExisting PLC programming can be reused by easily converting it to FBs.
FB definitions can be changed during operation, so FB definitions can be
edited quickly during debugging. In addition, FBs can be used with confidence
even in equipment that must operate 24 hours/day. (Requires CPU Unit unit
version 4.0 or later and CX-Programmer version 7.0 or higher.)
make easy-to-understand, stress-free operations by switching displays under
preset conditions and displaying structures in a directory-tree format.
(Requires CX-Programmer version 6.0 or higher.)
tion of the program by setting passwords for the function block definitions allocated in the project file and protecting the definitions based on their purpose.
(Requires CX-Programmer version 6.1 or higher.)
The Simulator enables checking the PLC program's operation on the desktop,
so program quality can be improved and verified early on. Both the ladder and
ST programming can be executed in the computer application.
The functions that perform string data operations in ST language not only
support string variables, they also strengthen the functions used to communicate with string data I/O. This feature simplifies the creation of programs that
send and receive communications commands. (Requires CPU Unit unit version 4.0 or later and CX-Programmer version 7.0 or higher.)
(Requires CX-Programmer version 7.0 or higher.)
High-speed Structured Programming
To further aid standardized programming, program structuring functions have
been improved, as has program execution speed.
Function BlocksRequired programming can be “encapsulated” in function blocks using either
ladder diagrams or structure text. (Requires CPU Unit unit version 3.0 or
later.)
More Cyclic TasksTasks provide better efficiency by enabling programs to be separated by func-
tion or for development by different engineers. The CJ1-H CPU Units support
up to 288 cyclic tasks, an incredible increase over the previous maximum of
32 tasks.
16
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
Common Processing from
Multiple Tasks
Faster Subroutine
Instructions
Shared Index and Data
Registers between Tasks
Download/Upload Tasks
Individually (Unit Version
2.0 or Later)
Global subroutines that can be called by any task are now supported. These
can be used for common processing from more than one task, for greater
standardization.
Subroutine instruction are executed approximately 9 or 17 times faster to
enable greater program modularization without having to be concerned about
increasing the cycle time.
Although separate index and data registers can still be used in each task, they
have been joined by shared index and data registers that can be used
between tasks to reduce the time required to switch between tasks.
The CX-Programmer can be used to upload or download only the required
tasks. This enables the member of a development team to work separately
and then upload/download tasks after debugging them, helping to eliminate
the need for unification work by a manager as well as mistakes that can easily
occur in such work.
Battery-free Operation with Flash Memory
Any user program or parameter area data transferred to the CPU Unit is automatically backed up in flash memory in the CPU Unit to enable battery-free
operation without using a Memory Card.
Note Refer to information on flash memory in the CS/CJ Series Programming Man-
ual (W394) for precautions on this function.
Store Comment/Section
Data in CPU Unit’s Flash
Memory (Unit Version 3.0
or Later)
The CX-Programmer can be used to save I/O comments and other comment/
section data in the comment memory contained in the CPU Unit’s flash memory. When the simple backup operation is used, the comment/section data in
flash memory can also be backed up.
Many Protection Functions
Improved Read Protection
Using Passwords with CXProgrammer Version 4.0
or Higher
Protection for CPU Units
from FINS Write
Commands Sent via
Networks
Read Protection for Specific Tasks
Passwords can be set to read-protect individual groups of tasks. This enables
creating black boxes in the program.
Enabling/Disabling Creating File Memory Program Files
When read protection is set, an optional setting allows you to enable or disable creating program backup files (.OBJ). This setting can be used to prevent
programs from being disclosed.
Program Write Protection
The user program can be protected without using the DIP switch setting. This
helps prohibit unauthorized or accidental program changes.
Write operations to a CPU Unit using FINS commands across networks can
be enabled for specific nodes and disabled for all other nodes. This can be
used to enable monitoring data via networks while eliminating the possibility
of accidental mistakes caused by careless writing operations.
More Instructions for Specific Applications
Very specific control can be easily programmed for a much wider range of
applications with the many new special instructions added to the CJ1-H CPU
Units.
High-speed Positioning
for XY Tables
Double-precision floating-point calculations are supported for the CJ1-H CPU
Units to provide even better precision for position control operations.
17
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
Convert between Floating
Point and Text String Data
Accurate Line
Approximations
Realtime Workpiece Data
Management
PID AutotuningAutotuning is now supported for PID constants with the PID CONTROL
System Debugging
through Error Simulation
Program Simplification
with More Specific Basic
Instructions
To display floating-point data on PTs, the CJ1-H CPU Units provide conversion instructions from floating-point data to text strings (ASCII). Conversion
between ASCII and floating-point data is also possible so that ASCII data from
serial communications with measurement devices can be used in calculations.
Unsigned 16-bit binary/BCD data, signed 16/32-bit binary data, or floatingpoint data can be used for line data, enabling precise (high data resolution)
conversions, such as from a level meter (mm) to tank capacity (l) based on the
shape of the tank.
When loading and unloading workpieces from conveyor lines, stack instructions can be used to manage workpiece information in realtime in table format.
instruction. The limit cycle method is used to ensure rapid autotuning. Very
effective for multiloop PID control.
A specified error status can be created with the FAL/FALS instructions. This
can be used effectively when depending systems. For example, errors can be
simulated to produce corresponding displays on a PT to confirm that the correct messages are being displayed.
Programs that use a high quantity of basic instructions can be simplified
though the use of differentiated forms of the LD NOT, AND NOT and OR NOT
instructions, and through the use of OUT, SET, and RSET instructions that
can manipulate individual bits in the DM or EM Area.
Delayed Power OFF
Processing for Specified
Program Areas
Multiple Interlock
Instructions (MILH(517),
MILR(518), and MILC(519))
for Nested Interlocks
TIME-PROPORTIONAL
OUTPUT (TPO(685))
Instruction for Time-proportional Operation with
Temperature Controllers
or Variable-duty Lighting/
Power Control
Symbol Time Comparison
Instructions for Easy
Calendar Timers
The DI and EI instructions can be used to disable interrupts during specific
portions of the program, for example, to prevent the power OFF interrupt from
being executed until a specific instruction has been executed.
These instruction enable easy creation of nested interlocks. For example, create one interlock to control the entire program (e.g., for an emergency stop)
and then nest other interlocks for separate portions of the program (e.g., conveyor operation, alarms, etc.).
This instruction is used in combination with PID instructions to create a timeproportional output based on the manipulated variable output by the PID
instruction. This enables easily connecting an SSR to a Transistor Output Unit
to achieve time-proportional operation of a Temperature Controller. Variableduty pulse outputs can also be created for lighting or power control.
Two times/dates can be compared to continue operation to the next instruction
in the ladder program rung when the results of comparison is true. Opposed
to normal comparison instructions, comparisons are by byte and the bytes
that are compared in the time/date data can be controlled. This enables comparing built-in clock data with set times/dates to easily create a calendar timer,
for example, on the hour (when the minutes is 0) or on a specific date each
year).
18
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
GRAY CODE CONVERSION (GRY(474)) for Easy
Conversion of Parallel
Inputs from Absolute
Encoders to Binary, BCD,
or Angle Data
EXPANDED BLOCK COMPARE (BCMP2(502)) for
Comparison Judgements
for Up to 256 Ranges
(Upper/Lower Limits) with
One Instruction
Easier Processing of I/O
Devices with Special I/O
Instructions
This instruction converts Gray binary codes to binary, BCD, or angle data.
This enables easily handling position or angle data input as parallel signals
n
) from an Absolute Encoder with a Gray code output using a DC Input Unit.
(2
This instruction determines if a value is within any of up to 256 ranges defined
by upper and lower limits. When used with the GRAY CODE CONVERSION
(GRY(474)) instruction, the same operation as a cam switch can be achieved
by determining if an angle input from an Absolute Encoder is in a comparison
table.
Previously many instructions were required to read or write data for external
input devices such as digital switches and 7-segment displays connected to
Basic I/O Units. Now, I/O processing for these devices can be achieved with a
single instruction. These are sometimes call Combination Instructions.
These instructions are the same as those supported by the C200HX/HG/HE
and CQM1H PLCs, with the exception that more than one of each of these
instructions can be executed in a single user program.
TEN KEY INPUT (TKY(211))
Sequentially reads numbers input from a ten-key connected to an Input Unit.
HEXADECIMAL KEY INPUT (HKY(212))
Sequentially reads numbers input from a hexadecimal keypad connected to
an Input Unit and an Output Unit for a maximum of 8 digits.
DIGITAL SWITCH INPUT (DSW(213))
Reads numbers input from a digital switch or thumbwheel switch connected to
an Input Unit and an Output Unit. Either 4 or 8 digits are read.
MATRIX INPUT (MTR(210))
Sequentially reads 64 input points input from a 8 x 8 matrix connected to an
Input Unit and an Output Unit.
7-SEGMENT DISPLAY OUTPUT (7SEG(214))
Converts 4-digit or 8-digit values to data for a 7-segment display and outputs
the result.
Read/Write CPU Bus Unit
Memory Areas with
IORD(222)/IOWR(223)
Although INTELLIGENT I/O READ (IORD(222)) and INTELLIGENT I/O
WRITE (IOWR(223)) could previously be used only for Special I/O Units,
these instructions can now be used to read and write data for CPU Bus Units.
Easier Network Connections and More-advanced Seamless Network Communications
Online Connections via
Networks without I/O
Tables
Online connection is possible to any PLC in the local network from a Programming Device, such as the CX-Programmer, as soon as the network is connected. It’s not necessary to create the I/O tables to enable connection;
automatic I/O allocation at startup is used. This eliminates the need to use a
serial connection to create I/O tables before the CX-Programmer can be connected via Ethernet. Only an Ethernet connection through a CJ1W-ETN21
Ethernet Unit is required to go online and create I/O tables.
Work Across Up to Eight
Networks with CX-Net in
CX-Programmer Version
4.0 or Higher
FINS commands can be sent across up to 8 network levels (including the local
network). This enables a wider range of communications between devices on
Ethernet and Controller Link Networks.
19
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
FINS commands can only be sent across up to 8 network levels when the
destination is a CPU Unit. FINS commands can be sent to other destinations
up to 3 network levels away.
Online Connections to
PLCs via NS-series PTs
Easier Implementation of
Explicit Messages with
Explicit Message
Instructions
Downloading, uploading, and monitoring of ladder programs or other data is
possible to a PLC connected serially to an NS-series PT from the CX-Programmer connected to the NS-series PT by Ethernet.
Special Explicit Message Instructions are now supported to simplify using
explicit messages. (Previously, CMND(490) had to be used to send a FINS
command of 2801 hex to enable sending explicit messages.) The new instructions include the following: EXPLICIT MESSAGE SEND (EXPLT(720)),
EXPLICIT GET ATTRIBUTE (EGATR(721)), EXPLICIT SET ATTRIBUTE
(ESATR(722)), EXPLICIT WORD READ (ECHRD(723)), and EXPLICIT
WORD WRITE (ECHWR(724)). Of these, EXPLICIT WORD READ
(ECHRD(723)) and EXPLICIT WORD WRITE (ECHWR(724)) enable easily
reading and writing data in CPU Units on networks with the same type of
notation as used for SEND(290) and RECV(298). (Does not apply to C200HX/
HG/HE and CV-series PLCs.)
Incorporate CompoWay/F-compatible OMRON Components into FINS Network Via
Serial Gateway
Using the Serial Gateway mode for the CPU Unit’s serial port enables flexible
access to CompoWay/F-compatible OMRON components from devices on
the network (e.g., PTs, PLC CPU Units, personal computers).
Use No-protocol Communications at Multiple Ports
No-protocol communications can be performed via the serial ports of Serial
Communications Boards/Units with unit version 1.2 or later. This enables noprotocol communications at multiple ports.
Greater Flexibility in I/O Allocations
First Word Address
Settings for Slots (Using
CX-Programmer Version
3.1 or Higher)
When editing I/O tables for CJ1-H/CJ1M CPU Units, the first word address
can be set for up to 64 slots. This can be used, for example, to create fixed
starting addresses for Input Units and Output Unit to separate I/O allocations
from the program and increase the efficiency of program maintenance.
Automatic Transfer at Power ON
Automatic Transfers at
Power ON without a
Parameter File (.STD)
Automatic Detection of I/O
Allocation Method for
Automatic Transfer at
Power ON
(CJ1-H and CJ1M CPU
Units Ver. 2.0 or Later)
The user program can be automatically transferred to the CPU Unit at power
ON without a parameter file (.STD) if the name of the program file (.OBJ) is
changed to REPLACE on the CX-Programmer and the file is stored on a
Memory Card. This can be used, for example, to enable transferring a program to a CPU Unit by creating the program offline and sending it as an email
attachment, without a local Programming Device.
The method used to create the parameter file (AUTOEXEC.STD) for automatic transfer at power ON (automatic I/O allocation at startup or user-set I/O
allocation) is recorded. When an automatic transfer at power ON is executed
from the Memory Card, the recorded method is automatically detected and
used to create the I/O tables.
For example, this method can be used to create files for automatic transfer at
power ON in an office where Units are not mounted yet. The files can be
stored in a Memory Card, which can then be taken and installed in a CJseries CPU Unit at the remote site. When automatic transfer at power ON is
20
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
executed, the I/O will be allocated by the CPU Unit according to the method
recorded in the Memory Card.
Operation Start/End Times
The times that operation is started and ended are automatically stored in
memory in the Auxiliary Area (A515 to A517). This enables easier management of the operating times of the PLC System.
Free-running Timers
The system timers used after the power is turned ON are contained in the following Auxiliary Area words.
NameAddressFunctionAccess
10-ms Incrementing
Free Running Timer
100-ms Incrementing
Free Running Timer
1-s Incrementing Free
Running Timer
A000This word contains the system timer
used after the power is turned ON.
“A value of 0000 hex is set when the
power is turned ON and this value is
automatically incremented by 1
every 10 ms. The value returns to
0000 hex after reaching FFFF hex
(655,350 ms), and then continues to
be automatically incremented by 1
every 10 ms.
(Unit version 3.0 or later)
A001This word contains the system timer
used after the power is turned ON.
A value of 0000 hex is set when the
power is turned ON and this value is
automatically incremented by 1
every 100 ms. The value returns to A
value of 0000 hex after reaching
FFFF hex (6,553,500 ms), and then
continues to be automatically incremented by 1 every 100 ms.
(Unit version 3.0 or later)
A002This word contains the system timer
used after the power is turned ON.
A value of 0000 hex is set when the
power is turned ON and this value is
automatically incremented by 1
every second. The value returns to
0000 hex after reaching FFFF hex
(65,535 s), and then continues to be
automatically incremented by 1
every second.
(Unit version 4.0 or later)
Read-only
Read-only
Read-only
Better Compatibility with Other SYSMAC PLCs
C200HE/HG/HX PLCsThe AREA RANGE COMPARE (ZCP) and DOUBLE AREA RANGE COM-
PARE (ZCPL) instructions are supported in the CJ1-H CPU Units to provide
better compatibility with the C200HE/HG/HX PLCs.
CVM1/CV-series PLCsThe CONVERT ADDRESS FROM CV instruction allows real I/O memory
addresses for the CVM1/CV-series PLCs to be converted to addresses for the
CJ-series PLCs, enabling programs with CVM1/CV-series addresses to be
quickly converted for use with a CJ-series CPU Unit.
21
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
Power Supply Units with Replacement Notification
The CJ1W-PA205C Power Supply Units with Replacement Notification provide six display levels using a 7-segment display on the front panel of the Unit
to indicate the remaining service life of the Power Supply Unit. An alarm output also notifies when the estimated remaining service life drops to 6 months
or shorter. This function enables Power Supply Unit replacement before the
power supply reaches the end of its service life resulting in a system failure. It
also enables planning Power Supply Unit replacement. For details refer to
Power Supply Units with Replacement Notification on page 12.
1-3-3CJ1M CPU Unit Features
Built-in I/O
The CJ1M CPU Units are high-speed, advanced, micro-sized PLCs equipped
with built-in I/O. The built-in I/O have the following features.
General-purpose I/OImmediate Refreshing
The CPU Unit's built-in inputs and outputs can be used as general-purpose
inputs and outputs. In particular, immediate I/O refreshing can be performed
on the I/O in the middle of a PLC cycle when a relevant instruction is executed.
Stabilizing Input Filter Function
The input time constant for the CPU Unit's 10 built-in inputs can be set to 0 ms
(no filter), 0.5 ms, 1 ms, 2 ms, 4 ms, 8 ms, 16 ms, or 32 ms. Chattering and
the effects of external noise can be reduced by increasing the input time constant.
The CPU Unit's 4 built-in inputs can be used for high-speed processing as
regular interrupt inputs in direct mode or interrupt inputs in counter mode. An
interrupt task can be started at the interrupt input's rising or falling edge (up or
down differentiation.) In counter mode, the interrupt task can be started when
the input count reaches the set value (up-differentiated or down-differentiated
transitions.)
High-speed CountersHigh-speed Counter Function
A rotary encoder can be connected to a built-in input to accept high-speed
counter inputs.
Trigger Interrupts at a Target Value or in a Specified Range
Interrupts can be triggered when the high-speed counter’s PV matches a target value or is within a specified range.
Measure the Frequency of High-speed Counter Inputs
The PRV(881) instruction can be used to measure the input pulse frequency
(one input only.)
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 OutputsFixed duty ratio pulses can be output from the CPU Unit's built-in outputs to
perform positioning or speed control with a servo driver that accepts pulse
inputs.
22
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
CW/CCW Pulse Outputs or Pulse + Direction Outputs
The pulse output mode can be set to match the motor driver's pulse input
specifications.
Automatic Direction Selection for Easy Positioning with Absolute
Coordinates
When operating in absolute coordinates (origin defined or PV changed with
the INI(880) instruction), the CW/CCW direction will be selected automatically
when the pulse output instruction is executed. (The CW/CCW direction is
selected by determining whether the number of pulses specified in the
instruction is greater than or less than the pulse output PV.)
Triangular Control
Triangular control (trapezoidal control without a constant-speed plateau) will
be performed during positioning executed by an ACC(888) instruction (independent) or PLS2(887) instruction if the number of output pulses required for
acceleration/deceleration exceeds the specified target pulse Output Amount.
Previously, an error would have occurred under these conditions and the
instruction would not have been executed.
Change Target Position during Positioning (Multiple Start)
When positioning was started with a PULSE OUTPUT (PLS2(887)) instruction and the positioning operation is still in progress, another PLS2(887)
instruction can be executed to change the target position, target speed, acceleration rate, and deceleration rate.
Switch from Speed Control to Positioning (Fixed Distance Feed Interrupt)
A PLS2(887) instruction can be executed during a speed control operation to
change to positioning mode. This feature allows a fixed distance feed interrupt
(moving a specified amount) to be executed when specific conditions occur.
Change Target Speed and Acceleration/Deceleration Rate during
Acceleration or Deceleration
When trapezoidal acceleration/deceleration is being executed according to a
pulse output instruction (speed control or positioning), the target speed and
acceleration/deceleration rate can be changed during acceleration or deceleration.
Use Variable Duty Ratio Pulse Outputs for Lighting, Power Control, Etc.
The PULSE WITH VARIABLE DUTY RATIO instruction (PWM(891)) can be
used to output variable duty ratio pulses from the CPU Unit's built-in outputs
for applications such as lighting and power control.
Origin SearchUse a Single Instruction for Origin Search and Origin Return Operations
A precise origin search can be executed with one instruction that uses various
I/O signals, such as the Origin Proximity Input Signal, Origin Input Signal,
Positioning Completed Signal, and Error Counter Reset Output.
Also, an origin return operation can be performed to move directly to the
established origin.
Quick-response InputsReceive Input Signals Shorter than the Cycle Time
With quick-response inputs, inputs to the CPU Unit's built-in inputs (4 inputs
max.) with an input signal width as short as 30
regardless of the cycle time.
µs can be received reliably
23
CJ1-H and CJ1M CPU Unit FeaturesSection 1-3
Improved Functions for
PRV(881) and PRV2(883)
(CJ1M Only)
Pulse Frequency
Conversions
High-frequency calculation methods have been added to the pulse frequency
calculation methods for PRV(881) (HIGH-SPEED COUNTER PV READ) and
PRV2(883) (PULSE FREQUENCY CONVERT) instructions (minimizes the
error in high frequencies of 1 kHz or higher). PRV(881) can also be used to
read the pulse output frequency.
The pulse frequency input to high-speed counter 0 can be converted to a rotational speed (r/min.) or the PV of the counter can be converted to the total
number of rotations.
Serial PLC Link Function
Data links (9 max.) can be set up between PLCs using the CPU Unit’s RS232C port. NT Link (1:N connection) can also be incorporated in a Serial PLC
Link network, allowing the existing NT Link (1:N mode) and the Serial PLC
Link to be used together.
Note 1: PTs are included in the number of links.
Note 2: The Serial PLC Link cannot be used for PT data links.
Scheduled Interrupt Function Used as High-precision Timer
Scheduled interrupts in units of 0.1 ms have been added for CJ1M CPU Units.
An internal PV reset start function for scheduled interrupts has also been
added, so it is possible to standardize the time to the first interrupt without
using the CLI instruction. It is also possible to read the elapsed time from
either a scheduled interrupt start or from the previous interrupt. This allows
the interval timer (STIM instruction) in the CQM1H Series to be easily used for
the CJ Series.
24
CJ1-H/CJ1M CPU Unit Ver. 4.0 UpgradesSection 1-4
0
1-4CJ1-H/CJ1M CPU Unit Ver. 4.0 Upgrades
This section summarizes the upgrades made for CJ1-H/CJ1M CPU Units with
unit version 4.0. CX-Programmer version 7.0 or higher must be used to
enable using the following functions.
Functional Upgrades for Unit Version 4.0
FunctionSection
Online Editing of Function Blocks1-4-1 Online Editing of Function
Input-Output Variables in Function Blocks1-4-2 Input-Output Variables in
Text String Support in Function Blocks1-4-3 Text String Support in
1-4-1Online Editing of Function Blocks
Unit Version 3.0 or EarlierFunction block definitions could not be changed during operation.
Unit Version 4.0 or LaterFunction block definitions can be changed during operation. This allows func-
tion block definitions to be quickly corrected during debugging. It also allows
function blocks to be used more easily in systems that operate 24 hours a day.
Blocks
Function Blocks
Function Blocks
1-4-2Input-Output Variables in Function Blocks
Unit Version 3.0 or EarlierThe data size of parameters that could be passed to and from function blocks
was limited to four words maximum. It was thus necessary to separate elements with large data sizes, such as data tables.
D100
D100
D101
D102
D103
D104
Pattern A
Pattern B
Pattern C
Pattern D
Pattern E
D101
D102
D103
D104
Unit Version 4.0 or LaterInput-output variables can be used to passed large quantities of data, such as
Unit Version 3.0 or EarlierTo program text string processing for communications commands and display
data in ladder diagrams, it was necessary to know the ladder string instructions and ASCII codes. Also, several instructions had to be combined to converted from numbers to text strings or text strings to numbers.
MOV
" Bl" is #426C in ASCII.
#426C
stBlack[0]
MOV
" ac" is #6163 in ASCII.
#6163
stBlack[1]
Unit Version 4.0 or LaterText strings can be used in ST programming to easily create text string pro-
cessing programs.
Black
White
FB to Create Production Log File
GetDate(stDay)
Blue
Pink
9
18
7
30
Production
log file
created.
(* Convert black quantity to s tring *)
(* Convert white quantity to s tring *)
(* Convert blue quantity to s tring *)
(* Convert pink quantity to string *)
(* Get date text *)
(* Create production log LineA.tx t *)
06/05/28
Black: 9
White: 18
Blue: 7
Pink: 30
File name
LineA.txt
FB to Create Date Text
Name: Generate Date Text
Function: To create text data for yy/mm/dd
(* Create yymm text *)
(* Create ddhh text *)
(* Insert / between yy and mm; extract only dd and combine *)
1-5CJ1-H/CJ1M CPU Unit Ver. 3.0 Upgrades
The following table shows the functional upgrades for CJ1-H/CJ1M CPU Unit
Ver. 3.0.
Functional Upgrades for CJ1-H/CJ1M CPU Unit Ver. 3.0
FunctionSection
Function blocks (when using CX-Programmer Ver. 5.0 or higher)1-5-1
Serial Gateway (converting FINS commands to CompoWay/F com-
mands at the built-in serial port)
Comment memory (in internal flash memory)1-5-3
Expanded simple backup data1-5-4
1-5-2
26
CJ1-H/CJ1M CPU Unit Ver. 3.0 UpgradesSection 1-5
FunctionSection
Free running timer (system timer after power is turned ON)1-5-5
New instructions
added
Additional instruction functions
TXDU(256) and RXDU(255) instructions (support no-protocol communications with Serial
Communications Units with unit version 1.2 or
later)
Model conversion instructions: XFERC(565),
DISTC(566), COLLC(567), MOVBC(568), and
BCNTC(621)
Special function block instruction: GETID(286)
TXD(236) and RXD(235) instructions (support
no-protocol communications with Serial Communications Boards with unit version 1.2 or
later)
1-5-6
1-5-1Function Blocks (FB)
Unit Ver. 2.0 or EarlierEarlier Units did not support function blocks (FB).
Unit Ver. 3.0 or LaterFunction blocks (FB) conforming to IEC 61131-3 are supported. Use of func-
tion blocks is determined by the user.
Note IEC 61131-3 is an international standard for programmable logic
controllers (PLC) established by the International Electro-technical
Commission (IEC). This standard is divided into seven parts, of
which Part 3 Programming Languages (IEC 61131-3) provides regulations for programming PLCs.
Function blocks can be created with CX-Programmer Ver. 5.0 or higher by the
user and pasted into normal programs. The standard function blocks provided
by OMRON in the OMRON FB Library can also be pasted into normal programs. Function blocks enable standard processing to be simply inserted into
a program as a single unit. Function blocks provide the following features.
• Function block algorithms can be written using ladder programming or
structured text (see note).
Note Structured text is a high level textual language designed for industrial
control (primarily PLCs) stipulated in IEC 61131-3. The structured
text supported by CX-Programmer Ver. 5.0 conforms to IEC 61131-1.
• A single function block that has been created can be stored in a library for
easy reuse of standard processing.
• Programs that contain function blocks (ladder programming or structured
text), can also be uploaded or downloaded in the same way as normal
programs that do not contain function blocks. Tasks that include function
blocks, however, cannot be downloaded in task units (although they can
be uploaded).
• Array (one-dimensional) variables are supported, making it easier to handle data specific to an application.
1-5-2Serial Gateway (Converting FINS to CompoWay/F Via Serial Port)
Unit Ver. 2.0 or EarlierTemperature Controllers, Digital Panel Meters, and other CompoWay/F-com-
patible OMRON Components previously could be accessed by sending userspecified CompoWay/F commands from the PLC. This required, however, the
use of a Serial Communications Board/Unit protocol macro, execution of the
PMCR(260) instruction in the ladder program of the CPU Unit on the same
PLC, and implementation of the standard system protocol (CompoWay/F
Master). The use of protocol macros prevented access across networks.
27
CJ1-H/CJ1M CPU Unit Ver. 3.0 UpgradesSection 1-5
Note Specific data could be shared without communications instructions if
user-specified CompoWay/F commands were not required, however,
by using the CJ1W-CIF21 Basic Communications Unit.
Unit Ver. 3.0 or LaterFINS commands (CompoWay/F commands encapsulated in FINS frames)
received by the CPU Unit at the built-in serial port (RS-232C port or peripheral
port) are converted automatically into CompoWay/F command frames and
transmitted on the serial line. This enables access to CompoWay/F-compatible OMRON components that are connected to the CPU Unit’s built-in serial
port via either an NS-series Programmable Terminal (PT) or by using the
CMND(490) instruction.
FINS System
Network
CMND(490)
Serial
Serial
Network
FINS
Network
CompoWay/F-compatible
components can be accessed via the network from
personal computers, PTs,
or PLCs.
CS/CJ-series CPU Unit with
unit version 3.0 or later
Protocol
conversion
CompoWay/F
Serial
CompoWay/F-compatible
components
1-5-3Comment Memory (in Internal Flash Memory)
Unit Ver. 2.0 or EarlierComment data and section data could not be stored in the actual PLC when a
project was downloaded from the CX-Programmer to the CPU Unit unless
both a Memory Card and EM file memory were available.
Unit Ver. 3.0 or LaterA comment memory is provided within the CPU Unit’s internal flash memory.
Therefore, the following comment/section data can be stored in and read from
comment memory even if neither Memory Card nor EM file memory are available.
• Symbol table files (including CX-Programmer symbol names and I/O
comments)
• Comment files (CX-Programmer rung comments and other comments)
• Program index files (CX-Programmer section names, section comments,
and program comments)
28
CJ1-H/CJ1M CPU Unit Ver. 3.0 UpgradesSection 1-5
CX-Programmer Ver. 5.0 or later
Project
Comment/section data can be stored in the actual PLC
when downloading projects.
Transfer
Symbol table file
Comment file
Program index file
CPU Unit
EM file memory
Memory Card
Comment
memory
Comment/section data can be stored in this area.
CX-Programmer Ver. 5.0When downloading projects using the CX-Programmer Ver. 5.0, either of the
following storage locations can be selected as the transfer destination for
comment data and section data.
•Memory Card
• EM file memory
• Comment memory (in CPU Unit’s internal flash memory)
CX-Programmer Ver. 4.0 or
Earlier
When using CX-Programmer Ver. 4.0 or earlier, data is stored in either the
Memory Card or EM file memory, whichever is available. If neither the Memory Card nor EM file memory is available, the comment/section data is stored
in comment memory (in CPU Unit’s internal flash memory).
1-5-4Simple Backup Data Expanded
Unit Ver. 2.0 or EarlierThe simple backup function could not be used to back up comment data or
section data.
Unit Ver. 3.0 or LaterThe following files stored in comment memory can be backed up to a Memory
Card when a simple backup operation is executed, or the files can be restored
to comment memory from the Memory Card.
• Symbol table files (including CX-Programmer symbol names and I/O
comments)
• Comment files (CX-Programmer rung comments and other comments)
• Program index files (CX-Programmer section names, section comments,
and program comments)
29
CJ1-H/CJ1M CPU Unit Ver. 3.0 UpgradesSection 1-5
Simple backup executing
CPU Unit
• User program
• Parameters
CS/CJ Series
• I/O memory
(In comment memory)
Symbol table file
Comment file
Program index file
These files can also be backed up using simple backup.
Memory Card
This enables backup/restoration of all data in the CPU Unit including I/O comments if an error occurs or when adding a CPU Unit with the same specifications without requiring a Programming Device.
1-5-5Free-running Timers
The system timers used after the power is turned ON are contained in the following Auxiliary Area words.
NameAddressFunctionAccess
10-ms Incrementing
Free Running Timer
100-ms Incrementing
Free Running Timer
1-s Incrementing Free
Running Timer
A000This word contains the system timer
used after the power is turned ON.
A value of 0000 hex is set when the
power is turned ON and this value is
automatically incremented by 1
every 10 ms. The value returns to
0000 hex after reaching FFFF hex
(655,350 ms), and then continues to
be automatically incremented by 1
every 10 ms.
(Unit version 3.0 or later)
A001This word contains the system timer
used after the power is turned ON.
A value of 0000 hex is set when the
power is turned ON and this value is
automatically incremented by 1
every 100 ms. The value returns to
0000 hex after reaching FFFF hex
(6,553,500 ms), and then continues
to be automatically incremented by 1
every 100 ms.
(Unit version 3.0 or later)
A002This word contains the system timer
used after the power is turned ON.
A value of 0000 hex is set when the
power is turned ON and this value is
automatically incremented by 1
every second. The value returns to
0000 hex after reaching FFFF hex
(65,535 s), and then continues to be
automatically incremented by 1
every second.
(Unit version 4.0 or later)
Read-only
Read-only
Read-only
30
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
Note The timer will continue to be incremented when the operating mode is
switched to RUN mode.
Example: The interval can be counted between processing A and processing
B without requiring timer instructions. This is achieved by calculating the difference between the value in A000 for processing A and
the value in A000 for processing B. The interval is counted in 10 ms
units.
CPU Units with unit version 4.0 and later also have a 1-s timer in
A002, which is incremented by 1 every 1 s.
1-5-6New Special Instructions and Functions
The following new instructions and instruction functions have been added. For
details, refer to the CS/CJ Series Instructions Reference Manual (W340).
These new instructions are supported by the CX-Programmer Ver. 5.0 or
higher only.
• Serial Communications Instructions:
Supporting no-protocol communications with Serial Communications
Units with unit version 1.2 or later:
TXDU(256): TRANSMIT VIA SERIAL COMMUNICATIONS UNIT
RXDU(255): RECEIVE VIA SERIAL COMMUNICATIONS UNIT
Supporting no-protocol communications with Serial Communications
Boards with unit version 1.2 or later:
TXD(236): TRANSMIT
RXD(235): RECEIVE
• Model Conversion Instructions:
When using CX-Programmer Ver. 5.0 or higher to convert a C-series ladder program for use in a CS/CJ-series CPU Unit, the C-series
XFER(070), DIST(080), COLL(081), MOVB(082), and BCNT(067)
instructions will be automatically converted to the following instructions.
The operands do not require editing.
XFERC(565) BLOCK TRANSFER
DISTC(566) SINGLE WORD DISTRIBUTE
COLLC(567) DATA COLLECT
MOVBC(568) MOVE BIT
BCNTC(621) BIT COUNTER
• High-speed Counter/Pulse Output Instructions (CJ1M Only):
High-frequency calculation methods have been added to the pulse frequency calculation methods for PRV(881) (HIGH-SPEED COUNTER PV
READ) and PRV2(883) (PULSE FREQUENCY CONVERT) instructions.
PRV(881) can also be used to read the pulse output frequency.
1-6CJ1-H/CJ1M CPU Unit Ver. 2.0 Upgrades
The following table shows the functional upgrades for CJ1-H/CJ1M CPU Unit
Ver. 2.0.
Functional Upgrades for CJ1-H/CJ1M CPU Unit Ver. 2.0
FunctionReference
Downloading and Uploading Individual TasksPage 32
Improved Read Protection Using PasswordsPage 33
Write Protection from FINS Commands Sent to CPU Units via NetworksPage 38
Online Network Connections without I/O TablesPage 43
Communications through a Maximum of 8 Network LevelsPage 45
31
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
FunctionReference
Connecting Online to PLCs via NS-series PTsPage 47
Setting First Slot WordsPage 48
Automatic Transfers at Power ON without a Parameter FilePage 50
Operation Start/End TimesPage 51
Automatic Detection of I/O Allocation Method for Automatic Transfer at Power ONPage 52
New Application InstructionsPage 53
1-6-1Downloading and Uploading Individual Tasks
Previous CPU Units (Pre-Ver. 2.0 CPU Units)
With the Pre-Ver. 2.0 CPU Units, individual program tasks could not be downloaded from the CX-Programmer. It was only possible to download the entire
user program.
For example, if several programmers were developing the program, the
project manager had to unify each program after debugging and then download the entire user program. Furthermore, the entire user program had to be
downloaded even if just a few changes were made.
Note It was possible to upload individual program tasks with CS/CJ-series PLCs.
Developer A
Developer B
Developer C
CX-Programmer
CX-Programmer
CX-Programmer
Manager
Unification
Individual tasks can be uploaded.
Entire user program
CS/CJ Series
Download
CPU Unit Ver. 2.0
OverviewWith CPU Unit Ver. 2.0 or later CPU Units, individual program tasks can be
uploaded and downloaded from the CX-Programmer.
CX-Programmer
Individual tasks (programs)
32
END
END
END
Download individual tasks (programs).
CS/CJ-series
CPU Unit Ver.2.0 or higher
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
UsageWhen several programmers are developing a program, it isn't necessary for a
project manager to unify the data because just the debugged tasks can be
downloaded/uploaded. Also, transferring individual tasks can help avoid mistakes.
Developer A
Developer B
Developer C
Restrictions to Function
Block Use
CX-Programmer
Edited
Just the edited tasks can be downloaded.
CX-Programmer
Unchanged
CX-Programmer
Unchanged
Upload individual tasks.
Individual tasks cannot be downloaded for programs containing function
blocks (unit version 3.0 or later only) (uploading is possible).
1-6-2Improved Read Protection Using Passwords
Read Protection for Individual Tasks Using Passwords
CS/CJ-series
CPU Unit Ver.2.0 or later
Previous CPU Units (PreVer. 2.0 CPU Units)
CPU Unit Ver. 2.0 or Later
and CX-Programmer
Ver. 4.0 or Higher
Note Task read protection cannot be set if UM read protection is already set. How-
With the pre-Ver. 2.0 CS/CJ-series CPU Units, it was possible to read-protect
the entire PLC with a password (referred to as “UM read protection” below),
but it was not possible to protect individual tasks.
UM read protection prevented anyone from displaying, editing, or uploading
the entire user program from CX-Programmer without inputting the correct
password.
Overview
With the CPU Unit Ver. 2.0 or later CPU Units, it is possible to read-protect
individual program tasks (referred to as “task read protection” below) or the
entire PLC. same password controls access to all of the read-protected tasks.
Task read protection prevents anyone from displaying, editing, or uploading
the read-protected set of tasks from CX-Programmer without inputting the correct password. In this case, the entire program can be uploaded, but the readprotected tasks cannot be displayed or edited without inputting the correct
password. Tasks that are not read-protected can be displayed, edited, or modified with online editing.
ever, it is possible to set UM read protection after task read protection has
been set.
33
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
CX-Programmer
Set a password for particular tasks in the project directory.
Password?
Those tasks cannot be displayed without inputting the password.
CS/CJ-series CPU Unit Ver.2.0 or higher
END
END
END
The entire user program can be uploaded, but passwordprotected tasks will not be displayed until the password is input.
The other tasks can be displayed/edited and are also accessible
through online editing.
Operating Procedure
1,2,3...1. Display the Protection Tab of the PLC Properties Window and register a
password in the Task read protection Box.
Right-click
Properties
2. Select the tasks that will be password-protected and select the Ta s k r e a d
protect Option in the Program Properties Ta b .
34
Right-click
Properties
3. Connect online and execute either step a or b below.
a) Transferring the Program and Setting Password Protection:
Select PLC - Transfer - To PLC to transfer the program. The tasks reg-
istered in step 2 will be password-protected.
b) Setting Password Protection without Transferring the Program:
Select PLC - Protection - Set Password and click the OK button. The
tasks registered in step 2 will be password-protected.
Usage
Apply read protection to tasks when you want to convert those tasks (programs) to “black box” programs.
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
Tas k 0
Accessable
END
Note1. If CX-Programmer Ver. 3.2 or a lower version is used to read a task with
Restrictions to Function
Block Use
Tas k 1
Not accessable
Tas k 2
Accessable
Password applied.
Task converted to "black box."
END
END
task read protection applied, an error will occur and the task will not be
read. Likewise, if a Programming Console or the PT Ladder Monitor function is used to read a password protected task, an error will occur and the
task will not be read.
2. The entire program can be transferred to another CPU Unit even if individual tasks in the program are read-protected. It is also possible to connect
online and create a program file (.OBJ file) with file memory operations. In
both cases, the task read protection remains effective for the passwordprotected tasks.
3. When the CX-Programmer is used to compare a user program in the computer's memory with a user program in the CPU Unit, password-protected
tasks will be compared too.
Function block definitions can be read even if the entire program or individual
tasks in a program containing function blocks (CPU Unit Ver. 3.0 or later only)
are read-protected.
Enabling/Disabling Creating File Memory Program Files
Previous CPU Units (PreVer. 2.0 CPU Units)
CPU Unit Ver. 2.0 or Later
and CX-Programmer
Ver. 4.0 or Higher
With the pre-Ver. 2.0 CS/CJ-series CPU Units, it was possible use file memory operations to transfer a program file (.OBJ file) to a Memory Card even if
the program was protected with UM read protection. (Consequently, illegal
copies could be made.)
Overview
When the entire program or individual tasks in a CPU Unit Ver. 2.0 or later are
read-protected from the CX-Programmer, an option can be set to enable or
disable the creation/backup of .OBJ program files. It will not be possible to
create program files (.OBJ files) with file memory operations if the creation/
backup of program files is prohibited with this setting. (This setting prohibits
both online transfers to a Memory Card/EM file memory as well as offline storage of PLC data that was uploaded to the CX-Programmer.)
Disabling the creation of file memory program files can help prevent illegal
copying of the user program.
35
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
CX-Programmer
When a password is being registered for the entire user program or
Password?
Online creation of backup program files
(.OBJ files) prohibited by option setting.
selected tasks, the creation of backup program files (.OBJ files) can be
enabled/disabled with an option setting.
CX-Programmer
CPU Unit
Backup program files (.OBJ files) cannot be
created with file memory operations.
Uploading of all PLC
data is prohibited.
Operating Procedure
1,2,3...1. When registering a password in the UM read protection password Box or
Task read protection Box, select the Prohibit from saving into a protected
memory card Option.
Properties
2. Either select PLC - Transfer - To PLC to transfer the program or select
PLC - Protection - Set Password and click the OK button.
Usage
This option can be used to prevent the program from being transferred out of
the PLC using the password.
Note1. The simple backup operation can still be performed when the creation of
program files is prohibited, but the backup program file (BACKUP.OBJ) will
not be created.
2. The program can be copied when program read protection is not enabled.
3. The setting to enable/disable creating file memory program files will not
take effect unless the program is transferred to the CPU Unit. Always transfer the program after changing this setting.
Enabling/Disabling Write Protection for Individual Tasks Using Passwords
Previous CPU Units (PreVer. 2.0 CPU Units)
With the pre-Ver. 2.0 CS/CJ-series CPU Units, the CPU Unit's user program
memory (UM) can be write-protected by turning ON pin 1 of the CPU Unit's
DIP switch. In this case, it is possible to overwrite the user program memory
by turning OFF pin 1.
36
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
CPU Unit Ver. 2.0 or Later
and CX-Programmer
Ver. 4.0 or Higher
Note1. If the selected tasks or program are write-protected by selecting this option
With the CPU Unit Ver. 2.0 and later CPU Units, the CPU Unit's UM area can
be write protected by turning ON pin 1 of the CPU Unit's DIP switch. The program (or selected tasks) can also be write-protected if the write protection
option is selected from the CX-Programmer when a password is being registered for the entire program or those selected tasks. The write protection setting can prevent unauthorized or accidental overwriting of the program.
CX-Programmer
When a password is being registered for the entire user
Password?
program or selected tasks, program write-protection can be
enabled/disabled with an option setting.
The user program cannot be overwritten.
CPU Unit
Overwriting can be prohibited with password protection,
regardless of the DIP switch setting.
Memory Card
The user program cannot be overwritten.
when registering a password, only the tasks (program) that are passwordprotected will be protected from overwriting. It will still be possible to overwrite other tasks or programs with operations such as online editing and
task downloading.
2. All tasks (programs) can be overwritten when program read protection is
not enabled.
3. The setting to enable/disable creating file memory program files will not
take effect unless the program is transferred to the CPU Unit. Always transfer the program after changing this setting.
Operating Procedure
1,2,3...1. When registering a password in the UM read protection password Box or
Task read protection Box, select the Prohibit from overwriting to a protected program Option.
Properties
2. Either select PLC - Transfer - To PLC to transfer the program or select
PLC - Protection - Set Password and click the OK button.
37
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
Auxiliary Area Flags and Bits related to Password Protection
NameBit
UM Read Protection
Flag
Task Read Protection Flag
Program Write Protection for Read Protection
Enable/Disable Bit
for Program Backup
address
A09900Indicates whether or not the PLC (the entire user
program) is read-protected.
0: UM read protection is not set.
1: UM read protection is set.
A09901Indicates whether or not selected program tasks
are read-protected.
0: Task read protection is not set.
1: Task read protection is set.
A09902Indicates whether or not the write protection
option has been selected to prevent overwriting
of password-protected tasks or programs.
A09903Indicates whether or not a backup program file
(.OBJ file) can be created when UM read protection or task read protection is set.
0: Creation of backup program file allowed
1: Creation of backup program file prohibited
Description
1-6-3Write Protection from FINS Commands Sent to CPU Units via
Networks
Previous CPU Units (Pre-Ver. 2.0 CPU Units)
With the pre-Ver. 2.0 CS/CJ-series CPU Units, there was no way to prohibit
write operations and other editing operations sent to the PLC's CPU Unit as
FINS commands through a network such as Ethernet, i.e., connections other
than direct serial connections.
CPU Unit Ver. 2.0 or Later
SummaryWith the CPU Unit Ver. 2.0 and later CS/CJ-series CPU Units, it is possible to
prohibit write operations and other editing operations sent to the PLC's CPU
Unit as FINS commands through a network (including write operations from
CX-Programmer, CX-Protocol, CX-Process, and other applications using FinsGateway). Read processes are not prohibited.
FINS write protection can disable write processes such as downloading the
user program, PLC Setup, or I/O memory, changing the operating mode, and
performing online editing.
It is possible to exclude selected nodes from write protection so that data can
be written from those nodes.
An event log in the CPU Unit automatically records all write processes sent
through the network and that log can be read with a FINS command.
Example:
38
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
Computer #1
PLC #1
Write operations by FINS commands are prohibited from some
nodes in the network (in this example, computer #1, PLC #1, and
PLC #2).
Network
Write access to this PLC
is enabled/disabled.
Network
PLC #2
PLC #3
Network
Write operations by FINS commands are not prohibited from
selected nodes in the network
(in this example, computer #2
and PLC #3).
Note This function prohibits writing by FINS commands only, so it has no effect on
write operations by functions other than FINS commands, such as data links.
Example Write Protection Patterns
Connection patternDiagram (example)Write
From a computer through
a direct serial
connection
Direct connection to
PLC
Computer
Write-protection not effective
Peripheral port
Computer #2
protection
Cannot be
applied.
Gateway connection
(Serial-to-network) to PLC
Serial connection
(Peripheral bus or
host link)
Computer
Serial connection
(Peripheral bus
or host link)
PLC
RS-232C port
RS-232C port or 422A/485 port
on a Communications Board/Unit
Can be
applied.
The CPU Unit in PLC #2
can be write-protected.
PLC #1PLC #2
Network
39
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
Connection patternDiagram (example)Write
From a computer through a
direct network connection
From another PLC in the network
Computer
PLC #1PLC #2
Network
If the CMND instruction is used to send
CMND
PLC #1PLC #2
a FINS command (requesting a write
operation) to the CPU Unit of PLC #2,
the operation is not performed.
The CPU Unit in PLC #2
can be write-protected.
The CPU Unit in PLC #2
can be write-protected.
protection
Can be
applied.
Can be
applied.
Network
OperationWith the CX-Programmer, open the PLC Setup's FINS Protection Tab and
select the Use FINS Write Protection Option. When this option is selected, it
will not be possible to execute write operations for that CPU Unit with FINS
commands sent through a network. To permit write operations from particular
nodes, enter network addresses and node addresses for the node under Pro-tection Releasing Addresses. (Up to 32 nodes can be excluded from FINS
Write Protection).
40
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
PLC Setup
ItemAddress in
Use FINS Write Protection
Nodes Excluded
from Write Protection (Protection
Releasing
Addresses)
Number of Nodes
Excluded from FINS
Write Protection
(Do not set this
value. It is automatically calculated by
the CX-Programmer.)
DescriptionSettingsDefault setting
Programming
Console
Word 448, bit 15 Sets whether the CPU Unit is
write-protected from FINS commands sent through the network.
(Does not prohibit FINS commands sent through a direct serial
connection).
Words 449 to
480
Bits 08 to 15Network address:
Bits 00 to 07Node address:
Word 448, bits
00 to 07
This area lists the nodes in the
network that are not restricted by
FINS write protection. Up to 32
nodes can be specified.
Note These settings are effective
only when FINS write protection is enabled.
Network address of the FINS command source
Node address of the FINS command source
Contains the number of nodes that
are not subject to the FINS write
protection.
If 0 is specified (no nodes
excluded from write protection),
FINS write commands are prohibited from all nodes other than the
local node.
Note This setting is effective only
when FINS write protection
is enabled.
0: Write protection
disabled
1: Write protection
enabled
00 to 7F hex
01 to FE hex, or FF
hex
(FF hex: node
address unspecified)
0 to 32
(00 to 20 hex)
(A value of 0 indicates that all nodes
are subject to write
protection.)
0: Write protection
disabled
0
(All nodes subject to
write protection.)
UsageThe system can be configured so that a PLC can be written only from autho-
rized nodes in the network. (For example, use this function when the system's
control/monitoring computer is the only node allowed to write to a Controller
within a piece of equipment.)
By limiting the number of nodes that can write to the PLC, it is possible to prevent system problems caused by unintentional overwrites during data monitoring.
41
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
System control/monitoring computer
Allowed to
write/control PLC
Equipment
Network
Monitoring computer
Controller
Allowed to
write/control PLC
Not allowed to
write/control PLC
Operations Restricted by
Network FINS Write
Protection
Network
CS/CJ-series PLC
FINS Write Commands
The following FINS commands are restricted by FINS write protection when
sent to the CPU Unit through the network.
Network
CodeCommand nameCodeCommand name
0102 hexMEMORY AREA WRITE2101 hexERROR CLEAR
0103 hexMEMORY AREA FILL2103 hexERROR LOG POINTER CLEAR
0105 hexMEMORY AREA TRANSFER2203 hexSINGLE FILE WRITE
0202 hexPARAMETER AREA WRITE2204 hexFILE MEMORY FORMAT
0203 hexPARAMETER AREA FILL (CLEAR)2205 hexFILE DELETE
0307 hexPROGRAM AREA WRITE2207 hexFILE COPY
0308 hexPROGRAM AREA CLEAR2208 hexFILE NAME CHANGE
0401 hexRUN220A hexMEMORY AREA-FILE TRANSFER
0402 hexSTOP220B hexPARAMETER AREA-FILE TRANSFER
0702 hexCLOCK WRITE220C hexPROGRAM AREA-FILE TRANSFER
0C01 hexACCESS RIGHT ACQUIRE2215 hexCREATE/DELETE DIRECTORY
Operations from CX-Programmer (including CX-Net) through the Network
The following CX-Programmer (including CX-Net) operations are restricted by
FINS write protection when performed on the CPU Unit through the network.
Operations not
allowed through the
network when FINS
write protection is
enabled.
Note1. FINS write protection does not prevent CX-Programmer operations from a
computer connected through a direct serial connection.
2. FINS write protection does not prevent the following file memory write operations.
• Automatic transfer from the Memory Card at startup
• Simple backup function (including backup operations to selected
Units/Boards)
• Writing files with the FWRIT (WRITE DATA FILE) instruction
• Changing the Operating Mode
• Transferring the ladder program to the CPU Unit
• Transferring parameter area data (PLC Setup, I/O table, and
CPU Bus Unit Setup) to the CPU Unit
• Transferring memory area data (I/O memory data) to the
CPU Unit
• Transferring the variable table, comments, or program index
to the CPU Unit
• Forced Set/Reset
• Changing timer/counter set values
• Online editing
• Writing file memory
• Clearing the error log
• Setting the clock
• Releasing the access right
• Transferring the routing table
• Transferring the data link table
Operations from Other Support Software
FINS write protection also prevents the following operations performed
through the network by the CX-Protocol and CX-Process.
• Changing the CPU Unit's operating mode, writing memory areas,
transferring PLC Setup settings, transferring the I/O table, forced set/
reset, and clearing the CPU Unit's error log
Operations from Applications That Use FinsGateway
FINS write protection prevents all write operations addressed to the CPU Unit
from applications that use FinsGateway, such as PLC Reporter and Compolet.
1-6-4Online Network Connections without I/O Tables
SummaryWith CJ-series CPU Units, the CPU Unit can recognize a CPU Bus Unit (such
as a Network Communications Unit, see note) even if the I/O tables have not
been created and there is no registered I/O tables as a result of using automatic I/O allocation at startup.
43
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
CPU Bus Unit
(including Network Communications Units)
CS/CJ-series CPU Unit Ver.2.0 or higher
Network
Online connection
can be made.
CPU Bus Units (including Network Communications Units)
can be recognized before I/O tables are created (I/O allocation at startup is used).
Note Network Communications Units include Ethernet Units, Controller Link Units,
SYSMAC Link Units, and DeviceNet Units.
UsageIf the nodes are connected to the network, this function allows a computer-
based Programming Device (such as the CX-Programmer) to connect online
to PLCs in the network even if the I/O tables have not been created. Since a
network connection is established with the PLCs, setup operations can be
performed such as creating the I/O tables (or editing and transferring I/O
tables), transferring the user program, transferring the PLC Setup, and transferring the CPU Bus Unit Setup.
This function is particularly useful when connecting the CX-Programmer via
Ethernet (using a CS1W-ETN21), because the I/O tables can be created
through Ethernet so a serial cable isn't required and it isn't necessary to
spend extra time establishing a serial connection.
Even without an I/O table, it is
possible to make an online connection, create the I/O table,
transfer the program, and perform other operations.
Ver.2.0
I/O table not
registered
Note When a CS1W-ETN21 or CJ1W-ETN21 Ethernet Unit is being used, the
Ethernet Unit's IP address is automatically set to the default value of
192.168.250.xx, where xx is the FINS node address. After connecting the ethernet cable between the CX-Programmer and PLC (without making a direct
CS/CJseries
CPU Unit
Ver.2.0
I/O table not registered I/O table not registered I/O table not registered
Ethernet
Even without an I/O table, it is possible to make an online
connection, create the I/O table, transfer the program, and
perform other operations.
CS/CJseries
CPU Unit
Ver.2.0
CS/CJseries
CPU Unit
Ver.2.0
• Applicable Units: All CS/CJ-series CPU Bus Units
• Applicable computer-based Programming Devices: CX-Programmer and
CX-Protocol only
• Applicable functions: Online connections from CX-Programmer and CXProtocol, and online functions of the applicable CPU Units and CPU Bus
Units
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
serial connection and creating the I/O tables), manually set the computer's IP
address in the Windows Local Area Connection Properties (example:
192.168.250.55). An online connection can be established just by setting the
Ethernet Unit's IP address (192.168.250.xx) and node in the CX-Programmer.
1-6-5Communications through a Maximum of 8 Network Levels
Previous CPU Units (Pre-Ver. 2.0 CPU Units)
With the pre-Ver. 2.0 CPU Units, it was possible to communicate through 3
network levels max. (see note), including the local network. It was not possible
to communicate through 4 or more levels.
Note A Gateway to the network via serial communications was not counted as a
level.
FINS command
source
OR
Serial
connection
Network 1
This connection is not counted as a network level.
Level count = 1
Network 2
Level count = 2
Network 3
FINS command
destination
CPU Unit Ver. 2.0 or Later
SummaryWith the CPU Unit Ver. 2.0 and later CS/CJ-series CPU Units, it is possible to
communicate through 8 network levels max. (see note), including the local
network.
Note1. FINS commands can only be sent across up to 8 network levels when the
destination is a CPU Unit. FINS commands can be sent to other destinations up to 3 network levels away.
2. This functionality is enabled only after setting routing tables with the CXNet in CX-Programmer version 4.0 or higher.
3. A Gateway to the network via serial communications was not counted as a
level.
Compatible Networks
Only the following 2 kinds of networks can be used when communicating
through a maximum of 8 networks. The network levels can be combined in
any order.
• Controller Link
• Ethernet
Note Communications are restricted to a maximum of 3 networks through
DeviceNet and SYSMAC Link networks.
Configuration of Compatible Models
All of the CPU Units must be CPU Unit Ver. 2.0 and later CS/CJ-series CPU
Units. Also, the Gateway Counter Setting must be made with the CX-Net.
45
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
p
x
FINS command
source
Serial
connection
OR
Level
count = 1
Network 2
Level
count = 2
Level
count = 3
Network 4
Level
count = 4
Network 7
Level
count = 7
FINS command
destination
This connection is not counted as a network level.
Network 1
Network 3
Network 8
Internal StructureThe Gateway Counter (GCT) is in the FINS header of the FINS command/
response frame. This counter value is decremented (
−1) each time a network
level is crossed.
FINS Command Frame
FINS headerCommand codeText
ICFRSV GCT
GCT (Gateway counter: Number of allowed bridge passages)
The standard setting is 02 hex when sending, but this value can be
user-set from 07 hex.
The count is decremented by one each time a network level is passed.
Example:
FINS command
source
At this point, the gateway counter = 6 hex
Network 2
FINS command
At this point, the gateway counter = 4 hex
Network 4
FINS command
FINS command
destination
FINS command
Network 1
At this point, the gateway counter = 7 hex
FINS command
Network 3
At this
oint, the gateway counter = 5 hex
FINS command
Network 8
At this point, the gateway counter = 0 he
Operating ProcedureThere is no special procedure that must be performed for CS/CJ-series CPU
Units Ver. 2.0 or later. Just set normal routing tables to enable communicating
across up to 8 network levels.
Note1. When using communications only for up to 3 network levels, the CS/CJ-se-
ries CPU Units Ver. 2.0 or later can be used together with other CPU Units.
When using communications for to 4 to 8 network levels, use only CS/CJseries CPU Units Ver. 2.0 or later. Other CPU Units cannot be used. Routing errors (error codes 0501 to 0504 hex) may occur in the relaying PLCs,
preventing a FINS response from being returned.
2. With CS/CJ-series CPU Units with unit version 2.0 or later, the Gateway
Counter (GCT: Number of allowed bridge passes) for FINS command/response frames is the value decremented from 07 hex (variable). (In earlier
versions, the value was decremented from 02 hex.) With unit version 3.0
or later, the default GCT for FINS command/response frames is the value
decremented from 02 hex. CX-Net can be used to select 07 hex as the value from which to decrement.
3. Do not use the Gateway Counter (GCT: Number of allowed bridge passes)
enclosed in the FINS header of the FINS command/response frame in ver-
46
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
ification checks performed by user applications in host computers. The
GCT in the FINS header is used by the system, and a verification error may
occur if it is used to perform verification checks in user applications, particularly when using CS/CJ-series CPU Units with unit version 2.0 or later.
1-6-6Connecting Online to PLCs via NS-series PTs
SummaryThe CX-Programmer can be connected online to a PLC connected via a serial
line to an NS-series PT that is connected to the CX-Programmer via Ethernet
(see note 2). This enables uploading, downloading, and monitoring the ladder
program and other data.
CX-Programmer
(Example IP address: 192.168.0.1)
Ethernet (See note 1.)
(Example network address: 1)
Connect online to PLC #1 to enable
programming, monitoring, and other operations.
NS-series PT
(Example IP address:
192.168.0.22)
PLC #1
1:N NT Link
(Example network address: 111)
CS/CJ-series
CPU Unit Ver. 2.0
Note1. The NS-series PT must be version 3.0 or higher and the CX-Programmer
must be version 3.1 or higher.
2. Connection is not possible through an NS-series PT connected serially to
the CX-Programmer.
Connection MethodIn CX-Programmer, open the Change PLC Window and set the Network Type
to Ethernet. Click the Settings Button and set the IP address of the NS-series
PT on the Driver Tab Page. Also make the following settings on the Network
Tab Page.
• FINS Source Address
Set the local network address of the NS-series PT for the Network (example network address: 1).
• FINS Destination Address
Network: Set the address to 111 if the PLC is connected to serial port A
on the NS-series PT and to 112 if it is connected to serial port B.
Node: Always set to 1
• Frame Length: 1,000 (See note.)
• Response Timeout: 2
Note Do not set the frame length higher than 1,000. If any higher value is used, the
program transfer will fail and a memory error will occur.
47
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
1-6-7Setting First Slot Words
Previous CPU Units (Pre-Ver. 2.0 CPU Units)
With CX-Programmer Ver. 3.0 or lower, only the first addresses on Racks
could be set. The first address for a slot could not be set.
SummaryStarting with CX-Programmer Ver. 3.1, the first addresses for slots can be set
when editing the I/O tables for CS/CJ-series CPU Units (CS1D CPU Units for
Single-CPU Systems, and CS1-H, CJ1-H, and CJ1M CPU Units). The first
address can be set for up to eight slots. (See note.)
Note This function is supported only for CS1-H/CJ1-H CPU Units manufactured on
June 1, 2002 or later (lot number 020601@@@@ or later). It is supported for all
CJ1M CPU Units regardless of lot number. It is not supported for CS1D CPU
Units for Duplex CPU Systems.
Operating ProcedureSelect Option - Rack/Slot Start Addresses in the PLC IO Table - Traffic Con-
troller Window. This command will enable setting both the first Rack
addresses and the first slot addresses.
48
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
Select Option - Rack/Slot Start Addresses.
Double-click
This function can be used, for example to allocate fixed addresses to Input
Units and Output Units. (With CQM1H PLCs, input bits are from IR 000 to
IR 015 and output bits are from IR 100 to IR 115. First slot addresses can be
set when replacing CQM1H PLCs with CS/CJ-series PLCs to reduce conversion work.)
First slot addresses
Example:
CX-Programmer
Ver. 3.2 or higher
CPU Rack slot
Rack 1 slot
Rack 2 slot
0
12
2
01
01 2
Rack No.
CPU Rack
CPU Rack
Rack 1
Rack 1
Rack 2
Rack 2
1-6-8Automatic Transfers at Power ON without a Parameter File
Previous CPU Units (Pre-Ver. 2.0 CPU Units)
Previously with the CS/CJ-series CPU Units, both the program file for automatic transfer at power ON (AUTOEXEC.OBJ) and the parameter file for automatic transfer at power ON (AUTOEXEC.STD) had to be stored on the
Memory Card to enable automatic transfers to the CPU Unit at power ON.
Also, the parameter file for automatic transfer at power ON (AUTOEXEC.STD)
could not be created without the actual PLC (regardless of whether it was
made in online operations from the CX-Programmer or a Programming Console or by using the easy backup operation).
Even if a program file (.OBJ) was created offline without the actual PLC and
then sent to a remote PLC as an email attachment, the program file could not
be transferred to the CPU Unit without a Programming Device.
50
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
Personal
computer
Mail
Mail
Program file (.OBJ) sent
as mail attachment.
Internet
Local site (no Programming Device)
CPU Unit
Program cannot be transferred
(see note).
Program file
(AUTOEXEC.OBJ)
Note: Transfer is not possible because
there is no parameter file
(AUTOEXEC.STD).
CPU Unit Ver. 2.0 or Later
SummaryWith CS/CJ-series CPU Unit Ver. 2.0, the user program can be automatically
transferred to the CPU Unit at power ON without a parameter file (.STD) if the
name of the program file (.OBJ) is changed to REPLACE.OBJ on the CX-Programmer and the file is stored on a Memory Card. If data files are included
with the program file using this function, the following data file names are
used: REPLACE.IOM, REPLCDM.IOM, REPLCE@.IOM.
Note1. If the Memory Card contains a REPLACE.OBJ file, any parameter file on
the Memory Card will not be transferred.
2. If the Memory Card contains both a REPLACE.OBJ file and a AUTOEXEC.OBJ file, neither will be transferred.
Personal
computer
Mail
Mail
Program file created on CXProgrammer (see note), file name
changed to REPLACE.OJB, and
file sent as mail attachment.
Internet
Remote site (no Programming Device)
Note With CX-Programmer Ver. 3.0 or higher, a program file (.OBJ) can be created
offline and saved on a computer storage media. Select Transfer - To File
from the PLC Menu. This enable creating a program file offline without a PLC
so that the name can be changed to enable sending the program file.
1-6-9 Operation Start/End Times
Previous CPU Units (Pre-Ver. 2.0 CPU Units)
The time that operation started and the time operation ended were not stored
in the CPU Unit.
CPU Unit
Program can be transferred
(see note).
REPLACE.OBJ
Note: Transfer is possible even
without a parameter file
(AUTOEXEC.STD).
CPU Unit Ver. 2.0 or Later
The times that operation started and ended are automatically stored in the
Auxiliary Area.
51
CJ1-H/CJ1M CPU Unit Ver. 2.0 UpgradesSection 1-6
• The time that operation started as a result of changing the operating
mode to RUN or MONITOR mode is stored in A515 to A517 of the Auxiliary Area. The year, month, day, hour, minutes, and seconds are stored.
• The time that operation stopped as a result of changing the operating
mode to PROGRAM mode or due to a fatal error is stored in A518 to
A520 of the Auxiliary Area. The year, month, day, hour, minutes, and seconds are stored.
This information simplifies managing PLC System operating times.
1-6-10 Automatic Detection of I/O Allocation Method for Automatic
Transfer at Power ON
Previous CPU Units (Pre-Ver. 2.0 CPU Units)
Previously with the CJ-series CPU Units, when a parameter file for automatic
transfer at power ON (AUTOEXEC.STD) was recorded in a Memory Card, the
user-set I/O allocation method was automatically used when an automatic
transfer at power ON was executed from the Memory Card, and I/O was allocated according to the parameter file for automatic transfer at power ON. As a
result, the following case occurred:
1,2,3...1. In an office where Units were not mounted, the CX-Programmer was con-
nected online to just the CPU Unit, and files for automatic transfer at power
ON were created (without creating/transferring I/O tables).
2. These files for automatic transfer at power ON were then saved in the
Memory Card, which was then taken to the remote site where automatic
transfer at power ON was executed.
3. When automatic transfer at power ON was executed, I/O tables were created based on the parameter file for automatic transfer at power ON saved
in the Memory Card (i.e., the file created when Units were not mounted to
the PLC). As a result, the registered I/O tables did not match the Units actually mounted in the CPU Unit, causing an I/O setting error.
Office
Create program files for automatic
transfer at power ON
(AUTOEXEC.OBJ) and parameter
files for automatic transfer at
power ON (AUTOEXEC.STD).
CX-Programmer
Mail
Memory Card
Remote site
Units are mounted
I/O not allocated according to settings in mounted Units
Mis-match
(See note.)
User-set I/O allocation
Program file for automatic
transfer at power ON
(AUTOEXEC.OBJ)
Parameter file for automatic
transfer at power ON
(AUTOEXEC.STD)
Program file for automatic
transfer at power ON
(AUTOEXEC.OBJ)
Parameter file for automatic
transfer at power ON
(AUTOEXEC.STD)
52
CJ-series CPU Unit
Automatic I/O allocation at startup
Units not mounted.
Note: The parameter file for automatic transfer
at power ON (AUTOEXEC.STD) is
present, and this file is used to allocated
I/O instead of the I/O allocations in the
mounted Units.
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.