CP1L-CP1E Getting Started Guide
CP1L-CP1E Getting Started Guide
CP1L-CP1E Getting Started Guide
W461-E1-02A
SYSMAC CP1/CP1E
INTRODUCTION MANUAL
DANGER Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury. Additionally, there may be severe property damage.
WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury. Additionally, there may be severe property damage.
Caution Indicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury, or property damage.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
Note Indicates information of particular interest for efficient and convenient opera-
tion of the product.
1,2,3... 1. Indicates lists of one sort or another, such as procedures, checklists, etc.
Trademarks
Windows is a registered trademark of Microsoft Corporation in the United States and other countries.
SYSMAC is a registered trademark of OMRONs Programmable Controllers.
Other brand and product names are trademarks or registered trademarks of their respective owners.
OMRON, 2009
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written
permission of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because
OMRON is constantly striving to improve its high-quality products, the information contained in this manual is
subject to change without notice. Every precaution has been taken in the preparation of this manual.
Nevertheless, OMRON assumes no responsibility for errors or omissions. Neither is any liability assumed for
damages resulting from the use of the information contained in this publication.
2
TABLE OF CONTENTS
PRECAUTIONS............................................................... 9
1 Intended Audience.................................................................................................... 10
2 General Precautions ................................................................................................. 10
3 Safety Precautions ................................................................................................... 10
4 Application Precautions ............................................................................................ 11
SECTION 1
CP1L/CP1E Overview ................................................... 13
1-1 CP1L/CP1E Models.................................................................................................. 14
1-2 Part Names and Functions ....................................................................................... 17
SECTION 2
Designing Systems ........................................................ 21
2-1 Organization of this Manual ...................................................................................... 22
2-2 About the Shutter Control System ............................................................................ 24
2-3 I/O Allocation for the Shutter Control System ........................................................... 26
2-4 Example Ladder Program......................................................................................... 28
SECTION 3
Mounting and Wiring...................................................... 29
3-1 Installation Notes ...................................................................................................... 30
3-2 Mounting onto DIN Tracks ........................................................................................ 33
3-3 Wiring Devices.......................................................................................................... 34
3-4 Power Testing CP1L................................................................................................. 37
SECTION 4
Creating Programs......................................................... 39
4-1 Preparing for Programming ...................................................................................... 40
4-2 Creating Ladder Programs ....................................................................................... 45
4-3 Using CX-Programmer ............................................................................................. 48
4-4 Using the Help .......................................................................................................... 51
4-5 Inputting Programs ................................................................................................... 53
4-6 Saving/Loading Programs ........................................................................................ 74
4-7 Editing Programs ...................................................................................................... 77
SECTION 5
Transferring and Debugging Programs ......................... 83
5-1 Going Online............................................................................................................. 84
5-2 Adjusting/Debugging Online ..................................................................................... 91
Appendix...................................................................... 101
A-1 Channel/Relay Numbers ........................................................................................ 102
A-2 Instructions ............................................................................................................. 107
A-3 Inner Workings of CP1L/CP1E ............................................................................... 111
A-4 CP1L Programming Examples ............................................................................... 121
A-5 Comparison between CP1L and CP1E .................................................................. 172
3
About this Manual:
This manual describes installation and operation of the CP-series Programmable Controllers (PLCs)
and includes the sections described below. The CP Series provides advanced package-type PLCs
based on OMRONs advanced control technologies and vast experience in automated control.
Please read this manual carefully and be sure you understand the information provided before
attempting to install or operate a CP-series PLC. Be sure to read the precautions provided in the fol-
lowing section.
This manual is intended for first-time users of the SYSMAC CP series. The basic use of the series is
explained based on SYSMAC CP1L. For CP1E uses, please transpose "CP1L" to "CP1E". The differ-
ences between CP1L and CP1E are explained by notes or headings.
Circuit configurations, wiring methods, and programs provided in this manual are given strictly as
examples. When constructing an actual system, check the specifications, performance, and safety of
each component by referring to the respective manuals.
Ladder programs in this manual are provided strictly as examples. When designing the actual circuits,
take adequate safety measures.
Precautions provide general precautions for using the Programmable Controller and related devices.
Section 1 introduces the types of CP1L and CP1E, as well the part names.
Section 2 explains how to construct a CP1L system based on the shutter control system as an exam-
ple.
Section 3 explains the how to install CP1L onto a DIN track, how to wire power supply and I/O lines,
and how to test operation as an example.
Section 4 explains the basic functions of CX-Programmer creating the ladder program for the shutter
control system.
Section 5 describes how to transfer and debug programs.
The Appendices provide channel/relay numbers, instructions, inner workings and programming
examples of CP1L and CP1E.
4
Related Manuals
The following manuals are used for the CP-series CPU Units. Refer to these manuals as required.
Cat. No. Manual name Description
W462 SYSMAC CP Series CP1L Explains the system configuration, installation, wir-
CPU Unit Users Manual ing, I/O allocation, pulse/counter functions, and
expansion unit connections in details. Also provides
information on errors, troubleshooting, mainte-
nance, and inspection.
W451 SYSMAC CP Series Provides the following information on the CP
CP1H/CP1L CPU Unit Series:
Programming Manual Programming instructions
Programming methods
Tasks
File memory
Functions
Use this manual together with the CP1H Program-
mable Controllers Operation Manual (W450).
W479 SYSMAC CP Series CP1E Describes the following information for CP1E PLCs.
CPU Unit Hardware User's Overview and features
Manual
Basic system configuration
Part names and functions
Installation and settings
Troubleshooting
Use this manual together with the CP1E CPU Unit
Software User's Manual (W480) and Instructions
Reference Manual (W483).
W480 SYSMAC CP Series CP1E Describes the following information for CP1E PLCs.
CPU Unit Software User's CPU Unit operation
Manual
Internal memory
Programming
Settings
CPU Unit built-in functions
Interrupts
High-speed counter inputs
Pulse outputs
Serial communications
Other functions
Use this manual together with the CP1E CPU Unit
Hardware User's Manual (W479) and Instructions
Reference Manual (W483).
W483 SYSMAC CP Series CP1E Describes each programming instruction in detail.
CPU Unit Instructions When programming, use this manual together with
Reference Manual the CP1E CPU Unit Software User's Manual
(W480).
W446 SYSMAC CX-Programmer Provides information on installing and operating the
Operation Manual CX-Programmer for all functions except for function
blocks.
5
Read and Understand this Manual
Please read and understand this manual before using the product. Please consult your OMRON
representative if you have any questions or comments.
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR
CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR COMMERCIAL LOSS
IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH
CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT
LIABILITY.
In no event shall the responsibility of OMRON for any act exceed the individual
price of the product on which liability is asserted.
6
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or
regulations that apply to the combination of products in the customer's application
or use of the products.
At the customer's request, OMRON will provide applicable third party certification
documents identifying ratings and limitations of use that apply to the products. This
information by itself is not sufficient for a complete determination of the suitability of
the products in combination with the end product, machine, system, or other
application or use.
The following are some examples of applications for which particular attention must
be given. This is not intended to be an exhaustive list of all possible uses of the
products, nor is it intended to imply that the uses listed may be suitable for the
products:
Please know and observe all prohibitions of use applicable to the products.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable
product, or any consequence thereof.
7
Disclaimers
CHANGE IN SPECIFICATIONS
Product specifications and accessories may be changed at any time based on
improvements and other reasons.
PERFORMANCE DATA
Performance data given in this manual is provided as a guide for the user in
determining suitability and does not constitute a warranty. It may represent the
result of OMRON's test conditions, and the users must correlate it to actual
application requirements. Actual performance is subject to the OMRON
Warranty and Limitations of Liability.
8
PRECAUTIONS
This section provides general precautions for using the CP-series Programmable Controllers (PLCs) and
related devices.
The information contained in this section is important for the safe and reliable application of Programmable
Controllers. You must read this section and understand the information contained before attempting to set up
or operate a PLC system.
1 Intended Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
9
Intended Audience
1 Intended Audience
This manual is intended for the following personnel, who must also have knowledge
of electrical systems (an electrical engineer or the equivalent).
Personnel with little experience installing FA systems.
Personnel with little experience designing FA systems.
Personnel with little experience managing FA systems and facilities.
2 General Precautions
The user must operate the product according to the performance specifications
described in the operation manuals.
Before using the product under conditions which are not described in the manual or
applying the product to nuclear control systems, railroad systems, aviation systems,
vehicles, combustion systems, medical equipment, amusement machines, safety
equipment, and other systems, machines, and equipment that may have a serious
influence on lives and property if used improperly, consult your OMRON
representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide the
systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the Unit. Be sure
to read this manual before attempting to use the Unit and keep this manual close at
hand for reference during operation.
WARNING It is extremely important that a PLC and all PLC Units be used for the
specified purpose and under the specified conditions, especially in
applications that can directly or indirectly affect human life. You must consult
with your OMRON representative before applying a PLC System to the
above-mentioned applications.
3 Safety Precautions
Caution When power is ON or has just been turned OFF, do not touch the power
supply, I/O terminals, or the surrounding areas. Doing so may result in burns.
After turning the power OFF, wait for the unit to cool down sufficiently before
touching it.
Caution Secure the AC power supply line to the terminal block with a 0.5Nm of
torque. Loosening the screw may result in a fire or malfunction.
Caution Before starting online editing, confirm that the extension of cycle time will
have no adverse effects. Otherwise, input signals may not be read.
10
Caution With an CP1E E-type CPU unit or with an N-type CPU unit without a Battery,
the contents of the DM Area (D) *, Holding Area (H), the Counter Present
Values (C), the status of Counter Completion Flags (C), and the status of bits
in the Auxiliary Area (A) related to clock functions may be unstable when the
power supply is turned ON.
*This does not apply to areas backed up to EEPROM using the DM backup
function.
If the DM backup function is being used, be sure to use one of the following
methods for initialization.
1. Clearing All Areas to All Zeros
Select [Clear Held Memory (HR/DM/CNT) to Zero] in the [Startup Data
Read] area in the PLC Setup.
2. Clearing Specific Areas to All Zeros or Initializing to Specific Values
Make the settings from a ladder program.
If the data is not initialized, the unit or device may operate unexpectedly
because of unstable data.
4 Application Precautions
Caution Confirm that the facility will not be affected by changing to MONITOR or RUN
mode.
11
Application Precautions
12
SECTION 1
CP1L/CP1E Overview
This section introduces the types of CP1L and CP1E, as well the
part names used during operation.
supports connections to Programmable Terminals, Inverters, and Servo Drives. Each unit is available
with 20,30 or 40 I/O points.
For application examples that use CP1L or CP1E, refer to appendix A-4 CP1L/CP1E Programming
Examples.
CP1L/CP1E Overview
1-1-2 CP1E Models
20-point I/O Units (CP1E-20D-)
CPU unit has 12 input points and 8 output points.
CP-series expansion I/O units cannot be used to add I/O points.
E-type CPU Unit N-type CPU Unit
CP1E-E20DR-A CP1E-N20D-
CP1L/CP1E Overview
1 8
2 IN 9
3
10 15 16 17
MEMORY
2 3
11 COMM COMM
4
5
6
4
5 18 19
12
6 13
7 14
8 21
1
6
9
2 11
3
12
7
13 14 20 10
CP1L/CP1E Overview
Output terminals: Used to connect output lines.
Indicator Statuses
This section describes the operating statuses of CP1L and CP1E as displayed by
1 the operation indicators.
CP1L/CP1E Overview
POWER
RUN
ERR/ALM
INH
PRPHL
BKUP
Note Circuit configurations, wiring methods, and programs provided in this manual
are given strictly as examples. When constructing an actual system, check the
specifications, performance, and safety of each component by referring to the
respective manuals.
2
Refer to 2-3 I/O Allocation for the Shutter Control
I/O allocation System.
Allocate relay numbers
to sensors and switches
Designing Systems
Refer to 3-2 Mounting onto DIN Tracks and 3-3
Preparing the equipment Wiring Devices.
Equipment preparation
Wire power supply and ground
Wire I/O devices
2-2-1 Operation
2 This section defines the operation of a shutter control system.
Designing Systems
When a sensor detects full car entrance into the garage, the shutter closes.
When pulling the car out of the garage, use the buttons to operate the shutter.
PLC
CP1L (14-point I/O unit with AC power supply) 2
Equipment and Software for Programming
Designing Systems
CX-Programmer
Computer
USB cable (A-B)
Inputs
Shutter OPEN button : PB1 (A16-series, etc)
Shutter STOP button : PB2 (A16-series, etc)
Shutter CLOSE button : PB3 (A16-series, etc)
Car detection sensor : SEN1 (E3G-series, etc)
Headlight detection sensor : SEN2
Limit switch, turned ON when shutter is fully open : LS1 (WL-series, etc)
Limit switch, turned ON when shutter is fully closed : LS2 (WL-series, etc)
Outputs
Contact for activating the shutter escalation motor : MO1
Contact for activating the shutter de-escalation motor : MO2
LS1
MO1
SEN2
MO2
LS2
PB1
SEN1
PB2
PB3
Inputs
2 Device Contact Address
OPEN button PB1 0.00
Designing Systems
Outputs
Device Contact Address
Escalation motor MO1 100.00
De-escalation motor MO2 100.01
LS1(0.05)
MO1(100.00)
SEN2(0.04)
MO2(100.01)
LS2(0.06)
SEN1(0.03)
PB1(0.00)
PB2(0.01)
PB3(0.02)
Designing Systems
6 outputs
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
0 CH
Not available Input area : 8 inputs
100 CH
Used as work area Output area : 6 outputs
Allocate
On 14-point I/O units, 8 input relays, from 0.00 to 0.07 (bits 00 to 07 on 0CH),
are allocated to the input terminal block.
Also, 6 output relays, from 100.00 to 100.05 (bits 00 to 05 on 100CH), are
allocated to the output terminal block.
Unused upper bits on the input channel (bits 08 to 15) cannot be used as a work
area. Unused upper bits on the output channel (bits 06 to 15) , however, can be
used.
Work area
W0.00
TIM
Work area 0000 Timer
#50
0.04
CNT
Light detection sensor 0000 Counte
T0000 #3
Timer
C0000
Counter
A200.11
OPEN button
100.00
Escalation
motor
0.02 0.01 0.06 100.00 100.01
De-escalation
motor
0.03
Installation Location
Do not install in the following locations:
3 Locations subject to ambient temperature lower than 0C or higher than
55C.
Locations subject to dramatic temperature changes, causing possible
Mounting and Wiring
condensation.
Locations subject to relative humidity lower than 10%RH or higher than
90%RH.
Locations subject to corrosive or flammable gases.
Locations subject to excessive dust, salt, or metal powder.
Locations subject to shock or vibration.
Locations exposed to direct sunlight.
Locations subject to water, oil, or chemical reagent splashes.
Temperature Control
The ambient operating temperature for CP1L is 0 to 55C. The following
precautions apply.
Provide adequate space for air flow.
Do not install above equipment, which generates significant heat (i.e. heaters,
transformers, high-capacity resistors).
If the ambient temperature is to exceed 55C, install a cooling fan or air
conditioner.
1
2
3
CP1L
(2) Fan
(3) Louver
Caution When power is ON or has just been turned OFF, do not touch the power supply,
I/O terminals, or the surrounding areas. Doing so may result in burns.
After turning the power OFF, wait for the unit to cool down sufficiently before
touching it.
Power Line
200mm min.
CP1L
200mm min.
Properly ground the mounting plate between the unit and the mounting
surface.
Mounting
For heat dissipation, mount CP1L in the orientation shown below.
3
Mounting and Wiring
External Dimensions
W1 85
8
W2
110 100 90
4-4.5
Model W1 W2
CP1L-L10D- 66 56
CP1L-L14D- 86 76
CP1L-L20D- 86 76
CP1E-20D- 86 76
CP1L-M30D- 130 120
CP1E-30D- 130 120
CP1L-M40D- 150 140
CP1E-40D- 150 140
CP1L-M60D- 195 185
DIN Track
Secure the DIN track onto the control panel, using at least 3 screws.
Use M4 screws at intervals of 210mm (6 holes) or less. Screw torque is
1.2Nm.
2. Hook the rear panel of CP1L onto the DIN track (1), as shown.
CP1L 1
Protective Label
Wire scraps may be scattered during wiring. To prevent them from entering the
unit, leave the protective label (adhered on the top surface of the unit) on until
3 wiring is done.
When wiring is complete, remove the label to ensure proper heat dissipation.
Mounting and Wiring
4
1
NC NC
6.2mm max.
NC NC
2 3
WARNING Secure the AC power supply line to the terminal block with 0.5Nm of torque.
Loosening the screw may result in a fire or malfunction.
Wiring Inputs
1. Wire the inputs as shown, while referring to 2-3 I/O Allocation for the
Shutter Control System.
PB2 SEN1 LS1
(0.01) (0.03) (0.05)
3
L1 L2/N COM 01 03 05 07 NC NC
Mounting and Wiring
00 02 04 06 NC NC
Wiring Outputs
1. Wire the outputs as shown, while referring to 2-3 I/O Allocation for the
Shutter Control System.
MO1 MO2
(100.00) (100.01)
+ 00 01 02 03 04 NC
For details on wiring, refer to 3-5-4 I/O Wiring for CPU Units with 14 I/O Points
of CP Series CP1L CPU Unit Users Manual (W462) or 5-3-3 I/O Wiring of CP
Series CP1E CPU Unit Hardware User's Manual (W479).
Turning Power ON
Supply power to CP1L, and then check the status with the indicators.
POWER
RUN
ERR/ALM
INH
PRPHL
BKUP
Note When CP1L is turned ON, it will go into RUN mode automatically.
Note Battery
Using a battery
The battery maintains the internal clock and retained regions of I/O memory
while the power supply is OFF.
If no battery is installed, or if the installed battery is running low, the internal
clock will stop, and data in the retained regions of I/O memory will be lost.
Data such as user programs and PLC system settings are not lost even when
3 the power is OFF and no battery is installed.
Parts of CP Series CP1L CPU Unit Users Manual (W462) or 7-2 Replacing
the Battery in N-type CPU Units of CP Series CP1E CPU Unit Hardware
User's Manual (W479).
Battery-free operation
If there is no need to reference the PLC clock and RAM data, CP1L can be
used without a battery (battery-free operation).
For details, refer to 6-5 Battery-free Operation of CP Series CP1L CPU Unit
Users Manual (W462).
Caution With an CP1E E-type CPU unit or with an N-type CPU unit without a Battery, the
contents of the DM Area (D) *, Holding Area (H), the Counter Present Values (C),
the status of Counter Completion Flags (C), and the status of bits in the Auxiliary
Area (A) related to clock functions may be unstable when the power supply is turned
ON.
*This does not apply to areas backed up to EEPROM using the DM backup
function.
If the DM backup function is being used, be sure to use one of the following
methods for initialization.
1. Clearing All Areas to All Zeros
Select [Clear Held Memory (HR/DM/CNT) to Zero] in the [Startup Data Read]
area in the PLC Setup.
2. Clearing Specific Areas to All Zeros or Initializing to Specific Values
Make the settings from a ladder program.
If the data is not initialized, the unit or device may operate unexpectedly because of
unstable data.
Creating Programs
Software CX-One (i.e. CX-Programmer)
USB driver Included with software
USB cable USB 1.1 (or 2.0) cable (A-B), 5m or shorter
1
3
IN
2 L1 L2/N COM
00
01
02
03
04
05
06
07
NC
NC
NC
NC
2 3 4 5 6
BATTERY NC 00 01 02 03 04 NC
NC COM COM COM COM 05 NC
OUT
When the computer detects CP1L, the following message will be displayed.
The Found New Hardware Wizard dialog box will be displayed. This screen will be
used to install the USB driver.
3. The following dialog box will be displayed. Select one of the options and
click [Next].
4. The following dialog box will be displayed. Select [Install the software
automatically (Recommended)] and click [Next].
Creating Programs
5. Ignore the following dialog box if it is displayed and click [Continue
Anyway].
6. Click [Finish].
USB driver installation is now complete.
p
Confirming Installation
Confirm that the driver has been installed properly.
2. Select [Properties].
The System Properties dialog box will be displayed.
4
3. Select the Hardware tab, and click [Device Manager].
Creating Programs
6. Close the Device Manager dialog box, and then the System Properties
dialog box.
If [OMRON SYSMAC PLC Device] is not displayed, reinstall the USB driver.
For details on reinstalling the USB driver, refer to 1-3-1 Connecting with a
Commercially Available USB Cable of CP Series CP1L CPU Unit Users
Manual (W462) or 4-2-2 Installing the USB Driver of CP Series CP1E CPU Unit
Hardware User's Manual (W479).
4-2-1 Operation
The ladder program to be created will open and close a garage shutter.
For details on the example application, refer to 2-2-1 Operation.
Creating Programs
2
1
3
4
Creating Programs
A ladder program will be set forth hereafter based on the description above.
W0.00
* 3 Refer to Inputting Closed Contacts of 4-5-2 Inputting Contacts.
* 4 Refer to 4-5-3 Inputting Output Coils. 4
TIM
Creating Programs
Work area 0000 Timer * 5
#50
0.04
CNT
Light detection sensor 0000 Counter * 6
T0000 #3
Timer
C0000
Counter
* 5 Refer to 4-5-4 Inputting Timers.
A200.11 * 6 Refer to 4-5-5 Inputting Counters.
* 7 Refer to 4-5-6 Inputting Auxiliary Areas.
OPEN button
100.00
Escalation
motor
0.02 0.01 0.06 100.00 100.01
De-escalation
motor
0.03
4
CX-Programmer will start.
The title screen will be displayed, followed by the main window.
Creating Programs
Main Window
Creating Programs
(1) Title bar
Displays the data file name, created in CX-Programmer.
(3) Toolbars
Displays icons for frequently used functions. Place the mouse cursor over an
icon to display the corresponding function name.
Select View - Toolbars from the main menu to show/hide toolbars. Drag the
toolbars to change their position.
(5) Section
Programs can be split into and managed as multiple parts.
position.
If an online connection error or other errors occur and are recorded by the error
log while online, a blinking red error message will be displayed. Select [View] -
[Windows] - [Status Bar] from the main menu to show/hide the status bar.
Diagram Workspace
1
2
3 4
4
Information Window
4
The help window will be displayed.
Creating Programs
CX-Programmer Help can also be displayed in several other ways.
From CX-Programmer
1. Select [Help] - [Help Contents] from the main menu.
CX-Programmer Help will be displayed.
4
Referencing PLC Instruction Sets
Creating Programs
For details on instructions used in ladder programs, refer to PLC Instruction Sets.
From CX-Programmer
1. Select [Help] - [Instruction Reference] - [CS/CJ-Series] from the main
menu.
CP-Series PLC Instruction Sets will be displayed.
Creating Programs
Select [File] - [New] from the main menu.
The Change PLC dialog box will be displayed.
3. Click [Settings].
The Device Type Settings dialog box will be displayed.
4
Creating Programs
4. Select the CPU from the CPU Type drop-down list. Click [OK].
The Device Type Settings dialog box will be closed.
Creating Programs
The Change PLC dialog box will be closed. Main window for the new project will be
displayed.
If [USB] is not displayed for Network Type, refer to 4-1-2 Connecting to a Computer
and Installing the USB Driver and confirm that the USB driver has been installed
properly.
Inputting Contacts
1. Press either the [L] or [C] key.
LD 0.00 will be displayed.
4
Creating Programs
4. Input "Light detection sensor" as the I/O comment. Press the [Enter] key.
A contact representing input from the light detection sensor will be displayed on the
ladder program.
Inputting OR Circuits
1. Place the cursor on the program. Press the [Enter] key.
A space for inserting an OR circuit will be created.
Creating Programs
2. Press the [W] key.
"OR 0.05" will be displayed.
5. Input "Work Area" as the I/O comment. Press the [Enter] key.
An OR circuit representing the work area contact will be displayed.
4
Next, input a closed contact.
Creating Programs
Creating Programs
Next, input a work area output.
4
Creating Programs
Creating Programs
Note Duplicated Coils
Do not duplicate coils.
If the same address is specified for multiple outputs, only the rung closer to the
END instruction will be valid.
This is because programs are executed sequentially from top to bottom. Invalid
rungs caused by duplicated coils will be detected by CX-Programmer as an error.
4
Creating Programs
Creating Programs
5. Input the timer set value.
Input "#50" and then press the [Enter] key.
The Comment dialog box will be displayed.
"TIM 0 #50" indicates a 5.0 second delay timer, with a timer completion flag of
T0000.
4
Creating Programs
Creating Programs
2. Press the [C] Key.
A list of instructions beginning with C will be displayed.
Select the instruction from the list or input the mnemonic directly.
4
Creating Programs
Creating Programs
The Comment dialog box will be displayed.
"CNT 0 #3" indicates a decrementing counter starting at count 3, with a counter
completion flag of C0000.
4
Creating Programs
Creating Programs
9. Press the [Ctrl] and the down arrow key 5 times simultaneously .
When the cursor is positioned on the next rung, counter instruction input is
complete.
4
Creating Programs
Creating Programs
4-5-7 Inputting Differentiated Up Contacts
1. While referring to 4-2-2 Ladder Programs, enter a ladder program,
extending to de-escalation motor contact, "10001".
5. Input "Car detection sensor" as the I/O comment. Press the [Enter] key.
A contact representing input from the car detection sensor will be displayed as an
OR circuit.
4
Creating Programs
7. Click [Detail].
Creating Programs
Note y The following instruction variations can be input.
y Upward differentiation (@)
y Downward differentiation (%)
y Immediate refreshing (!)END Instruction
Example: Immediate refreshing (!) specified.
The symbols indicating these instruction variations will be added to the beginning
of the instruction whenever they are input regardless of whether the cursor is
before (example: |LD), in the middle (example:L|D), or at the end (example: LD|) of
the instruction.
y After an instruction has been entered, the variation can be changed as follows.
y @: Upward differentiation
y %: Downward differentiation
y !: Immediate refreshing
y Shift + 0: No differentiation
1.
4 Select [Program] - [Compile All PLC Programs] from the main menu.
Creating Programs
Creating Programs
2. Specify the save location, and input a file name. Click [Save].
The CX-Programmer project file will be saved.
4
Creating Programs
Creating Programs
The I/O comment window will be displayed.
2. Double-click the address for which you wish to input or edit the I/O
comment.
The I/O comment field will become editable. Input or edit the I/O comment.
4
Creating Programs
Note In Smart Input Mode, an I/O comment can be input after an operand has been
input using the comment dialog box.
The Comment dialog box shown above is displayed only when [Show with
comment dialog] is selected on the Options - Diagrams dialog box. The Options -
Diagrams dialog box is accessed by selecting [Options] from the Tools menu.
1. Double-click the rung header for the rung you wish to add a comment to.
The Rung Properties dialog box will be displayed.
2. On the General tab, input the comment into the comment field.
Creating Programs
3. Close the Rung Properties dialog box.
The entered rung comment will be displayed on the ladder program.
Deleting
Contacts/Instructions
1. Place the cursor on a contact or on an instruction. Press the [Delete] key.
The selected contact or instruction will be deleted.
4 Rungs
1. Click a rung header.
The whole rung will be selected.
Creating Programs
(2) Cursor
Creating a line from right to left:
Hold down the [Ctrl] key and press the left arrow key.
Creating a line from left to right:
Hold down the [Ctrl] key and press the right arrow key.
Note Repeating the process over an existing connection line will delete it.
Copying/Pasting Contacts/Instructions/Rungs
Contacts/Instructions
1.
2.
Place the cursor on a contact or an instruction.
Hold down the [Ctrl] key and press the [C] key.
4
The selected contact or instruction will be copied to the clipboard.
Creating Programs
3. Move the cursor to where you wish to paste. Hold down the [Ctrl] key and
press the [V] key.
The contact or instruction on the clipboard will be pasted.
Rungs
1. Click the rung header of the rung you wish to copy.
The whole rung will be selected.
2. Hold down the [Ctrl] key and press the [C] key.
The selected rung will be copied to the clipboard.
3. Move the cursor to the rung where you wish to paste. Hold down the [Ctrl]
key and press the [V] key.
The rung on the clipboard will be pasted.
4
Creating Programs
5
Transferring and Debugging Programs
3. Click [Yes].
The dialog box will be closed.
When the system goes online, the ladder section window will turn light grey.
Online status is one in which the computer and CP1L are connected. To
execute a program created with CX-Programmer on CP1L, the program will
need to be transferred. For details on transferring programs, refer to 5-1-3
Transferring Programs.
Note If the system fails to go online, check the PLC type setting and communication
settings.
To check the settings, double-click [NewPLC1[CP1L]Offline] in the project tree. For
details on the settings, refer to 4-5-1 Creating New Projects.
2. Click [Yes].
The operating mode will be changed.
o
The operating mode will be displayed on the title bar and on the project tree.
PROGRAM mode:
In this state, the program is stopped. This mode is used to prepare for program
execution by performing initial settings such as PLC setup, transferring the
program, checking the program, and force-setting/force-resetting.
MONITOR mode:
In this state, the program is executed. You can perform online editing, force-set/
force-reset, and change I/O memory values. This mode is also used for making
adjustments during test runs.
RUN mode:
In this state, the program is executed. Use this mode for production runs.
The following table lists the status and available operations for each mode.
Operating Mode PROGRAM RUN MONITOR
Program status Stopped Running Running
I/O refreshing Execute Execute Execute
External I/O status OFF Depends on Depends on
program program
I/O memory Non-holding memory Cleared Depends on Depends on
Holding memory Held program program
5 transfer
Compiling
To PLC OK
OK
No
No
No
No
PLC setup OK No No
Transferring and Debugging Programs
Changing program OK No OK
Force-setting/Force-resetting OK No OK
Changing timer/counter SV OK * No OK *
Changing timer/counter PV OK No OK
Changing I/O memory PV OK No OK
2. Click [OK].
A dialog box will be displayed to confirm the transfer.
3. Click [Yes].
The transfer will begin. The Download dialog box will be displayed.
4. Click [OK].
Transferring of the program is now complete.
5
Transferring and Debugging Programs
Caution Confirm that the facility will not be affected by changing to MONITOR or RUN
mode.
2. Click [Yes].
The system will change to RUN mode and begin operating.
5-2-1 Monitoring
Displaying Conduction Status
The conduction status of the program rungs will be displayed. This will allow you to
confirm program execution.
Drag the window divider to split the diagram workspace. The workspace can be
split in up to 4 sections.
5
Transferring and Debugging Programs
Note Input the address as the channel followed by a period and the bit. For example,
"0 CH 04 bit" should be input as "0.04".
You can input addresses by dragging & dropping items from the diagram
workspace to the watch window. Select the rung header to input all addresses
included in the rung.
5-2-2 Force-Setting/Force-Resetting
CX-Programmer can control inputs, independent of inputs from I/O devices. Use
this function to force input conditions and output conditions during test runs.
Note Before force-setting/force-resetting/releasing or setting/resetting, confirm that the
facility will not be affected.
The force-setting procedure is as follows.
1. Change CP1L to the MONITOR or PROGRAM operating mode.
2. Place the cursor on the contact to force-set.
5
Transferring and Debugging Programs
Force-set will be set. The contact will be marked with the force-set symbol.
Note Select [On] to force the contact ON, and [Off] to force the contact OFF.
To undo the force-set/force-reset, select [Cancel].
The following areas can be force-set/force-reset:
CIO area (I/O area, data link area, CPU bus unit area, special I/O area, and work
area), work area (WR), timer completion flag, holding area (HR), counter
completion flag
5-2-4 Searching
Address Reference Tool
The address reference tool displays which instructions are using the address being
pointed to with the cursor. It also allows jumping to another instruction with the
same address.
A list of used addresses will be displayed. Click an address to display the program
being used.
Caution Before starting online editing, confirm that the extension of cycle time will have no
adverse effects.
Otherwise, input signals may not be read.
Note Note that if CP1L is running in MONITOR mode, changing the program via
editing online may cause the cycle time to become longer and/or failure to read
input signals.
When making large changes, when moving or copying rungs, or when inserting
or deleting block programs, edit offline, then transfer the program.
5 1. Change CP1L to the MONITOR or PROGRAM operating mode.
2. Click the rung header of the rung you wish to edit.
Transferring and Debugging Programs
5. Select [PLC] - [Online Edit] - [Send Changes] from the main menu.
The edited rungs will be transferred to CP1L.
Note For details on cycle time, refer to A-3-2 CPU Unit Behavior.
5
Transferring and Debugging Programs
Note The work words in CIO Area may be assigned to new functions in future
versions of the CPU Units. Be sure to use the work words in W000 to W511CH
first.
A
Digit value 0 F 7 C
Appendix
Constants Notation
Constants used in CP1L or CP1E instructions are represented as follows.
Notation Content/Purpose
#0000 to 9999 (BCD) Timer/counter values, BCD arithmetic instruction, etc.
#0000 to FFFF (Hex) Comparison data for comparison instructions, transfer data,
BIN arithmetic instructions, etc.
&0 to 65535 Unsigned decimal notation
(Available in certain special instructions only. Can be loaded
into CX-Programmer by converting to and from hex digits.)
Differentiated Instructions
The instruction is executed only once (i.e. on 1 cycle only) when the execution
condition turns ON.
The instruction name is prefixed with an "@".
Example
Condition Flags
Condition flags are used to reflect the processing results during or after the
execution of instructions. Whether a flag is used or not will depend on the
instruction. These flags are used in ladder programs as contacts.
Name Label In CX-P Function
Error flag ER P_ER Turns ON when an instruction handling BCD
data attempts to execute using non-BCD data.
Turns ON when an operand value specified by
the instruction is invalid (e.g. a value outside
the work area).
Access error flag AER P_AER Turns ON when unauthorized access is
attempted on an area that is not meant to be
accessed.
A
Carry flag CY P_CY Turns ON when the number of digits is
increased or decreased as a result of
executing an arithmetical instruction.
Data shift instructions and some arithmetical
Appendix
Clock Pulses
Clock pulses are contacts that turn ON/OFF at a fixed time interval.
Name Label In CX-P Function
0.02s clock pulse 0.02s P_0.02s 0.02s
0.01s 0.01s
0.05s 0.05s
0.1s 0.1s
A
1.0s clock pulse 1s P_1s 1.0s
Appendix
0.5s 0.5s
30s 30s
Note To enter a clock pulse or condition flag into CX-Programmer, first enter a contact,
then press the [P] key to select from the drop-down list.
I/O Areas
Input area 0.00 to 99.15 (100 CHs)
Output area 100.00 to 199.15 (100 CHs)
With CP1L or CP1E, the first 1 or 2 channel(s) of the input and output areas,
starting at 0CH and 100CH, respectively, are reserved by the CPU unit.
As expansion I/O units and expansion units are connected to the CPU unit, input
and output areas are assigned 1 channel at a time, in the order of connection.
For example, when using a 40-point I/O unit, input areas 0CH and 1CH, and output
areas 100CH and 101CH are assigned to the internal I/O of the CPU unit.
If expansion (I/O) units are connected to the CPU unit, input areas 2CH and later,
and output areas 102CH and later, will be assigned in order.
When the CPU unit is powered ON, input and output channels are automatically
allocated to the input and output areas of the expansion (I/O) units after the
connections are checked.
Changes to the connection order of the units will result in inconsistencies with the
ladder program. Be sure to review the ladder program when changing the unit
connection order.
A-2 Instructions
CP-series has a rich instruction set. There are approximately 500 types of instructions that can be used
by CP1L and 200 types of instructions that can be used by CP1E. This section explains how to use the
instructions, and gives some basic instructions.
Note For a list and explanation of the instructions, refer to the CX-Programmer Help. A
For details on using the CX-Programmer Help, refer to 4-4 Using the Help.
Appendix
Notation for Instructions
A OUT NOT
SET
OUT NOT
SET
Turns relay coil OFF when execution condition is 1, and ON when
execution condition is 0.
Turns relay coil ON when execution condition changes from OFF to
ON. The relay coil will remain ON even when the execution
Appendix
Writing Contacts
000000
Bus bar
000001
000000 000002
000001 000003
Note There is no limit on the number of contacts that can be connected by AND/AND
NOT instructions.
OR / OR NOT Instructions A
Use for contacts connected in parallel.
Appendix
000000
Bus bar
000004
000001
000005
Note There is no limit on the number of contacts that can be connected by OR/OR NOT
instructions.
000101
Execution condition
Note Do not use coils with the same relay number for OUT and OUT NOT
simultaneously. Doing so will result in a "duplicated coil" program error.
000001
RSET
000102
000000
A 000001
000102
Appendix
In the above example, relay coil 000102 is turned ON by the SET condition and OFF
by the RSET condition.
Note Holding areas and auxiliary areas turned ON by SET instructions will retain the ON
status even when power is interrupted or when operation is stopped.
000103 000200
000000
000001
000102
Ignored
In the above example, relay coil 000103 is turned ON by the set condition and OFF
by the reset condition. While the reset input is ON, the set input will be ignored.
Note Holding areas and auxiliary areas turned ON by KEEP instructions will retain the
ON status even when power is interrupted or when operation is stopped.
CPU unit
RAM
3 A
User program 7
Flash memory
Appendix
(CP1E:Built-in EEPROM)
4 1 Memory cassette*
User program
8
Comment 3
Analog adjuster Access
memory
2 DM area
DM area
Parameters
(i.e. PLC settings)
Parameters 1
(i.e. PLC settings)
6
3
Built-in outputs
When the unit is powered ON, data is transferred from the memory cassette to
the built-in flash memory.
(4) User program
The ladder program is stored in this memory (RAM) area. The ladder program
can be saved, edited, or opened from CX-Programmer.
(5) I/O memory
This is the memory (RAM) area the user program writes to and reads from.
Some parts of the I/O memory are cleared when the power is interrupted.
Other parts are maintained. There are also parts, which are used for data
exchange with PLC units, and other parts, which are only used internally.
There are 2 ways to exchange data with other units: once each execution
cycles, or only when instructed.
(6) Parameter areas
setup data.
[PLC Setup]
PLC setup is the configuration data used by the user to provide a software
definition of the basic specifications of the CPU unit. These consist of
parameters such as serial port settings and minimum cycle time settings.
For details on configuring PLC setup, refer to CX-Programmer Operation
Manual (W446).
(7) Built-in flash memory (CP1E: Built-in EEPROM)
CP1L CPU units have built-in flash memory.
Data is automatically backed up to the built-in flash memory as they are
written to the user program area or the parameter area (PLC setup, routing
table) by methods other than programmed instructions, i.e. when transferred
or edited using CX-Programmer or PT, or when transferred from the memory
cassette.
The next time the unit is powered ON, user memory (user program or
parameter area) will automatically be transferred back from the built-in flash
memory to RAM.
By using CX-Programmer, data in the DM area of the I/O memory can also be
saved to the built-in flash memory. This saved data can be set as defaults for
the DM area, and can be automatically written back into the DM area when the
unit is powered ON next.
Symbol table, comment file, and program index file can be stored in the
comment memory portion of the flash memory. When a project is transferred
from CX-Programmer to the CPU unit, program information for the function
block will automatically be saved to the flash memory. (Only CP1L)
(8) Memory cassette (Only CP1L)
Memory cassettes can store programs, data memory contents, PLC setup
data, and I/O comments from CX-Programmer.
Data stored in the memory cassette can be loaded automatically when the unit
is powered ON.
Caution With an CP1E E-type CPU unit or with an N-type CPU unit without a Battery, the
contents of the DM Area (D) *, Holding Area (H), the Counter Present Values (C),
the status of Counter Completion Flags (C), and the status of bits in the Auxiliary
Area (A) related to clock functions may be unstable when the power supply is
turned ON.
*This does not apply to areas backed up to EEPROM using the DM backup
function.
If the DM backup function is being used, be sure to use one of the following
methods for initialization.
1. Clearing All Areas to All Zeros
Select [Clear Held Memory (HR/DM/CNT) to Zero] in the [Startup Data Read]
area in the PLC Setup.
2. Clearing Specific Areas to All Zeros or Initializing to Specific Values
Make the settings from a ladder program.
If the data is not initialized, the unit or device may operate unexpectedly because of
A
unstable data.
Appendix
A
from memory cassette.
Clear I/O memory.
Check user memory (UM).
Force-set/force-reset.
Appendix
I/O Refreshing
I/O refreshing refers to cyclic data transfers between a preset area of the memory
and an external source. It involves the following refreshing processes.
Target Unit Type Max. Data Exchange Data Exchange Area
CPU units built-in I/O Input: 3 CH I/O area
Output: 3 CH
CP-series expansion I/O unit, expansion unit Fixed; dependent on unit I/O area
I/O refreshing can be performed for CP1L/CP1Es built-in normal I/O and CP-
series expansion (I/O) units at one of the following 3 timings:
Cyclic refreshing A
Execution by instructions with immediate refresh variation
Appendix
Execution by an IORF instruction
Cyclic Refreshing
I/O refreshing is performed after all instructions in the executable tasks have been
executed.
This is the standard method for I/O refreshing.
END Task
END Task
Cycle
END Task
Actual
I/O refresh I/O data
15 7 0
!OUT 100.00 100 CH
15 11 0
A
1 CH
!MOV 1 101
101 CH
15 7 0
Appendix
Note IORF instructions take a relatively long time to execute. The execution time will
increase as the number of channels being refreshed increases. Hence, the total
cycle time may be extended. It should be noted that the total cycle time may be
increased significantly.
For details, refer to SECTION 4 Instruction Execution Times and Number of Steps
of CP Series CP1H/CP1L CPU Unit Programming Manual (W451) or SECTION 3
Instruction Execution Times and Number of Steps of CP Series CP1E CPU Unit
Instructions Reference Manual (W483).
Peripheral Services
Peripheral services are event services that occur on an irregular basis, such as
monitoring and setup on PT, and online editing (editing programs under execution)
and monitoring on CX-Programmer.
It involves processing of service requests both to and from external devices.
In the CP-series, most of the services use the FINS command.
Each service is allocated with a fixed amount of time specified by the system, and
is executed every cycle. If the services processing completes within the allocated
time, no processing is performed during the remaining time.
Service Type Content
Peripheral USB port service Processes unscheduled requests received as FINS or
Serial port service Host Link commands from CX-Programmer, PT, or from
a host computer via a peripheral USB port or serial port
(i.e. requests for program transfer, monitoring, forced-
set/reset, or online editing).
A
Processes unscheduled requests issued by the CPU
Appendix
unit via a serial port (non-solicited communications).
Communication port service* Executes serial communication by SEND, RECV, and
CMND instructions. Uses internal logic ports 0 to 7 as
communication ports.
Executes instructions in the background, using internal
logic ports 0 to 7 as communication ports.
Built-in flash memory/EEPROM Processes reading and writing of data from and to the
accessing service built-in flash memory/EEPROM.
Memory cassette Processes reading and writing of data from and to the
accessing service* memory cassette.
Note Service time is separately allocated for the peripheral USB port, serial port, and
communication port services. By default, 4% of the preceding cycle time will be
allocated.
If services take several cycles for execution, and are delayed, allocate a fixed
amount of time (as opposed to percentage) to each service. To do this, use [Set
time to all events] under PLC Settings. CP1E has no setting, and cycle time is fixed
to 8%.
Cycle Time
CPU units process data in cycles starting with Overseeing processes and ending
with Peripheral services.
Overseeing Processes
Details Processing Time and
Program execution
Details Processing Time and
Variation Factors
Processes program execution (execution of instructions). The Sum of instruction
processing time is the sum of individual instruction execution times. execution times
For details, refer to SECTION 4 Instruction Execution Times and Number of Steps
of CP Series CP1H/CP1L CPU Unit Programming Manual (W451) or SECTION 3
Instruction Execution Times and Number of Steps of CP Series CP1E CPU Unit
Instructions Reference Manual (W483).
I/O Refreshing
Details Processing Time and
Variation Factors
CP-series Expansion I/O Units and Each unit is refreshed. I/O refresh time for
Expansion Units Outputs (from the CPU unit to each unit is multiplied
the expansion units) are by the number of
refreshed first, followed by the units used
inputs (from the expansion
units to the CPU unit).
For details on I/O refresh time, refer to 2-7 Computing the Cycle Time of CP Series
CP1L CPU Unit Users Manual (W462) or SECTION 4 Monitoring and Computing
the Cycle Time of CP Series CP1E CPU Unit Instructions Reference Manual
(W483).
Peripheral Services
Details Processing Time and Variation Factors
Peripheral USB port Processing time for these services will vary depending on the PLC
service settings.
If a cycle time has not been specified, service will be executed
Serial port service using 4% of the preceding cycle time calculated by "cycle time
calculation". If a cycle time has been specified, service will be
executed for the specified time.
Execution will take at least 0.1ms, regardless of whether a cycle
time has been specified or not.
If the ports are not connected, the servicing time will be 0ms.
Communication port If a cycle time has not been specified in the PLC settings, service
service * will be executed for 4% of the preceding cycle time calculated by
"cycle time calculation".
If a cycle time has been specified, service will be executed for the
A
specified time.
Execution will take at least 0.1ms, regardless of whether the cycle
time has been specified.
If no communications ports are used, the servicing time will be
Appendix
0ms.
Built-in flash memory/ Processing time for these services will vary depending on the PLC
EEPROM accessing settings.
service If a cycle time has not been specified, service will be executed
using 4% of the preceding cycle time calculated by "cycle time
Memory cassette calculation". If a cycle time has been specified, service will be
accessing service * executed for the specified time.
Execution will take at least 0.1ms, regardless of whether the cycle
time has been specified.
If there is no access, the servicing time will be 0ms.
Note 1. The cycle time will vary depending on the following factors.
Type and number of instructions in the user program (all cyclic tasks and
additional tasks executable during the cycle, and interrupt tasks of which
execution condition are satisfied)
Type and number of CP-series expansion I/O units and expansion units
connected
"Minimum cycle time" specified in the PLC settings
Use of peripheral USB ports and serial ports
"Fixed peripheral servicing time" specified in the PLC settings
2. The cycle time is not affected by the number of tasks in the user program. The
cycle time is only affected by cyclic tasks that are READY within the cycle.
3. When changing from MONITOR to RUN mode, the cycle time will be extended
by approx. 10ms (this will not, however, make the cycle time too long).
4. Service time is separately allocated for the peripheral USB port, serial port, and
communication port services. By default, 4% of the preceding cycle time will be
allocated.
If services take several cycles for execution, and are delayed, allocate a fixed
amount of time (as opposed to percentage) to each service. To do this, use
[Set time to all events] under PLC Settings. CP1E has no setting, and cycle
time is fixed to 8%.
Appendix
This function is useful for changing settings based on inputs such as change in
outside temperature or feedback from a variable resistor.
An example using input from a variable resistor is shown below.
Operation Overview
A photoelectric sensor is placed in front of a gate. When the sensor detects a car,
the gate is opened.
When the car passes the gate, the sensor is turned OFF.
Photoelectric sensor
(E3G-series, etc)
CP1L
Gate
When a set amount of time passes after the sensor is turned OFF, the gate is closed.
Sensor input
Contact 0.00
Time to OFF
Min. 2.0s to Max. 27s
The time until the gate closure will be adjusted with by a variable resistor connected
to CP1L.
Adjustment range
(Min. 2.0s to Max. 27s) Variable resistor
System Configuration
Wiring Example
Sensor input
0.00
DC24V 1.4k
(1/2W)
CP1L
Programming Example
Ladder Program
0.00 T0010 100.00
Photoelectric Gate
sensor
100.00
P_On
BCD
A643
D0
+B
#20 A
D0
D1
100.00 0.00
TIM
Gate Photoelectric 0010 B
sensor
D1
(A): To set a minimal value of 2sec, first convert the external analog input value
A643 to a BCD value of D0, increment it by 20BCD/2sec, and then store it as
D1.
(B): TIM will act as a decrementing ON timer with 0.1sec intervals.
INFO
281
100(Hex) 256
0
0 10 11 Input Voltage (V)
A
The maximum input voltage is 11VDC. Do not apply voltages any greater.
Appendix
external analog settings input. The analog adjuster can set the auxiliary area
(A642CH*) to any value in the 0 to 255 range (0 to FF Hex).
Philips screwdriver
Analog adjuster
Photoelectric Gate
sensor
100.00
Gate
P_On
BCD
A642 A
D0
A
+B
#20
D0
D1
Appendix
100.00 0.00
TIM
(A): To use the analog adjuster on CP1L or CP1E for setting the timer in the
example application, change auxiliary area A643 in the ladder program to
A642.
Quick-Response Input
By setting the built-in input to use quick-response inputs, inputs having a signal
width as small as 30s (CP1E: 50s) can be captured, regardless of the cycle
time.
CP1L 10-point I/O units can use up to 2 quick-response inputs. 14-point I/O units
can use up to 4. 20/30/40/60-point I/O units can use up to 6. All types of CP1E
units can use up to 6.
Operation Overview
Products moving at high speeds are detected by a sensor and counted.
Sensor (E3X-series used with
Product E32-series fiber unit.)
Signals that are shorter than the scan time must be read and counted.
When 100 signals have been counted, a counting completed signal will be output.
30 s min. (CP1E: 50 s min.)
Sensor input
Contact 0.04
Contact C0000
Counter reset
Input contact 0.01
A
Count complete
Appendix
Contact 100.00
Quick-response inputs can read short signals that are shorter than the cycle
time. However, as with any other input, the full cycle time will be used for ladder
processing. For accelerated processing unaffected by the scan time, use
interrupt inputs.
The input can only be counted once during each cycle time, regardless of how
many times the input occurs. To count the input multiple times within each cycle
time, use a high-speed counter.
System Configuration
Wiring Example
Sensor input 0.04 Counter reset input 0.01
CP1L
PLC Setup
On the PLC Settings dialog box, set the sensor input (0.04) to [Quick].
1. Open the CX-Programmer main window.
2. Double-click [Settings] in the project tree.
A
Appendix
4. On the IN0 (CP1E: IN4) drop-down list for Interrupt Input, select [Quick].
While the sensor input contact is 0.04, setup is performed for [IN0 (CP1E:
IN4)] since the interrupt input / quick-response input setting is set to
0(CP1E: 4).
Appendix
5. Close the PLC Settings dialog box.
6. To apply changes made to the PLC settings, turn the PLC power ON.
Programming Example
Ladder Program
0.04
CNT BCD counter
Sensor input
0000
0.01
#0100
Counter reset input
C0000 100.00
Count complete
Interrupt Inputs
CP1L and CP1E CPU Units normally repeat processes in the following order:
overseeing processes, program execution, I/O refreshing, peripheral servicing. During
the program execution stage, cyclic tasks are executed. The interrupt function, on the
other hand, allows a specified condition to interrupt a cycle and execute the specified
program.
Interrupt inputs (direct mode) execute interrupt tasks when the built-in input of a
CPU unit switches from OFF to ON, or from ON to OFF. Interrupt tasks 140 to 145
(CP1E: 2 to 7) are allocated to the input contacts. The allocation is fixed. Use
A interrupt inputs to achieve faster processing that is unaffected by the scan time.
Operation Overview
Appendix
Moving product (i.e. IC chips) will be inspected for curvatures and bends.
Use interrupt inputs if the normal cycle time cannot provide fast enough
processing.
Interrupt tasks will be executed when the sensor input (interrupt) changes from
OFF to ON.
System Configuration
Wiring Example
On CP1L units with 14-point I/O, interrupt inputs can be allocated to contacts 0.04
to 0.07.
Input interrupt 0 (CP1E: 4) will be allocated to contact 0.04. The interrupt task
executed by input interrupt 0 (CP1E: 4) is task No.140 (CP1E: No.4).
Sensor input 3 0.02 Sensor input (interrupt input 0) 0.04
Sensor input 2 0.01
Sensor input 1 0.00 RESET input 0.05
CP1L A
Appendix
PASS output 100.00 NG output sensor input 3 100.04
NG output 100.01 NG output sensor input 2 100.03
NG output sensor input 1 100.02
PLC Setup
Set contact 0.04 to be [Interrupt].
1. Open the PLC Settings dialog box.
2. Click the Built-in Input tab.
3. On the IN0 (CP1E: IN4) drop-down list for [Interrupt Input], select [Interrupt].
While the sensor input contact is 0.04, setup is performed for [IN0 (CP1E:
IN 4)] since the interrupt input setting is set to 0 (CP1E: 4).
Programming Example
Ladder Program
MSKS (interrupt mask set) instructions will be used to assign the "up" specification
to the interrupt input, and to set the interrupt permission for enabling the interrupt
inputs.
P_First_Cycle
MSKS(690) Interrupt input 0
(CP1E: Interrupt input 4)
110(114)
#0 Up specification for input
A 100.02
#0 Allow interrupt
SET
Appendix
100.03
100.04
0.05
RSET
RESET input 100.00
RSET
100.01
RSET
100.02
RSET
100.03
RSET
100.04
When interrupt input 0 (CP1E: 4) (contact 0.04) turns ON, the following "interrupt
task 140 (CP1E: 4)" will be executed once. Assignment of interrupt tasks to
interrupt inputs is fixed. Interrupt input 0 (CP1E: 4) will always execute interrupt
task 140 (CP1E: 4).
0.00 0.01 0.02
SET PASS output
Sensor input 1 Sensor input 2 Sensor input 3 100.00
0.00
SET NG output
sensor input 1
Interrupt task Sensor input 1 100.02
140 0.01
(CP1E: 4)
SET NG output
sensor input 2
Sensor input 2 100.03
0.02
SET NG output
A
sensor input 3
Sensor input 3 100.04
Appendix
INFO
A
Appendix
3. Click the General tab. Select [Interrupt Task 140 (CP1E: 4)] from the Task
type drop-down list.
o
Appendix
4. Close the Program Properties dialog box.
5. Select [Section1] under [NewProgram2 (Int 140 (CP1E: 4))].
Clock
CP1L and CP1E CPU units have a built-in clock.
The clock cannot be used if a battery is not installed or the battery voltage is low.
Operation Overview
In this example, a fountain will be controlled.
The fountain is to be activated according to the following schedule:
A Mon thru Fri: 17:30 to 20:30
Sat, Sun: 10:00 to 21:15
Appendix
CP1L/CP1E
Fountain
System Configuration
Wiring Example
CP1L
Fountain pump
100.00
Programming Example
Ladder Program
Q: 100.00
Appendix
D20 D30
=(300)
A354
#0
(A): Turned ON for Monday thru Friday (i.e. when A354 [day] is less than or equal
to [Friday]),
from 17:30 (when A351 [hh:mm:ss] becomes equal to the value set in D0
[17:30:00])
until 20:30 (when A351 [hh:mm:ss] becomes equal to the value set in D10
[20:30:00]).
(B): Turned ON for Saturday and Sunday (i.e. when A354 [day] is equal to
[Saturday]) or [Sunday],
from 10:00 (when A351 [hh:mm:ss] becomes equal to the value set in D20
[10:00:00])
until 21:15 (when A351 [hh:mm:ss] becomes equal to the value set in D30
[21:15:00]).
INFO
A
Appendix
0.00 100.00
=DT
C D0
S1 A351
S2 D100
7 6 5 4 3 2 1 0
D0 - - 1 1 1 0 0 0 Set D0=0038Hex
Compare seconds
Compare minutes
Compare hours
Mask days
Mask months
Mask years
15 9 7 0 15 9 7 0
A351 Minute Second S2 :D100
A352 Day Hour S2+1:D101
A353 Year Month S2+2:D102
DM Area Setup
The following values are set into the DM area as BCD.
Channel Value Content
D0 3000 30min 00sec
D1 0017 17hr
D2 0000 -
D10 3000 30min 00sec
D11 0020 20hr
D12 0000 -
D20 0000 00min 00sec
D21 0010 10hr
D22 0000 -
D30
D31
1500
0021
15min 00sec
21hr
A
D32 0000 -
Appendix
1. Open the CX-Programmer main window.
2. Double-click [Memory] in the project tree.
A
4.
Appendix
Operation Overview
A sheet feeder will be regulated to feed constant lengths in a given direction, i.e. for
vacuum packing of food products. A
Appendix
Motor Speed
Motor: Start
Contact 0.02
Motor: Run
Contact 100.00
Motor: Slow
Contact 100.01
Normal stop position
Contact 100.02
Error stop position
Contact 100.03
3550
High-speed counter 3500
measurement pulse 3000
(Pulse)
(A270)
While the pulse count is between 3500 and 3550, normal stop position (100.02) will
be ON. When the pulse count exceeds 3550, error stop position (100.03) will be
ON.
System Configuration
Wiring Example
Phase C
+Vcc
E.g.: Model E6B2-CWZ6C
0V(COM)
NPN open collector output
24VDC
(S8VM-series) Start motor
A
AC100~240V 0.02 Switch (A16-series)
Appendix
CP1L-L14DR-A
Note Use the external power supply for input devices only. (It cannot be used to power
output devices.)
PLC Setup
High-speed counter 0 will be enabled.
1. Open the PLC Settings dialog box.
2. Click the Built-in Input tab.
Appendix
3. Check the [Use high speed counter 0] checkbox for High Speed Counter
0.
4. Select [Linear mode] for [Counting mode].
5. Select [Software reset(comparing)] from the Reset drop-down list.
6. Select [Differential phase input] from the Input Setting drop-down list.
7. Close the PLC Settings dialog box.
8. To apply changes made to the PLC settings, turn the PLC power ON.
Programming Example 1
Use comparison instructions to compare counter values.
The program can be created easily by using comparison instructions to compare
counter values.
Ladder Program
Counter values are used to start/slow/stop the motor.
0.02 W0.00
DIFU Software reset
A531.00 for high-speed counter 0
Start motor Stop motor
A
100.00 100.00
100.01
When high-speed
>=(325) counter (A270) reaches
3000 (0BB8 Hex),
A270 Motor slow the motor decelerates.
#0BB8
W0.00
When high-speed
>=(325) counter (A270) reaches
A270 3500 (0DAC Hex),
Stop motor
the motor is stopped.
#0DAC
Programming Example 2
Use a CTBL (register comparison table) instruction to execute an interrupt process
when the target value is achieved.
Slowing and stopping are executed as interrupt tasks, allowing high-speed
processes to be executed without affecting the cycle time.
Ladder Program
Use a CTBL instruction to execute interrupt tasks when the target position is
reached.
0.02
RSET Reset "motor stopped"
Start motor W0.02
A531.00
A
Software reset for high-speed counter 0
Appendix
CTBL(882)
SET
Set "motor run"
100.00
100.03
Stop position is in error if the
>=(325) high-speed counter (A270) is
greater than 3550 (0DDE Hex).
A270 Error stop position
#0DDE
When the PV of the high-speed counter matches target value 1 (3000), interrupt task
04 will be executed.
P_On
Interrupt task
04 SET
Set "motor slow"
100.01
When the PV of the high-speed counter matches target value 2 (3500), interrupt task
05 will be executed.
P_On
RSET
Reset "motor run"
100.00
Interrupt task
05 RSET
Reset "motor slow"
100.01
SET
Reset "motor stopped"
W0.02
A DM Area Setup
The comparison table for the CTBL (register comparison table) instruction should
be allocated to DM D600 through D606.
Appendix
Operation Overview
The following example is for a single-axis handling machine that is used to transfer
product.
Origin search will be executed, followed by positioning operations to points A and B.
Point A Origin Point B
Origin Search
An accurate origin search that makes use of various I/O signals (origin proximity
input signal, origin input signal, positioning completed signal, error counter reset
output, etc.) can be executed with a single instruction.
Origin proximity input
Contact 0.02
Origin input
Contact 0.06
Search high speed
Pulse 10kHz
frequency Search deceleration ratio
Search acceleration ratio 2000Hz/4ms
2000Hz/4ms
A
Search proximity speed
1000Hz
CCW CW
Appendix
Origin Search Method Setting Description
Search direction CW Origin search is executed in the CW direction.
Detection method Methd 0 Reads the first origin input signal after an OFF-ON-OFF
sequence of the origin proximity input signal.
Search operation Invers 1 Reverses direction on a limit input, and continues the origin
search.
Operating mode Mode 1 Executes an error counter reset output when the origin is
detected. Positioning completed input will not be used.
Positioning
Common settings for the positioning operations are as follows:
Target frequency 50kHz
Acceleration/deceleration ratio 2000Hz/4ms
Initial frequency 0Hz
(1) After completion of the origin search, the equipment will be positioned to point
A (-1000) by absolute pulse specification (absolute coordinate system).
(2) After positioning to point A, the equipment will be positioned to point B
(100000) by absolute pulse specification (absolute coordinate system).
(3) Positioning of points A and B are repeated. Because absolute pulse
specification is used, the positioning SV for (3) will be the same as for (1).
System Configuration
Wiring Example
Senser (E2E-series)
CCW limit Origin proximity CW limit
sensor sensor sensor Switch (A16-series)
0.00 0.02*2 0.01 Start Positioning Positioning
origin search to point A to point B
0.03 0.04 0.05
NO NO NO
contact contact contact
A
+ 24VDC -
Appendix
R7D AP series
+ - CN1
1 CW
2 CW
CP1L-L14DT 3 CCW
4 CCW
5 ECRST
6 ECRST
Indicator Hood FG
(M16-series)
*1 Insert a resistance of 1.6 to 2.2k , so that the current is within the 7 to 15mA
range.
*2 The bit allocations of origin proximity sensor, origin input and error counter reset
output are different with the CPU unit I/O points. Refer to CP Series CP1E CPU
Unit User's Manual (W462) or CP Series CP1E CPU Unit Hardware User's
Manual (W479) for the details on allocation.
*3 For CP1E units, the pulse will be set to 100.00 and the direction will be set to
100.01. Set the servo drive to pulse plus direction.
PLC Setup
Specify the settings for pulse output 0.
1. Open the PLC Settings dialog box.
2. Click the Pulse Output 0 tab.
3. Set the following settings.
Appendix
Base Settings Origin Search
Item Setting Item Setting
Undefined Origin Hold Use define origin operation Use
Limit Input Signal Operation Always Search Direction CW
Limit Input Signal NO Detection Method Methd 0
Search/Return Initial Speed 0pps Search Operation Invers 1
Speed Curve Trapezoidal Operating Mode Mode 1
Origin Input Signal NO
Proximity Input Signal NO
Search High Speed 10000pps
Search Proximity Speed 1000pps
Search Compensation Value 0
Search Acceleration Ratio 2000
Search Deceleration Ratio 2000
Positioning Monitor Time 0ms
Programming Example
Ladder Program
Allocate limit sensors to limit inputs.
0.01 A540.08
0.00 A540.09
A
0.03
@ORG(889) Origin search ORG instruction
Start origin search #0 Pulse output 0
#0 Origin search function
Appendix
0.05
@PLS2(887) Positioning PLS2 instruction
Positioning to point B #0 Pulse output 0
#1 Absolute pulse specification(CP1E: #101)
D10 Position data setup table
D6 Initial frequency setting
Appendix
D0015 0001
A
CP1L CP1E
Appendix
Option COMM
RS-422A/485 option
board slot board
CP1W-CIF11/12
15 08 07 00
D32300 Slave address
(CP1E: D1200)
D32301 FUNCTION code
(CP1E: D1201)
D32302 Communication data bytes
Describe Modbus-RTU commands in the (CP1E: D1202)
DM fixed allocation words. D32303 Communication data
Communication can then be enabled by (CP1E: D1203)
simply turning ON the software switch
A640 CH bit 00.
Slave address FUNCTION code Communication data
Modbus-RTU
Modbus-RTU easy master function OMRON inverter
A
execution switch A640 CH bit 00 CP1L J1000, V1000, A1000
(for port 1)
Appendix
In the DM fixed allocation words for Modbus-RTU easy master, allocate the slave
address, function, and data to the Modbus slave device. After the allocations have
been made, Modbus-RTU commands can be sent by turning the software switch ON.
Received responses are automatically stored in the DM fixed allocation words.
Note Modbus-RTU easy master execution bits and DM Fixed Allocation words depend
on unit type, CP1L10/14/20-point I/O units or 30/40/60-point I/O units, built-in
RS-232C port of CP1E N-type 20/30/40-point I/O unit or serial option port of CP1E
N-type 30/40-point I/O unit. For details, refer to CP Series CP1L CPU Unit User's
Manual (W462) or CP Series CP1E CPU Unit Software User's Manual (W480).
Operation Overview
A bobbin winder on a spinning machine will be used for in the following example.
The rotation speed of the bobbin winder must be made variable as the thread is
wound, so that the speed at which the thread is pulled stays constant.
CP1L
60.00Hz
55.00Hz
50.00Hz
Speed
Stooped
The target speed is achieved based on input from multiple contacts. Acceleration
and deceleration is modified by the acceleration and deceleration of an inverter.
System Configuration
CP1L and V1000 (an OMRON inverter) are connected by RS485 for frequency and
start/stop control.
Wiring Example
CP1L V1000
CP1W-CIF11/12
RS485 Symbol Control
COMM 1 RDA- S- circuit
2 RDB+
RDA
- RDB+ SDA
- SDB+ FG
S+ terminal block
3 SDA- 50m or less R- (communication
4 SDB+ R+ terminals)
5 FG
CP1W-CIF11/12
(RS422/485 option board)
CP1W-CIF11/12 Setup
Set the DIP switches as follows.
(Rear panel)
Appendix
5 RS control for RD ON Enabled
6 SD control for RD ON Enabled
V1000 Setup
Set the DIP switches as follows.
SW2-1: ON (terminating resistance present) Terminating resistance for RS422/
485 communication
PLC Setup
Configure serial port 1.
1. Open the PLC Settings dialog box.
2. Click the Serial Port 1 tab (CP1E: Built-in RS232C Port tab).
3. Set the following settings.
A
Appendix
Item Setting
Communication Settings Custom
Baud 9600bps
Format 8, 1, E
Mode Serial Gateway Mode (CP1E: Modbus Easy Master)
Response Timeout 0 (Default)
Programming Example
Ladder Program
P_First_Cycle
MOV(021)
#0000
D32306 (CP1E: D1206) Stop operation when communication
starts. Operation command (0: Stop)
MOV(021) Frequency command 00.00Hz
#0000
D32307 (CP1E: D1207)
W0.00
MOV(021)
A
Contact A #0117
D32306 (CP1E: D1206) Operation command (1: Start)
Frequency command
MOV(021)
60.00Hz (1770 Hex)
Appendix
#7000
D32307 (CP1E: D1207)
W0.01
MOV(021)
Contact B #0115
D32306 (CP1E: D1206)
Operation command (1: Start)
MOV(021)
Frequency command
55.00Hz (157C Hex)
#7C00
D32307 (CP1E: D1207)
W0.02
MOV(021)
Contact C #0113
D32306 (CP1E: D1206)
Operation command (1: Start)
MOV(021) Frequency command
50.00Hz (1388 Hex)
#8800
D32307 (CP1E: D1207)
W0.15
MOV(021)
Contact Z #0000
D32306 (CP1E: D1206)
Operation command (0: Stop)
MOV(021) Frequency command 00.00Hz
#0000
D32307 (CP1E: D1207)
A B C
(A): Turn the A640.00 execution flag ON to send command data D32300 (CP1E:
D1200) and later. For details, refer to DM Area Setup on the next page.
A Channel
Serial Port 1
Bits Setting
(CP1E: D1200)
15 to 08 Reserved (must be 00 Hex)
D32301 07 to 00 FUNCTION code
(CP1E: D1201) Command
15 to 08 Reserved (must be 00 Hex)
D32302 15 to 00 Number of communication data bytes
(CP1E: D1202) (0000 to 005E hex)
D32303 to D32349 15 to 00 Communication data (max. 94bytes)
(CP1E: D1203 to D1249)
(B): When a command has been sent successfully, A640.01 execution normal flag
is turned ON, and data is stored to responses D32350 (CP1E: D1250) and
later.
Channel Bits Setting
Serial Port 1
D32350 07 to 00 Slave address (01 to F7 Hex)
(CP1E: D1250)
15 to 08 Reserved (must be 00 Hex)
D32351 07 to 00 FUNCTION code
(CP1E: D1251)
15 to 08 Reserved
Response
D32352 07 to 00 Error code
(CP1E: D1252)
15 to 08 Reserved (must be 00 Hex)
D32353 15 to 00 Number of response bytes (0000 to 03EA
(CP1E: D1253) Hex)
D32354 to D32399 15 to 00 Response data (max. 92bytes)
(CP1E: D1254 to D1299)
(C): When a communication error occurs, A640.02 execution error flag is turned
ON, and the error code is stored to D32352 (CP1E: D1252).
DM Area Setup
DM Fixed Allocation Words for Modbus-RTU Easy Master
DM settings from D32300 to D32305 (CP1E: D1201 to D1205) are set before the
execution of the ladder program.
D32306 and D32307 (CP1E: D1206 and D1207) do not need to be set explicitly.
They are modified by MOV instructions, and are used to change, start, and stop
frequency commands.
A
(CP1E: D1200) (CP1E: D1201) (CP1E: D1202) (CP1E: D1203) (CP1E: D1204) (CP1E: D1205) (CP1E: D1206) (CP1E: D1207)
Appendix
00 00
Data for next register
(e.g. set 60.0Hz (0258 Hex) for No.0002
Inverter slave address: 1 (Hex)
[frequency command])
For number of bytes, use 9 bytes from Attached data size in bytes: 4
upper D32303 to upper D32307 (4 bytes from lower D32305 to upper D32307
(CP1E: Upper D1203 to upper D1207) (CP1E: lower D1205 to upper D1207))
Number of registers data is written to: 2
(2 data: No.0001 and No.0002 on register 2)
For this example, only operation command (No.0 bit) will be used.
With Modbus-RTU easy master function, CRC-16 checksums do not need to be
set in the DM area, since they are calculated automatically.
A FB
Appendix
Modbus-RTU
Inverter
V1000, A1000
CP1L
Note Documentation (PDF file) on Smart FB Library functions can be found in the
[FBL] - [omronlib] - [Inverter] - [INVRT] - [Serial] folder. For details on the Smart FB
Library, refer to this file.
T1
#0100
Y1
Processing
(algorithm)
Tn
#0100
Yn
Yn
A
Z1 Zn
Appendix
Zn
[Device 1 Control]
Define as function block P_On
Device Control
EN ENO
Device Control A1 A X X1
EN ENO B1 B Y Y1
Z Z1
A X
B Y [Device 2 Control]
P_On
Device Control
Z EN ENO
A2 A X X2
B2 B Y Y2
Z Z2
Insert function block instance
into ladder program
Set I/O parameters
The defined function block can be used in ladder programs as function block
instances.
Operation Overview
The example for A-4-7 Using Inverters for Speed Control (1) will be used again.
60.00Hz
55.00Hz
50.00Hz
Speed
Stopped
The target speed is achieved based on input from multiple contacts. Acceleration
and deceleration is modified by the acceleration and deceleration of an inverter.
A System Configuration
The system configuration for A-4-7 Using Inverters for Speed Control (1) will be
Appendix
used again.
CP1L and V1000 are connected by RS485 for frequency and start/stop control.
CP1L V1000
COMM
RS485
CP1W-CIF11/12
(RS422/485 option board)
In this FB library example, capacity of the user memory may exceed 5K steps.
For this reason, since a memory capacity error may occur on a 10/14/20-point
CP1L (with a user memory of 5K steps), use a 30/40/60-point CP1L (with a user
memory of 10K steps) for this example
For details on wiring, and on the settings for CP1W-CIF11/12, V1000, and CP1L,
refer to System Configuration of A-4-7 Using Inverters for Speed Control (1).
Programming Example
A
I/F area type (WORD) area No.
AreaID
(INT)
I/F area No. AreaNo
Message area (WORD)
type MSGAreaID
Message area (INT)
No. MSGAreaNo
Appendix
Required for communication with the Specifies start signal, rotation direction, Decelerates an operating axis to a stop.
inverter. and frequency in Hz.
1 FB is used for each PLC serial port.
1 "Status refresh" FB will be used for a
serial port, even if the serial port has
multiple inverters connected.
Issues communication commands to
inverters.
Processes communication errors.
Assigns priorities when multiple
commands are issued.
Ladder Program
W0.00
MOV(021)
Contact A #1770
D100
Frequency command
60.00Hz(1770 Hex)
MOV(021) Rotation direction Normal (0)
#0
D2
W0.01
MOV(021)
A
Contact B #157C
D100
Frequency command
55.00Hz(157C Hex)
Appendix
W0.02
MOV(021)
#1388
Contact C
D100
Frequency command
50.00Hz(1388 Hex)
MOV(021) Rotation direction Normal (0)
#0
D2
P_On
FLT(452) Convert frequency
command (D100)
D100 from BIN to floating
D101 point
A
E.g.
6000/100=60.00Hz
W0.00 W1.00
Appendix
Contact A Start
W0.01
Contact B
W0.02
Contact C
W0.15 W1.01
Contact Z Stopped
Reset data interface work area between FBs when operation is started.
P_First_Cycle
BSET(071) Block settings
First cycle flag #0 Data to transfer/convert
D9000 Lower CH No.
D9100 Upper CH No.
MoveV
_INV032_MoveVelocityHz
P_On
(BOOL) (BOOL)
EN ENO
Always ON flag &1 (INT) (BOOL) W10.00
Inverter slave unit 1 NodeNo Velocity Matching
(BOOL) (BOOL) W10.01
W1.00 Start Execute Command Aborted Force quit
(REAL) (BOOL) W10.02
D0 Frequency Velocity Error MoveFB error
(INT) (WORD)
D2 Direction Direction ErrorID
*1 P_DM (WORD)
DM area AreaID
specification (INT)
&9000 AreaNo
Decelerate to stop
_INV060_Stop
A
P_On
(BOOL) (BOOL)
EN ENO
(INT) (BOOL) W10.03
Always ON flag &1 Done
NodeNo Deceleration complete
Inverter slave unit 1
(BOOL) (BOOL)
Appendix
*1
Refresh Set the same area to use
as FB data interface.
_INV002_Refresh
P_First_Cycle
(BOOL) (BOOL)
EN ENO
First cycle flag (BOOL)
#CCCC (INT) W7.00
PLC used: select CP1L UnitSelect BUSY Communicating
&1 (INT) (INT)
Select serial port PortNo W8
NodeAddr Inverter slave unit communicating or done communicating
#00000002 (DWORD) (BOOL)
Inverter slave unit used Scanlist Error
INFO
Appendix
2. Select the [FBL] - [omronlib] - [Inverter] - [INVRT] - [Serial] folder.
A list of FB library files for serial communication with inverters will be displayed.
Appendix
8. Connect an input contact to the FB.
9. Set the I/O parameters for the FB.
1) Place the cursor next to an FB parameter. Press the [Enter] key.
The New Parameter dialog box will be displayed.
2) Input the parameter. Press the [Enter] key.
Operation Overview
Current temperature information is exchanged by boilers.
This setup may be used to adjust boiler temperatures according to the other boiler
conditions, or to monitor the boilers from a single location.
Boiler A Boiler B Boiler C
A
Appendix
System Configuration
Wiring Example
Boiler A: CP1L (Master) Boiler B: CP1L (Slave No.0) Boiler C: CP1L (Slave No.1)
Temperature sensor unit Temperature sensor unit Temperature sensor unit
CP1W-TS101 CP1W-TS101 CP1W-TS101
RDA
- RDB+ SDA
- SDB+ FG RDA
- RDB+ SDA
- SDB+ FG
RDA
- RDB+ SDA
- SDB+ FG
Appendix
6 SD control for RD ON ON ON Enabled
PLC Setup
Configure serial port 1.
1. Open the PLC Settings dialog box.
2. Click the Serial Port 1 tab (CP1E: Built-in RS232C Port tab).
3. Set the following settings.
A Programming Example
Serial PLC links are used for program-free linking of data in the serial PLC link
Appendix
areas. The ladder program transfers the data to be linked to the data link area.
3109CH(209CH)
3110CH(210CH) B_Temperature data 0 B_Temperature data 0 B_Temperature data 0
3111CH(211CH) B_Temperature data 1 B_Temperature data 1 B_Temperature data 1
Serial PLC
link area
3119CH(219CH)
3120CH(220CH) C_Temperature data 0 C_Temperature data 0 C_Temperature data 0
3121CH(221CH) C_Temperature data 1 C_Temperature data 1 C_Temperature data 1
3129CH(229CH)
3189CH(289CH)
Ladder Program
Boiler A Boiler B Boiler C
CP1L (Master) CP1L (Slave No.0) CP1L (Slave No.1)
Use block transfer instruction Use block transfer instruction Use block transfer instruction
to transfer 1CH, 2CH to to transfer 1CH, 2CH to to transfer 1CH, 2CH to
3100CH, 3101CH 3110CH, 3111CH 3120CH, 3121CH
(200CH, 201CH) (210CH, 211CH) (220CH, 221CH)
Appendix
A
Output types Relay or transistor outputs Only relay outputs Relay or transistor outputs
Terminal block Removable. Irremovable.
Power supply to external Only AC power supply Only AC power supply
devices (service power) CPU Unit with 30, 40 or 60 CPU Unit with 30 or 40 I/O Points: 300mA
Appendix
Item CP1L CPU Units CP1E E-type CPU Units CP1E N-type CPU Units
High-speed counter inputs
Mode Up/down or pulse plus Up/down or pulse plus Up/down or pulse plus
direction inputs: direction inputs: direction inputs:
100 kHz 4 counters 10kHz 2 counters 100kHz 1 counter
Or Or 10kHz 1 counter
Differential phases (4): Differential phases (4): Or
50 kHz 2 counters 50 kHz 2 counters Differential phases (4):
Or Or 50kHz 1 counter
Increment inputs: Increment inputs: 5kHz 1 counter
100 kHz 4 counters 10kHz 6 counters Or
Increment inputs:
100kHz 2 counters
10kHz 4 counters
High-speed counter Target value comparison Target value comparison Target value comparison
method and Range comparison and Range comparison and Range comparison
A
Quick-response inputs 6 inputs 6 inputs 6 inputs
Interrupt inputs 6 inputs 6 inputs 6 inputs
Direct mode or counter Only direct mode Only direct mode
mode
Appendix
Pulse Pulse output method Pulse plus direction outputs Not supported. Only pulse plus direction
outputs CW/CCW outputs
Speed control Supported. Supported.
Positioning Supported. Supported.
S-curve Supported. Not supported.
acceleration and
deceleration
Origin searches Supported. Supported.
PWM outputs 2 outputs Not supported. 1 output
Inverter positioning functions Supported. Not supported.
DIP switch on front panel Supported. Not supported.
The following functions are not supported without a DIP
switch.
Program write protection
External inputs by DIP switch (AR395.12 allocation)
Automatic transfer from Memory Cassette (without
memory cassette function)
Serial port setting (Toolbus protocol is not supported.
Analog adjusters 1 2
External analog setting input Provided. Not provided.
USB port Provided. Provided.
USB2.0 Full-speed (12M) USB2.0 Full-speed (12M)
Built-in serial Not provided. (Option Not provided. Provided. (RS232C
communication port Board)
Serial option port CP1L L-type CPU Unit: Not provided. CPU Unit with 20 I/O Points:
1 port None
CP1L M-type CPU Unit: CPU Unit with 30 or 40 I/O
2 ports Points: 1 port
Item CP1L CPU Units CP1E E-type CPU Units CP1E N-type CPU Units
Serial communication
protocols
Baud rate 300/600/1200/2400/4800/ No communication port 1200/2400/4800/9600/
9600/19.2k/38.4k/57.6k/ 19.2k/38.4k/57.6k/115.2k
115.2k *300/600bps are not
supported.
Supported protocol Host Link Host Link
Toolbus Cannot connect to the CX-P
No-protocol directly.
1:N NT Link No-protocol
1:1 NT Link 1:N NT Link
Serial Gateway Can only connect one PT.
(CompoWay/F PT programming console is
Modbus-RTU not supported.
Serial PLC Link (Master) Serial PLC Link (Master)
Serial PLC Link (Slave) PTs participation is not
Item CP1L CPU Units CP1E E-type CPU Units CP1E N-type CPU Units
Trace Memory Supported. Not supported.
Clock (RTC) Supported. Not supported. Supported.
Address offsets Not supported. Supported. Supported.
Number of cyclic tasks 32 1 1
Number of interrupt tasks 256 16 16
Number of subroutines 256 128 128
Jump numbers 256 128 128
Scheduled interrupts 1 interrupt 1 interrupt
Time unit: 10ms, 1ms, Time unit: Only 0.1ms
0.1ms Interrupt intervals are fixed when MSKS instruction is
executed.
Only reset/start can be executed by MSKS instruction.
I/O Memory
Item CP1L CPU Units CP1E E-type CPU Units CP1E N-type CPU Units
A
CIO Area 98,304 bits 4,640 bits
Appendix
CIO 0 to CIO 6143 CIO 0 to CIO 289
Work Area (W) 8,192 bits 1,600 bits
W0.00 to W511.15 W0.00 to W99.15
Temporary Area (TR) 16 bits 16 bits
TR0 to TR15 TR0 to TR15
Holding Area (H) 24,576 bits 800 bits
H0.00 to H1535.15 H0.00 to H49.15
Auxiliary Area (A) Read-only: 7,168 bits Read-only: 7,168 bits
A0 to A447 A0 to A447
Read/write: 8,192 bits Read/write: 4,896 bits
A448 to A959 A448 to A753
Timers (T) 4,096 timers 256 timers
T0 to T4095 T0 to T255
Counters (C) 4,096 counters 256 counters
C0 to C4095 C0 to C255
DM Area (D) 32K words 2K words 8K words
D0 to D32767 D0 to D2047 D0 to D8191
(All the data of the DM Area (D0 to D1499 can be (D0 to D6999 can be
can be backed up to flash backed up to EEPROM by backed up to EEPROM by
memory as initial values for using the Auxiliary Area using the Auxiliary Area
use at startup. The data is control bits. The data is control bits. The data is
backed up when power is restored to RAM when restored to RAM when
interrupted and then power is turned ON for the power is turned ON for the
restored to RAM the next settings in the PLC Setup.) settings in the PLC Setup.)
time power is turned ON
(DM Area initialization
function).)
Task Flag Area 32 1
TK0 to TK32
Index Registers (IR) IR0 to IR15 Not provided.
Data Registers (DR) DR0 to DR15 Not provided.
Trace Memory 4,000 words Not provided.
PLC Setup
Item CP1L CPU Units CP1E E-type CPU Units CP1E N-type CPU Units
PLC Setup - Functions not provided in the PLC Setup
Comms Instructions Settings in FB: None
Inverter positioning: None
Set time to all events: Deleted
Startup Hold: Deleted
Force Status Hold
IOM Hold
Scheduled Interrupt Interval: Deleted (Only 0.1ms)
Appendix
A
Instructions TRSM
BCMP2 ACOSD
Failure Diagnosis FPD
Data Movement MVNL ATAND
Instructions
Instructions XCGL SQRTD
EXPD Other Instructions CCS
MOVR
Appendix
P section .................................................... 49
peripheral service ................................. 117 serial communication ............................ 150
PLC link ................................................ 168 setting the clock ...................................... 85
PLC setup ..................................... 112, 126 Smart FB Library................................... 158
power supply voltage .............................. 34 special instruction ................................. 107
precautions ............................................... 9 starting CX-Programmer......................... 48
program check ........................................ 74
programming........................................... 40 T
project ..................................................... 53 test run.................................................... 91
project tree.............................................. 49 title bar .................................................... 49
project workspace................................... 49 toolbar..................................................... 49
pulse signal........................................... 144 transferring program ............................... 88
turning power on ..................................... 37
Q
quick-response input............................. 124 U
USB driver .............................................. 42
R USB port ................................................. 17
relay ...................................................... 102
relay number......................................... 102 W
rung comment......................................... 78 watch window ......................................... 92
rung header ............................................ 50 wiring ground line.................................... 34
wiring input.............................................. 36
S wiring output ........................................... 36
saving program ....................................... 75 wiring power line ..................................... 34
scan time ...................................... 125, 128 writing relay coil .................................... 109
search ..................................................... 95