Omron CJ - 09-2009 Operation Manual
Omron CJ - 09-2009 Operation Manual

Omron CJ - 09-2009 Operation Manual

Programmable controllers
Table of Contents

Advertisement

Quick Links

Cat. No. W393-E1-14
SYSMAC CJ Series
CJ1H-CPU_H-R,
CJ1G/H-CPU_H, CJ1G-CPU_P,
CJ1G-CPU_, CJ1M-CPU_
Programmable Controllers
OPERATION MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Omron CJ - 09-2009

  • Page 1 Cat. No. W393-E1-14 SYSMAC CJ Series CJ1H-CPU_H-R, CJ1G/H-CPU_H, CJ1G-CPU_P, CJ1G-CPU_, CJ1M-CPU_ Programmable Controllers OPERATION MANUAL...
  • Page 3 SYSMAC CJ Series CJ1H-CPU@@H-R, CJ1G/H-CPU@@H, CJ1G-CPU@@P, CJ1G-CPU@@, CJ1M-CPU@@ Programmable Controllers Operation Manual Revised September 2009...
  • Page 5  OMRON, 2001 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.
  • Page 6 This applies to the CS1-H, CJ1-H, CJ1M, and CS1D CPU Units. Notation of Unit Versions The unit version is given to the right of the lot number on the nameplate of the on Products products for which unit versions are being managed, as shown below.
  • Page 7 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 informa- tion - CPU Unit. The following Unit Manufacturing information Dialog Box will be displayed.
  • Page 8 Unit version Use the above display to confirm the unit version of the CPU Unit connected online. Using the Unit Version The following unit version labels are provided with the CPU Unit. Labels These labels can be attached to the front of previous CPU Units to differenti- ate between CPU Units of different unit versions.
  • Page 9 Unit Version Notation In this manual, the unit version of a CPU Unit is given as shown in the follow- ing table. Product nameplate CPU Units on which no unit version is Units on which a version is given (Ver. @.@) given Lot No.
  • Page 10 Unit Versions CJ Series Units Models Unit version CJ1-H CPU Units CJ1H-CPU@@H-R Unit version 4.2 Unit version 4.1 Unit version 4.0 CJ1@-CPU@@H Unit version 4.0 CJ1@-CPU@@P Unit version 3.0 Unit version 2.0 Pre-Ver. 2.0 CJ1M CPU Units Unit version 4.0 CJ1M-CPU12/13 Unit version 3.0...
  • Page 11 4.0 or later cannot be used on CS/CJ-series CPU Units with unit ver- sion 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.
  • Page 12 3.0 or later cannot be used on CS/CJ-series CPU Units with unit ver- sion 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.
  • Page 13 • 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 CJ1-H CPU Units CJ1M CPU Units (CJ1H-CPU@@H-R) CJ1M-CPU12/13/22/23 CJ1M- (CJ1@-CPU@@H)
  • Page 14 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 pro- grams containing unit version s.0 functions to a Pre-Ver. 2.0 CPU Unit, and the download will not be possible.
  • Page 15 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 ver- sion 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.
  • Page 16 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 Check the settings in the PLC...
  • Page 17 1. 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.
  • Page 18 ■ 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.
  • Page 19 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...
  • Page 20 Ver. 3.0 or higher LCB01 Ver. 2.0 Note A single unit version for the Loop-control CPU Unit as a whole is not provided. The unit versions for the CJ1-H CPU Unit with unit version 3.0 or later and the functional element version code.
  • Page 21 Status Description Ready Green Not lit The 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.
  • Page 22 At 25°C, the battery life (maximum service life) for batteries is five years 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).
  • Page 23 Therefore, select CJ1G-H as the device type when using CX-Program- mer. 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. Loop-control CPU Unit Device type CPU Unit type...
  • Page 24 xxiv...
  • Page 25: Table Of Contents

    SECTION 1 Introduction ........
  • Page 26 SECTION 8 I/O Allocations ........343 I/O Allocations .
  • Page 27 Connecting to the RS-232C Port on the CPU Unit .......
  • Page 28 xxviii...
  • Page 29: Unit Version

    About this Manual: 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.
  • Page 30 Please read this manual and all related manuals listed in the following table and be sure you under- stand information provided before attempting to install or use CJ-series CPU Units CPU Units in a PLC System. Name Cat. No. Contents...
  • Page 31: Unit Version

    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.
  • Page 32 xxxii...
  • Page 33 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...
  • Page 34 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: •...
  • Page 35 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.
  • Page 36 xxxvi...
  • Page 37: Precautions

    Conformance to EC Directives ........
  • Page 38: Intended Audience

    !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 appli- cations.
  • Page 39 !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.
  • Page 40: Operating Environment Precautions

    If a battery error occurs, the con- tents 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 Bat- tery Error Flag (A40204) turns ON, such as resetting the data in these areas.
  • Page 41: Application Precautions

    • Always connect to a ground of 100 Ω or less when installing the Units. Not connecting to a ground of 100 Ω or less may result in electric shock. • A ground of 100 Ω or less must be installed when shorting the GR and LG terminals on the Power Supply Unit.
  • Page 42 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.
  • Page 43 • 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 volt- age. Excess voltages may result in burning. • Do not apply voltages or connect loads to the Output Units in excess of the maximum switching capacity.
  • Page 44 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, NT-AL001 RS-232C/RS-422A Adapter, or NV3W-M@20L Pro- grammable Terminal.
  • Page 45: Conformance To Ec Directives

    • 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 ex- ceeds the rated voltage or load. • Maintain an ambient storage temperature of −20 to 30°C and humidity...
  • Page 46 EN61000-6-4 (Radiated emission: 10-m regulations) Low Voltage Directive 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). Conformance to EC Directives The CJ-series PLCs comply with EC Directives.
  • Page 47 100 to 200 V, insert the varistor between the con- tacts. When switching a load with a high inrush current such as an incandescent lamp, suppress the inrush current as shown below. Countermeasure 1 Countermeasure 2...
  • Page 48 Conformance to EC Directives xlviii...
  • Page 49: Introduction

    New Special Instructions and Functions ........
  • Page 50: Overview

    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 downsiz- ing, increased functionality, and modularization.
  • Page 51: Cj-Series Features

    The CJ Series provides high speed, high capacity, and more functions in micro-size PLCs. Only 30% to 35% of the At 90 x 65 mm (height x depth), the CJ-series Units have on 70% the height Volume of CS-series PLCs and half the depth of CS-series Units, contributing to machine downsizing.
  • Page 52 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 con- nection errors or to allocate unused words.
  • Page 53 I/O names are handled as symbols which can be defined as global symbols, Supported 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.
  • Page 54 Symbols that read and write data to the CPU Unit can be included in the com- munications frames, so data can be exchanged with the CPU Unit very easily.
  • Page 55 Controller 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.
  • Page 56: Versatile Functions

    It is now possible to save production results and other data (hexadecimal) and Text Format 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 soft- ware by means of a Memory Card Adapter.
  • Page 57 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.
  • Page 58 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.
  • Page 59 Section 1-2 Other Functions Data Trace Function The 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 sam- pling, or sampling at execution of TRSM(045).
  • Page 60 CJ-series Features Section 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 single port.
  • Page 61: Cj1-H And Cj1M Cpu Unit Features

    CJ1-H CPU Unit). Example 2: A program consisting of 30K steps of basic and special instruc- tions 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).
  • Page 62: Cj1-H Cpu Unit Features

    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...
  • Page 63 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.
  • Page 64 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 lan- guage. OMRON function blocks can be written in ladder language or ST (structured text) language, and conform to IEC 61131-3 standards (JIS B3503).
  • Page 65 This enables the member of a development team to work separately 2.0 or Later) 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...
  • Page 66 This enables com- paring 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).
  • Page 67 SION (GRY(474)) for Easy This enables easily handling position or angle data input as parallel signals Conversion of Parallel ) from an Absolute Encoder with a Gray code output using a DC Input Unit. Inputs from Absolute Encoders to Binary, BCD,...
  • Page 68 When editing I/O tables for CJ1-H/CJ1M CPU Units, the first word address Settings for Slots (Using 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 CX-Programmer Version 3.1 or Higher)
  • Page 69 Auxiliary Area (A515 to A517). This enables easier manage- ment 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 fol- lowing Auxiliary Area words. Name...
  • Page 70: Cj1M Cpu Unit Features

    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 con- stant.
  • Page 71 Receive 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 µs can be received reliably regardless of the cycle time.
  • Page 72 PRV(881) (HIGH-SPEED COUNTER PV READ) and (CJ1M Only) 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. Pulse Frequency...
  • Page 73: Cj1-H/Cj1M Cpu Unit Ver. 4.0 Upgrades

    Function 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. 1-4-2 Input-Output Variables in Function Blocks Unit Version 3.0 or Earlier...
  • Page 74: Cj1-H/Cj1M Cpu Unit Ver. 3.0 Upgrades

    " Bl" is #426C in ASCII. #426C stBlack[0] " ac" is #6163 in ASCII. #6163 stBlack[1] Unit Version 4.0 or Later Text strings can be used in ST programming to easily create text string pro- cessing programs. Production 06/05/28 File name log file Black LineA.txt...
  • Page 75: Function Blocks (Fb)

    (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.
  • Page 76: Comment Memory (In Internal Flash Memory)

    Comment Memory (in Internal Flash Memory) Unit Ver. 2.0 or Earlier Comment 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.
  • Page 77: Simple Backup Data Expanded

    1-5-4 Simple Backup Data Expanded Unit Ver. 2.0 or Earlier The simple backup function could not be used to back up comment data or section data. Unit Ver. 3.0 or Later The 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.
  • Page 78: Free-Running Timers

    These files can also be backed up using simple backup. This enables backup/restoration of all data in the CPU Unit including I/O com- ments if an error occurs or when adding a CPU Unit with the same specifica- tions without requiring a Programming Device.
  • Page 79: Cj1-H/Cj1M Cpu Unit Ver. 2.0 Upgrades

    B without requiring timer instructions. This is achieved by calculat- ing 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.
  • Page 80: Downloading And Uploading Individual Tasks

    Developer C CX-Programmer Individual tasks can be uploaded. CPU Unit Ver. 2.0 Overview With 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) Download individual tasks (programs).
  • Page 81: Improved Read Protection Using Passwords

    CPU Unit Ver. 2.0 or Later Overview and CX-Programmer With the CPU Unit Ver. 2.0 or later CPU Units, it is possible to read-protect Ver. 4.0 or Higher individual program tasks (referred to as “task read protection” below) or the entire PLC.
  • Page 82 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.
  • Page 83 Accessable Note 1. If CX-Programmer Ver. 3.2 or a lower version is used to read a task with 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 func- tion is used to read a password protected task, an error will occur and the task will not be read.
  • Page 84 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.
  • Page 85 CJ1-H/CJ1M CPU Unit Ver. 2.0 Upgrades CPU Unit Ver. 2.0 or Later With the CPU Unit Ver. 2.0 and later CPU Units, the CPU Unit's UM area can and CX-Programmer be write protected by turning ON pin 1 of the CPU Unit's DIP switch. The pro- gram (or selected tasks) can also be write-protected if the write protection Ver.
  • Page 86: Write Protection From Fins Commands Sent To Cpu Units Via Networks

    CPU Unit Ver. 2.0 or Later Summary With 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 Fin- sGateway).
  • Page 87 (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...
  • Page 88 With 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.
  • Page 89 Controller within a piece of equipment.) By limiting the number of nodes that can write to the PLC, it is possible to pre- vent system problems caused by unintentional overwrites during data moni-...
  • Page 90 PLC Network Network CS/CJ-series PLC Operations Restricted by FINS Write Commands Network FINS Write The following FINS commands are restricted by FINS write protection when Protection sent to the CPU Unit through the network. Code Command name Code Command name...
  • Page 91: Online Network Connections Without I/O Tables

    With 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 auto- matic I/O allocation at startup.
  • Page 92 If 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...
  • Page 93: Communications Through A Maximum Of 8 Network Levels

    This connection is not counted as a network level. CPU Unit Ver. 2.0 or Later Summary With 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.
  • Page 94 1. 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/CJ- series CPU Units Ver.
  • Page 95: Connecting Online To Plcs Via Ns-Series Pts

    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.
  • Page 96: Setting First Slot Words

    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.
  • Page 97 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 conver- sion work.)
  • Page 98: Automatic Transfers At Power On Without A Parameter File

    64 slots. Note This function is supported only for CS1-H, CJ1-H, and CJ1M CPU Units Ver. 2.0 or later. It is not supported for CS1D CPU Units for Duplex-CPU Sys- tems.
  • Page 99: Operation Start/End Times

    With 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-Pro- grammer and the file is stored on a Memory Card.
  • Page 100: Automatic Detection Of I/O Allocation Method For Automatic Transfer At Power On

    • 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 Auxil- iary Area. The year, month, day, hour, minutes, and seconds are stored.
  • Page 101: New Application Instructions

    As a result, in the above diagram for example, files for automatic transfer at power ON are created in an office where the Units are not mounted. The files are then saved in a Memory Card, which is taken and installed in a CJ-series...
  • Page 102: Cj1-H-R, Cj1-H, Cj1M, And Cj1 Cpu Unit Comparison

    • INTELLIGENT I/O READ (IORD(222)) and INTELLIGENT I/O WRITE (IOWR(223)) (These instructions could previously be used only for Spe- cial I/O Units, but they can now be used to read and write data for CPU Bus Units.) CJ1-H-R, CJ1-H, CJ1M, and CJ1 CPU Unit Comparison...
  • Page 103 To ensure data concur- during than the rency, the DI and EI instructions must be used to disable and enable interrupts during a specific instruction following part of the program.
  • Page 104 Not supported. I/O table creation errors cannot be created for any reason. Displaying presence of It’s possible to confirm if the first rack word has been specified for the system on Not supported. first rack word setting the Programming Console display.
  • Page 105 Failure Error log storage for Supported. Not supported. diagnosis FAL can be executed without placing an entry in the error log. (Only system FAL instruc- errors will be placed in the error log.) tions Error simulation with Supported. Not supported.
  • Page 106: Function Tables

    Section 1-8 Function Tables Function Tables The following tables list functions for the CJ-series CPU Units (including the CJ1, CJ1M, and CJ1-H CPU Units). 1-8-1 Functions Arranged by Purpose Purpose Function Manual Reference SECTION 2 Basic Opera- Studying system configura-...
  • Page 107 Program sections. JMP(004) and JME(005). Reference Control Manual Instructions (W340) Indirectly addressing DM All words in the DM and EM Areas can Programming 6-2 Index words. be indirectly addressed. Manual Registers (W394) Simplifying the program by Use Index Registers as pointers to...
  • Page 108 Section 1-8 Function Tables Purpose Function Manual Reference Managing the Reducing the cycle time. • Use tasks to put parts of the pro- Programming 6-1 Cycle Cycle Time gram that don’t need to be executed Manual Time/High- into “standby” status.
  • Page 109 ON. • Executing processing immediately with an input. Executing an emergency Use a power OFF interrupt task. interrupt program when the Enable the power OFF interrupt task power supply fails. in the PLC Setup. 10-4-7 Inter-...
  • Page 110 Devices Connecting a Programming Connect to the peripheral port with pin Device (e.g., the CX-Pro- 4 of the CPU Unit’s DIP switch OFF or grammer). with pin 4 ON and the communica- tions mode set to “peripheral bus” under Peripheral Port settings in the PLC Setup.
  • Page 111 I/O Memory, start-up” function by turning ON pin 2 Manual File Memory and PLC Setup from the of the CPU Unit’s DIP switch and cre- (W394) Functions Memory Card when the ate an AUTOEXEC file. PLC is turned on.
  • Page 112 Sampling I/O Memory data. 7-2-4 Data Tracing • Periodic sampling Data trace at regular intervals • Sampling once each Data trace at the end of each cycle cycle Data trace each time that TRSM(045) • Sampling at specified is executed times...
  • Page 113: Communications Functions (Serial/Network)

    Controller Link and Ethernet commu- RS-232C or RS-422/485 nications are possible through the Host Link. (Enclose a FINS command with a Host Link header and termina- tor and issue it from the PLC as a net- work communications instruction.) Network Control system Controller Link:...
  • Page 114 Purpose Protocol: Required Equipment Reference 2-5-3 Com- Remote I/O High-density I/O DeviceNet: munications between PLC DeviceNet Master Unit and required Free word allocation Network Sys- and Slaves Slave Units Multi-vendor capability Analog I/O capability Multi-level architecture High-speed Remote I/O CompoBus/S:...
  • Page 115: Cj1M Functions Arranged By Purpose

    Section 1-9 CJ1M Functions Arranged by Purpose CJ1M Functions Arranged by Purpose In general, CJ1M CPU Units have basically the same functions as CJ1-H CPU Units. The functions described in the following tables are unique to the CJ1M. 1-9-1 High-speed Processing...
  • Page 116: Controlling Pulse Outputs

    (equal acceleration used for pulse outputs 0 and 1. and deceleration rates for trapezoidal Note The PV for pulse output 0 is stored in form) A276 and A277. The PV for pulse Controlled by ACC. output 1 is stored in A278 and A279.
  • Page 117 Use variable duty ratio Built-in PWM(891) Control with analog Two of the built-in outputs (bits 04 and 05 of outputs for time-propor- Outputs outputs 0 inputs and the variable CIO 2961) can be used as PWM(891) out-...
  • Page 118: Receiving Pulse Inputs

    CJ1M Functions Arranged by Purpose 1-9-3 Receiving Pulse Inputs Purpose Function Description used Receive incremental rotary encoder inputs to calculate length or position. • Counting at low- Built-in Interrupt inputs Interrupt inputs (Counter Built-in inputs (bits 00 to 03 of speed...
  • Page 119: Serial Plc Link

    50 m max. If the total transmission distance is greater than 50 m, use the insulated NT-AL001, and do not use the CJ1W- CIF11. If only the NT-AL001 is used, the total transmission distance for the whole transmission path is 500 m max.
  • Page 120 A built-in output is used. Output through the Position Control Unit's Reset Output output terminal. CW/CCW Limit A separate Input Unit is used and an Auxil- Input through the Position Control Unit's Input iary Area bit is controlled from the program. input terminal.
  • Page 121: Comparison To Cs-Series Plcs

    10 Units max. (11 Units or more will cause an error) 3, 5, 8, or 10 slots Expansion Rack mounting positions 10 Units max. (11 Units or more will cause an error) 2, 3, 5, 8, or 10 slots Expansion Racks...
  • Page 122 I/O response time setting functions Same Battery CPM2A-BAT01 (See note 2.) CS1W-BAT01 Note 1. CX-Programmer version 7.1 or higher is required to use the new function- ality of CJ1-H-R CPU Units. 2. Use a CJ1W-BAT01 Battery for the CJ1M CPU Unit.
  • Page 123: Specifications And System Configuration

    CJ-series CPU Rack ........
  • Page 124: Specifications

    1024 (unit version 3) memory (Kbytes) Comment files (Kbytes) Program index files (Kbytes) Symbol tables (Kbytes) Earlier CPU Units (unit version 2 or earlier) are not equipped with the function that stores data such as comment files in flash memory.
  • Page 125 JMP instruction Built-in inputs • Interrupt inputs (quick-response): 4 inputs • High-speed counter: 2 inputs (differential- phase at 50 kHz or single-phase at 100 kHz) Built-in outputs • Pulse outputs: 2 at 100 kHz • Pulse out- puts: 2 at •...
  • Page 126 Program index files (Kbytes) Symbol tables (Kbytes) Earlier CPU Units (unit version 2 or earlier) are not equipped with the function that stores data such as comment files in flash memory. CJ1 CPU Units CJ1G-CPU45 CJ1G-CPU44 I/O bits 1,280 User program memory...
  • Page 127 Per CPU or Expansion Rack: 10 Units including Basic I/O Units, Special I/O Units, and CPU Bus Units. Total per PLC: 10 Units on CPU Rack and 10 Units each on 3 Expansion Racks = 40 Units total • CJ1M CPU Units: Total of 20 Units in the System, including 10 Units on CPU Rack and 10 Units on one Expansion Rack.
  • Page 128 Interrupts from the Special I/O Units or CPU Bus Units. Note 1 CJ1-H and CJ1 CPU Units: Scheduled interrupt time interval is either 1 ms to 9,999 ms (in increments of 1 ms) or 10 ms to 99,990 ms (in increments of 10 ms) CJ1-H-R CPU Units: Scheduled interrupt time interval is 0.2 ms to 999.9 ms (in increments of 0.1 ms), 1 ms to 9,999...
  • Page 129 Data Areas 37,504 (2,344 words): CIO 380000 to CIO 614315 (words CIO 3800 to CIO 6143) These bits in the CIO Area are used as work bits in programming to control program execution. They cannot be used for external I/O.
  • Page 130 (16 bits). Words in the EM Area maintain their status when the PLC is turned OFF or the operating mode is changed. The EM Area is divided into banks, and the addresses can be set by either of the following methods.
  • Page 131 Programming Manual: format). SECTION 5: File Mem- ory Functions EM file memory (CJ1-H and CJ1 CPU Units only): Part of the EM Area can be converted to file memory (MS-DOS format). OMRON Memory Cards can be used. Function Specifications Item...
  • Page 132 Programming Manual: shorter pulses on the inputs. 6-6-1 I/O Response Time Settings Mode setting at power-up Possible (By default, the CPU Unit will start in RUN mode if a 7-1-2 PLC Setup Set- Programming Console is not connected.) tings Programming Manual:...
  • Page 133 AC Power Supply Unit: 10 to 25 ms (not fixed) 10-3 Power OFF Oper- ation DC Power Supply Unit PD025: 2 to 5 ms; PD022: 2 to 10 ms Power OFF detection delay 0 to 10 ms (user-defined, default: 0 ms)
  • Page 134 CX-Net in CX-Programmer version 4.0 or higher must be used to set the routing tables. Storing comments in CPU Unit I/O comments can be stored as symbol table files in the I/O comments: CX-Pro- Memory Card, EM file memory, or comment memory (see grammer Ver.
  • Page 135 Interrupt task numbers 140 to 143 are started at the ris- 5-1-3 Interrupt Inputs ing or falling edge of bits 00 to 03 of CIO 2960. Response time: 0.3 ms Interrupt inputs (Counter mode): Interrupt task numbers 140 to 143 are started by incre- menting or decrementing counters for bits 00 to 03 of CIO 2960).
  • Page 136: General Specifications

    Starts scheduled interrupt tasks with a minimum inter- Programming Manual: uled in units of 0.1 ms val of 0.5 ms, at a precision of 0.1 ms. (Set in the PLC 6-5 Using a Scheduled Inter- inter- Setup.) rupt as a High-speed Timer...
  • Page 137 CPU Unit: CJ1-H or CJ1 = 62; CJ1M-CPU1@ = 31; CJ1M-CPU2@ = 49 The total width is given by the following: W = 156.7 + n × 20 + m × 31, where n is the number of 32-point I/O Units or I/O Control Units and m is the number of other Units.
  • Page 138: Cpu Unit Components And Functions

    MCPWR (green): Lit when Peripheral Port power is supplied to Memory Card. Connected to Programming Devices, BUSY (orange): Lit when such as a Programming Console or Memory Card is being host computers. Refer to 3-1 CPU accessed. Units for details. SYSMA C...
  • Page 139 Lit while the Memory Card is being accessed. DIP Switch The CJ-series CPU Unit has an 8-pin DIP switch that is used to set basic operational parameters for the CPU Unit. The DIP switch is located under the cover of the battery compartment. The DIP switch pin settings are described in the following table.
  • Page 140: Cpu Unit Capabilities

    64 Kwords (Up to 2 Expan- CJ1G-CPU42H 1 0Ksteps 64 Kwords sion Racks) Note The available data memory capacity is the sum of the Data Memory (DM) and the Extended Data Memory (EM) Areas. CJ1M CPU Units Model I/O bits Program...
  • Page 141: Units Classifications

    Expansion (one each) Racks) 2-2-3 Units Classifications The CJ-series CPU Units can exchange data with CJ-series Basic I/O Units, CJ-series Special I/O Units, and CJ-series CPU Bus Units, as shown in the following diagram. CJ-series Basic I/O Units CJ-series CJ-series...
  • Page 142: Basic System Configuration

    Overview CJ-series CPU Rack A CJ-series CPU Rack can consist of a CPU Unit, a Power Supply Unit, Basic I/O Units, Special I/O Units, CPU Bus Units, and an End Cover. A Memory Card is optional. An I/O Control Unit is required to connect an Expansion Rack.
  • Page 143: Cj-Series Cpu Rack

    Note Although the CJ-series PLCs do not require Backplanes, the term “slot” is still used to refer to the relative position of a Unit in the Racks. The slot number immediately to the right of the CPU Unit is slot 1, and slot numbers increase toward the right side of the Rack.
  • Page 144 Section 2-3 Basic System Configuration Note The I/O Control Unit is required only to connect an Expansion Rack. It must be connected next to the CPU Unit. Name Configuration Remarks CJ-series CJ-series CPU Unit One of each Unit required for CPU Rack every CPU Rack.
  • Page 145: Cj1M-Cpu23 Cj1M-Cpu22

    Data Memory: 64 Kwords (DM: 32 Kwords, EM: 32 Kwords × 1 bank) CJ-series CJ1W-PA205R 100 to 240 V AC (with RUN output), Output capacity: 5 A at 5 V DC Power Supply Units CJ1W-PA205C 100 to 240 V AC (with replacement notification), Output capacity: 5 A at 5 V DC, 0.8 A at 24 V DC...
  • Page 146: Specification

    End Cover CJ1W-TER01 Must be connected to the right end of the CPU Rack. One End Cover is provided with the CPU Unit and with an I/O Interface Unit. A fatal error will occur if the End Cover is not connected.
  • Page 147 Note The CS1W-CN118 Cable is used with an RS-232C cable to connect to the peripheral port on the CPU Unit as shown below. The CS1W-CN118 Cable cannot be used with an RS-232C cable whose model number ends in -V for a peripheral bus connection and must be used for a Host Link (SYSMAC WAY) connection.
  • Page 148 USB type A plug, male CS1W-CIF31 D-sub Connector (9-pin male) CS/CJ-series PLC connection (see note) C-series peripheral CS/CJ-series peripheral D-sub Connector connector connector (9-pin female) Peripheral port Recommended cable: CQM1-CIF02 CS1W-CN114 Note With a CS/CJ-series PLC, the connection must be a host link connection.
  • Page 149 Programming Console When using a Programming Console, connect the Programming Console to the peripheral port of the CPU Unit and set pin 4 of the DIP switch on the front panel of the Unit to OFF (automatically uses default communications parame-...
  • Page 150 CPU Unit to OFF. C200H-PRO27-E Programming Console Peripheral port Note When an OMRON Programmable Terminal (PT) is connected to the RS-232C port and Programming Console functions are being used, do not connect the Programming Console at the same time.
  • Page 151: Cj-Series Expansion Racks

    3. The total length of CS/CJ-series I/O Connecting cable between all Racks must be 12 m or less. 4. A maximum of 9 Units can be connected to a CPU Rack that uses a CJ1M- CPU1@-ETN CPU Unit. (The built-in Ethernet port on the CPU Unit is al- located slot 0 and is counted as one Unit, making the total 9 Units instead of 10.)
  • Page 152: Connectable Units

    I/O Interface Unit (one End Cover included.) CJ-series Basic I/O Units A total of up to 10 Units can be connected. (An error will occur if 11 or more Units are connected.) CJ-series Special I/O Units CJ-series CPU Bus Units End Cover (CJ1W-TER01) Must be connected to the right end of the Expansion Rack.
  • Page 153: Maximum Number Of Units

    The maximum number of Units that can be connected in a PLC is calculated as follows: Max. No. of Units on CPU Rack (a) + (Max. No. of Units on one Expansion Rack (b) x Max. No. of Expansion Racks).
  • Page 154: I/O Units

    2.) Terminal block CJ1W-ID211 24 V DC, 16 inputs Fujitsu-compatible connector CJ1W-ID231 24 V DC, 32 inputs (See note 1.) MIL connector CJ1W-ID232 24 V DC, 32 inputs (See note 1.) Fujitsu-compatible connector CJ1W-ID261 24 V DC, 64 inputs (See note 1.)
  • Page 155 CJ1W-OA201 16 (See 2 A; 8 points, independent contacts note 2.) Transis- Sinking Terminal block, 12 to 24 V DC, 2 A, 8 outputs CJ1W-OD201 16 (See tor Out- outputs note 2.) put Units Terminal block, 12 to 24 V DC, 0.5 A,...
  • Page 156 Terminal Block Conversion Unit or I/O Terminal (page 267). 2. Although 16 I/O bits are allocated, only 8 of these can be used for external I/O. This Unit is also treated as a 16-point I/O Unit in the I/O tables.
  • Page 157: Cj-Series Special I/O Units

    CPU Rack Expansion (CIO 2000 (D20000 Racks CIO 2959) D29599) Analog Input 8 inputs (4 to 20 mA, 1 to CJ1W-AD081 10 words 0 to 95 Unit 5 V, etc.) (-V) words 4 inputs (4 to 20 mA, 1 to...
  • Page 158 (uses words eter inputs, PNP outputs, for 2 unit heater burnout detection numbers) Position 1 axis, pulse output; open CJ1W-NC113 10 words 0 to 95 Control collector output words Units 2 axes, pulse outputs; CJ1W-NC213 10 words...
  • Page 159 10 words Depends 0 to 95 on setting No. 8: 1,024 inputs/ (uses words 1,024 outputs for Word for 1 unit Slaves and 256 inputs/ number) 256 outputs for Bit Slaves maximum Note The Space Unit is for Position Control Units.
  • Page 160: Expanded System Configuration

    1. Slave I/O are allocated in DeviceNet Area (CIO 3200 to CIO 3799). 2. Some CJ-series CPU Bus Units are allocated words in the CPU Bus Unit Setting Area. The system must be designed so that the number of words allocated in the CPU Bus Unit Setting Area does not exceed its capacity.
  • Page 161 3. The Serial Gateway is supported for CPU Units with unit version 3.0 or lat- er and Serial Communications Boards/Units with unit version 1.2 or later. • CPU Units with unit version 3.0 or later: Gateway from FINS network to serial communications (CompoWay/F only) is possible through the peripheral port and RS-232C port.
  • Page 162: Systems

    Protocol macro General-purpose external devices (such as Temperature Sensor Units, Bar Code Readers) Refer to page 120 for a table showing which communications protocols are supported by each Unit. 2-5-2 Systems The serial communications port mode (protocol) can be switched in the CPU Unit’s PLC Setup.
  • Page 163 Console. If Programming Console is to be used, set pin 4 of the DIP switch on the front panel of the Unit to OFF so that the default periph- eral port communications parameters are used instead of those specified in the PLC Setup.
  • Page 164 FINS commands Note 1. Set pin 4 of the DIP switch on the front panel of the CPU Unit to ON, and set the serial communications mode in the PLC Setup to Host Link. 2. Set pin 5 of the DIP switch on the front panel of the CPU Unit to OFF, and set the serial communications mode in the PLC Setup to Host Link.
  • Page 165 General-purpose external device Note 1. Set pin 5 of the DIP switch on the front panel of the CPU Unit to OFF, and set the serial communications mode in the PLC Setup to no-protocol com- munications. 2. No-protocol communications are supported for Serial Communications Units with unit version 1.2 or later only.
  • Page 166 1:1 NT Links. 2. The NT20S, NT600S, NT30, NT30C, NT620S, NT620C, and NT625C can- not be used if the CPU Unit’s cycle time is 800 ms or longer (even if only one of these PTs is connected).
  • Page 167 OMRON components Serial Gateway Mode When using CPU Units with unit version 3.0 or later (peripheral port and RS- 232C port), the received FINS message is automatically converted into Com- poWay/F according to the message (see note). When Serial Communications Boards/Units with unit version 1.2 or later are used, the received FINS mes-...
  • Page 168 1. The Peripheral Bus Mode is used for Programming Devices excluding Pro- gramming Consoles. If Programming Console is to be used, set pin 4 of the DIP switch on the front panel of the Unit to OFF so that the communica- tions settings are automatically detected instead of using those specified...
  • Page 169 Note In Host Link mode, FINS commands contained between a header and termi- nator can be sent from the host computer to any PLC on the Network. Com- munications are possible with PLCs on the same or different types of interconnected Networks up to two levels away (three levels including the local level but not including the Host Link connection).
  • Page 170 Note In Host Link mode, FINS commands contained between a header and termi- nator can be sent from the host computer to any PLC on the Network. Com- munications are possible with PLCs on the same or different types of interconnected Networks up to two levels away (three levels including the local level but not including the Host Link connection).
  • Page 171 FINS FINS Controller Link Note A TCP/IP header must be attached to the FINS command for an Ethernet Net- work, and a Host Link header must be attached to the FINS command for a Host Link Network Supports Network Relay Up to three network levels (eight levels for unit version 2.0 or later), including...
  • Page 172 Network 3 Note With CS/CJ-series CPU Units Ver. 2.0 or later, remote programming/monitor- ing is possible up to 8 levels away. Refer to 1-6-2 Improved Read Protection Using Passwords for details. Access to CPU Unit Plus Other Devices on Racks The CPU Unit, CPU Bus Units, personal computers (boards), and other devices can be identified and specified using unit addresses.
  • Page 173: Communications Network System

    Analog I/O Terminals, Sensor Terminals, I/O Link Units, Temperature Input Terminal, High-density I/O Terminals Ethernet If an Ethernet Unit is connected to the system, FINS messages can be used to communicate between the Host computer connected to the Ethernet and...
  • Page 174 PLC, or between PLCs. By executing FTP commands for the PLC from the Host computer connected to the Ethernet, the contents of the files on the Memory Card installed in the CPU Unit can be read or written (transferred).
  • Page 175 CompoBus/S is a high-speed ON/OFF bus for remote I/O communications. Connecting a CompoBus/S Master Unit to the network allows remote I/O communications between the PLC and Slaves. High-speed communications are performed with 256 points in a cycle time of 1 ms max. CompoBus/S Master Unit CompoBus/S...
  • Page 176 Data link (offset, simple set- tings) RS-232C → Control- Between Host Link com- Host Link commands and RS-232C cables and ler Link puter and PLC on the Net- gateway. Controller Link Unit work. Control net- Controller Link Between PLCs. FINS message communica-...
  • Page 177: Unit Current Consumption

    The amount of current/power that can be supplied to the Units mounted in a Rack is limited by the capacity of the Rack’s Power Supply Unit. Refer to the following tables when designing your system so that the total current con-...
  • Page 178: Example Calculations

    Current Consumption Group Current consumption 0.910 A + 0.020 A + 0.080 × 2 + 0.090 A × 2 + 0.090 A × 2 + 5 V DC 0.120 A + 0.350 A = 1.92 A (≤5.0 A) 24 V DC 0.048 A x 2 = 0.096 (≤0.8 A)
  • Page 179: Current Consumption Tables

    Unit power supply. Note The NT-AL001 Link Adapter consumes 0.15 A/Unit when used. Add 0.04 A for each CJ1W-CIF11 RS-422A Adapter that is used. Add 0.20 A for each NV3W-M@20L Programmable Terminal that is used. CJ-series Basic I/O Units...
  • Page 180 0.17 Relay Output Units CJ1W-OC201 0.09 CJ1W-OC211 0.11 Triac Output Units CJ1W-OA201 0.22 B7A Interface Unit CJ1W-B7A04 0.07 Basic Mixed I/O Units 24-V DC Input/Tran- CJ1W-MD231 0.13 sistor Output Units CJ1W-MD232 0.13 CJ1W-MD233 0.13 CJ1W-MD261 0.14 CJ1W-MD263 0.14 TTL I/O Unit CJ1W-MD563 0.19...
  • Page 181 0.56 Unit (High-speed Storage and Pro- cessing Unit) Note The NT-AL001 Link Adapter consumes 0.15 A/Unit when used. Add 0.04 A for each CJ1W-CIF11 RS-422A Adapter that is used. Add 0.20 A for each NV3W-M@20L Programmable Terminal that is used.
  • Page 182: Cpu Bus Unit Setting Area Capacity

    (10 Kbytes). The system must be designed so that the number of words used in the CPU Bus Unit Setting Area by all of the CPU Bus Units not exceed this capacity. If the wrong combination of Units is used, the capacity will be exceeded and either Units will operate from default settings only or will not operate at all.
  • Page 183: I/O Table Settings List

    8pt Unit − 8pt Output CJ1W-OD204 16pt Unit − 16pt Output CJ1W-OD212 32pt Unit − 32pt Output CJ1W-OD232 64pt Unit − 64pt Output CJ1W-OD262 Note If the selected Unit is incorrect, an I/O Table Setting error will be generated.
  • Page 184: Cj-Series Special I/O Units

    Mode No. 0 No. 1 No. 2 No. 3 No. 8 Variable Variable Note If the selected Unit, the number of input words, or the number of output words is incorrect, a Special I/O Unit Setup error will be generated.
  • Page 185: Cj-Series Cpu Bus Units

    Motion Control Unit CJ1W-MCH71 General-purpose Storage and Processing Unit CJ1W-SPU01 Devices Note The DeviceNet Unit is not support by CX-Programmer version 2.0 or earlier, and I/O tables containing the DeviceNet Unit cannot be created with these versions. Create the tables online.
  • Page 186 Section 2-8 I/O Table Settings List...
  • Page 187: Nomenclature, Functions, And Dimensions

    Using File Memory........
  • Page 188: Cpu Units

    Section 3-1 CPU Units CPU Units 3-1-1 Models CJ1-H CPU Units I/O points Expansion Program Data Memory LD instruction Model Weight Racks capacity (DM + EM) processing time 0.016 µs 2,560 3 max. 250 Ksteps 448 Kwords CJ1H-CPU67H-R 200 g max.
  • Page 189: Components

    Programmable Terminals, and other devices. PORT Memory Card Eject Button Press the eject button to remove the Memory Card from the CPU Unit. Note Always connect the connector covers to protect them from dust when not using the peripheral or RS-232C port.
  • Page 190 BKUP OPEN SW SETTING BATTERY MCPWR BUSY PERIPHERAL PORT Note The nomenclature and functions are the same as for the CJ1 and CJ1-H CPU Units above. Models with Built-in I/O (CJ1M-CPU2@) I/O Indicator SYSMAC Indicates ON/OFF status ERR/ALM CJ1M of signals to actual built-in...
  • Page 191 User program and parameter area data is being backed up to flash memory in the (CJ1-H CPU CPU Unit or being restored from flash memory. Units only) Note Do not turn OFF the power supply to the PLC while this indicator is lit. Data is not being written to flash memory. ERR/ALM PRPHL...
  • Page 192 2. The CPU Unit will not enter any mode except PROGRAM mode after back- ing up data to a Memory Card using DIP switch pin 7. To enter RUN or MONITOR mode, turn OFF the power supply, turn OFF pin 7, and then re-...
  • Page 193: Cpu Unit Memory Block Map

    Battery Areas Backed Up by Battery If the battery voltage is low, the data in these areas will not be stable. The CPM2A-BAT01 Battery is used for CJ1-H and CJ1 CPU Units and the CJ1W- BAT01 Battery is used for CJ1M CPU Units.
  • Page 194 FB program memory area. Note 1. The Parameter Area stores system information for the CPU Unit, such as the PLC Setup. An attempt to access the Parameter Area by an instruction will generate an illegal access error.
  • Page 195 CPU Units Section 3-1 2. Part of the EM (Extended Data Memory) Area can be converted to file memory to handle data files and program files in RAM memory format, which has the same format as Memory Cards. Both EM file memory or memory cards can be treated as file memory (i.e., can be used to store...
  • Page 196: Dimensions

    Section 3-1 CPU Units 3-1-4 Dimensions CJ1-H and CJ1 CPU Units SYSMAC ERR/ALM CJ1G-CPU44 PROGRAMMABLE PRPHL CONTROLLER COMM OPEN MCPWR BUSY PERIPHERAL PORT 73.9 CJ1M CPU Units CPU Units without Built-in I/O (CJ1M-CPU1@) 73.9...
  • Page 197: File Memory

    File Memory For CJ-series CPU Units, the Memory Card and a specified part of the EM Area can be used to store files. All user programs, the I/O Memory Area, and the Parameter Area can be stored as files. File memory...
  • Page 198: Memory Card

    2. CJ-series CPU Units • All CJ1G-CPU@@H and CJ1H-CPU@@H CPU Units manufactured before January 9, 2002 (lot number 020108 and earlier) • All CJ1G-CPU@@ CPU Units (i.e., those without an H in the model num- ber suffix: CPU@@H) 3. NS7-series PTs...
  • Page 199: Files Handled By Cpu Unit

    Section 3-2 File Memory The recognition times given in the following table are guidelines for a CS1H- CPU@@H CPU Unit with a PLC cycle time of 0.4 ms and all PLC Setup parameters set to the default values. Model HMC-EF183...
  • Page 200: Symbol

    Note 1. Specify 8 ASCII characters. For a file name with less than 8 characters, add spaces (20 hex). 2. Always specify the name of files to be transferred automatically at power- up as AUTOEXEC.
  • Page 201: Using File Memory

    1. Install the Memory Card into the CPU Unit. 2. Initialize the Memory Card if necessary. 3. Name the file containing the data in the CPU Unit and save the contents in the Memory Card. 4. Read the file that is saved in the Memory Card to the CPU Unit.
  • Page 202 Note When using spreadsheet software to read data that has been written to the Memory Card in CSV or text format, it is now possible to read the data using Windows applications by mounting a Memory Card in the personal computer card slot using a HMC-AP001 Memory Card Adapter.
  • Page 203 PLC Setup. 2. Initialize the EM file memory using a Programming Device. 3. Name the data in the CPU Unit and save in the EM file memory using the Programming Device. 4. Read the EM file memory files to the CPU Unit using the Programming De- vice.
  • Page 204: Memory Card Dimensions

    1. Pull the top end of the Memory Card cover forward and remove from the Unit. 2. Insert the Memory Card with the label facing to the left. (Insert with the ∆ on the Memory Card label and the ∆ on the CPU Unit facing each other.) Product label 3.
  • Page 205 1. Press the Memory Card power supply switch. Memory Card power supply switch OPE N MCP WR BUS Y 2. Press the Memory Card eject button after the BUSY indicator is no longer lit. BUSY indicator MCPWR BUSY Memory Card eject button 3.
  • Page 206: Programming Devices

    Adapter, it can be used as a standard storage device, like a floppy disk or hard disk. 2. When deleting all of the data in a Memory Card or formatting it in any way, always place it in the CPU Unit and perform the operation from the CX-Pro- grammer or a Programming Console.
  • Page 207 Section 3-3 Programming Devices The following table provides a comparison between the CX-Programmer func- tions and the Programming Console functions. Function Programming Console CX-Programmer Editing and referencing I/O tables Deleting I/O tables Selecting tasks Writing pro- Inputting instructions Writes instructions one at a time using...
  • Page 208: Programming Consoles

    Section 3-3 Programming Devices 3-3-2 Programming Consoles There are three Programming Consoles that can be used with the CJ-series CPU Units: The CQM1H-PRO01-E, CQM1-PRO01-E, and C200H-PRO27-E. These Programming Consoles are shown here. CQM1H-PRO01-E Programming Console Connection PRO01 PRO01 PROGRAMMING CONSOLE...
  • Page 209: Cx-Programmer

    CS/CJ-series (See note 1.), CP-series, NSJ-series, CV-series, C200HX/HG/HE (-Z), C200HS, CQM1, CPM1, CPM1A, SRM1, C1000H/2000H Operating system Microsoft Windows 95 (See note 2.), 98, Me, 2000, XP, or NT 4.0 Personal computer DOS version, IBM PC/AT or compatible Connection method CPU Unit’s peripheral port or built-in RS-232C port...
  • Page 210 RS-232C Cable CS1W-CN118 Cable 2. If cables with model numbers ending in -V instead of -CV are used to con- nect the computer running the CX-Programmer to the RS-232C port (in- cluding when using a CJ1W-CN118 Cable), a peripheral bus connection cannot be used.
  • Page 211 D-Sub, 9-pin, female Note Before connecting a connector from the above table to the RS-232C port, touch a grounded metal object to discharge static electricity from your body. The XW2Z-@@@S-CV Cables have been strengthened against static because they use a static-resistant connector hood (XM2S-0911-E). Even so, always discharge static electricity before touching the connectors.
  • Page 212 XW2Z-500S-V D-Sub, 9-pin, female Communications Modes when Connecting a CX-Programmer to a CS-series CPU Unit Serial communications mode Characteristics Peripheral Bus High-speed communications are possible. Conse- quently, connecting via a peripheral bus is recom- mended when using a CX-Programmer.
  • Page 213 Note The CX-Programmer can be used for remote programming and monitoring. It can be used to program and monitor not only the PLC to which it is directly connected, but also to program and monitor any PLC connected through a Controller Link or Ethernet network to which the PLC that the CX-Programmer is connected to is a part of.
  • Page 214 Note The CX-Programmer can be used for remote programming and monitoring. It can be used to program and monitor not only the PLC to which it is directly connected, but also to program and monitor any PLC connected through a Controller Link or Ethernet network to which the PLC that the CX-Programmer is connected to is a part of.
  • Page 215: Peripheral Port Specifications

    2. Peripheral bus Peripheral bus 3. Host Link Host Link (default setting) 4. NT Link NT Link 5. Serial Gateway Serial Gateway Note Set from the CX-Programmer or Programming Console. 3-3-5 RS-232C Port Specifications Connector Pin Arrangement Pin No. Signal Name Direction...
  • Page 216 Connector hood Protection earth Note Do not use the 5-V power from pin 6 of the RS-232C port for anything other than an NT-AL001, CJ1W-CIF11 Link Adapter, or NV3W-M@20L Programma- ble Terminal. Using this power supply for any other external device may dam- age the CPU Unit or the external device.
  • Page 217 Protocol Host Link, NT Link, 1:N, No-protocol, or Peripheral Bus Note Baud rates for the RS-232C are specified only up to 19.2 kbps. The CJ Series supports serial communications from 38.4 kbps to 115.2 kbps, but some com- puters cannot support these speeds. Lower the baud rate if necessary.
  • Page 218: Power Supply Units

    4. NT Link OFF (factory setting) NT Link 5. No-protocol OFF (factory setting) No-protocol 6. Serial Gateway OFF (factory setting) Serial Gateway Note Set from the CX-Programmer or Programming Console. Power Supply Units 3-4-1 Power Supply Units Models Power supply voltage Output...
  • Page 219: Components

    130 g max. 26.4 VDC) (non-insulated) 24 V DC, 0.4 A Total 25 W 3-4-2 Components POWER Indicator Lit when 5 V are being output from the Power Supply Unit. PA205R POWER External connection terminals AC100-240V AC input INPUT L2/N...
  • Page 220 Lit: 5-V output from Power Supply Unit. DC24V INPUT DC input − AC Input Supply 100 to 240 V AC (allowable: 85 to 264 V AC). (Voltage selection is not required.) DC Input Supply 24 V DC. Model Allowable power supply...
  • Page 221: Dimensions

    Section 3-4 Power Supply Units 3-4-3 Dimensions CJ1W-PA205R PA205R POWER AC100-240V INPUT L2/N OUTPUT AC240V DC24V 81.6 CJ1W-PA205C CJ1W-PA205C POWER AC100-240V INPUT Years TEST L2/N ALARM OUTPUT DC30V,50mA NORMAL:ON ALARM :OFF 81.6...
  • Page 222 Power Supply Units Section 3-4 CJ1W-PA202 PA202 POWER AC100 -240V INPUT L2/N 81.6 CJ1W-PD025 PD025 POWER DC24V+ INPUT 81.6 CJ1W-PD022 PD022 POWER 81.6...
  • Page 223: Power Supply Confirmation

    Over time, the char- acteristic deterioration of the electrolytic capacitor prevents the Power Supply Unit from being utilized to its full capacity. In particular, the speed at which the electrolytic capacitor deteriorates fluctuates greatly with the ambient tempera- ture (generally, a temperature rise of 10°C will double the rate of a reaction, as...
  • Page 224 Power Supply Unit with Replacement Notification Model Specifications CJ1W-PA205C Output capacity: 5 A at 5 VDC, 0.8 A at 24 VDC, total of 30 W With replacement notification Power Supply Unit Replacement Notification Module CJ1W-PA205C Replacement notification display (7-segment, red)
  • Page 225 OFF. 2. Until approximately one month of operating time has accumulated, the dis- play will always be “FUL” and the alarm output will remain ON (conducting) due to the estimated deterioration speed. 3. The time remaining until replacement will vary the operating and storage conditions, so periodically check the display.
  • Page 226 Section 3-4 Power Supply Units The Flag is programmed to allow for the delay in the alarm output at system startup. The Flag does not turn ON when the alarm output is ON (normal operation). When the alarm output turns OFF (replacement required), the Flag turns ON, and the replacement notification can be monitored from the system.
  • Page 227 1 s max. 0.2 s max. Operation at Power OFF When the power is turned OFF, the display will turn OFF after the PC opera- tion stops. The alarm output will turn OFF after the display turns OFF. Power PLC operation...
  • Page 228 Note If the error continues for 3 hours or longer, the replacement notification func- tion will be disabled. Even if the cause of the overheating is removed, the dis- play will continue as “Hot,” and the notification output will remain OFF. In this state, the internal parts may deteriorate even if the PC operation is normal, so replace the Power Supply Unit.
  • Page 229: I/O Control Units And I/O Interface Units

    Replacement notifi- Supported Not supported cation (7-segment display + transistor outputs) I/O Control Units and I/O Interface Units An I/O Control Unit and I/O Interface Units are used to connect Expansion Racks to expand the system. 3-5-1 Models Name Model number...
  • Page 230: System Configuration

    3-5-2 System Configuration The I/O Control Unit is connected directly to the CPU Unit. If it is not immedi- ately to the right of the CPU Unit, correct operation may not be possible. The I/O Interface Unit is connected directly to the Power Supply Unit. If it is not immediately to the right of the Power Supply Unit, correct operation may not be possible.
  • Page 231: Cj-Series Basic I/O Units

    IC101 II101 69.3 69.3 Note Attached the enclosed cover to the I/O Connecting Cable connector on the I/O Interface Unit when it is not being used to protect it from dust. CJ-series Basic I/O Units 3-6-1 CJ-series Basic I/O Units with Terminal Blocks...
  • Page 232 Interrupt Input Units are used to execute interrupt programs on the rising or falling edge of an input signal. When the specified interrupt input turns ON (or OFF), execution of the cyclic program in the CPU Unit is interrupted and an I/O interrupt task (task number 100 to 131) is executed.
  • Page 233 ON to indicate that an Interrupt Input Unit is in the wrong position. Note Even if a Unit is physically in one of the correct positions, a Dummy Unit can be registered in the I/O table, causing a Unit to be defined in a position differ- ent from its physical position.
  • Page 234: Cj-Series 32/64-Point Basic I/O Units With Connectors

    CJ-series Basic I/O Units The input response time cannot be changed for the CJ1W-INT01, and the related portions of the Basic I/O Unit input time constants in the PLC Setup, and the setting status in A220 to A259 will not be valid.
  • Page 235 4 5 6 7 10 11 12 13 14 15 Note: Only the CJ1W-OD232 has an ERR indicator for the load short-circuit alarm. 32-point Units with 2 × 24-pin Fujitsu-compatible Connectors or 2 × 20-pin MIL Connectors Model number MD232 MD231...
  • Page 236 Section 3-6 CJ-series Basic I/O Units Dimensions Input Units and Output Units ■ 32-point Units with 40-pin Fujitsu-compatible Connector CJ1W-ID231 CJ1W-OD231 (112.5) 66.5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ■ 32-point Units with 40-pin MIL Connector...
  • Page 237 Section 3-6 CJ-series Basic I/O Units 24-V DC Input/Transistor Output Units ■ 32-point Units with 2 × 24-pin Fujitsu-compatible Connectors CJ1W-MD231 (112.5) 66.5 ■ 32-point Units with 2 × 20-pin MIL Connectors CJ1W-MD232 CJ1W-MD233 83.6 0 ch 1 ch...
  • Page 238 Section 3-6 CJ-series Basic I/O Units Input Units, Output Units, 24-V DC Input/Transistor Output Units, TTL I/O Units ■ 64-point Units with 2 × 40-pin Fujitsu-compatible Connectors CJ1W-ID261 CJ1W-OD261 CJ1W-MD261 (112.5) 66.5 ■ 64-point Units with 2 × 40-pin MIL Connectors...
  • Page 239 Section 3-6 CJ-series Basic I/O Units Connecting to Connector-Terminal Block Units The CJ-series 32/64-point Basic I/O Units can be connected to Connector- Terminal Block Conversion Units as shown in the following table. Units with Fujitsu-compatible Connectors Basic I/O Unit Connecting...
  • Page 240 Model Specifications Model number Specifications number CJ1W- 32-point 24-V DC XW2Z-@@@K XW2B-40G5 Standard, M3.5 screw terminal block 1 Connecting Cable ID232 Input Unit and 1 Conversion Unit XW2B-40G4 Standard, M3 screw terminal block XW2D-40G6 Slim, M3 screw terminal block XW2D-40G6-RM...
  • Page 241 1 Connecting Cable XW2Z-@@@N terminal block and 2 Conversion Units Connecting to I/O Terminals The CJ-series 32/64-point Basic I/O Units can be connected to I/O Terminals as shown in the following table. Units with Fujitsu-compatible Connectors Basic I/O Unit Connecting...
  • Page 242 Section 3-6 CJ-series Basic I/O Units Basic I/O Unit Connecting I/O Terminal Required for Cable connection Model Specifications Model number Type Input voltage/ number output type CJ1W- 64-point Transistor Out- G79-O@C-@ G7TC-OC16 Output Block Input: 24 V DC 2 Connecting Cables...
  • Page 243 Section 3-6 CJ-series Basic I/O Units Units with MIL Connectors Basic I/O Unit Connecting I/O Terminal Required for Cable connection Model Specifications Model number Type Input voltage/ number output type CJ1W- 32-point 24-V DC G79-O@-@-D1 G7TC-ID16 Input Block Input: 24 V DC...
  • Page 244 Section 3-6 CJ-series Basic I/O Units Basic I/O Unit Connecting I/O Terminal Required for Cable connection Model Specifications Model number Type Input voltage/ number output type CJ1W- 16-point 24-V DC Inputs: G7TC-ID16 Input Block Input: 24 V DC 1 Connecting Cable...
  • Page 245: B7A Interface Unit

    3-7-1 Overview The B7A is a 1:1 transmission path that does not require a master. A total of 16 signals are transmitted using a two-conductor or three-conductor VCTF cable (maximum length: 500 m). The CJ1W-B7A@@ B7A Interface Unit is a CJ-series Basic I/O Unit that exchanges up to 64 points of I/O data mainly with B7A Link Terminals using a B7A transmission path.
  • Page 246: B7A Communications Specifications

    1. When separate power supplies are used, the B7A Interface Unit and B7A Link Terminal are supplied by separate external power supplies. 2. When a common power supply is used, the B7A Interface Unit and B7A Link Terminal are supplied by the same external power supply.
  • Page 247: Common Specifications

    3-7-6 I/O Memory Allocations The B7A Interface Unit is a Basic I/O Unit. Each Unit is allocated four words in the I/O Area (which starts at CIO 0000). The words are allocated according to the mounting position of the Unit as shown in the following table.
  • Page 248: Transmission Error Processing

    A05009 Transmission Error Input Status Processing If an error occurs at an input port, the Unit will hold the status of the input bit in the CPU Unit's I/O memory from immediately before the transmission error occurred. When transmission returns to normal, the signals that have been normally received will be input to the input bit.
  • Page 249: Parts And Names

    The B7A Unit is operating. status The B7A Unit is stopped. ERR1 Port 1 trans- A transmission error has mission error occurred at port 1 of the B7A Unit. The Unit is operating normally. ERR2 Port 2 trans- A transmission error has mission error occurred at port 2 of the B7A Unit.
  • Page 250 Right: Standard (19.2 ms typical) Left: High-speed (3 ms typical) Note The switch setting is read when the power is turned ON or the Unit is restarted. If the switch setting is changed after turning ON the power or restarting the Unit, the setting will not be read.
  • Page 251: Preparing And Connecting Cables

    Connect to the − terminal of the external power supply. Note Terminals V1, V2, V3, V4, and V are connected internally in the Unit, and ter- minals G1, G2, G3, G4, and G are connected internally in the Unit. 3-7-9 Preparing and Connecting Cables Use the following procedure to prepare and connect the cables.
  • Page 252 Section 3-7 B7A Interface Unit 2. Use vinyl tape or a heat-shrink tube to cover the end of the VCTF cable sheath, as shown in the following diagram. Cover with vinyl tape or heat-shrink tube. 2) Preparing Cable Signal Attach the crimp terminals to the cable's signal lines.
  • Page 253: Connection Diagrams

    3. Connect cables at a distance that is within the range given in the specifi- cations. 4. Always turn OFF the power to the CPU Unit and all other Units before con- necting the communications cables. 5. Always lay communications cables within ducts.
  • Page 254 − 12 to 24 V DC High-speed Mode Note If shielded cable is not used, the maximum transmission distance is 10 m regardless of whether a common or separate power supplies are used. (Use VCTF cable of 0.75 mm or higher.)
  • Page 255: Dimensions (Unit: Mm)

    Section 3-7 B7A Interface Unit Power Supply on Both Sides (Separate Power Supplies) B7A Interface Unit 12 to 24 V DC Transmission distance: B7A Link Terminal 100 m max. SIG1 Shielded cable: SIG2 VCTF 0.75mm min. Ground 12 to 24 V DC...
  • Page 256 Section 3-7 B7A Interface Unit...
  • Page 257: Operating Procedures

    Introduction ........
  • Page 258: Introduction

    DM Area that are allocated to Special I/O Units and CPU Bus Units. b) Reset the power (ON → OFF → ON) or toggle the Restart Bit for each Unit. See the Unit’s operation manual for details.
  • Page 259 Input wiring Activate sensors and switches and either check the status of the indicators on the Input Unit or check the status of the corresponding input bits with the Programming Device’s Bit/Word Monitor operation.
  • Page 260: Examples

    OUTP UT AC24 0V DC24 V PORT Make sure that the total power consumption of the Units is less than the max- imum capacity of the Power Supply Unit. 2. Wiring Connect the power supply and I/O wiring. PA205 R...
  • Page 261 1,2,3... 1. Connect the CX-Programmer's connecting cable to the peripheral port or RS-232C port. Note When connecting to the RS-232C port, pin 5 of the CPU Unit's DIP switch must be ON. Install the Units. 2. After checking the power supply wiring and voltage, turn ON the power and verify the Power Supply Unit's POWER Indicator is lit.
  • Page 262 Console 2. Verify that the Programming Console's mode is PROGRAM mode. 3. After checking the power supply wiring and voltage, turn ON the power and verify the Power Supply Unit's POWER Indicator is lit. 4. Verify that the Programming Console has the following display.
  • Page 263 <PRG> 3:JPN~ENG Note If the PLC Setup's Startup Mode Setting is set to PRCN (Startup Mode deter- mined by the Programming Console's mode switch, the default setting), but a Programming Console isn't connected when the power is turned ON, the CPU Unit will enter RUN Mode and start operating.
  • Page 264 I/O table. I/O table. 1,2,3... 1. Double-click I/O Table on the project tree in the main window. The I/O Ta- ble Window will be displayed. 2. Double-click the Rack to be edited. The slots for that Rack will be dis-...
  • Page 265 Examples Section 4-2 3. Right-click the slots to be edited and select the desired Units from the pull- down menu. 4. Select Options and then Transfer to PLC to transfer the I/O table to the CPU Unit. Note The first word allocated to each Rack can be set from the Programming Device.
  • Page 266 3. After completing the settings, transfer the PLC Setup to the PLC. Making the Settings with the Programming Console When a Programming Console is used to set the PLC Setup, the PLC Setup settings are arranged by word addresses. Refer to the provided Programming Console settings sheet for details.
  • Page 267 D30000 to D31599 (100 words × 16 Units) CPU Bus Units After writing the initial settings to the DM Area, be sure to restart the Units by turning the PLC OFF and then ON again or toggling the Restart Bits for the affected Units.
  • Page 268 Console or the CX-Programmer) or instructions in the program. IOM Hold Bit (A50012) Turning ON the IOM Hold Bit protects the contents of I/O memory (the CIO Area, Work Area, Timer Completion Flags and PVs, Index Registers, and Data Registers) that would otherwise be cleared when the operating mode is switched from PROGRAM mode to RUN/MONITOR mode or vice-versa.
  • Page 269 Section 4-2 IOM Hold Bit Status at Startup When the IOM Hold Bit has been turned ON and the PLC Setup is set to pro- tect the status of the IOM Hold BIt at startup (PLC Setup address 80 bit 15 turned ON), the contents of I/O memory that would otherwise be cleared will be retained when the PLC is turned on.
  • Page 270 Examples Section 4-2 Using a Programming Console The PLC can be put into MONITOR mode with a host computer running CX- Programmer. Trial Operation Select PC, Mode, MONITOR. Actual operation Select PC, Mode, RUN. CX-Programmer 10-d) Monitoring and Debugging There are several ways to monitor and debug PLC operation, including the force-set and force-reset operations, differentiation monitoring, time chart monitoring, data tracing, and online editing.
  • Page 271 When CX-Programmer is being used, several instruction blocks can be edited. 11. Save and Print the Program To save a created program, select File - Save or File - Save As from the CX- Programmer menus. To print a created program, first preview the print output by selecting the desired section in the CX-Programmer's project workspace and selecting File - Print Preview from the CX-Programmer menu.
  • Page 272 Examples Section 4-2 12. Run the Program Switch the PLC to RUN mode to run the program.
  • Page 273: Installation And Wiring

    5-3-1 Power Supply Wiring ........
  • Page 274: Fail-Safe Circuits

    Note *When a fatal error occurs, all outputs from Output Units will be turned OFF even if the IOM Hold Bit has been turned ON to protect the contents of I/O memory. (When the IOM Hold Bit is ON, the outputs will retain their previous status after the PLC has been switched from RUN/MONITOR mode to PRO- GRAM mode.)
  • Page 275 ON Flag (A1) as the execution condition for an output point from an Output Unit. 2. Do not latch the RUN output and use it in a circuit to stop a controlled ob- ject. Chattering of the relay contacts used in the output may cause incor- rect operation.
  • Page 276: Installation

    • Locations close to power lines. Installation in Cabinets or When the PLC is being installed in a cabinet or control panel, be sure to pro- Control Panels vide proper ambient conditions as well as access for operation and mainte- nance.
  • Page 277 • To ensure safe access for operation and maintenance, separate the PLC as much as possible from high-voltage equipment and moving machinery. • The PLC will be easiest to install and operate if it is mounted at a height of about 1.3 m (4 feet).
  • Page 278: Installation In A Control Panel

    • Up to three Expansion Racks can be connected (but only one can be con- nected for CP1M CPU Units). Each I/O Connecting Cable can be up to 12 m long, but the sum total of all cables between the CPU Rack and Expansion Racks must be 12 m or...
  • Page 279 • Whenever possible, route I/O wiring through wiring ducts or raceways. Install the duct so that it is easy to fish wire from the I/O Units through the duct. It is handy to have the duct at the same height as the Racks.
  • Page 280: Assembled Appearance And Dimensions

    Installation Routing Wiring Ducts Install the wiring ducts at least 20 mm between the tops of the Racks and any other objects, (e.g., ceiling, wiring ducts, structural supports, devices, etc.) to provide enough space for air circulation and replacement of Units.
  • Page 281 Installation Dimensions (Unit: mm) 35.4 27.6 The width the CJ-series Power Supply Unit depends on the model. The width of the Power Supply Unit when computing the width of a Rack, is “a.” Name Model number Specifications Unit width Power Supply Unit...
  • Page 282 I/O points: 160 Program capacity: 5 Ksteps Other than the CPU Units and Power Supply Units, CJ-series Units come in two widths: 20 mm and 31 mm. When computing the width of a Rack, the number of 20-mm Units is “n.” Name...
  • Page 283 CJ1W-SCU21 Ethernet Unit CJ1W-ETN11 W = a (Power Supply Unit) + b (CPU Unit) + 20 x n + 31 x m + 14.7 (End Cover) mm Example: CJ1W-PA205R Power Supply Unit, CJ1H-CPU66H CPU Unit, two 32-point Basic I/O Units and eight 31-mm Units.
  • Page 284 Installation Height The installation height of the CJ-series CPU Rack and Expansion Racks var- ies from 81.6 to 89.0, depending on the I/O Units that are mounted. When a Programming Device (CX-Programmer or Programming Console) is con- nected, however, even greater height is required. Allow sufficient depth in the control panel containing the PLC.
  • Page 285 Section 5-2 Installation Unit Dimensions CJ-series CPU Unit CJ1H-CPU@@H-R CJ1G/H-CPU@@H CJ1G-CPU@@ CPU Unit End Cover SYSMAC ERR/ALM CJ1G-CPU44 PROGRAMMABLE PRPHL CONTROLLER COMM OPEN MCPWR BUSY PERIPHERAL PORT 14.7 Unit Depth 73.9 The depth is the same for all Units.
  • Page 286 Section 5-2 Installation CJ1M-CPU1@ 73.9 CJ1M-CPU2@ SYSMAC CJ1M PROGRAMMABLE PRPHL CONTROLLER COMM CPU22 BKUP OPEN SW SETTING BATTERY MCPWR BUSY PERIPHEARL PORT 83.6 48.75...
  • Page 287 Section 5-2 Installation End Cover CJ1W-TER01 14.7 CJ-series Power Supply Units CJ1W-PA205R PA205R POWER AC100-240V INPUT L2/N OUTPUT AC240V DC24V 81.6...
  • Page 288 Section 5-2 Installation CJ1W-PA205C CJ1W-PA205C POWER AC100-240V INPUT Years TEST L2/N ALARM OUTPUT DC30V,50mA NORMAL:ON ALARM :OFF 81.6 CJ1W-PA202 PA202 POWER AC100 -240V INPUT L2/N 81.6 CJ1W-PD025 PD025 POWER DC24V+ INPUT 81.6...
  • Page 289 Installation Section 5-2 CJ1W-PD022 PD022 POWER 81.6 CJ1W-IC101 I/O Control Unit (140) IC101 IC101 69.3 CJ1W-II101 I/O Interface Unit (140) II101 II101 IN IN 69.3...
  • Page 290 Installation Section 5-2 CJ-series Basic I/O Units Note Refer to individual Unit operation manuals for the dimensions of CJ-series Special I/O Units and CJ-series CPU Bus Units. 8/16-point Basic I/O Units CJ1W-ID201 (8 inputs) CJ1W-ID211 (16 inputs) CJ1W-IA201 (8 inputs)
  • Page 291 83.6 ID231 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 32-point Basic Mixed I/O Units, Fujitsu-compatible Connector CJ1W-MD231 (16 inputs/16 outputs) (112.5) 66.5 MD231 32-point Basic I/O Units, MIL Connector CJ1W-MD232 (16 inputs/16 outputs) CJ1W-MD233 (16 inputs/16 outputs) 83.6...
  • Page 292 CJ1W-ID261 (64 inputs) CJ1W-OD261 (64 outputs) (112.5) 66.5 ID232 64-point Basic I/O Units, MIL Connector CJ1W-ID262 (64 inputs) CJ1W-OD262 (64 outputs) CJ1W-OD263 (64 outputs) 83.6 ID262 64-point Basic Mixed I/O Units, Fujitsu-compatible Connector CJ1W-MD261 (32 inputs/32 outputs) (112.5) 66.5 MD261...
  • Page 293 CJ1W-MD263 (32 inputs/32 outputs) CJ1W-MD563 (32 TTL inputs/32 TTL outputs) 83.6 MD563 0 ch 3 ch 1 ch 2 ch B7A Interface Units CJ1W-B7A14 (64 inputs (4 B7A ports)) CJ1W-B7A04 (64 outputs (4 B7A ports)) CJ1W-B7A22 (32 inputs/32 outputs (4 B7A ports)) 79.5...
  • Page 294: (See Note.)

    Section 5-2 Installation 5-2-4 CJ-series Unit Weights Name Model number Weight CJ-series Power Supply Unit CJ1W-PA205R 250 g max. CJ1W-PA205C 400 g max. CJ1W-PA202 200 g max. CJ1W-PD025 300 g max. CJ1W-PD022 130 g max. CJ-series CPU Units CJ1H-CPU67H-R 200 g max.
  • Page 295: Connecting Plc Components

    Units together and locking the sliders by moving them toward the back of the Units. The End Cover is connected in the same way to the Unit on the far right side of the PLC. Follow the procedure listed below to connect PLC com-...
  • Page 296 AC240 V DC24 V PORT 2. The yellow sliders at the top and bottom of each Unit lock the Units togeth- er. Move the sliders toward the back of the Units as shown below until they click into place. Note If the locking tabs are not secured properly, the CJ-series may not function properly.
  • Page 297: Din Track Installation

    Units together using the connectors on the sides. !Caution Attach the End Cover to the Unit on the far right side of the Rack. An I/O bus error will occur and the PLC will not operate in either RUN or MONITOR mode if the End Cover is not connected.
  • Page 298 Section 5-2 Installation 2. Fit the back of the PLC onto the DIN Track by inserting the top of the track and then pressing in at the bottom of the PLC, as shown below. DIN Track 3. Lock the pins on the backs of the CJ-series Units.
  • Page 299 PFP-100N (100 cm), PFP-100N2 (100 cm) Secure the DIN Track to the control panel using M4 screws separated by 210 mm (6 holes) or less and using at least 3 screws. The tightening torque is 1.2 N·m. PFP-100N2 DIN Track 28-25x4.5 oblong holes...
  • Page 300: Connecting Cj-Series Expansion Racks

    CS/CJ-series I/O Connecting Cables are used to connect the CPU Rack and Expansion Racks. CS/CJ-series I/O Connecting Cables The CS/CJ-series I/O Connecting Cables have connectors with a simple lock mechanism are used to connect the CPU Rack to an Expansion Rack or to connect two Expansion Racks. CS/CJ-series I/O Connecting Cables...
  • Page 301 Simple lock connector Expansion Rack Connecting the Simple Locking Connectors Press the tabs on the end of the connector and insert the connector until it locks in place. The PLC will not operate properly if the connector isn’t inserted completely.
  • Page 302 3. Do not route the I/O Connecting Cables through ducts that contain the I/O or power wiring. 4. An I/O bus error will occur and the PLC will stop if an I/O Connecting Ca- ble’s connector separates from the Rack. Be sure that the connectors are secure.
  • Page 303: Wiring

    RUN Output This output is ON whenever the CPU Unit is operating in RUN or MONITOR mode; it is OFF when the CPU Unit is in PROGRAM mode or a fatal error has occurred. The RUN output can be used to control external systems, such as in an emer- gency stop circuit that turns off the power supply to external systems when the PLC is not operating.
  • Page 304 This label prevents wire strands and other foreign matter from entering the Unit during wiring procedures. 3. Do not forget to remove the label from the top of the Power Supply Unit af- ter wiring the Unit. The label will block air circulation needed for cooling.
  • Page 305 Power Supply Capacity The maximum power consumption is 50 W (PD025)/35 W (PD022) per Rack, but there will be a surge current of about five times that level when the power is turned ON. Precautions when Using CJ1W-PC022 Non-insulated Power Supply Units...
  • Page 306 This label prevents wire strands and other foreign matter from entering the Unit during wiring procedures. 6. Do not forget to remove the label from the top of the Power Supply Unit af- ter wiring the Unit. The label will block air circulation needed for cooling.
  • Page 307 Section 5-3 Wiring • The CJ-series PLCs are designed to be mounted so that they are isolated (separated) from the mounting surface to protect them from the effects of noise in the installation environment (e.g., the control panel). Control panel 2...
  • Page 308 • OFF: Power Supply Unit replacement required within 6 months. • Transistor open-collector outputs • Maximum switching capacity: 30 VDC max., 50 mA max. • ON: Residual voltage of 2 V max., OFF: Leakage current of 0.1 mA max.
  • Page 309 External Display Device The alarm output (replacement notification output) is an NC contact. There- fore, wire the alarm output using an NC contact or other means to turn ON an Connection Example error indicator or LED display as shown in the following diagram.
  • Page 310: Wiring Cj-Series Basic I/O Units With Terminal Blocks

    • Wire the Units so that they can be easily replaced. In addition, make sure that the I/O indicators are not covered by the wiring. • Do not place the wiring for I/O Units in the same duct or raceway as power lines. Inductive noise can cause errors in operation.
  • Page 311: Wiring I/O Units With Connectors

    Terminal Blocks The I/O Units are equipped with removable terminal blocks. The lead wires do not have to be removed from the terminal block to remove it from an I/O Unit. OD2 11 Terminal block lever CJ-series Basic I/O Unit...
  • Page 312 Section 5-3 Wiring Note CJ-series Basic I/O Units with connectors have the same connector pin allo- cations as the C200H High-density I/O Units and CS-series I/O Units with connectors to make them compatible. Available Connectors Use the following connectors when assembling a connector and cable.
  • Page 313 1. Check that each Unit is installed securely. Note Do not force the cables. 2. Do not remove the protective label from the top of the Unit until wiring has been completed. This label prevents wire strands and other foreign matter from entering the Unit during wiring.
  • Page 314 10 11 12 13 14 15 Connector I/O Unit I/O Unit Connector 6. Remove the protective label after wiring has been completed to allow air circulation needed for cooling. After wiring Remove label after wiring. ID261 Connector lock screws 0 1 2 3 4 5 6 7...
  • Page 315 Basic I/O Units with Connectors can be connected to OMRON Connector-Ter- minal Block Conversion Units or OMRON I/O Terminals. Refer to CJ-series 32/64-point Basic I/O Units with Connectors on page 186 for a list of models. Connecting to Terminal Blocks The following Connecting Cables and Connector-Terminal Block Conversion Units are required to connect to terminal blocks.
  • Page 316 XW2C-20G5-IN16 (CJ1W-ID262 only) XW2C-20G5-IN16 (CJ1W-ID232 only) XW2C-20G6-IO16 XW2C-20G6-IO16 CJ-series 32-point Basic I/O Unit (16 inputs, 16 outputs) CJ-series 64-point Basic I/O Units (32 inputs/32 outputs) CJ1W-MD231 (Mixed I/O Units, MIL connectors, CJ1W-MD261 (Mixed I/O Units, Fujitsu connectors, 24-V DC inputs/transistor outputs)
  • Page 317 Section 5-3 Wiring CJ-series 64-point Basic I/O Units (32 inputs, 32 outputs) CJ-series 32-point Basic I/O Units (16 inputs, 16 outputs) CJ1W-MD232 (Mixed I/O Units, MIL connectors, 24-V DC CJ1W-MD263 (Mixed I/O Units, MIL connectors, 24-V DC inputs/transistor outputs) inputs/transistor outputs)
  • Page 318 Section 5-3 Wiring Connecting to I/O Terminals The following Connecting Cables and I/O Terminals are required to connect to terminal blocks. CJ-series 32-point Basic I/O Units CJ1W-ID231 (Input Unit, Fujitsu connector) CJ-series 64-point Basic I/O Units CJ1W-OD231 (Output Unit, Fujitsu connector)
  • Page 319 Wiring Section 5-3 CJ-series 32-point Basic I/O Units, 16 inputs, 16 outputs CJ-series 32-point Basic I/O Units, 16 inputs, 16 outputs CJ1W-MD232 (Mixed I/O Units, MIL connectors, CJ1W-MD232 (Mixed I/O Units, MIL connectors, 24-V DC inputs/transistor outputs) 24-V DC inputs/transistor outputs)
  • Page 320: Connecting I/O Devices

    Wiring Section 5-3 5-3-4 Connecting I/O Devices Input Devices Use the following information for reference when selecting or connecting input devices. DC Input Units The following types of DC input devices can be connected. Contact output IN DC Input Unit...
  • Page 321 IN DC Input Unit 7 mA Voltage output Output IN DC Input Unit Sensor Power Supply The circuit below should NOT be used for I/O devices having a voltage output. Voltage output Sensor Power Supply Output IN DC Input Unit...
  • Page 322 Note When using a reed switch as the input contact for an AC Input Unit, use a switch with an allowable current of 1 A or greater. If Reed switches with smaller allowable currents are used, the contacts may fuse due to surge cur- rents.
  • Page 323 PLC input impedance 4. Precautions on Sensor Surge Current An incorrect input may occur if a sensor is turned ON after the PLC has started up to the point where inputs are possible. Determine the time re- quired for sensor operation to stabilize after the sensor is turned ON and take appropriate measures, such as inserting into the program a timer de- lay after turning ON the sensor.
  • Page 324: Reducing Electrical Noise

    Suspended duct Conduits In-floor duct If the I/O wiring and power wiring must be routed in the same duct, use shielded cable and connect the shield to the GR terminal to reduce noise. Inductive Loads When an inductive load is connected to an I/O Unit, connect a surge suppres- sor or diode in parallel with the load as shown below.
  • Page 325 Control cables Power lines Ground to 100 Ω or less If the I/O wiring and power cables must be placed in the same duct, they must be shielded from each other using grounded steel sheet metal. PLC power supply Steel sheet metal...
  • Page 326 Section 5-3 Wiring...
  • Page 327: Dip Switch Settings

    Overview ........
  • Page 328: Overview

    The DIP switch can be reached by opening the battery compartment cover on the front of the CPU Unit. Note Before touching or setting the DIP switch while the power is being supplied to the CPU Unit, always touch a grounded piece of metal to release static elec- tricity from your body.
  • Page 329: Details

    (default) Note 1. The following data is write-protected when pin 1 is ON: the user program and all data in the parameter area such as the PLC Setup and registered I/O table. Furthermore when pin 1 is ON, the user program and parameter area won’t be cleared even when the memory clear operation is performed...
  • Page 330 Programming Devices that aren’t in Peripheral Bus Mode and devices in Peripheral Bus Mode operating at any other speeds will not be detected. 4. When pin 2 is ON and the power is turned ON, any I/O Memory file (AU- TOEXEC.IOM, ATEXEC@@.IOM) will also be transferred automatically.
  • Page 331 Section 6-2 Details • The computer is connected to the CPU Unit’s RS-232C port and pin 5 is To go online, set CX-Programmer to Peripheral Bus Mode, turn pin 4 ON (turn pin 5 OFF for the RS-232C port), and set the communications mode to host...
  • Page 332 Section 6-2 Details...
  • Page 333: Plc Setup

    PLC Setup Settings ........
  • Page 334: Plc Setup

    For example, with CX-Programmer Ver.3.@, when the PLC Setup is uploaded from a PLC that was used to set the PLC Setup for Unit Ver. 2.0 or later only, the PLC Setup that was set cannot be downloaded again. (The following screen will be displayed.) Use the CX-Programmer Ver.
  • Page 335 9,600 bps. Note Pin 5 of the DIP switch on the front of the CPU Unit must be OFF to change the PLC Setup settings. You want to speed up communications with a PT via an NT Link.
  • Page 336: Plc Setup Settings

    PLC Setup when using a Programming Console or the Programming Console function of an NS-series Programming Terminal. The PLC Setup is stored in the Parameter Area, which can be accessed only from a Programming Device. Do not use the Programming Console addresses as operands in programming instructions.
  • Page 337: Startup Operation Settings (Cx-Programmer's Startup Tab Page)

    (A50013) is retained at startup. tus Hold Bit) Default: 0 When you want all of the bits that have been force-set or force-reset to retain their forced status when the power is turned on, turn ON the Forced Status Hold Bit and set this set- ting to 1 (ON).
  • Page 338: Cpu Settings Tab Page

    0 (Wait for Units). Note This setting applies only to specific Units. If “don’t wait” is set, the CPU Unit will not wait only for those specific Units, i.e., it will still wait for all other Units to start.
  • Page 339 FAL(006) is in error log. toring for FPD(269) will be recorded in the executed error log (A100 to A199). Set it to 1 so pre- (every cycle). 1: Don’t record user- vent these errors from being recorded. defined FAL errors in error log.
  • Page 340 CPU Unit Word Bit(s) +136 0 to 3 0 to 6 If bit 7 (above) is set to 1, the setting here A344 (EM After initial- specifies the EM bank where file memory File Memory ization from Default: 0 begins.
  • Page 341 Note This setting does not exists in CJ1@-CPU@@ CPU Units. FB Communications Instruction Settings (Settings for OMRON FB Library) The following PLC Setup settings are used only when using the OMRON FB Library. Number of Resends Programming Settings...
  • Page 342 PLC Setup Note This setting does not exists in CJ1@-CPU@@ CPU Units. The number of resends and response monitoring time must be set by the user in the FB communications instructions settings in the PLC Setup, particularly when using function blocks from the OMRON FB Library to execute FINS messages or DeviceNet explicit messages communications.
  • Page 343: Time And Interrupt Settings (Cx-Programmer Timings Tab Page)

    Set to 1 to enable the Watch Cycle Time A40108 At start of 1: Bits 0 to 14 Setting in bits 0 to 14. Leave this setting at 0 (Cycle Time operation. for a maximum cycle time of 1 s.
  • Page 344 CPU will be reset and operation will be stopped. Note This setting is not supported when the CJ1W-PD022 Power Supply Unit is mounted. (Refer to Power OFF Operation on page 451.) Power OFF Interrupt Disable (See note.)
  • Page 345: Siou Refresh Tab Page

    95 Default: 0 Note If Special I/O Units are not refreshed periodically (i.e., within 11 s) by the CPU Unit, a CPU Unit monitoring error will occur. (The ERH and RUN indicators on the Special I/O Unit will be lit.) If the PLC Setup is set to disable cyclically...
  • Page 346: Unit Settings Tab Page

    Section 7-1 PLC Setup 7-1-2-5 Unit Settings Tab Page Basic I/O Unit Input (Rack) Response Times Item Programming Settings Function Related When Console address flags and setting is words read by Word Bit(s) CPU Unit Rack 0, Slot 0 0 to 7...
  • Page 347: Host Link (Rs-232C) Port Tab Page

    Section 7-1 PLC Setup 7-1-2-6 Host Link (RS-232C) Port Tab Page The following settings are valid when pin 5 on the DIP switch on the CPU Unit is OFF. Host Link Settings Communications Settings Programming Settings Function Related When set-...
  • Page 348 Bit(s) +160 0: 2 bits These settings are valid only when the com- A61902 At the next 1: 1 bit munications mode is set to host link or no- (RS-232C cycle. protocol. Port Settings Default: 0 Changing These settings are also valid only when the...
  • Page 349 Port Settings “PLC Setup” and set the baud rate to 9,600 Changing Default: 00 bps. Flag) NT Link Max. (Maximum Unit Number in NT Link Mode Programming Settings Function Related When set- Console address...
  • Page 350 +160 0: Standard The standard settings are as follows: A61902 At the next 1: Custom (RS-232C cycle. 1 stop bit, 7-bit data, even parity, 2 stop bits, Port Settings (Also can be Default: 0 9,600 bps Changing changed with Flag) STUP (237).)
  • Page 351 A61902 At the next 01 Hex: Odd munications mode. Set the Standard/Cus- (RS-232C cycle. 10 Hex: None tom setting (word 160, bit 15) to 1 to enable Port Settings (Also can be this setting. Changing changed with Default: 00 Flag) STUP (237).)
  • Page 352 With a setting of 0, the amount of data being 2: CR+LF received must be specified. A setting of 1 enables the end code in bits 0 to 7 of 164. A Default: 0 setting of 2 enables an end code of CR+LF.
  • Page 353 Word Bit(s) +160 0: 7 bits These settings are valid when the RS-232C A61901 Takes effect 1: 8 bits Port Settings Selection is set to 1: PLC (RS-232C the next Setup. Port Settings cycle. Default: 0 Changing (Also can be...
  • Page 354 0A: High-speed baud rate. (RS-232C cycle. (See note.) Port Settings Note: The setting must be the same for all of Changing Default: 00 the Polled Units and the Polling Unit using Flag) the Serial PLC Links. Note Set to 115,200 bps when using the CX-Programmer...
  • Page 355 Serial (RS-232C cycle. Default: 0 PLC Links. Port Settings Changing Note: If a PT is to be connected, it must be Flag) included when counting Units. Polled Unit: Serial Communications Mode Programming Settings Function...
  • Page 356: Peripheral Port Tab Page

    Section 7-1 PLC Setup 7-1-2-7 Peripheral Port Tab Page The following settings are valid when pin 4 on the DIP switch on the CPU Unit is ON. Host Link Settings Communications Settings Programming Settings Function Related When set- Console address...
  • Page 357 0 to 7 00: 9,600 bps This setting is valid only when the communi- A61901 At the next 01: 300 bps cations mode is set to the Host Link mode. (Peripheral cycle. 02: 600 bps Port Settings (Also can be...
  • Page 358 (Peripheral cycle. Link* Port Settings (Also can be Changing changed with Default: 00 Flag) STUP (237).) NT Link Max. (Maximum Unit Number in NT Link Mode Programming Settings Function Related When set- Console address flags and ting is read words...
  • Page 359 New set- Console address flags and ting’s effec- words tiveness Word Bit(s) +144 0: Default (stan- *The default settings are for a baud rate of A61901 Takes effect dard)* 9,600 bps. (Peripheral the next 1: PLC Setup (cus- Port Settings cycle.
  • Page 360: Peripheral Service Tab Page (Cpu Processing Mode Settings)

    08 to 15 The Peripheral Servicing Priority Mode will A266 and At start of 05 to FF (hex) be used if a time slice is set for instruction A267 operation execution (5 to 255 ms in 1-ms increments). Default: 00 (hex) (Can’t be...
  • Page 361 Default: 00 number (0 to 96) + 20 (hex) FC: RS-232C port FD: Peripheral port Sync/Async Comms (Parallel Processing Modes) The following setting is supported only by the CJ1-H CPU Units Execution Mode (Parallel Processing Mode Programming Settings Function Related...
  • Page 362: Set Time To All Events (Fixed Peripheral Servicing Time)

    0 to 7 00 to FF: Set the peripheral servicing time. At start of 0.0 to 25.5 ms operation This setting is valid only when bit 15 of 218 (0.1-ms units) is set to 1. (Can’t be Default: 00 changed dur- ing opera- tion.)
  • Page 363: Fins Protection Tab Page (Protection Against Fins Writes Across Networks) (Cj-Series Cpu Unit Ver. 2.0 Only)

    A maximum of 32 nodes can be set. If these settings are not made (i.e., if the total number of nodes is 0), write operations will be disabled for all nodes but the local node.
  • Page 364: Built-In Inputs

    The following tables show the CX-Programmer's settings. These settings are for CJ1M CPU Units equipped with the built-in I/O functions. Note In the CX-Programmer version 3.1 or lower, the Tab Page's name is Built-in I/O Settings. High-speed Counter 0 Operation Settings...
  • Page 365 0 cally when the counter PV exceeds the max. ring count. 00 to 15 A271 (Leftmost 4 digits of the high-speed counter 0 Note When the CX-Programmer is being used to make the setting, the setting is input in decimal.
  • Page 366 IN2 Use Counter is also disabled if the reset (100 kHz). method is set to Phase-Z sig- nal + software reset. High-speed Counter 1 Pulse Input Setting (Pulse Input Mode) Programming Settings Default Function Related Time when...
  • Page 367 Normal (General- purpose input) 1 hex: Interrupt (Inter- rupt input) (See note.) 2 hex: Quick (Quick- response input) Note When IN0 is set as an interrupt input (1 hex), use the MSKS(690) instruction to select direct mode or counter mode operation.
  • Page 368 (See note.) 2 hex: Quick (Quick- response input) Note When IN1 is set as an interrupt input (1 hex), use the MSKS(690) instruction to select direct mode or counter mode operation. Input Operation Setting for IN2 Programming Settings...
  • Page 369: Origin Search Function

    16 hex: 16 ms 17 hex: 32 ms 7-1-2-12 Origin Search Function The following tables show the settings for the origin search function in the CX- Programmer. These settings are for CJ1M CPU Units equipped with the built- in I/O functions.
  • Page 370 PWM(891) output 0 cannot be used when the origin search function is enabled (setting 1) for pulse output 0. High-speed counters 0 and 1 can be used. Pulse Output 0 Limit Input Signal Operation (CJ1M CPU Unit Ver. 2.0 Only) Programming Settings Default Function...
  • Page 371 +259 00 to 15 (See note.) origin search and origin return opera- tions. Note When the CX-Programmer is being used to make the setting, the setting is input in decimal. Pulse Output 0 Origin Search High Speed Programming Settings Default...
  • Page 372 Section 7-1 PLC Setup Note When the CX-Programmer is being used to make the setting, the setting is input in decimal. Pulse Output 0 Search Compensation Value (Origin Compensation) Programming Settings Default Function Related Time when Console Auxiliary setting is read...
  • Page 373: Pulse Output 1 Settings

    Specifies the positioning monitor time When operation (See note.) (0 to 9,999 ms) for pulse output 0. starts Note When the CX-Programmer is being used to make the setting, the setting is input in decimal. 7-1-2-13 Pulse Output 1 Settings...
  • Page 374 Section 7-1 PLC Setup Note In the CX-Programmer version 3.1 or lower, the Tab Page's name is Define Origin Operation Settings Field of Define Origin 2. Pulse Output 1 Use Origin Operation Settings (Origin Search Function Enable/Disable) Programming Settings Default...
  • Page 375 +277 00 to 15 (See note.) origin search and origin return opera- tions. Note When the CX-Programmer is being used to make the setting, the setting is input in decimal. Pulse Output 1 Origin Search High Speed Programming Settings Default...
  • Page 376 Section 7-1 PLC Setup Note When the CX-Programmer is being used to make the setting, the setting is input in decimal. Pulse Output 1 Search Compensation Value 1 (Origin Compensation) Programming Settings Default Function Related Time when Console Auxiliary setting is read...
  • Page 377 00 to 15 0000 to 270F hex 0000 Specifies the positioning monitor time When operation (See note.) (0 to 9,999 ms) for pulse output 1. starts Note When the CX-Programmer is being used to make the setting, the setting is input in decimal.
  • Page 378: Origin Return Function

    Section 7-1 PLC Setup 7-1-2-14 Origin Return Function The following tables show the settings for the origin return function in the CX- Programmer. These settings are for CJ1M CPU Units equipped with the built- in I/O functions. Pulse Output 0 Settings Note CX-Programmer Tabs CX-Programmer Ver.
  • Page 379 2.0: 0001 to FFFF CPU Units Ver. 2.0: 1 to 65,535 pulses/4 ms (See note.) Note When the CX-Programmer is being used to make the setting, the setting is input in decimal. Deceleration Rate (Pulse Output 0 Origin Return Deceleration Rate) Programming...
  • Page 380 00 to 15 (See note.) origin search and origin return opera- tions. Note When the CX-Programmer is being used to make the setting, the setting is input in decimal. Speed (Target Speed for Pulse Output 1 Origin Return) Programming Settings...
  • Page 381: Explanations Of Plc Setup Settings

    The default setting for the input response time is 8 ms and the setting range is 0 to 32 ms. When the input response time is set to 0 ms, the only delay will be the delays in the Unit’s internal elements. For information on the Unit’s internal elements, refer to Appendix A Specifications of Basic I/O Units and check the input response time for the Unit that you are using.
  • Page 382 (OFF) unless it is protected with this PLC Setup setting. If the Forced Status Hold Bit at Startup setting is ON, the status of the Forced Status Hold Bit will be protected when the PLC is turned on. If this setting is ON and the Forced Status Hold BIt itself is ON, all force-set and force-reset bits will retain their forced status when the PLC is turned on.
  • Page 383 MON: MONITOR mode RUN: RUN mode Power ON Note If a Programming Console is not connected when the PLC Setup is set to use the mode set on the Programming Console’s mode switch, the CPU Unit will start in RUN mode.
  • Page 384 PLC Setup so that battery errors are not detected when using battery-free operation. Refer to the CS/CJ Series Programming Manual for details. If this setting is set to detect errors (0) and a battery error is detected, the Bat- tery Error Flag (A40204) will be turned ON.
  • Page 385 PLC Setup when you need to change these settings. Note When pin 4 of the DIP switch on the front of the CPU Unit is OFF, the CPU Unit automatically detects the communications parameters of a connected Programming Device (including Programming Consoles).
  • Page 386 Section 7-2 Explanations of PLC Setup Settings Note When pin 5 of the DIP switch on the front of the CPU Unit is ON, the CPU Unit automatically detects the communications parameters of a Programming Device (including Programming Consoles) connected to the RS-232C port.
  • Page 387 This setting determines the time units for the scheduled interrupt interval set- Units tings. Set the scheduled interrupt interval from the program with MSKS(690). Note This setting cannot be changed while the CPU Unit is in RUN or MONITOR mode. Scheduled Interrupt Time Units...
  • Page 388 This setting must be changed if the normal cycle time exceeds the default watch cycle time setting of 1 s. Note The watch cycle time setting cannot be changed while the CPU Unit is in RUN or MONITOR mode.
  • Page 389 The setting can be between 0 and 10 ms. It takes a maximum of 10 ms for the internal 5-V DC power supply to drop to 0 V DC after the initial power interrupt detection time. Extend the time until detection of a power interruption when momentary interruptions in a bad power supply are causing PLC operation to stop.
  • Page 390 • I/O refreshing is executed using IORF(097) or FIORF(225) (CJ1-H-R CPU Units only) for the same Special I/O Unit. • Data is read or written to or from the memory area using IORD (222) or IOWR(223) for the same Special I/O Unit.
  • Page 391: I/O Allocations

    Allocating First Words to Racks ........
  • Page 392: I/O Allocations

    CPU Bus Units according to the unit numbers set on the Units. To help prevent troubles from occurring when adding Units or when the wrong Unit is mounted, I/O tables can also be registered in the CPU Unit. (Refer to 8- 2 Creating I/O Tables for details.)
  • Page 393: I/O Allocation

    Note Units that have 1 to 16 I/O points are allocated16 bits and Units that have 17 to 32 I/O points are allocated 32 bits. For example, an 8-point Unit is allocated 16 bits (1 word) and bits 00 to 07 of that word are allocated to the Unit’s 8 points.
  • Page 394 Each CJ-series Special I/O Unit is allocated ten words in the Special I/O Unit I/O Units Area (CIO 2000 to CIO 2959) according the unit number set on the Unit. Spe- cial I/O Units can be mounted to the CJ-series CPU Rack or CJ-series Expan- sion Racks.
  • Page 395 CIO 0002 and CIO 0003 --- Basic I/O Unit I/O Allocation to CPU Bus Each CJ-series CPU Bus Unit is allocated 25 words in the CPU Bus Unit Area Units (CIO 1500 to CIO 1899) according the unit number set on the Unit. CJ-series CPU Bus Units can be mounted to the CJ-series CPU Rack or CJ-series Expansion Racks.
  • Page 396 I/O Allocations Section 8-1 Example The following example shows the I/O word allocation to Basic I/O Units, Spe- cial I/O Units, and CPU Bus Units in the CPU Rack. Special 16 pt 16 pt Unit Unit Unit 1500 1525t 0000...
  • Page 397: Precautions When Using Memory Cards

    I/O table. The descriptions below explain the two different methods used to create the I/O table by the CPU Unit that creates the parameter file for automatic trans- fers at power ON (AUTOEXEC.STD). • Automatic Allocation at Startup (See note.)
  • Page 398: Creating I/O Tables

    (AUTOEXEC.STD) To solve this problem, the CX-Programmer had to be connected to the CPU Unit onsite to recreate the I/O tables or to delete the I/O tables to enable using the automatic I/O allocation at power ON method. Creating I/O Tables...
  • Page 399: Procedures For Registering I/O Tables

    2. Double-click Rack to be edited. The slots for the selected Rack will be dis- played. 3. Right-click the slot to which a Unit is to be assigned and select the Unit from the pull-down menu. 4. After editing the I/O tables, transfer them to the CPU Unit by selecting Op- tions - Transfer to PLC.
  • Page 400 Unit Check When this method is used, the registered I/O tables are compared with the actual I/O at startup. If they do not agree, A40110 will turn ON to indicate an I/O setting error and operation will not be possible.
  • Page 401 The I/O allocation status changes are described below. 1. I/O Allocation Status Changes due to Automatic Transfer at Startup The I/O allocation status depends on the unit versions of the source and des- tination CPU Units when using a single CJ-series CPU Unit to create parame- ter files for automatic transfer at startup (AUTOEXEC.STD), save them in the...
  • Page 402 3. An I/O setting error will occur if a parameter file (.STD) created and saved in a Memory Card using a CJ-series CPU Unit with unit Ver. 3.0 or later is transferred from the Memory Card using a CJ-series CPU Unit with unit Ver.
  • Page 403: Allocating First Words To Slots And Reserving Words

    Word Allocations When setting first words for slots, the first word must be set for slot 00 on the CPU Rack. The first word can then be set for any slot on any Rack for up to 63 other slots.
  • Page 404 Rack 2 CIO 0300 Note Group 00 must start at slot 00 on the CPU Rack. Any word can be set. Any slot can be set on any Rack for groups 01 to 63. Setting First Slot Words from the CX-Programmer First slot words can be set from the CX-Programmer.
  • Page 405 Table Window. The following dialog box will be displayed. 2. Select the Slot Start Addresses Settings Option and click the OK Button. 3. In the dialog box that will appear, set the first word for slot 00 on the CPU Rack.
  • Page 406: Allocating First Words To Racks

    Units without calculating all the way from the CPU Rack. Note The first words for Racks cannot be set at the same time as the first words for slots. Word Allocations...
  • Page 407 Rack 3 0140 Note Rack numbers (0 to 3) are fixed according to the order that the Racks are physically connected with cable. The CPU Rack is always Rack 0 and the other Racks are, in order, Racks 1 to 3. These numbers cannot be changed.
  • Page 408 1. Press the FUN, SHIFT, and CH Keys to start the I/O table creation opera- tion. If the first work for a Rack has been set, a message saying so will ap- pear on the second line of the display.
  • Page 409: Detailed Information On I/O Table Creation Errors

    Rack. The I/O Table Registration operation registers the I/O words allocated to the Racks. • I/O words will not be allocated to empty slots. If an I/O Unit will be installed later, reserve words for the empty slot by changing the I/O table with a Programming Device’s I/O Table Change Operation.
  • Page 410: Data Exchange With Cpu Bus Units

    Area. Basically, 10 words are allocated to each Special I/O Unit based on its unit number setting. Refer to the operation manuals for individual Special I/O Units for details. The Special I/O Unit Area ranges from CIO 2000 to CIO 2959 (10 words × 96 Units). Special I/O Unit...
  • Page 411 Ten words are allocated to each Special I/O Unit in the Special I/O Unit Area (CIO 2000 to CIO 2959) based on the unit number set on the front of each Unit. The data in the Special I/O Unit Area is refreshed in the CPU Unit every cycle during I/O refreshing (just after execution of the END(001) instruction).
  • Page 412: Cpu Bus Units

    • I/O refreshing is executed using IORF(097) or FIORF(225) (CJ1-H-R CPU Units only) for the same Special I/O Unit. • Data is read or written to or from the memory area using IORD (222) or IOWR(223) for the same Special I/O Unit.
  • Page 413 Section 8-6 Some models transfer data in both directions, from the DM Area to the Unit and from the Unit to the DM Area. See the Unit’s Operation Manual for details on data transfers. These 100 words are generally used to hold initial settings for the CPU Bus Unit.
  • Page 414 Data Exchange with CPU Bus Units Section 8-6 Cyclic I/O refreshing will not be performed for a CPU Bus Unit while its Initial- ization Flag is ON.
  • Page 415: Memory Areas

    9-22-2 Registered I/O Tables ........
  • Page 416: Introduction

    Section 9-1 Introduction Introduction The CPU Unit’s memory (RAM with battery back-up) can be divided into three parts: the User Program Memory, I/O Memory Area, and Parameter Area. This section describes the I/O Memory Area and Parameter Area. I/O Memory Area This region of memory contains the data areas which can be accessed by instruction operands.
  • Page 417: I/O Memory Areas

    Section 9-2 I/O Memory Areas I/O Memory Areas 9-2-1 I/O Memory Area Structure The following table shows the basic structure of the I/O Memory Area. Area Size Range Task External Word Access Change Status at Forc- usage I/O alloca- access...
  • Page 418 DR15 (Note 8.) Note 1. The I/O Area can be expanded to CIO 0000 to CIO 0999 by changing the first words allocated to Racks. 2. Bits can be manipulated using TST(350), TSTN(351), SETB(532), RSTB(533), OUTB(534). 3. Index registers and data registers can be used either individually by task or they can be shared by all the tasks (CJ1-H and CJ1M CPU Units only).
  • Page 419: Overview Of The Data Areas

    CIO 6143 Note 1. It is possible to use CIO 0080 to CIO 0999 for I/O words by making the ap- propriate settings for the first words on the Racks. Settings for the first words on the Racks can be made using the CX-Programmer to set the first...
  • Page 420 Rack addresses in the I/O table. The settings range for the first Rack ad- dresses is from CIO 0000 to CIO 0900. 2. The parts of the CIO Area that are labelled “Not used” may be used in pro- gramming as work bits. In the future, however, unused CIO Area bits may be used when expanding functions.
  • Page 421 The Auxiliary Area contains flags and control bits used to monitor and control PLC operation. This area is divided into two parts: A000 to A447 are read- only and A448 to A959 can be read or written. Refer to 9-11 Auxiliary Area for details on the Auxiliary Area.
  • Page 422 These flags are read as bits. A Completion Flag is turned ON by the system when the corresponding timer times out (the set time elapses). Timer PVs The PVs are read and written as words (16 bits). The PVs count up or down as the timer operates.
  • Page 423 These flags are read as bits. A Completion Flag is turned ON by the system when the corresponding counter counts out (the set value is reached). Counter PVs The PVs are read and written as words (16 bits). The PVs count up or down as the counter operates. Condition Flags...
  • Page 424: Data Area Properties

    Section 9-2 I/O Memory Areas 9-2-3 Data Area Properties Content after Fatal Errors, Forced Set/Reset Usage Area Fatal Error Generated Forced Set/ Forced Reset Execution of FALS(007) Other Fatal Error Functions IOM Hold Bit IOM Hold Bit IOM Hold Bit...
  • Page 425: I/O Area

    1. Mode changed from PROGRAM to RUN/MONITOR or vice-versa. 2. The PLC Setup’s “IOM Hold Bit Status at Startup” setting determines whether the IOM Hold Bit’s status is held or cleared when the PLC is turned I/O Area I/O Area addresses range from CIO 0000 to CIO 0159 (CIO bits 000000 to...
  • Page 426 Input Bits A bit in the I/O Area is called an input bit when it is allocated to an Input Unit. Input bits reflect the ON/OFF status of devices such as push-button switches, limit switches, and photoelectric switches. There are three ways for the status of input points to be refreshed in the PLC: normal I/O refreshing, immediate refreshing, and IORF(097) refreshing.
  • Page 427 When the immediate refreshing variation of an instruction is specified by inputting an exclamation point just before the instruction, and the instruction’s operand is an input bit or word, the word containing the bit or the word itself will be refreshed just before the instruction is executed. This immediate refreshing is performed in addition to the normal I/O refreshing performed once each cycle.
  • Page 428 Limitations on Input bits There is no limit on the number of times that input bits can be used as nor- mally open and normally closed conditions in the program and the addresses can be programmed in any order.
  • Page 429 0.5 ms to 32 ms. Note If the time is set to 0 ms, there will still be an ON delay time of 20 µs max. and an OFF delay time of 300 µs due to delays caused by internal elements.
  • Page 430 The following IORF(097) instruction refreshes the status of all I/O points in I/O Area words CIO 0000 to CIO 0003. The status of input points is read from the Input Units and the status of output bits is written to the Output Units.
  • Page 431: Data Link Area

    Refer to the Controller Link Units Operation Manual (W309) for more details. Words in the Link Area can be used in the program when LR is not set as the data link area for Controller Link Networks and PLC Links are not used.
  • Page 432: Cpu Bus Unit Area

    1. The operating mode is changed from PROGRAM mode to RUN/MONITOR mode or vice-versa and the IOM Hold Bit is OFF. 2. The PLC’s power supply is cycled and the IOM Hold Bit is OFF or not pro- tected in the PLC Setup.
  • Page 433 1. The operating mode is changed from PROGRAM to RUN or MONITOR mode or vice-versa and the IOM Hold Bit is OFF. 2. The PLC’s power supply is cycled and the IOM Hold Bit is OFF or not pro- tected in the PLC Setup.
  • Page 434: Special I/O Unit Area

    The Special I/O Unit Area contains 960 words with addresses ranging from CIO 2000 to CIO 2959. Words in the Special I/O Unit Area are allocated to CJ to transfer data such as the operating status of the Unit. Each Unit is allocated 10 words based on its unit number setting.
  • Page 435: Serial Plc Link Area

    1. The operating mode is changed from PROGRAM mode to RUN/MONITOR mode or vice-versa and the IOM Hold Bit is OFF. 2. The PLC’s power supply is cycled and the IOM Hold Bit is OFF or not pro- tected in the PLC Setup.
  • Page 436: Devicenet Area

    FALS(007) is executed.) IOM Hold Bit Operation If the IOM Hold BIt (A50012) is ON, the contents of the Serial PLC Link Area will not be cleared when a fatal error occurs or the operating mode is changed from PROGRAM mode to RUN/MONITOR mode or vice-versa.
  • Page 437: Internal I/O Area

    1. The operating mode is changed from PROGRAM to RUN or MONITOR mode or vice-versa and the IOM Hold Bit is OFF. 2. The PLC’s power supply is cycled and the IOM Hold Bit is OFF or not pro- tected in the PLC Setup.
  • Page 438: Holding Area

    1. The operating mode is changed from PROGRAM to RUN or MONITOR mode or vice-versa and the IOM Hold Bit is OFF. 2. The PLC’s power supply is cycled and the IOM Hold Bit is OFF or not pro- tected in the PLC Setup.
  • Page 439: Auxiliary Area

    Input Unit Reset input There are no restrictions in the order of using bit address or in the number of N.C. or N.O. conditions that can be programmed. 9-11 Auxiliary Area The Auxiliary Area contains 960 words with addresses ranging from A000 to A959).
  • Page 440 The table is organized according to the functions of the flags and bits. Some of these functions are not supported by some CPU Unit models and unit ver- sions. For more details or to look up a bit by its address, refer to Appendix C Auxiliary Area.
  • Page 441 Address Description Access CPU Bus Unit Initialization A30200 to These flags correspond to CPU Bus Units 0 to 15. A flag will Read-only Flags A30215 be ON while the corresponding Unit is initializing after the power is turned ON or the Unit’s Restart Bit (in A501) is turned ON.
  • Page 442 Running Timer turned ON. (Unit versions 3.0 or later) 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.
  • Page 443 Read/write ■ Output Control Name Address Description Access Output OFF Bit A50015 Turn this bit ON to turn OFF all outputs from Basic I/O Units, Read/write Output Units, and Special I/O Units. ■ Differentiate Monitor Name Address Description Access Differentiate Monitor...
  • Page 444 File Missing Flag A34311 ON when an attempt is made to read a file that doesn’t exist, Read-only or an attempt is made to write to a file in a directory that doesn’t exist. File Memory Operation Flag A34313 ON while any of the following operations is being executed.
  • Page 445 Address Description Access Simple Backup Write Capacity A397 If a write for a simple backup operation fails, A397 will con- Read-only tain the Memory Card capacity that would have been required to complete the write operation. The value is in Kbytes.
  • Page 446 File names are stored in the following order: A654 to A657 (i.e., from the lowest word to the highest), and from the high- est byte to the lowest. If a file name is less than eight charac- ters, the lowest remaining bytes and the highest remaining word will be filled with spaces (20 hex).
  • Page 447 Description Access Instruction Processing Error A29508 This flag and the Error Flag (ER) will be turned ON when an Read-only Flag instruction processing error has occurred and the PLC Setup has been set to stop operation for an instruction error.
  • Page 448 PLC Setup Error Location A406 When there is a setting error in the PLC Setup, the location Read-only of that error is written to A406 in 16 bits binary. The location is given as the address set on the Programming Console.
  • Page 449 ON when the Detect Interrupt Task Errors setting in the PLC Read-only (Non-fatal error) Setup is set to “Detect” and one of the following occurs for the same Special I/O Unit. FIORF(225), IORF(097) (CJ1-H-R CPU Units only), IORD(222) or IOWR(223) in a cyclic task are competing with FIORF(225), IORF(097), IORD(222) or IOWR(223) in an interrupt task.
  • Page 450 ON when an error occurs in a data transfer between the Read-only (Fatal error) CPU Unit and a Unit mounted to a slot or the End Cover is not connected to the CPU Rack or an Expansion Rack. I/O Bus Error Slot Number...
  • Page 451 The Duplication Error Flag (A40113) and the corresponding Read-only cation Flags A41015 flag in A410 will be turned ON when a CPU Bus Unit’s unit number has been duplicated. Bits 00 to 15 correspond to unit numbers 0 to F. CPU Bus Unit Error, Unit...
  • Page 452 Clock Information Name Address Description Access Clock Data The clock data from the clock built into the CPU Unit is stored here in BCD. Read-only A35100 to Seconds: 00 to 59 (BCD) Read-only A35107 A35108 to Minutes: 00 to 59 (BCD)
  • Page 453 A72100 to A72107: Hour (00 to 23) A72108 to A72115: Day of month (01 to 31) A72200 to A72207: Month (01 to 12) A72208 to A72215: Year (00 to 99) Note This data is supported only by CPU Units with unit version 3.0 or later.
  • Page 454 (See note.) A749 last time that power was turned ON. The data is BCD and the storage format is the same as words A720 to A722. Note This data is supported only by CPU Units with unit version 3.0 or later.
  • Page 455 Name Address Description Access User Program Date A090 to These words contain in BCD the date and time that the user Read-only (Not supported by CJ1@- A093 program was last overwritten. CPU@@ CPU Units.) A09000 to A09007: Seconds (00 to 59)
  • Page 456 PMCR) can be executed with the corresponding port num- ber or background execution can be executed with the corre- sponding port number (CS1-H CPU Units only). Bits 00 to 07 correspond to communications ports 0 to 7. When the simple backup operation is used to performed a...
  • Page 457 Read-only work Communications Error A21507 tions error occurs. Bits 00 to 07 correspond to ports 0 to 7. Use the Used Communications Port Number stored in A218 to determine which flag to access. Determine the cause of the error according to the Communications Port Completion Codes stored in A203 to A210.
  • Page 458 The corresponding bit will be ON when the peripheral port is Read-only cations Flags A39407 communicating with a PT in NT link mode. Bits 0 to 7 corre- spond to units 0 to 7. Peripheral Port PT Priority A39408 to...
  • Page 459 The corresponding flag will be ON when the settings for that Read/write 15, Ports 1 to 4 Settings A63504 port are being changed. Change Bits (Bits 1 to 4 in A620 to A635 correspond to ports 1 to 4 in Communications Units 0 to 15.) Instruction-related Information Name Address Description...
  • Page 460: Fb Pro

    0001 to FFFF hex (Unit: 0.1 s; Range: 0.1 to 6553.5) 0000 hex: 2 s Note These Auxiliary Area bits/words are not to be written by the user. The number of resends and response monitoring time must be set by the user in the FB...
  • Page 461 Auxiliary Area Auxiliary Area Flags and Bits for Built-in Inputs The following tables show the Auxiliary Area words and bits that are related to the CJ1M CPU Unit's built-in inputs. These allocations apply to CPU Units equipped with the built-in I/O only.
  • Page 462 High-speed Counter A27400 These flags indicate whether the PV is within the Read only • Cleared when power is turned specified ranges when high-speed counter 0 is being operated in range-comparison mode.
  • Page 463 This flag indicates when an overflow or under- Read only • Cleared when power is turned flow has occurred in the high-speed counter 0 PV. (Used only when the counting mode is set to Overflow/Underflow • Cleared when Linear Mode.) Flag operation starts.
  • Page 464 This flag indicates when an overflow or under- Read only • Cleared when power is turned flow has occurred in the high-speed counter 1 PV. (Used only when the counting mode is set to Overflow/Underflow • Cleared when Linear Mode.) Flag operation starts.
  • Page 465 A53101) is ON. Auxiliary Area Flags and Bits for Built-in Outputs The following tables show the Auxiliary Area words and bits that are related to the CJ1M CPU Unit's built-in outputs. These allocations apply to CPU Units equipped with the built-in I/O only.
  • Page 466 Address Description Read/Write Times when data is accessed Pulse Output 0 A28000 This flag will be ON when pulses are being out- Read only • Cleared when power is turned Accel/Decel Flag put from pulse output 0 according to an ACC(888) or PLS2(887) instruction and the out- •...
  • Page 467 1: Stop error occurred. error occurs. Pulse Output 1 A28100 This flag will be ON when pulses are being out- Read only • Cleared when power is turned Accel/Decel Flag put from pulse output 1 according to an ACC(888) or PLS2(887) instruction and the out- •...
  • Page 468 Address Description Read/Write Times when data is accessed Pulse Output 1 Out- A28103 ON when the number of output pulses set with Read only • Cleared when power is turned put Completed Flag the PULS(886)/PLS2(887) instruction has been output through pulse output 1.
  • Page 469 This is the CW limit input signal for pulse output Read/Write Cleared when power Limit Input Signal 0, which is used in the origin search. To use this is turned ON. Flag signal, write the input from the actual sensor as an input condition in the ladder program and out- put the result to this flag.
  • Page 470: Tr (Temporary Relay) Area

    TR bits are useful when there are several output branches and interlocks cannot be used. The TR bits can be used as many times as required and in any order required as long as the same TR bit is not used twice in the same instruction block.
  • Page 471: Timer Area

    000000 000001 TR 0 000002 000003 TR 0 000004 000005 In this example, a TR bit is used when an output is connected to a branch point without a separate execution condition. Operand Instruction 000000 TR 0 000001 000002 TR 0...
  • Page 472 Completion Flag will be cleared when power is cycled. 2. If the IOM Hold BIt (A50012) is ON and the PLC Setup’s “IOM Hold Bit Sta- tus at Startup” setting is set to protect the IOM Hold Bit, the PV and Com- pletion Flag will be retained when the PLC’s power is cycled.
  • Page 473: Counter Area

    Timer PVs cannot be force-set or force-reset, although the PVs can be refreshed indirectly by force-setting/resetting the Completion Flag. There are no restrictions in the order of using timer numbers or in the number of N.C. or N.O. conditions that can be programmed. Timer PVs can be read as word data and used in programming.
  • Page 474: Data Memory

    Section 9-15 Data Memory (DM) Area Data in the DM Area is retained when the PLC’s power is cycled or the PLC’s operating mode is changed from PROGRAM mode to RUN/MONITOR mode or vice-versa. Although bits in the DM Area cannot be accessed directly, the status of these bits can be accessed with the BIT TEST instructions, TST(350) and TSTN(351).
  • Page 475: Extended Data Memory (Em) Area

    9-16 Extended Data Memory (EM) Area The EM Area is supported by the CJ1 and CJ1-H CPU Units only. It is divided into 7 banks (0 to C) that each contain 32,768 words. EM Area addresses range from E0_00000 to EC_32767. This data area is used for general data storage and manipulation and is accessible only by word.
  • Page 476: Index Registers

    EM word in the same bank at that binary address. All of the words in the same EM bank (E00000 to E32767) can be indirectly addressed with hexadecimal values 0000 to 7FFF and words in the next EM bank (E00000 to E32767) can be addressed with hexadecimal values 8000 to FFFF.
  • Page 477 Index Registers Indirect Addressing When an Index Register is used as an operand with a “,” prefix, the instruction will operate on the word indicated by the PLC memory address in the Index Register, not the Index Register itself. Basically, the Index Registers are I/O memory pointers.
  • Page 478 MOVE TO REGISTER instruction I/O memory address MOVR(560) 0002 IR0 Pointer #0001 #0020 Note The PLC memory addresses are listed in the diagram above, but it isn’t nec- essary to know the PLC memory addresses when using Index Registers.
  • Page 479 ,IR2 +5 , IR2 When the operand is treated as a bit, the leftmost 7 digits of the Index Reg- ister specify the word address and the rightmost digit specifies the bit num- ber. In this example, MOVR(560) sets the PLC memory address of CIO 000013 (0C000D hex) in IR2.
  • Page 480 1. The operating mode is changed from PROGRAM mode to RUN/MONITOR mode or vice-versa and the IOM Hold Bit is OFF. 2. The PLC’s power supply is cycled and the IOM Hold Bit is OFF or not pro- tected in the PLC Setup.
  • Page 481 Section 9-17 Index Registers Note Be sure to use PLC memory addresses in Index Registers. IR storage words for task 1 Task 1 D01001 and D01000 stored in IR0 Actual memory address of CIO 0000 (0000C000 Hex) stored in IR0...
  • Page 482: Data Registers

    Index Registers when addressing words indirectly. The value in a Data Register can be added to the PLC memory address in an Index Register to specify the absolute memory address of a bit or word in I/O memory.
  • Page 483: Task Flags

    Section 9-19 Task Flags 2. The PLC’s power supply is cycled and the IOM Hold Bit is OFF or not pro- tected in the PLC Setup. IOM Hold Bit Operation If the IOM Hold BIt (A50012) is ON, the Data Registers won’t be cleared when a FALS error occurs or the operating mode is changed from PROGRAM mode to RUN/MONITOR mode or vice-versa.
  • Page 484: Condition Flags

    Note The CX-Programmer treats condition flags as global symbols beginning with All Condition Flags are cleared when the program switches tasks, so the sta- tus of the ER and AER flags are maintained only in the task in which the error occurred.
  • Page 485 Always OFF. (Always 0.) Using the Condition Flags The Condition Flags are shared by all of the instructions, so their status may change often in a single cycle. Be sure to read the Condition Flags immedi- ately after the execution of instruction, preferably in a branch from the same execution condition.
  • Page 486: Clock Pulses

    Section 9-21 Clock Pulses 9-21 Clock Pulses The Clock Pulses are flags that are turned ON and OFF at regular intervals by the system. Name Label Symbol Name on Operation Programming Console 0.02 s Clock Pulse 0.02s P_0_02_s 0.02 s ON for 0.01 s...
  • Page 487: Parameter Areas

    The Registered I/O Tables are tables in the CPU Unit that contain the informa- tion on the model and slot location of all of the Units mounted to the CPU Rack and Expansion Rack. The I/O Tables are written to the CPU Unit with a Programming Device operation.
  • Page 488: Routing Tables

    Table The I/O Setting Error Flag (A40110) will be turned ON if the models and loca- tions of the Units actually mounted to the PLC (CPU Rack and Expansion Racks) do not match the information in the Registered I/O Table.
  • Page 489: Cpu Bus Unit Setting

    Local network Unit number Relay Network Table This table lists the network address and node number of the first relay node to contact in order to reach the destination network. The destination network is reached through these relay nodes. Local Network Table This table lists the network address and unit number of the Communications Unit connected to the local PLC.
  • Page 490 Parameter Areas Section 9-22...
  • Page 491: Cpu Unit Operation And The Cycle Time

    10-1-3 Startup Initialization ........
  • Page 492 10-5-23 Network Instructions ........
  • Page 493: Cpu Unit Operation

    10-1-1 General Flow The following flowchart shows the overall operation of the CPU Unit. Note The CPU Unit’s processing mode is set to Normal Mode, Parallel Processing with Synchronous Memory Access, or Parallel Processing with Asynchronous Memory Access in the PLC Setup (Programming Console address 219, bits 08 to 15).
  • Page 494 Section 10-1 CPU Unit Operation Parallel Processing (CJ1-H CPU Units Only) The following two types of processing are performed in parallel in either of the Parallel Processing Modes. 1,2,3... 1. Program execution: Includes user program execution and I/O refreshing. It is this cycle time that is monitored from a Programming Device.
  • Page 495: I/O Refreshing And Peripheral Servicing

    DM Area) • Refreshing Unit-specific data for Special I/O Units and CPU Bus Units. All I/O refreshing is performed in the same cycle (i.e., time slicing is not used). I/O refreshing is always performed after program execution (even in a Parallel Processing Mode for CJ1-H CPU Units).
  • Page 496: Startup Initialization

    Most peripheral servicing for CJ-series PLCs involved FINS commands. The specific amount of time set in the system is allocated to each type of servicing and executed every cycle. If all servicing cannot be completed within the allo- cated time, the remaining servicing is performed the next cycle.
  • Page 497: Cpu Unit Operating Modes

    CPU Unit Operating Modes Note 1. The I/O memory is held or cleared according to the status of the IOM Hold Bit and the setting for IOM Hold Bit Status at Startup in the PLC Setup (read only when power is turned ON).
  • Page 498: Status And Operations In Each Operating Mode

    • Any task that has not yet been executed, will be in disabled status (INI). Executed if inter- rupt condition is • A task will go to READY status if the task is set to go to READY status at star- met. tup or the TASK ON (TKON) instruction has been executed for it.
  • Page 499: Power Off Operation

    1. The CPU Unit will stop. 2. All outputs from Output Units will be turned OFF. Note All output will turn OFF despite an I/O Memory Hold Bit or I/O Memory Hold Bit at power ON settings in the PLC Setup.
  • Page 500 Bit) and bits 22500 to 22507 (Power OFF Detection Time (Power OFF Detec- tion Delay Time) Bits) cannot be used. 85% of the rated voltage or less (DC power supply: 80% or less for PD025, 90% or less for PD022) 10 ms...
  • Page 501 Description of Operation 1,2,3... 1. Power OFF will be detected if the 100 to 120 V AC, 200 to 240 V AC or 24- V DC power supply falls below 85% (80% for CJ1W-PD025 DC Power Sup- ply Units or 90% for CJ1W-PD022 DC Power Supply Units) of the minimum...
  • Page 502: Instruction Execution For Power Interruptions

    CJ1W-PD025 DC Power Supply Units, and somewhere between 2 to 10 ms for CJ1W-PD022 DC Power Supply Units). 2. If the Power OFF Detection Delay Time is set (0 to 10 ms) in the PLC Set- up, then the following operations will be performed when the set time ex- pires.
  • Page 503 If the instructions is not completed within this time, they will be inter- rupted and the above processing will be performed. 2. If the Power OFF Interrupt Task is not disabled in the PLC Setup, the Power OFF Interrupt Task will be executed, and the CPU Unit will be reset without executing the protected instructions as soon as the power interruption is detected.
  • Page 504 Instructions between DI(693) and EI(694) are executed. CPU reset signal Interrupt processing is performed according to the contents of A530 and the PLC Setup as shown below. A530 (Power Interrupt Dis- A5A5 hex (masking power Not A5A5 hex abled Area Setting)
  • Page 505: Computing The Cycle Time

    Computing the Cycle Time 10-4 Computing the Cycle Time 10-4-1 CPU Unit Operation Flowchart The CJ-series CPU Units process data in repeating cycles from the oversee- ing processing up to peripheral servicing as shown in the following diagrams. Normal Processing Mode...
  • Page 506: Cycle Time Overview

    • Type and number of Basic I/O Units • Type and number of Special I/O Units, CPU Bus Units, and type of ser- vices being executed. • Specific servicing for the following Units •...
  • Page 507 • Fixed peripheral servicing time in the PLC Setup Note 1. The cycle time is not affected by the number of tasks that are used in the user program. The tasks that affect the cycle time are those cyclic tasks that are READY in the cycle.
  • Page 508 If a uniform peripheral servicing time has been set in the PLC Setup, servic- ing will be performed for the set time. At least 0.1 ms, however, will be ser- viced whether the peripheral servicing time is set or not.
  • Page 509 • Fixed peripheral servicing time in the PLC Setup The program execution cycle time is the total time required for the PLC to per- form the five operations shown in the following tables. Cycle time = (1) + (2) + (3) + (4) + (5)
  • Page 510 The program execution cycle time depends on the same conditions as Parallel Processing with Asynchronous Memory Access. The program execution cycle time is the total time required for the PLC to per- form the five operations shown in the following tables.
  • Page 511 The peripheral servicing cycle time depends on the same conditions as Paral- Time lel Processing with Asynchronous Memory Access. The peripheral servicing cycle time is the total time required for the PLC to perform the five operations shown in the following tables. Cycle time = (1) + (2)
  • Page 512: I/O Unit Refresh Times For Individual Units

    CJ1W-NC113/133 0.13 ms 0.14 ms 0.14 ms 0.18 ms Units + 0.7 ms for each instruction (IOWR/ IORD) used to transfer data. CJ1W-NC213/233 0.16 ms 0.18 ms 0.22 ms 0.26 ms + 0.7 ms for each instruction (IOWR/ IORD) used to transfer data.
  • Page 513 I/O memory areas for all slaves. Increase in Cycle Time The increase in the cycle time will be the I/O refresh times from the following Caused by CPU Bus Units table plus the refresh time required for specific Unit functions.
  • Page 514 0.2 ms + No. of sam- pled words × 0.8 µs Unit Note The influence on the cycle time for CJ1-H-R CPU Units for Special I/O Units and CPU Bus Units is the same as that for the CJ1-H CPU Units.
  • Page 515: Cycle Time Calculation Example

    Example 2: Application Containing Calculations and Special I/O Units The following example shows the method used to calculate the cycle time when Basic I/O Units and Special I/O Units are connected in the PLC and the program consists of 20K steps of basic instructions, data movement instruc- tions, and floating-point calculation instructions.
  • Page 516: Online Editing Cycle Time Extension

    Console or CX-Programmer) while the CPU Unit is operating in MONITOR mode to change the program, the CPU Unit will momentarily sus- pend operation while the program is being changed. The period of time that the cycle time is extended is determined by the following conditions.
  • Page 517: I/O Response Time

    The I/O response time is the time it takes from when an Input Unit’s input turns ON, the data is recognized by the CJ-series CPU Unit, and the user pro- gram is executed, up to the time for the result to be output to an Output Unit’s output terminals.
  • Page 518: Interrupt Response Times

    20.0 ms Minimum I/O response time = 1.5 ms + 20 ms + 0.2 ms = 21.7 ms Maximum I/O response time = 1.5 ms + (20 ms × 2) + 0.2 ms = 41.7 ms 10-4-7 Interrupt Response Times...
  • Page 519 The maximum interrupt response time for scheduled interrupt tasks is 0.1 ms. Also, there a deviation of 50 µs from the specified scheduled interrupt time (minimum of 0.2 ms, for CJ1-H-R CPU Units) due to the time interval required for actually starting the scheduled interrupt task.
  • Page 520: Instruction Execution Times And Number Of Steps

    (steps) column. The number of steps required in the user program area for each of the CJ-series instructions varies from 1 to 15 steps, depending upon the instruction and the operands used with it. The number of steps in a pro- gram is not the same as the number of instructions.
  • Page 521: Sequence Input Instructions

    OR TST 0.11 0.14 0.24 0.37 0.35 0.35 OR BIT TEST NOT OR TSTN 0.11 0.14 0.24 0.37 0.35 0.35 Note When a double-length operand is used, add 1 to the value shown in the length column in the following table...
  • Page 522: Sequence Output Instructions

    0.45 !OUTB +21.42 +21.42 +21.52 +23.22 +23.22 Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-3 Sequence Control Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 523: Timer And Counter Instructions

    0.55 When loop is ended Note 1. When a double-length operand is used, add 1 to the value shown in the length column in the following table. 2. Supported only by CPU Units Ver. 2.0 or later. 10-5-4 Timer and Counter Instructions...
  • Page 524: Comparison Instructions

    Section 10-5 Instruction Execution Times and Number of Steps Note 1. When a double-length operand is used, add 1 to the value shown in the length column in the following table. 2. CJ1-H-R CPU Units only. 10-5-5 Comparison Instructions Instruction...
  • Page 525: Data Movement Instructions

    11.90 RANGE COM- PARE Note 1. When a double-length operand is used, add 1 to the value shown in the length column in the following table. 2. Supported only by CPU Units Ver. 2.0 or later. 10-5-6 Data Movement Instructions...
  • Page 526: Data Shift Instructions

    Section 10-5 Instruction Execution Times and Number of Steps Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-7 Data Shift Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 527: Increment/Decrement Instructions

    – –B 11.9 14.9 DOUBLE DECRE- – –BL 10.7 MENT BCD Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-9 Symbol Math Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 528: Conversion Instructions

    DOUBLE BCD 13.1 17.7 18.9 26.2 27.1 34.7 DIVIDE Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-10 Conversion Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 529 Section 10-5 Instruction Execution Times and Number of Steps Instruction Mnemonic Code Length ON execution time (µs) Conditions (steps) CPU6@H-R CPU6@H CPU4@H CPU4@ CJ1M CJ1M (See excluding CPU11/21 note 1.) CPU11/21 ASCII CONVERT 14.6 Converting 1 digit into ASCII 11.2 11.7...
  • Page 530: Logic Instructions

    0.32 0.40 0.56 0.67 0.80 0.80 PLEMENT Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-12 Special Math Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 531: Floating-Point Math Instructions

    21.3 31.1 43.773 ING-POINT MOVE FLOATING- MOVF 0.18 POINT (SINGLE) (See note 2.) Note 1. When a double-length operand is used, add 1 to the value shown in the length column in the following table. 2. CJ1-H-R CPU Units only.
  • Page 532: Double-Precision Floating-Point Instructions

    DOUBLE LOGA- LOGD 16.0 16.0 16.4 21.6 29.3 RITHM DOUBLE EXPO- PWRD 223.9 223.9 224.2 232.3 373.4 NENTIAL POWER Note When a double-length operand is used, add 1 to the value shown in the length column in the following table.
  • Page 533 732.0 For 1,000-word table STACK DATA SDEL 10.6 19.3 22.0 DELETE 354.0 354.0 436.0 732.0 744.0 For 1,000-word table Note When a double-length operand is used, add 1 to the value shown in the length column in the following table.
  • Page 534: Data Control Instructions

    GLOBAL SUB- GRET 0.90 1.26 1.96 2.04 2.04 ROUTINE ENTRY GLOBAL SUB- GSBS 0.43 0.86 1.60 1.80 1.80 ROUTINE RETURN Note When a double-length operand is used, add 1 to the value shown in the length column in the following table.
  • Page 535: Interrupt Control Instructions

    21.8 21.8 37.7 34.4 RUPTS Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-19 High-speed Counter and Pulse Output Instructions (CJ1M CPU21/ 22/23 CPU Units only) Instruction...
  • Page 536: Step Instructions

    Step control bit ON 11.8 11.8 13.7 24.4 13.8 18.3 Step control bit STEP START SNXT 10.0 12.1 14.0 Note When a double-length operand is used, add 1 to the value shown in the length column in the following table.
  • Page 537: Basic I/O Unit Instructions

    218.7 At end Note 1. When a double-length operand is used, add 1 to the value shown in the length column in the following table. 2. Read/write times depend on the Special I/O Unit for which the instruction is being executed.
  • Page 538: Serial Communications Instructions

    341.2 341.2 400.0 440.4 504.7 524.7 PORT SETUP Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-23 Network Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 539: Display Instructions

    11.3 11.3 14.7 14.7 Deleting displayed message Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-26 Clock Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 540: Failure Diagnosis Instructions

    207.5 207.5 283.6 283.6 320.7 336.0 First time Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-29 Other Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 541 Normal execution TIMWX 22.3 22.3 25.2 33.1 47.4 52.0 Default setting 24.9 24.9 27.8 35.7 46.2 53.4 Normal execution Note When a double-length operand is used, add 1 to the value shown in the length column in the following table.
  • Page 542: Text String Processing Instructions

    LD, AND, OR +<$ LD, AND, OR +>$ LD, AND, OR +>=$ Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-32 Task Control Instructions Instruction Mnemonic Code Length ON execution time (µs)
  • Page 543: Model Conversion Instructions (Unit Ver. 3.0 Or Later Only)

    1284.4 5814.1 5223.8 Counting 1,000 words Note When a double-length operand is used, add 1 to the value shown in the length column in the following table. 10-5-34 Special Function Block Instructions (Unit Ver. 3.0 or Later Only) Instruction Mnemonic...
  • Page 544 Total instruction processing time in function block definition section: 10 µs Execution time for 1 instance = 3.3 µs + (3 + 2) × 0.19 µs + 10 µs = 14.25 µs Note The execution time is increased according to the number of multiple instances when the same function block definition has been copied to multiple locations.
  • Page 545 Input variables with a 1-word data type (INT): 5 Output variables with a 1-word data type (INT): 5 Function block definition section: 100 steps Number of steps for 1 instance = 57 + (5 + 5) × 6 steps + 100 steps + 27 steps = 244 steps...
  • Page 546 Section 10-5 Instruction Execution Times and Number of Steps...
  • Page 547: Troubleshooting

    11-2-6 Power Supply Check........
  • Page 548: Error Log

    Error Log 11-1 Error Log Each time that an error occurs in a CJ PLC, the CPU Unit stores error infor- mation in the Error Log Area. The error information includes the error code (stored in A400), error contents, and time that the error occurred. Up to 20 records can be stored in the Error Log.
  • Page 549: Error Processing

    Year, month Error Log Pointer (error counter) Note The Error Log Pointer can be reset by turning ON the Error Log Pointer Reset Bit (A50014), effectively clearing the error log displays from the Programming Consoles or CX-Programmer. The contents of the Error Log Area will not be cleared by resetting the pointer.
  • Page 550: Error Codes And Error Flags

    Lit when the CPU Unit is communicating through the RS-232C port Note When two or more errors occur at the same time, the highest (most serious) error code will be stored in A400. Indicator Status and Error Conditions The following table shows the status of the CPU Unit’s indicators for errors that have occurred in RUN or MONITOR mode.
  • Page 551: Error Processing Flowchart

    FALS(007) error non-fatal errors (C101 to C2FF are stored for FALS numbers 001 to 511) 11-2-4 Error Processing Flowchart Use the following flowchart as a guide for error processing with a Program- ming Console. Error occurred during operation Is the POWER...
  • Page 552 (See note 2.) (See note 3.) error 1. The rack number will be given at *. 2. The FAL/FALS number will be given at ***. 3. The unit number will be given at **. 4. The master number will be given at *.
  • Page 553: Error Messages

    RUN or MONITOR mode. A Programming Device cannot be connected to the CPU if an CPU error has occurred. Note If a fatal operating error occurs, the indicators will be the same as shown below for CPU errors, but a Programming Device can be connected. This will enable distinguishing between the two types of error.
  • Page 554 CPU Unit is interrupted will be performed. For example, if the power OFF interrupt task is enabled, it will be executed. If power is then restored to the Expansion Rack, the CPU Unit will perform startup processing, i.e., the same operational status as existed before the power interrupt will not...
  • Page 555 Startup Condition The CJ1-H and CJ1M CPU Units support a Startup Condition setting. To start the CPU Unit in MONITOR or PROGRAM mode even if there is one or more Units that has not completed startup processing, set the Startup Con- dition to 1.
  • Page 556 Section 11-2 Error Processing If the IOM Hold Bit hasn’t been turned ON to protect I/O memory, all non- retained areas of I/O memory will be cleared when a fatal error other than FALS(007) occurs. When the IOM Hold Bit is ON, the contents of I/O memory will be retained but all outputs will be turned OFF.
  • Page 557 The same I/O word has been Check allocations to Units on the rack DPL ERR Expansion allocated to more than one number whose bit in ON in A40900 to Rack Dupli- Basic I/O Unit. A40903. Correct the allocations so that cate Rack...
  • Page 558 TKON(820) and generate a task error. TKOF(821). 1) There isn’t an executable Make sure that all of the task numbers cyclic task. specified in TKON(820), TKOF(821), 2) There isn’t a program allo- and MSKS(690) instructions have corre- cated to the task.
  • Page 559 (The following Units must be set as a 16-point Units in the If the number of Units is not correct, turn I/O tables made on the CX- OFF the power supply and correctly Programmer because they connect the proper Units.
  • Page 560 Flag PLC Setup. Check the Maximum Interrupt Task Pro- cessing Time in A440 and see if the Cycle Time Watch Time can be changed. The cycle time can be reduced by divid- ing unused parts of the program into...
  • Page 561 COMM Flashing Connect a Programming Console to display the error message or use the error log window on the CX-Programmer. The cause of the error can be deter- mined from the error message and related Auxiliary Area flags and words.
  • Page 562 Section 11-2 Error Processing Errors are listed in order of importance. When two or more errors occur at the same time, the more serious error’s error code will be recorded in A400. Error Program- Error Flag and Probable cause Possible remedy...
  • Page 563 Flag Restart the Unit by toggling its Restart The corresponding flag in Bit or turn the power OFF and ON again. A417: CPU A417 is turned ON to indi- Replace the Unit if it won’t restart.
  • Page 564 ERR/ALM PRPHL COMM Check the setting of pin 4 on the DIP switch and the peripheral port settings in the PLC Setup. Also check the cable connections. RS-232C Port Communications Error A communications error has occurred in communications with the device con- nected to the RS-232C port if the indicators have the following conditions.
  • Page 565: Power Supply Check

    Section 11-2 Error Processing 11-2-6 Power Supply Check The allowable voltage ranges are shown in the following table. Power Supply Unit Power supply Allowable voltage voltage range CJ1W-PA205R 100 to 240 V AC 85 to 264 V AC CJ1W-PA205C 100 to 240 V AC...
  • Page 566: Memory Error Check

    Confirm (autotransfer at that the required files are on the startup error) Memory Card and the pin 2 on the DIP switch is OFF. A40310 (flash The write life of the flash memory has memory error) been exceeded.
  • Page 567: Program Error Check

    Not related to problem. An attempt was made to start the task of the specified number with an interrupt. Check the CPU Bus Unit. There is no END(001) in the task A29511 (No END that stopped the program (A294).
  • Page 568: Cycle Time Too Long Error Check

    Reduce the frequency of interrupts. There may be a bug in the program. Check all tasks for the following instructions. FOR and LOOP JMP, CJP, and CPN 11-2-10 PLC Setup Setting Error Check PLC Setup setting error occurred.
  • Page 569: Battery Error Check

    Section 11-2 Error Processing 11-2-11 Battery Error Check Battery error occurred. Set the PLC Setup so that battery errors are not detected. (DM Area contents may be unstable when this Battery-free operation setting is used.) required? Refer to the CS/CJ Programming Manual (W394) for details.
  • Page 570: I/O Check

    Section 11-2 Error Processing 11-2-13 I/O Check The I/O check flowchart is based on the following ladder diagram section assuming that SOL1 does not turn ON. (LS1) (LS2) 000002 000003 SOL1 000500 000500 START Indicator of 000500 normal? Check terminal...
  • Page 571: Environmental Conditions Check

    Check the structure Is the installation of the panel and environment okay? the installation site. (See note.) End. Note Check for corrosive gases, flammable gases, dust, dirt, salts, metal dust, direct light, water, oils, and chemicals.
  • Page 572: Troubleshooting Racks And Units

    Error occurs in units of 8 points. I/O bit turns ON All bits in one Unit do not turn ON. Special I/O Units Refer to the Operation Manual for the Special I/O Unit to troubleshoot any other errors. Symptom Cause...
  • Page 573 Power Supply Unit, I/O Units, I/O Control/ Interface Unit, and I/O Connecting Cable. I/O Control Unit and I/O Inter- This is not an error. These Units are not allo- face Units do not appear on cated I/O words and thus are not registered CX-Programmer I/O table.
  • Page 574 (2) Input bit number is used for output Correct program. instruction. Input irregularly turns ON/ (1) External input voltage is low or unstable. Adjust external input voltage to within rated OFF. range. (2) Malfunction due to noise. Take protective measures against noise,...
  • Page 575 Adjust voltage to within rated range. (3) Terminal block screws are loose. Tighten screws (4) Faulty terminal block connector contact. Replace terminal block connector. (5) An overcurrent (possibly caused by a Replace fuse or Unit. short at the load) resulted in a blown fuse in the Output Unit.
  • Page 576 Section 11-3 Troubleshooting Racks and Units...
  • Page 577: Inspection And Maintenance

    12-1-1 Inspection Points........
  • Page 578: Inspections

    Inspection is recommended at least once every six months to a year, but more frequent inspections will be necessary in adverse environments. Take immediate steps to correct the situation if any of the conditions in the fol- lowing table are not met.
  • Page 579: Unit Replacement Precautions

    • Check the new Unit to make sure that there are no errors. • If a faulty Unit is being returned for repair, describe the problem in as much detail as possible, enclose this description with the Unit, and return the Unit to your OMRON representative.
  • Page 580: Replacing User-Serviceable Parts

    • Retained regions of I/O memory If the battery is not installed or battery voltage drops too low, the internal clock will stop and the data in RAM will not be stable when the main power supply goes OFF. Battery Service Life and At 25°C, the maximum service life for batteries is five years whether or not...
  • Page 581 Low Battery Indicators If the PLC Setup has been set to detect a low-battery error, the ERR/ALM indicator on the front of the CPU Unit will flash when the battery is nearly dis- charged. When the ERR/ALM indicator flashes, connect a Programming Console to the peripheral port and read the error message.
  • Page 582 1,2,3... 1. Turn OFF the power to the CPU Unit. or If the CPU Unit has not been ON, turn it ON for at least five minutes and then turn it OFF. Note If power is not turned ON for at least five minutes before replacing the...
  • Page 583 UL standards require that batteries be replaced by experienced technicians. Always place an experienced technician in charge or battery replacement. !Caution Turn ON the power after replacing the battery for a CPU Unit that has been unused for a long time. Leaving the CPU Unit unused again without turning ON the power even once after the battery is replaced may result in a shorter battery life.
  • Page 584 Section 12-2 Replacing User-serviceable Parts...
  • Page 585: Specifications Of Basic I/O Units

    CJ1W-IDP01 Input Unit Note Although 16 I/O bits (1 word) are allocated, only 8 of these can be used for external I/O. This Unit is also treated as a 16-point I/O Unit in the I/O tables. Basic Mixed I/O Units...
  • Page 586 • I/O terminals in terminal connection diagrams are shown as viewed from the front panel of the Unit. • Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on all Units.
  • Page 587 Appendix A Specifications of Basic I/O Units CJ1W-ID201 12 to 24-V DC Input Unit (Terminal Block, 8 Points) Rated Input Voltage 12 to 24 V DC Rated Input Voltage Range 10.2 to 26.4 V DC Input Impedance 2.4 kΩ Input Current...
  • Page 588 16-point I/O Unit in the I/O tables. 3. Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-ID211 24-V DC Input Unit (Terminal Block, 16 Points)
  • Page 589 Note 1. The ON response time will be 20 µs maximum and OFF response time will be 400 µs maximum even if the response time are set to 0 ms due to internal element delays. 2. Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit.
  • Page 590 OFF Voltage/OFF Current 5 V DC max./1 mA max. ON Response Time 8.0 ms max. (Can be set to between 0 and 32 in the PLC Setup.) OFF Response Time 8.0 ms max. (Can be set to between 0 and 32 in the...
  • Page 591 • Be sure to wire both terminals B9 and B18 (COM1), and set the same polarity for both pins. Note The ON response time will be 20 µs maximum and OFF response time will be 300 µs maximum even if the response times are set to 0 ms due to internal element delays.
  • Page 592 1000 pF 560 Ω Input indicator 5.6 kΩ 1000 pF 560 Ω Number of Simultaneously ON Points vs. Ambient Temperature Characteristic 32 points at 48°C 32 points at 40°C Input voltage: 24 V DC Input voltage: 26.4 V DC 12 points/common at 55°C 10 points/common at 55°C...
  • Page 593 • Be sure to wire both terminals 3 and 4 (COM1), and set the same polarity for both pins. Note The ON response time will be 20 µs maximum and OFF response time will be 300 µs maximum even if the response times are set to 0 ms due to internal element delays.
  • Page 594 • The input power polarity can be connected in either direction. • Be sure to wire both terminals A9 and A18 (COM0) of CN1, and set the same polarity for both pins. • Be sure to wire both terminals B9 and B18 (COM1) of CN1, and set the same polarity for both pins.
  • Page 595 OFF Voltage/OFF Current 5 V DC max./1 mA max. ON Response Time 8.0 ms max. (Can be set to between 0 and 32 in the PLC Setup.) OFF Response Time 8.0 ms max. (Can be set to between 0 and 32 in the PLC Setup.)
  • Page 596 • The input power polarity can be connected in either direction. • Be sure to wire both terminals 23 and 24 (COM0) of CN1, and set the same polarity for both pins. • Be sure to wire both terminals 3 and 4 (COM1) of CN1, and set the same polarity for both pins.
  • Page 597 130 g max. Note The Input ON and OFF response times for Basic I/O Units can be set to 0 ms, 0.5 ms, 1 ms, 2 ms, 4 ms, 8 ms, 16 ms, or 32 ms in the PLC Setup. When the response times have been set to 0 ms, the ON response time will be 10 ms maximum and the OFF response time will be 40 ms maximum due to inter- nal element delays.
  • Page 598 Note 1. Use an input voltage of 90 V AC or less when connecting 2-wire sensors. 2. Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-INT01 Interrupt Input Unit (16 Points)
  • Page 599: Com

    C O M The polarity can be connected in either direction. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-IDP01 Quick-response Input Unit (16 Points)
  • Page 600 • The pulse width (ON time) that can be read by the Quick-response Input Unit is 0.05 ms. • Inputs read by the internal circuits are cleared when inputs are refreshed. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit.
  • Page 601 90 g max. Accessories None Note The ON response time will be 20 µs maximum and OFF response time will be 400 µs maximum even if the response times are set to 0 ms due to internal element delays. Circuit Configuration...
  • Page 602 • Be sure to wire both terminals A9 and B9 (COM (0 V)) of CN1. • Be sure to wire both terminals A10 and B10 (+V) of CN1. • Be sure to wire both terminals A9 and B9 (COM) of CN2, and set the same polarity for both pins.
  • Page 603 90 g max. Accessories None Note The ON response time will be 20 µs maximum and OFF response time will be 400 µs maximum even if the response times are set to 0 ms due to internal element delays. Circuit Configuration...
  • Page 604 • Be sure to wire both terminals 3 and 4 (COM0 (0 V)) of CN1. • Be sure to wire both terminals 1 and 2 (+V) of CN1. • Be sure to wire both terminals 3 and 4 (COM1) of CN2, and set the same polarity for both pins.
  • Page 605 100 g max. Accessories None Note The ON response time will be 20 µs maximum and OFF response time will be 400 µs maximum even if the response times are set to 0 ms due to internal element delays. Circuit Configuration...
  • Page 606 • Be sure to wire both terminals 3 and 4 (COM0 (+V)) of CN1. • Be sure to wire both terminals 1 and 2 ((0 V)) of CN1. • Be sure to wire both terminals 3 and 4 (COM1) of CN2, and set the same polarity for both pins.
  • Page 607 Accessories None Note 1. The ON response time will be 120 µs maximum and OFF response time will be 400 µs maximum even if the response times are set to 0 ms due to internal element delays. 2. The following restrictions apply when connecting 2-wire sensors.
  • Page 608 • Be sure to wire both terminals B20 and B10 (+V) of CN1. • Be sure to wire both terminals A9 and A18 (COM2) of CN2, and set the same polarity for both pins. • Be sure to wire both terminals B9 and B18 (COM3) of CN2, and set the same polarity for both pins.
  • Page 609 Accessories None Note 1. The ON response time will be 120 µs maximum and OFF response time will be 400 µs maximum even if the response times are set to 0 ms due to internal element delays. 2. The following restrictions apply when connecting 2-wire sensors.
  • Page 610 • Be sure to wire both terminals 1 and 2 (+V) of CN1. • Be sure to wire both terminals 23 and 24 (COM2) of CN2, and set the same polarity for both pins. • Be sure to wire both terminals 3 and 4 (COM3) of CN2, and set the same polarity for both pins.
  • Page 611 110 g max. Accessories None Note The ON response time will be 120 µs maximum and OFF response time will be 400 µs maximum even if the response times are set to 0 ms due to internal element delays. Circuit Configuration...
  • Page 612 • Be sure to wire both terminals 1 and 2 (+V) of CN1. • Be sure to wire both terminals 23 and 24 (COM2) of CN2, and set the same polarity for both pins. • Be sure to wire both terminals 3 and 4 (COM3) of CN2, and set the same polarity for both pins.
  • Page 613 Specifications of Basic I/O Units CJ1W-OC201 Contact Output Unit (Terminal Block, 8 Points) Max. Switching Capacity 2 A 250 V AC (cosφ = 1), 2 A 250 V AC (cosφ = 0.4), 2 A 24 V DC (16 A/Unit) Min. Switching Capacity...
  • Page 614 2 A 250 V AC, 2 A 24 V DC max. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-OC211 Contact Output Unit (Terminal Block, 16 Points) Max.
  • Page 615 2 A 250 V AC, 2 A 24 V DC max. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-OA201 Triac Output Unit (8 Points) Max.
  • Page 616 12 to 24 V DC, 10 mA min. Weight 110 g max. Note Although 16 I/O bits (1 word) are allocated, only 8 of these can be used for external I/O. This Unit is also treated as a 16-point I/O Unit in the I/O tables.
  • Page 617 When wiring, pay careful attention to the polarity of the external power supply. The load may operate incorrectly if the polarity is reversed. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-OD203 Transistor Output Unit (Terminal Block, 8 Points, Sinking)
  • Page 618 When wiring, pay careful attention to the polarity of the external power supply. The load may operate incorrectly if the polarity is reversed. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-OD211 Transistor Output Unit (Terminal Block, 16 Points, Sinking)
  • Page 619 When wiring, pay careful attention to the polarity of the external power supply. The load may operate incorrectly if the polarity is reversed. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-OD231 Transistor Output Unit (Fujitsu Connector, 32 Points,...
  • Page 620 None External Power Supply 10.2 to 26.4 V DC, 30 mA min. Weight 70 g max. Accessories None Note The maximum load currents will be 2.0 A/common and 4.0 A/Unit if a pressure-welded connector is used. Circuit Configuration Output indicator...
  • Page 621 12 to 24 V DC 12 to 24 V DC • When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed. • Be sure to wire both terminals A9 and A19 (COM0).
  • Page 622 I/O word m 12 to 24 V DC • When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed. • Be sure to wire both terminals 23 and 24 (COM0).
  • Page 623 Appendix A Specifications of Basic I/O Units • Be sure to wire both terminals 3 and 4 (COM1). • Be sure to wire both terminals 21 and 22 (+V). • Be sure to wire both terminals 1 and 2 (+V).
  • Page 624 12 to 24 V DC 24 V DC • When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed. • Be sure to wire both terminals A9 and A19 (COM0) of CN1.
  • Page 625 COM2 I/O word I/O word COM1 COM1 12 to 12 to 24 V DC 24 V DC • When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed.
  • Page 626 O U T07 Load short- circuit protection ERR indicator • The ERR indicator will light and the corresponding bit in A050 to A069 (Basic I/O Unit Information, two points per bit) will turn ON if an overcurrent or line disconnection is detected.
  • Page 627 • When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-OD204 Transistor Output Unit (Terminal Block, 8 Points, Sourcing)
  • Page 628 When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-OD212 Transistor Output Unit (Terminal Block, 16 Points,...
  • Page 629 When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed. Note Terminal numbers A0 to A9 and B0 to B9 are used in this manual, but they are not printed on the Unit. CJ1W-OD232 Transistor Output Unit (MIL Connector, 32 Points, Sourcing)
  • Page 630 ERR indicator When the output current of any output exceeds the detection current, the output for that point will turn OFF. At the same time, the ERR indicator will light and the corresponding flag (one for each common) in the Basic I/O...
  • Page 631 24 V DC 24 V DC • When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed. • Be sure to wire both terminals 21 and 22 (COM0 (+V)).
  • Page 632 20 MΩ between the external terminals and the GR terminal (100 V DC) Dielectric Strength 1,000 V AC between the external terminals and the GR terminal for 1 minute at a leakage current of 10 mA max. Number of Circuits 64 (16 points/common, 4 circuits) Internal Current Consumption 170 mA max.
  • Page 633 24 V DC 24 V DC • When wiring, pay careful attention to the polarity of the external power supply. The load may operate if the polarity is reversed. • Be sure to wire both terminals 21 and 22 (COM0 (+V)) of CN1.
  • Page 634 Contact Protection Circuit Arc killers are used with the Contact Output Unit in order to prolong the life of each Relay mounted to the Con- tact Output Unit, prevent noise, and reduce the generation of carbide and nitrate deposits. Arc killers can, how- ever, reduce relay life if not use correctly.
  • Page 635 Note Do not connect a capacitor as an arc killer in parallel with an inductive load as shown in the following dia- gram. This arc killer is very effective for preventing spark discharge at the moment when the circuit is opened.
  • Page 636 This section describes the load short-circuit protection of the CJ1W-OD202 Output Units. As shown below, normally when the output bit turns ON (OUT), the transistor will turn ON and then output cur- rent (Iout) will flow. If the output (Iout) is overloaded or short-circuited exceeding the detection current (Ilim), the output current (Iout) will be limited as shown in Figure 2 below.
  • Page 637 The CJ1W-OD202 turns ON an alarm output bit that corresponds to the external load output number. There is an alarm output bit for every common. When an alarm output bit turns ON, use a self-holding bit for the alarm in the user program and turn OFF the corresponding output.
  • Page 638 An an alarm output bit that corresponds to the external load output number is turned ON. There is an alarm output bit for every common. When an alarm output bit turns ON, use a self-holding bit for the alarm in the user program and turn OFF the corresponding output.
  • Page 639 Mounted in odd slot For example, when the CJ1W-OD212 is mounted in slot 0 on Rack 0, A05000 will turn ON if the output 8 is short-circuited. When the CJ1W-OD232 is mounted in slot 1 of Rack 0, A05009 will turn ON if the output m+1...
  • Page 640 Appendix A Specifications of Basic I/O Units...
  • Page 641: Cj1M Cpu Unit Built-In I/O Specifications

    2. When 0 ms is set, the ON response time due to internal components delay will be 30 µs max. for IN0 to IN5 or 2 µs max. for IN6 to IN9. The OFF response time will be 150 µs max. for IN0 to IN5 or 2 µs max.
  • Page 642 10.0 µs min. 5.0 µs min. 5.0 µs min. Differential-phase 50-kHz pulse input Maintain a spacing of 2.5 µs min. between Phase A/Phase B transitions 20.0 µs min. T1, T2, T3, and T4: 2.5 µs min. Phase-Z encoder input (IN2 and IN3) Phase-Z encoder input (IN2 and IN3) Maintain an ON time of 30 µs min.
  • Page 643 2 µs min. 4 µs min. Note 1. The load at the above values is taken as the resistance load, and the connecting cable impedance is not taken into account. 2. The pulse width during actual operation may be smaller than the above values as a result of pulse...
  • Page 644 Specifications Maximum Switching Capacity 300 mA, 4.75 to 26.4 V DC Maximum Output Frequency 1 kHz PWM Output Precision ON duty +5% -0% during 1 kHz output Output Pattern X 100% ON duty = Note The CJ1M-CPU21 supports only OUT4.
  • Page 645: Auxiliary Area

    A05007 Rack 0 Slot 0 Only the 4 most LSB are used for the CJ1W-OD202 (2 points per bit), only the LSB is used for the CJ1W- A05008 Basic I/O Unit OD212, OD204, MD232 and only the two most LSB Information, are used for the CJ1W-OD232.
  • Page 646 3) Minutes (bits 8 to 15), Seconds (bits 0 to 7) Seconds: 00 to 59, BCD Minutes: 00 to 59, BCD 4) Day of month (bits 8 to 15), Hours (bits 0 to 7) Hours: 00 to 23, BCD Day of month: 01 to 31, BCD...
  • Page 647 When a task switches from WAIT or INI to RUN sta- Cleared Cleared Not supported by Flag tus, this flag will be turned ON within the task for one CJ1@-CPU@@ CPU cycle only. Units 1: ON for first cycle (including transitions from WAIT...
  • Page 648 OFF when the next Explicit Message Instruction is executed. A214 A21400 First Cycle Each flag will turn ON for just one cycle after commu- Retained Cleared Flags after nications have been completed. Bits 00 to 07 corre- A21407 Network Com- spond to ports 0 to 7.
  • Page 649 A215 A21500 First Cycle Each flag will turn ON for just one cycle after a com- Retained Cleared Flags after munications error occurs. Bits 00 to 07 correspond to A21507 Network Com- ports 0 to 7. Use the Used Communications Port...
  • Page 650 The time is updated A40515 (CJ1-H CPU every cycle and is recorded in 16-bit binary. Units only) 0 to 4E20 hex, (0.0 to 2,000.0 ms in units of 0.1 ms) A270 to High-speed Contains the PV of high-speed counter 0. A271 con- Cleared...
  • Page 651 Retained Cleared Setting used for high- Counter 0 currently being incremented or decremented. The speed counter, valid counter PV for the current cycle is compared with the during counter opera- Count Direc- PLC in last cycle to determine the direction. tion.
  • Page 652 Retained Cleared Setting used for high- Counter 1 currently being incremented or decremented. The speed counter, valid counter PV for the current cycle is compared with the during counter opera- Count Direc- PC in last cycle to determine the direction. tion.
  • Page 653 PV after underflow: 80000000 hex A277 contains the leftmost 4 digits and A276 con- tains the rightmost 4 digits of the pulse output 0 PV. A279 contains the leftmost 4 digits and A278 con- tains the rightmost 4 digits of the pulse output 1 PV.
  • Page 654 Words Bits mode settings change A281 A28100 Pulse Output This flag will be ON when pulses are being output Retained Cleared Refreshed each cycle (See 1 Accel/Decel from pulse output 1 according to an ACC(888) or during oversee pro- note.)
  • Page 655 Related flags, Words Bits mode settings change A295 A29508 Instruction This flag and the Error Flag (ER) will be turned ON Cleared Cleared PLC Setup (Operation Processing when an instruction processing error has occurred when instruction error Error Flag and the PLC Setup has been set to stop operation for has occurred) an instruction error.
  • Page 656: Program

    Units only) Rack 3: A33612 to A33615 Example: The following would be stored if Rack 0 had 1 Unit, Rack 1 had 4 Units, Rack 2 had 8 Units and Rack 3 had 10 Units: A336 = A 8 4 1...
  • Page 657 1: Write not possible 0: Normal condition A34310 File Read ON when a file could not be read because of a mal- Retained Cleared Refreshed when file Error function (file is damaged or data is corrupted).
  • Page 658 Starting ory (bank number of the first formatted bank). All EM file formatting is per- Bank banks from this starting bank to the last bank in EM formed. (CJ1 and CJ1- are formatted for use as file memory. PLC Setup (EM File...
  • Page 659 A39115 A36001 to A39115 correspond to FAL numbers 001 A40215 to 511. The flag will be turned OFF when the error is cleared. 1: That FAL was executed 0: That FAL wasn’t executed A392 A39204 RS-232C Port ON when an error has occurred at the RS-232C port.
  • Page 660 1: Memory corruption umn. 0: Normal operation A39512 DIP Switch The status of pin 6 on the DIP switch on the front of Retained See Written every cycle. Pin 6 Status the CPU Unit is written to this flag every cycle.
  • Page 661 (Fatal error) Input Unit is connected in the wrong position (not slot 0 to 4, i.e., the 5 slots to the right of the CPU Unit). CPU Unit operation will stop and the ERR/ALM indi- cator on the front of the CPU Unit will light.
  • Page 662 Cleared Cleared A404 Flag the CPU Unit and a Unit mounted to a slot or when the End Cover is not connected to the CPU Rack or (Fatal error) an Expansion Rack. CPU Unit operation will stop and the ERR/ALM indi- cator on the front of the CPU Unit will light.
  • Page 663 PLC Setup. (Non-fatal error) The CPU Unit will continue operating and the ERR/ ALM indicator on the front of the CPU Unit will flash. 1: Error 0: No error This flag can be used to control an external warning light or other indicator to indicate that the battery needs to be replaced.
  • Page 664 ON when the Detect Interrupt Task Errors setting in Cleared Cleared A426, Error Flag the PLC Setup is set to “Detect” and one of the fol- PLC Setup lowing occurs for the same Special I/O Unit. (Non-fatal (Detect Interrupt Task...
  • Page 665 ON when the Interrupt Input Unit is not connected in Cleared Cleared A40110 Unit Position one of the five positions (slots 0 to 4) next to the CPU Not supported by Error Flag Unit on the CPU Rack. CJ1@-CPU@@ CPU...
  • Page 666 A40715 the meaning of the value written to bits A40700 to A40712. Values of 000 to 101 (0 to 5) correspond to causes 1 through 6 described in “Too Many I/O Points, Cause 1,” above. 000: Too many I/O total...
  • Page 667 Flags Each bit corresponds to a unit number. Bit 00 in A418 to bit 15 in A423 correspond to unit numbers 0 to 95. The CPU Unit will continue operating and the ERR/ ALM indicator on the front of the CPU Unit will flash.
  • Page 668 A40202 and the bit in these words corresponding to is turned ON or I/O is A43315 Error, Unit the Unit’s unit number are turned ON. Bits 00 to 15 recognized. Number Flags correspond to unit numbers 0 to F. A40202...
  • Page 669 Related Flags, Word mode Settings change A500 A50012 IOM Hold Bit Turn this bit ON to preserve the sta- 1: Retained Retained Cleared See Function column. tus of the I/O Memory when shifting (PLC 0: Not retained PLC Setup...
  • Page 670 Sampling When a data trace is started by turn- 0 to 1: Starts Retained Cleared Start Bit ing this bit from OFF to ON from a data trace Programming Device, the PLC will (sampling) begin storing data in Trace Memory...
  • Page 671 A52000 to A52007: Month (01 to 12) A52008 to A52015: Year (00 to 99) Note: If an error occurs in operation, the time of the error will be stored. If the operating mode is then changed to PROGRAM mode, the time that PROGRAM mode was entered will be stored.
  • Page 672 Turn this bit ON to disable online 1: Disabled Retained Cleared A52700 to A52707 ing Disable editing. The setting of this bit is valid 0: Not disabled only when A52700 to A52707 have been set to 5 A. A528 A52800...
  • Page 673 (See Counter 0 Phase-Z signal + Software reset, the note 1.) Reset Bit corresponding high-speed counter's PV will be reset if the phase-Z signal A53101 High-speed Retained Cleared is received while this bit is ON. Counter 1 When the reset method is set to Soft-...
  • Page 674 Note 1. CJ1M CPU Units with built-in I/O only. 2. These Auxiliary Area bits/words are not to be written by the user. The number of resends and re- sponse monitoring time must be set by the user in the FB communications instructions settings in the PLC Setup, particularly when using function blocks from the OMRON FB Library to execute FINS messages or DeviceNet explicit messages communications.
  • Page 675 Unit 0, 0: Not chang- the settings have been changed. Port 2 Set- tings Chang- It is also possible for the user to indi- ing Flag cate a change in serial port settings by turning these flags ON. A62003...
  • Page 676 Retained Cleared ment Error (A65015) is turned ON to replace the ment error Flag program, but there is an error. If the 0: No replace- Replacement Start Bit is turned ON ment error, or again, the Replacement Error Flag the Replace- will be turned OFF.
  • Page 677 A72700 to A72707: Hour (00 to 23) A72708 to A72715: Day of month (00 to 31) A72800 to A72807: Month (01 to 12) A72808 to A72815: Year (00 to 99) Note This data is supported by CPU Units with unit version 3.0 or later.
  • Page 678 A74200 to A74207: Hour (00 to 23) A74208 to A74215: Day of month (00 to 31) A74300 to A74307: Month (01 to 12) A74308 to A74315: Year (00 to 99) Note This data is supported by CPU Units with unit version 3.0 or later.
  • Page 679 Note This data is supported by CPU Units with unit version 3.0 or later. Note In CJ-series PLCs, the following flags are provided in a special read-only area and can be specified with the labels given in the table. These flags are not contained in the Auxiliary Area.
  • Page 680 Error record The following data would be generated in an error record if a memory error (error code 80F1) occurred on 1 April 1998 at 17:10:30 with the error located in the PLC Setup (04 hex). The following data would be generated in an error record if an FALS error with FALS number 001 occurred on...
  • Page 681 3. The contents of the error flags for a duplicate number error are as follows: Bits 0 to 7: Unit number (binary), 00 to 5F hex for Special I/O Units, 00 to 0F hex for CPU Bus Units Bits 8 to 14: All zeros.
  • Page 682 Network communications in- execution struction executed for port 0. The program is designed so that CMND(490) will be executed only when A20200 is ON. A300: Error Record Pointer Points to the next record to be used. Error record 1 Example...
  • Page 683 A20110: Online Editing Wait Flag Wait Online edit processing A20110 A50100 to A50115: CPU Bus Unit Restart Bits and A30200 to A30215: CPU Bus Unit Initialization Flags Automatically turned OFF by system. Example: Unit No. 1 A50101 (or at startup) A30201 Unit initialized.
  • Page 684 Illegal Area Access Error Flag A29510 Indirect DM/EM Addressing Error Flag A29509 Instruction Processing Error Flag (ER A29508 Flag goes ON) A42615: Interrupt Task Error Cause Flag Special I/O Unit Interrupt task 10 ms min. IORF(097) or FIORF(225) (See note.) Refreshed twice.
  • Page 685: Memory Map Of Plc Memory Addresses

    Parameter Areas: These areas contain CPU Unit system setting data, such as the PLC Setup, CJ-series CPU Bus Unit Setups, etc. An illegal access error will occur if an attempt is made to access any of the parameter areas from an instruction in the user program.
  • Page 686 Note The contents of the EM Area bank currently specified in the program is stored at these addresses. For example, if bank 1 is specified, the same contents as at 20000 to 27FFF will be stored at F8000 to FFFFF.
  • Page 687: Plc Setup Coding Sheets For Programming Console

    Appendix E PLC Setup Coding Sheets for Programming Console Use the following coding sheets when setting the PLC Setup from a Programming Console. Address 10@@@@ Value (hex) Rack 0, Slot 0 I/O Response Time 8 ms No filter 0.5 ms...
  • Page 688 Appendix E PLC Setup Coding Sheets for Programming Console Address 11@@@@ Value (hex) Rack 0, Slot 2 I/O Response Time 8 ms No filter 0.5 ms 1 ms 2 ms 4 ms 8 ms 16 ms 32 ms Value (hex)
  • Page 689 Appendix E PLC Setup Coding Sheets for Programming Console Address 50@@@@ High-speed Counter 0 Operation Settings Value (hex) Pulse input method Differential phase inputs Pulse + direction inputs Up/Down inputs Increment pulse input Value (hex) Reset method Z Phase and software reset, stop...
  • Page 690 Appendix E PLC Setup Coding Sheets for Programming Console Address High-speed counter 1: Operation settings 53@@@@ (Same as operation settings for 55@@@@ high-speed counter 0.) 60@@@@ Built-in Inputs IN0 to IN3 Operation Settings Value (hex) IN0 operation settings Normal (General-purpose inputs)
  • Page 691 Appendix E PLC Setup Coding Sheets for Programming Console Address 81@@@@ Display Startup Mode PRCN Mode on Programming Console’s mode switch PROGRAM mode MONITOR mode RUN mode Address 128@@@@ Value (hex) Low Battery Voltage Interrupt Task Error Detection Detection C000 Do not detect.
  • Page 692 19,200 bps 0008 38,400 bps 0009 57,600 bps 000A 115,200 bps Note Set 0000 to 0009 hex for standard NT Links and 000A hex for high- speed NT Links. Address 147@@@@ Peripheral Port Value (hex) Host link Unit No. 0000 No.
  • Page 693 0009 57,600 bps 000A 115,200 bps Note Set 0000 to 0009 hex for standard NT Link and 000A hex for high- speed NT Link. Set 0000 hex for standard Serial PLC Link and 000A hex for high-speed Serial PLC Link.
  • Page 694 Appendix E PLC Setup Coding Sheets for Programming Console Address 162@@@@ RS-232C Port Value (hex) No-protocol mode delay 0000 0 ms 0001 10 ms 270F 99,990 ms Address 163@@@@ RS-232C Port Value (hex) Host link Unit No. 0000 No. 0 0001 No.
  • Page 695 Value (hex) No-protocol Mode reception data volume Value (hex) No-protocol Mode end code setting None (Specify the amount of data being received) Yes (Specify the end code) End code is set to CF+LF Value (hex) No-protocol Mode start code setting...
  • Page 696 Appendix E PLC Setup Coding Sheets for Programming Console Address 197@@@@ Value (hex) Instruction Error Operation 0000 Continue operation 8000 Stop operation Address 208@@@@ Value (hex) Minimum Cycle Time 0000 Cycle time not fixed 0001 Cycle time fixed: 1 ms...
  • Page 697 Disable Peripheral Servicing Priority Mode. 10 to 1F CPU Bus Unit unit number (0 to 15) + 10 hex 20 to 7F CPU Special I/O Unit unit number (0 to 96) + 20 hex RS-232C port Peripheral port Value Unit/Port for Priority Servicing (hex) Disable Peripheral Servicing Priority Mode.
  • Page 698 8000 Enabled 0 ms 8001 1 ms 800A 10 ms Address 226@@@@ Value Special I/O Unit Cyclic Refreshing 0: Yes 1: No (hex) Unit number 0000 0001 0002 0003 0004 0005 FFFF Addresses 227 through 231 are the same as 226.
  • Page 699 Appendix E PLC Setup Coding Sheets for Programming Console Address 257@@@@ Value (hex) Origin Search Operating Mode Mode 0 Mode 1 Mode 2 Value (hex) Origin Search Operation Setting Inverse 1 (Reversal Mode 1) Inverse 2 (Reversal Mode 2) Value (hex)
  • Page 700 FFFF 65,535 pulses / 4 ms CJ1M CPU Unit Address 268@@@@ Value (hex) Limit Signal Input Type N.C. N.O. Origin proximity input signal class (Same as for limit input signal.) Origin input signal class (Same as for limit input signal.)
  • Page 701 PLC Setup Coding Sheets for Programming Console Address 269@@@@ Value (hex) Positioning Monitor Time 0000 0 ms 270F 9,999 ms Note The settings for origin search 1 (addresses 274 to 287) are the same as for origin search 0 (addresses 256 to 269).
  • Page 702 Appendix E PLC Setup Coding Sheets for Programming Console...
  • Page 703: Connecting To The Rs-232C Port On The Cpu Unit

    CPU Unit Connection Examples The wiring diagrams for connecting to the RS-232C port are provided in this appendix. In actual wiring, we rec- ommend the use of shielded twisted-pair cables and other methods to improve noise resistance. Refer to Rec- ommended Wiring Methods later in this appendix for recommended wiring methods.
  • Page 704 The recommended cables should be wired as shown below. Each signal wire should be twisted with the SG (signal ground) wire and placed in a shielded cable to prevent the effects of noise in noise- prone environments. The 5-V wires can also be twisted with the SG wire to increase noise immunity.
  • Page 705 6, eliminating the need for a 5-V power supply. 3. Do not use the 5-V power from pin 6 of the RS-232C port for anything other than an NT-AL001, CJ1W- CIF11 Link Adapter, or NV3W-M@20L Programmable Terminal. Using this power supply for any other external device may damage the CPU Unit or the external device.
  • Page 706 Note The CJ1W-CIF11 is not insulated, so the total transmission distance for the whole transmission path is 50 m max. If the total transmission distance is greater than 50 m, use the insulated NT-AL001, and do not use the CJ1W-CIF11. If only the NT-AL001 is used, the total transmission distance for the whole transmission path is 500 m max.
  • Page 707 Appendix F Connecting to the RS-232C Port on the CPU Unit Connection with an RS-232C Port RS-232C connection is also possible when using a Serial PLC Link to connect two CJ1M CPU Units. CJ1M CPU Unit CJ1M CPU Unit Signal Pin No.
  • Page 708 CO-MA-VV-SB 5P×28AWG (7/0.127) (not UL approved) Use a twisted-pair cable for each signal line and SG (signal ground) to connect the CPU Unit to a communications partner. Also, bundle all the SG lines at the Unit and at the other device and connect them together.
  • Page 709 Connecting the Shield Line to the Hood (FG) Cut the cable to the required length, leaving leeway for wiring and laying the cables. Use a razor blade to cut away the sheath, being careful not to damage the braiding. 40 mm (RS-232C) 3.
  • Page 710 Not Connecting the Shield to the Hood (FG) Cut the cable to the required length, leaving leeway for wiring and laying the cables. Use a razor blade to cut away the sheath, being careful not to damage the braiding. 40 mm (RS-232C) Use scissors to cut away the exposed braiding.
  • Page 711 FG Connection No FG Connection Aluminum foil tape Ground plate Connections to the CPU Unit • Always turn OFF the power supply to the PLC before connecting or disconnecting communications cables. • Tighten the communications connector attachment screws to 0.4 N·m.
  • Page 712 Appendix F Connecting to the RS-232C Port on the CPU Unit...
  • Page 713: Cj1W-Cif11 Rs-422A Converter

    RS-232C Connector Connector Pin Arrangement for Pin number Signal RS-232C Port SG (0 V) 7, 8 SG (0 V) Hood Note The hood will have the same electrical potential as the connector on the other end of the cable.
  • Page 714 (See note 3.) to send) Note 1. Set pins 2 and 3 to the same setting. (ON for the two-wire method or OFF for the four-wire method.) 2. To prohibit echoback, set pin 5 to ON (with RS control). 3. When connecting to several devices using the four-wire method in a 1:N connection, set pin 6 to ON...
  • Page 715 Note Press the cover gently while removing it to prevent it from popping out suddenly. 2. Using a fine pair of tweezers or other tool with a fine point, change the settings of the DIP switch pins to match the desired communications conditions.
  • Page 716 Power Supply Unit of the CPU or Expansion Rack to 100 Ω max. 1. Taking care not to damage the shield, strip between 30 and 80 mm of sheath off the end of the cable. 30 to 80 mm 2.
  • Page 717 Mount the Converter to the RS-232C port (D-Sub, 9-pin) of the Unit to be connected in the following way. 1. Align the Converter’s connector with that of the Unit and push it into the Unit’s connector as far as possible.
  • Page 718 SD control ON (sends when CS is "L") ON (sends when CS is "L") Note Refer to Serial PLC Link Connection Examples (CJ1M CPU Units Only) on page 658 for wiring diagrams and settings when using CJ1W-CIF RS-422A Converters only.
  • Page 719: Index

    100-V AC Input Units specifications 24-V DC Input Units 24-V power supply C200H-PRO27-E Programming Console cables CX-Programmer Access Error Flag See also I/O Connecting Cables addresses Carry Flag memory map CIO Area allocations description See also I/O allocations CJ Series...
  • Page 720 Counter Area related settings counters setting execution times settings CPU Bus Area Cycle Time Too Long Flag CPU Bus Unit Area capacity CPU Bus Units data exchange data areas error information forcing bit status errors...
  • Page 721 FAL Error Flag emergency stop circuit – FAL errors environmental conditions flag checking FAL/FALS Number for System Error Simulation Equals Flag FALS Error Flag Equals Flag for Background Execution FALS errors ER/AER Flag for Background Execution flag error codes...
  • Page 722 I/O interrupts flags response time table I/O memory flash memory addresses data dates areas errors effects of operating mode changes Flash Memory Error holding floating-point math instructions settings execution times structure flowchart I/O refreshing environmental conditions check I/O response time...
  • Page 723 See also memory table data processing instructions text strings Memory Cards dimensions interrupt control instructions initializing execution times installing Interrupt Input Unit Position Error Flag installing in a personal computer – Interrupt Input Units overview errors procedures response time removing...
  • Page 724 Peripheral Servicing Too Long Flag description personal computer effects of mode changes on counters connecting effects of mode changes on data areas installing a Memory Card effects of mode changes on timers PLC Setup operations allowed in each mode coding sheets...
  • Page 725 Index effects on data areas error messages information peripheral servicing momentary interruptions PLC Setup coding sheets Power OFF Detection Delay Time See also Programming Devices power OFF interrupt task Programming Devices settings connecting power interrupts connections holding time peripheral servicing...
  • Page 726 Initialization Flags standby errors Restart Bits standby operating errors settings startup condition setting setup errors startup mode specifications setting words allocated to Special I/O Units settings special math instructions Step Flag execution times step instructions specifications – execution times subroutine instructions –...
  • Page 727 Timer Area timers execution times timing settings Too Many I/O Points error TR Area tracing data tracing See also data tracing – – – Transistor Output Units Triac Output Units troubleshooting...
  • Page 728 Index...
  • Page 729: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W393-E1-14 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
  • Page 730 Page 214: Swapped ON/OFF functions for pin 4 and also for pin 6. Pages 253, 254: Changed “0 (OFF)” to “1 (ON)” in bottom right box of bottom diagram. Page 293: Changed “CIO 0079” to “CIO 0159,” “007915” to “015915,” and “1,280 (80 words)”...
  • Page 731 Page 218: Note added. Page 317: Day of month specifications corrected. July 2004 Extensive changes too numerous to list in detail were added for new functionality and new models. Page xv: Added information on Loop-control CPU Units. Pages 17 to 18 and Section 1-4: Added information on CJ1H/CJ1M CPU Unit version 3.0 upgrade.
  • Page 732 Page 307: Replaced screen capture Page 438: Changed lower left cell of table. Page 539 and other pages: Added “5 V DC:” or added a colon to the internal current con- sumption specifications for all Units. Pages 557, 577 to 579: Added “load” to “short-circuit protection” in callouts.
  • Page 733 OMRON (CHINA) CO., LTD. OMRON ASIA PACIFIC PTE. LTD. In the interest of product improvement, Room 2211, Bank of China Tower, No. 438A Alexandra Road # 05-05/08 (Lobby 2), specifications are subject to change without notice. 200 Yin Cheng Zhong Road, Alexandra Technopark,...

Table of Contents