OMRON products are manufactured for use according to proper procedures by a qualified operator
and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed
the information provided with them. Failure to heed precautions can result in injury to people or damage to property.
DANGERIndicates an imminently hazardous situation which, if not avoided, will result in death or
!
serious injury.
WARNINGIndicates a potentially hazardous situation which, if not avoided, could result in death or
!
serious injury.
CautionIndicates a potentially hazardous situation which, if not avoided, may result in minor or
!
moderate injury, or property damage.
OMRON Product References
All OMRON products are capitalized in this manual. The word “Unit” is also capitalized when it refers
to an OMRON product, regardless of whether or not it appears in the proper name of the product.
The abbreviation “Ch,” which appears in some displays and on some OMRON products, often means
“word” and is abbreviated “Wd” in documentation in this sense.
The abbreviation “PC” means Programmable Controller and is not used as an abbreviation for anything else.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
OMRON, 1994
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.
Note Indicates information of particular interest for efficient and convenient operation
of the product.
1, 2, 3...
1. Indicates lists of one sort or another, such as procedures, checklists, etc.
ii
About this Manual:
This manual describes the operation of the C200HS C-series Programmable Controllers, and it includes
the sections described below. Installation information is provided in the
ler Installation Guide
Section 1 Introduction
in
ences between the older CPUs and the new CPUs described in this manual.
Please read this manual completely and be sure you understand the information provided before attempting to operate the C200HS. Be sure to read the precautions in the following section.
. A table of other manuals that can be used in conjunction with this manual is provided
. Provided in
C200HS Programmable Control-
Section 2 Hardware Considerations
is a description of the differ-
Section 1 Introduction
programming. It also provides an overview of the process of programming and operating a PC and explains basic terminology used with OMRON PCs. Descriptions of Peripheral Devices used with the
C200HS PCs and a table of other manuals available to use with this manual for special PC applications
are also provided.
Section 2 Hardware Considerations
scribes the indicators that are referred to in other sections of this manual.
Section 3 Memory Areas
mation provided there to aid in programming. It explains how I/O is managed in memory and how bits in
memory correspond to specific I/O points. It also provides information on System DM, a special area in
C200HS PCs that provides the user with flexible control of PC operating parameters.
Section 4 Writing and Entering Programs
at the elements that make up the parts of a ladder-diagram program and explaining how execution of this
program is controlled. It also explains how to convert ladder diagrams into mnemonic code so that the
programs can be entered using a Programming Console.
ection 5 Instruction Set
S
Section 6 Program Execution Timing
tells how to coordinate inputs and outputs so that they occur at the proper times.
Section 7 Program Debugging and Execution
input and debug the program and to monitor and control operation.
Section 8 Communications
C200HS.
Section 9 Memory Cassette Operations
Memory Cassettes. mounted in the CPU.
Section 10 T roubleshooting
time. Information in this section is also useful when debugging programs.
Section 11 Host Link Commands
which can be used for host link communications via the C200HS ports.
The
Appendices
tables of instructions and Programming Console operations, coding sheet to help in programming and
parameter input, and other information helpful in PC operation.
explains the background and some of the basic terms used in ladder-diagram
explains basic aspects of the overall PC configuration and de-
takes a look at the way memory is divided and allocated and explains the infor-
explains the basics of ladder-diagram programming, looking
describes all of the instructions used in programming.
explains the cycling process used to execute the program and
explains the Programming Console procedures used to
provides an overview of the communications features provided by the
describes how to manage both UM Area and IOM data via
provides information on error indications and other means of reducing down-
explains the methods and procedures for using host link commands,
provide tables of standard OMRON products available for the C200HS PCs, reference
!
WARNING Failure to read and understand the information provided in this manual may result in
personal injury or death, damage to the product, or product failure. Please read each
section in its entirety and be sure you understand the information provided in the section
and related sections before attempting any of the procedures or operations given.
This section provides general precautions for using the Programmable Controller (PC) and related devices.
The information contained in this section is important for the safe and reliable application of the PC. You must read
this section and understand the information contained before attempting to set up or operate a PC system.
This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems.
• Personnel in charge of designing FA systems.
• Personnel in charge of managing FA systems and facilities.
2General Precautions
The user must operate the product according to the performance specifications
described in the operation manuals.
Before using the product under conditions which are not described in the manual
or applying the product to nuclear control systems, railroad systems, aviation
systems, vehicles, combustion systems, medical equipment, amusement
machines, safety equipment, and other systems, machines, and equipment that
may have a serious influence on lives and property if used improperly, consult
your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide the
systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating OMRON PCs.
Be sure to read this manual before attempting to use the software and keep this
manual close at hand for reference during operation.
4
WARNING It is extremely important that a PC and all PC 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 PC System to the abovementioned
applications.
3Safety Precautions
WARNING Never attempt to disassemble any Units while power is being supplied. Doing so
!
may result in serious electrical shock or electrocution.
WARNING Never touch any of the terminals while power is being supplied. Doing so may
!
result in serious electrical shock or electrocution.
4Operating Environment Precautions
Do not operate the control system in the following places.
• Where the PC is exposed to direct sunlight.
• Where the ambient temperature is below 0°C or over 55°C.
• Where the PC may be affected by condensation due to radical temperature
changes.
• Where the ambient humidity is below 10% or over 90%.
• Where there is any corrosive or inflammable gas.
• Where there is excessive dust, saline air, or metal powder.
• Where the PC is affected by vibration or shock.
• Where any water, oil, or chemical may splash on the PC.
xiv
Application Precautions
CautionThe operating environment of the PC System can have a large ef fect on the lon-
!
gevity and reliability of the system. Improper operating environments can lead to
malfunction, failure, and other unforeseeable problems with the PC System. Be
sure that the operating environment is within the specified conditions at installation and remains within the specified conditions during the life of the system.
5Application Precautions
Observe the following precautions when using the PC.
WARNING Failure to abide by the following precautions could lead to serious or possibly
!
fatal injury. Always heed these precautions.
• Always ground the system to 100 Ω or less when installing the system to pro-
tect against electrical shock.
• Always turn off the power supply to the PC before attempting any of the following. Performing any of the following with the power supply turned on may lead
to electrical shock:
• Mounting or dismounting Power Supply Units, I/O Units, CPU Units,
Memory Units, or any other Units.
• Assembling any devices or racks.
• Connecting or disconnecting any cables or wiring.
5
CautionFailure to abide by the following precautions could lead to faulty operation or the
!
PC or the system or could damage the PC or PC Units. Always heed these precautions.
• Use the Units only with the power supplies and voltages specified in the operation manuals. Other power supplies and voltages may damage the Units.
• Take measures to stabilize the power supply to conform to the rated supply if it
is not stable.
• Provide circuit breakers and other safety measures to provide protection
against shorts in external wiring.
• Do not apply voltages exceeding the rated input voltage to Input Units. The
Input Units may be destroyed.
• Do not apply voltages exceeding the maximum switching capacity to Output
Units. The Output Units may be destroyed.
• Always disconnect the LG terminal when performing withstand voltage tests.
• Install all Units according to instructions in the operation manuals. Improper
installation may cause faulty operation.
• Provide proper shielding when installing in the following locations:
• Locations subject to static electricity or other sources of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radiation.
• Locations near to power supply lines.
• Be sure to tighten Backplane screws, terminal screws, and cable connector
screws securely.
• Do not attempt to take any Units apart, to repair any Units, or to modify any
Units in any way.
CautionThe following precautions are necessary to ensure the general safety of the sys-
!
tem. Always heed these precautions.
• Provide double safety mechanisms to handle incorrect signals that can be
generated by broken signal lines or momentary power interruptions.
• Provide external interlock circuits, limit circuits, and other safety circuits in
addition to any provided within the PC to ensure safety.
xv
Conformance to EC Directives
6Conformance to EC Directives
Observe the following precautions when installing the C200HS-CPU01-EC and
C200HS-CPU21-EC that conform to the EC Directives.
Provide reinforced insulation or double insulation for the DC power source connected to the DC I/O Unit and for the Power Supply Unit.
Use a separate power source for the DC I/O Unit from the external power supply
for the Relay Output Unit.
Section 6
xvi
SECTION 1
Introduction
This section gives a brief overview of the history of Programmable Controllers and explains terms commonly used in ladderdiagram programming. It also provides an overview of the process of programming and operating a PC and explains basic
terminology used with OMRON PCs. Descriptions of peripheral devices used with the C200HS, a table of other manuals
available to use with this manual for special PC applications, and a description of the new features of the C200HS are also
provided.
A PC (Programmable Controller) is basically a CPU (Central Processing Unit)
containing a program and connected to input and output (I/O) devices. The program controls the PC so that when an input signal from an input device turns ON,
the appropriate response is made. The response normally involves turning ON
an output signal to some sort of output device. The input devices could be photoelectric sensors, pushbuttons on control panels, limit switches, or any other device that can produce a signal that can be input into the PC. The output devices
could be solenoids, switches activating indicator lamps, relays turning on motors, or any other devices that can be activated by signals output from the PC.
For example, a sensor detecting a passing product turns ON an input to the PC.
The PC responds by turning ON an output that activates a pusher that pushes
the product onto another conveyor for further processing. Another sensor, positioned higher than the first, turns ON a different input to indicate that the product
is too tall. The PC responds by turning on another pusher positioned before the
pusher mentioned above to push the too-tall product into a rejection box.
Although this example involves only two inputs and two outputs, it is typical of the
type of control operation that PCs can achieve. Actually even this example is
much more complex than it may at first appear because of the timing that would
be required, i.e., “How does the PC know when to activate each pusher?” Much
more complicated operations, however, are also possible. The problem is how
to get the desired control signals from available inputs at appropriate times.
To achieve proper control, the C200HS uses a form of PC logic called ladder-diagram programming. This manual is written to explain ladder-diagram programming and to prepare the reader to program and operate the C200HS.
1-2The Origins of PC Logic
PCs historically originate in relay-based control systems. And although the integrated circuits and internal logic of the PC have taken the place of the discrete
relays, timers, counters, and other such devices, actual PC operation proceeds
as if those discrete devices were still in place. PC control, however, also provides computer capabilities and accuracy to achieve a great deal more flexibility
and reliability than is possible with relays.
The symbols and other control concepts used to describe PC operation also
come from relay-based control and form the basis of the ladder-diagram programming method. Most of the terms used to describe these symbols and concepts, however, have come in from computer terminology.
Relay vs. PC TerminologyThe terminology used throughout this manual is somewhat different from relay
terminology, but the concepts are the same.
The following table shows the relationship between relay terms and the PC
terms used for OMRON PCs.
Relay termPC equivalent
contactinput or condition
coiloutput or work bit
NO relaynormally open condition
NC relaynormally closed condition
Actually there is not a total equivalence between these terms. The term condition is only used to describe ladder diagram programs in general and is specifically equivalent to one of certain set of basic instructions. The terms input and
output are not used in programming per se, except in reference to I/O bits that
are assigned to input and output signals coming into and leaving the PC. Normally open conditions and normally closed conditions are explained in
Ladder Diagrams
.
4-4 Basic
2
OMRON Product TerminologySection 1-4
1-3PC Terminology
Although also provided in the
terms are crucial to understanding PC operation and are thus explained here.
PCBecause the C200HS is a Rack PC, there is no one product that is a C200HS
PC. That is why we talk about the configuration of the PC, because a PC is a
configuration of smaller Units.
To have a functional PC, you would need to have a CPU Rack with at least one
Unit mounted to it that provides I/O points. When we refer to the PC, however , we
are generally talking about the CPU and all of the Units directly controlled by it
through the program. This does not include the I/O devices connected to P C i n puts and outputs.
If you are not familiar with the terms used above to describe a PC, refer to
tion 2 Hardware Considerations
Inputs and OutputsA device connected to the PC that sends a signal to the PC is called an input
device; the signal it sends is called an input signal. A signal enters the PC
through terminals or through pins on a connector on a Unit. The place where a
signal enters the PC is called an input point. This input point is allocated a location in memory that reflects its status, i.e., either ON or OFF. This memory location is called an input bit. The CPU, in its normal processing cycle, monitors the
status of all input points and turns ON or OFF corresponding input bits accordingly.
There are also output bits in memory that are allocated to output points on
Units through which output signals are sent to output devices, i.e., an output
bit is turned ON to send a signal to an output device through an output point. The
CPU periodically turns output points ON or OFF according to the status of the
output bits.
These terms are used when describing different aspects of PC operation. When
programming, one is concerned with what information is held in memory , and so
I/O bits are referred to. When talking about the Units that connect the PC to the
controlled system and the places on these Units where signals enter and leave
the PC, I/O points are referred to. When wiring these I/O points, the physical
counterparts of the I/O points, either terminals or connector pins, are referred to.
When talking about the signals that enter or leave the PC, one refers to input
signals and output signals, or sometimes just inputs and outputs. It all depends
on what aspect of PC operation is being talked about.
Glossary
at the back of this manual, the following
for explanations.
Sec-
Controlled System and
Control System
The Control System includes the PC and all I/O devices it uses to control an external system. A sensor that provides information to achieve control is an input
device that is clearly part of the Control System. The controlled system is the
external system that is being controlled by the PC program through these I/O
devices. I/O devices can sometimes be considered part of the controlled system, e.g., a motor used to drive a conveyor belt.
1-4OMRON Product Terminology
OMRON products are divided into several functional groups that have generic
names.
The term Unit is used to refer to all of the OMRON PC products. Although a Unit
is any one of the building blocks that goes together to form a C200HS PC, its
meaning is generally, but not always, limited in context to refer to the Units that
are mounted to a Rack. Most, but not all, of these products have names that end
with the word Unit.
The largest group of OMRON products is the I/O Units. These include all of the
Rack-mounting Units that provide non-dedicated input or output points for general use. I/O Units come with a variety of point connections and specifications.
Appendix A Standard Models
list products according to these groups.
3
Overview of PC OperationSection 1-5
High-density I/O Units are designed to provide high-density I/O capability and
include Group 2 High-density I/O Units and Special I/O High-density I/O Units.
Special I/O Units are dedicated Units that are designed to meet specific needs.
These include some of the High-density I/O Units, Position Control Units, Highspeed Counter Units, and Analog I/O Units.
Link Units are used to create Link Systems that link more than one PC or link a
single PC to remote I/O points. Link Units include Remote I/O Units, PC Link
Units, Host Link Units, SYSMAC NET Link Units, and SYSMAC LINK Units.
SYSMAC NET Link and SYSMAC LINK Units can be used with the CPU11 only.
Other product groups include Programming Devices, Peripheral Devices,
and DIN Rail Products.
1-5Overview of PC Operation
The following are the basic steps involved in programming and operating a
C200HS. Assuming you have already purchased one or more of these PCs, you
must have a reasonable idea of the required information for steps one and two,
which are discussed briefly below. This manual is written t o explain steps three
through six, eight, and nine. The relevant sections of this manual that provide
more information are listed with each of these steps.
1, 2, 3...
Control System Design Designing the Control System is the first step in automating any process. A PC
1. Determine what the controlled system must do, in what order, and at what
times.
2. Determine what Racks and what Units will be required. Refer to the
Installation Guide
tem Manual
3. On paper, assign all input and output devices to I/O points on Units and determine which I/O bits will be allocated to each. If the PC includes Special I/O
Units or Link Systems, refer to the individual
Manuals
4. Using relay ladder symbols, write a program that represents the sequence
of required operations and their inter-relationships. Be sure to also program
appropriate responses for all possible emergency situations. (
for details on I/O bit allocation. (
. If a Link System is required, refer to the appropriate
.
Operation Manuals
Section 3 Memory Areas)
C200HS
Sys-
or
System
Section 4
Writing and Inputting the Program, Section 5 Instruction Set, Section 6 Program Execution Timing)
5. Input the program and all required operating parameters into the PC. (
tion 4-7 Inputting, Modifying, and Checking the Program.
6. Debug the program, first to eliminate any syntax errors, and then to find execution errors. (
Section 4-7 Inputting, Modifying, and Checking the Program, Section 7 Program Monitoring and Execution,
Troubleshooting
7. Wire the PC to the controlled system. This step can actually be started as
soon as step 3 has been completed. Refer t o the
and to
Units.
8. Test the program in an actual control situation and carry out fine tuning as
required. (
Operation Manuals
Troubleshooting
9. Record two copies of the finished program on masters and store them safely
in different locations. (
Program
can be programmed and operated only after the overall Control System is fully
understood. Designing the Control System requires, first of all, a thorough understanding of the system that is to be controlled. The first step in designing a
Control System is thus determining the requirements of the controlled system.
)
)
C200HS Installation Guide
and
System Manuals
for details on individual
Section 7 Program Monitoring and Execution
)
Section 4-7 Inputting, Modifying, and Checking the
)
and
and
Sec-
Section 10
Section 10
4
Available ManualsSection 1-7
Input/Output RequirementsThe first thing that must be assessed is the number of input and output points
that the controlled system will require. This is done by identifying each device
that is to send an input signal to the PC or which is to receive an output signal
from the PC. Keep in mind that the number of I/O points available depends on
the configuration of the PC. Refer to
the allocation of I/O bits to I/O points.
Sequence, Timing, and
Relationships
Unit RequirementsThe actual Units that will be mounted or connected to PC Racks must be deter-
Next, determine the sequence in which control operations are to occur and the
relative timing of the operations. Identify the physical relationships between the
I/O devices as well as the kinds of responses that should occur between them.
For instance, a photoelectric switch might be functionally tied to a motor by way
of a counter within the PC. When the PC receives an input from a start switch, it
could start the motor. The PC could then stop the motor when the counter has
received a specified number of input signals from the photoelectric switch.
Each of the related tasks must be similarly determined, from the beginning of the
control operation to the end.
mined according to the requirements of the I/O devices. Actual hardware specifications, such as voltage and current levels, as well as functional considerations,
such as those that require Special I/O Units or Link Systems will need to be considered. In many cases, Special I/O Units, Intelligent I/O Units, or Link Systems
can greatly reduce the programming burden. Details on these Units and Link
Systems are available in appropriate
Once the entire Control System has been designed, the task of programming,
debugging, and operation as described in the remaining sections of this manual
can begin.
3-3 IR Area
Operation Manuals
for details on I/O capacity and
and
System Manuals.
1-6Peripheral Devices
The following peripheral devices can be used in programming, either to input/
debug/monitor the PC program or to interface the PC to external devices to output the program or memory area data. Model numbers for all devices listed below are provided in
been placed in bold when introduced in the following descriptions.
Programming ConsoleA Programming Console is the simplest form of programming device for OM-
RON PCs. All Programming Consoles are connected directly to the CPU without
requiring a separate interface.
Ladder Support Software:
LSS
LSS is designed to run on IBM AT/XT compatibles and allows you to perform all
the operations of the Programming Console as well as many additional ones. PC
programs can be written on-screen in ladder-diagram form as well as in mnemonic form. As the program is written, it is displayed on a display, making confirmation and modification quick and easy . Syntax checks may also be performed
on the programs before they are downloaded to the PC.
The LSS is available on either 5” or 3.5” disks.
A computer running the LSS is connected to the C200HS via the Peripheral Port
on the CPU using the CQM1-CIF02 cable.
Appendix A Standard Models
. OMRON product names have
1-7Available Manuals
The following table lists other manuals that may be required to program and/or
operate the C200HS.
vided with individual Units and are required for wiring and other specifications.
NameCat. No.Contents
GPC Operation ManualW84Programming procedures for the GPC
FIT Operation ManualW150Programming procedures for using the FIT
Operation Manuals
(Graphics Programming Console)
(Factory Intelligent Terminal
and/or
Operation Guides
are also pro-
5
New C200HS FeaturesSection 1-8
NameContentsCat. No.
SYSMAC Support Software Operation ManualsW247/W248Programming procedures for using the SSS
Data Access Console Operation GuideW173Data area monitoring and data modification
procedures for the Data Access Console
Printer Interface Unit Operation GuideW107Procedures for interfacing a PC to a printer
PROM Writer Operation GuideW155Procedures for writing programs to EPROM chips
Floppy Disk Interface Unit Operation GuideW119Procedures for interfacing PCs to floppy disk drives
Wired Remote I/O System Manual
(SYSMAC BUS)
Optical Remote I/O System Manual
(SYSMAC BUS)
PC Link System ManualW135Information on building a PC Link System to
Host Link System Manual
(SYSMAC WAY)
SYSMAC NET Link Unit Operation ManualW114Information on building a SYSMAC NET Link
SYSMAC LINK System ManualW174Information on building a SYSMAC LINK System to
High-speed Counter Unit Operation ManualW141Information on High-speed Counter Unit
Position Control Unit Operation ManualsNC111: W137
Analog I/O Units Operation GuideW127Information on the C200H-AD001, C200H-DA001
Analog Input Unit Operation ManualW229Information on the C200H-AD002 Analog Input Unit
Temperature Sensor Unit Operation GuideW124Information on Temperature Sensor Unit
ASCII Unit Operation ManualW165Information on ASCII Unit
ID Sensor Unit Operation GuideW153Information on ID Sensor Unit
Voice Unit Operation ManualW172Information on Voice Unit
Fuzzy Logic Unit Operation ManualW208Information on Fuzzy Logic Unit
Fuzzy Support Software Operation ManualW210Information on the Fuzzy Support Software which
Temperature Control Unit Operation ManualW225Information on Temperature Control Unit
Heat/Cool Temperature Control Unit Operation
Manual
PID Control Unit Operation ManualW241Information on PID Control Unit
Cam Positioner Unit Operation ManualW224Information on Cam Positioner Unit
W120Information on building a Wired Remote I/O System
to enable remote I/O capability
W136Information on building an Optical Remote I/O
System to enable remote I/O capability
automatically transfer data between PCs
W143Information on building a Host Link System to
manage PCs from a ‘host’ computer
System and thus create an optical LAN integrating
PCs with computers and other peripheral devices
enable automatic data transfer, programming, and
programmed data transfer between the PCs in the
System
Information on Position Control Unit
NC112: W128
NC211: W166
Analog I/O Units
supports the Fuzzy Logic Units
W240Information on Heating and Cooling Temperature
Control Unit
1-8New C200HS Features
The C200HS CPUs (C200HS-CPU01-E, C200HS-CPU03-E, C200HSCPU21-E, C200HS-CPU23-E, C200HS-CPU31-E, and C200HS-CPU33-E)
have a number of new features that the C200H CPUs lacked. The new C200HS
features are described briefly in this section. The C200HS-CPU01-E, C200HSCPU21-E, C200HS-CPU31-E use an AC power supply and the C200HSCPU03-E, C200HS-CPU23-E, and C200HS-CPU33-E use DC.
In addition, the C200HS-CPU21-E, C200HS-CPU23-E, C200HS-CPU31-E,
and C200HS-CPU33-E CPUs have an RS-232C connector. The C200HSCPU31-E and C200HS-CPU33-E CPUs support the SYSMAC NET Link Unit
and SYSMAC LINK Unit.
6
New C200HS FeaturesSection 1-8
1-8-1Improved Memory Capabilities
Internal Memory (UM)The C200HS CPUs come equipped with 16 KW of RAM in the PC itself, so a very
large memory capacity is available without purchasing a separate Memory Unit.
Furthermore, the Ladder Program Area has been increased to 15.2 KW.
Memory CassettesTwo types of Memory Cassettes are available for storage of data such as the
program. The PC can be set to transfer data from the Memory Cassette to UM
automatically when the PC is turned on.
ModelSpecifications
C200HS-ME16K16-K Word EEPROM
C200HS-MP16K16-K Word EPROM
Note C200H Memory Cassettes cannot be used in the C200HS.
Clock FunctionThe C200HS CPUs have a built-in clock. It is not necessary to purchase a
Memory Unit equipped with a clock, as it was with the C200H-CPU21-E.
Increased SR AreaIn addition to the conventional areas of the C200H, the following areas have
been added for the internal auxiliary relays and special auxiliary relays of the
C200H. The SR area has been increased substantially to provide more work
words and words dedicated to new instructions. The SR area now ranges from
SR 236 to SR 299. (The SR area ends at SR 255 in C200H CPUs.) By using
additional areas, the user can use Special I/O Units and Remote I/O Units without worrying the empty areas.
Conventional areasIR Area 1 (without I/O area):IR 030 to 235
SR Area 1:SR 236 to 255
Additional areasIR Area 2:IR 300 to 511
SR Area 2:SR 256 to 299
The number of operands and instruction execution time will be increased when
SR 256 to SR 511 are used in basic instructions.
Increased DM AreaThe Read/Write DM area has been increased substantially, too. It now ranges
from DM 0000 to DM 6143, compared to DM 0000 to DM 0999 in C200H CPUs.
The 6000 words from DM 0000 to DM 5999 are available for use in the program.
(DM 6000 to DM 6143 are used for the History Log and other functions.)
Fixed DM and Expansion
DM Areas
The Fixed DM Area, used to store initializing data for Special I/O Units, has been
decreased in size. It now contains the 512 words from DM 6144 to DM 6655,
compared to 1000 words (DM 1000 to DM 1999) in C200H CPUs.
On the other hand, up to 3000 words of UM can be allocated as expansion DM.
Expansion DM is allocated in 1000-word units in DM 7000 to DM 9999.
C200H data s t o re d i n w o r d s D M 1 0 0 0 t o D M 1999 can be used in C200HS PCs
by converting these 1000 words to ROM in the C200HS’s DM area (DM 7000 to
DM 7999) and then automatically transferring them to DM 1000 to DM 1999
when the C200HS is turned on.
1-8-2Faster Execution Times
Instruction Execution TimeBasic instructions in the C200HS are executed in !@2 of the time required in the
C200H. Other instructions are executed in just !@4 of the time.
END Processing TimeThe time required for the cycle’s overhead processes depend on the system
configuration, but these processes are executed in about !@4 of the time required
in the C200H.
7
New C200HS FeaturesSection 1-8
I/O Refreshing TimeThe I/O refreshing time has been reduced for all units, as shown in the following
table.
I/O UnitTime Required for Refreshing
Standard I/O Units!@3 of the C200H I/O refreshing time
Group-2 High-density I/O Units!@3 of the C200H I/O refreshing time
Special I/O Units$@5 of the C200H I/O refreshing time
1-8-3Larger Instruction Set
Advanced programming is facilitated by the 225 application instructions available with the C200HS-CPU01-E, C200HS-CPU03-E, C200HS-CPU21-E, and
C200HS-CPU23-E, or the 229 application instructions available with the
C200HS-CPU31-E and C200HS-CPU33-E. In addition, programming has been
simplified by the addition of convenient instructions and macro functions. The
new instructions and functions are covered in detail in
Improved InstructionsAdditional functions have been added to the 7 instructions in the following table.
InstructionAdditional Function(s)
DIST(80)Stack operation. The stack can contain up to 999 words.
COLL(81)FIFO/LIFO stack operation. The stack can contain up to 999 words.
MLPX(76)4-to-256 decoder capability.
DMPX(77)256-to-8 encoder capability .
ADB(50)Signed binary data can be added.
SBB(51)Signed binary data can be subtracted.
INT(89)Can be used to set scheduled interrupts in 1 ms units and control
input interrupts.
Section 5 Instruction Set
.
Expansion InstructionsA group of 47 instructions have been designated as expansion instructions. An
expansion instruction does not have a fixed function code; one of the 18 expansion instruction function codes must be assigned to it before it can be used in a
program. An instructions tables, which allocates functions codes to expansion
instructions, must be transferred to the C200HS before the expansion instructions can be used.
New InstructionsA total of 36 new instructions have been added to the C200HS. These instruc-
tions are listed below. (Instructions with (--) for function codes are expansion
instructions, which do not have fixed function codes. Some expansion instruction do have default function codes. The SET and RESET instructions are basic
instructions, MACRO and TRACE MEMORY SAMPLE instructions are applied
instructions, and the other instructions are expansion applied instructions. A default function number is assigned to the TOTALIZING TIMER, TRANSFER
BITS, AREA RANGE COMPARE, MACRO, AND TRACE MEMORY SAMPLE
instructions.
8
New C200HS FeaturesSection 1-8
TRSM(45) TRACE MEMORY SAMPLE
MCRO(99) MACRO
MAX(--)FIND MAXIMUM
MIN(--)FIND MINIMUM
SUM(--)SUM
SRCH(--)DATA SEARCH
FPD(--)FAILURE POINT DETECTION
PID(--)PID CONTROL
HEX(--)ASCII TO HEX
XDMR(--)EXPANSION DM READ
DSW(--)DIGITAL SWITCH INPUT
TKY(--)TEN-KEY INPUT
MTR(--)MATRIX INPUT
HKY(--)16-KEY INPUT
ADBL(--)DOUBLE BINARY ADD
SBBL(--)DOUBLE BINARY SUBTRACT
MBSL(--)DOUBLE SIGNED BINARY MULTIPLY
DBSL(--)DOUBLE SIGNED BINARY DIVIDE
MBS(--)SIGNED BINARY MULTIPLY
DBS(--)SIGNED BINARY DIVIDE
FCS(--)FRAME CHECKSUM
7SEG(--)7-SEGMENT DISPLAY OUTPUT
RXD(--)RECEIVE
TXD(--)TRANSMIT
CPS(--)SIGNED BINARY COMPARE
CPSL(--)SIGNED DOUBLE BINARY COMPARE
NEG(--)2’S COMPLEMENT
NEGL(--)DOUBLE 2’S COMPLEMENT
ZCPL(--)DOUBLE AREA RANGE COMPARE
AVG(--)AVERAGE VALUE
SCL(--)SCALE
SETSET
RSETRESET
TTIM(87)TOTALIZING TIMER
XFRB(62) TRANSFER BITS
ZCP(88)AREA RANGE COMPARE
1-8-4Wide Selection of Special I/O Units
C200HS Systems can be configured in a variety of ways, using High-density I/O
Units, High-speed Counters, Position Control Units, Analog I/O Units, Temperature Sensor Units, ASCII Units, Voice Units, ID Sensor Units, Fuzzy Logic Units,
Cam Positioner Units, and so on.
1-8-5Improved Interrupt Functions
Scheduled InterruptsThe C200HS’s scheduled interrupt function has been improved so that the inter-
rupt interval can be set in 1 ms units rather than the 10 ms units in the C200H.
When the interrupt mode is set to C200HS mode, the interrupt response time is
only 1 ms max. (excluding the input ON/OFF delays). When a Communications
Unit is used with the C200HS-CPU31-E/CPU33-E CPU, the interrupt response
time is 10 ms max.
Input InterruptsUp to 8 interrupt subroutines can be executed by inputs to a C200HS-INT01 In-
terrupt Input Unit mounted to the C200HS. When the interrupt mode is set to
C200HS mode, the interrupt response time is only 1 ms max. (excluding the input ON/OFF delays). When a Communications Unit is used with the C200HSCPU31-E/CPU33-E CPU, the interrupt response time is 10 ms max.
1-8-6SYSMAC NET Link and SYSMAC LINK Capabilities
The SYSMAC NET Link and SYSMAC LINK Systems are high-speed FA networks which can be used with the C200HS-CPU31-E and C200HS-CPU33-E
CPUs and the following Units:
SYSMAC NET Link Unit:C200HS-SNT32
SYSMAC LINK Units:C200HS-SLK12 (optical fiber cable)
C200HS-SLK22 (coaxial cable)
Data can be exchanged with the PCs in a SYSMAC NET Link or SYSMAC LINK
System using the SEND and RECV instructions.
9
New C200HS FeaturesSection 1-8
1-8-7Built-in RS-232C Connector
Host link communications are possible using the RS-232C connector built into
the C200HS-CPU21-E/CPU23-E/CPU31-E/CPU33-E CPU. By using the TXD
and RXD instructions, RS-232C communications is possible without using timeconsuming procedures. A 1-to-1 link using the LR Area or an NT link with the
Programmable Terminal (PT) allows high-speed communications.
1-8-8More Flexible PC Settings
With its default settings, the C200HS can be used like a C200H PC, but the
C200HS’s new settings provide more flexibility and allow it to be adjusted to fit
particular applications. These new settings are described below.
DIP Switch SettingsThe 6 pins on the C200HS’s DIP switch are used to write-protect part of UM, set
the CPU to automatically transfer Memory Card data to UM, and other functions.
UM Area AllocationPortions of the UM area can be allocated for use as the Expansion DM Area and
I/O Comment Area. (Most of the UM area is used to store the ladder program.)
PC SetupDM 6600 to DM 6655 is set aside for PC Setup data. The PC Setup determines
many operating parameters, including the startup mode and initial Special I/O
Unit area.
1-8-9Debugging and Maintenance
Data TraceA data trace function has been added, allowing bit status or word content to be
traced in real time.
Differential MonitorThe C200HS supports differential monitoring from either the Programming Con-
sole or LSS. The operator can detect OFF-to-ON or ON-to-OFF transition in a
specified bit.
Error Log AreaThe C200HS supports all of the C200H-CPU31-E error history area functions
and also records the time and date of power interruptions. The C200HS’s error
log area is DM 6000 to DM 6030 (not DM 0969 to DM 0999 as in the C200HCPU31-E).
1-8-10New Programming Console Operations
The following Programming Console operations are supported by the C200HS
in addition to those supported by the C200H.
• Constants can be input in decimal form.
• Monitor displays can be switched between hexadecimal and normal or long
decimal form.
• OFF to ON and ON to OFF transitions in bit status can be monitored (differential monitoring).
• Function codes can be allocated to expansion instructions and current function code allocations can be read.
• UM area allocations can be set.
• The clock in the C200HS can be read and set.
• In addition to the TERMINAL mode supported in the C200H, the C200HS has
an EXTENDED TERMINAL mode in which all of the Programming Console’s
keys can be used to the status of Key Bits.
• The memory clear operation has been separated into an operation to clear the
user program excluding I/O comments and UM area allocation information,
and one to clear the user program, I/O comments , and UM area allocation information.
1-8-11 Peripheral Devices
Peripheral Device
Connection
With the C200H a Peripheral Device had to be connected through a Peripheral
Interface Unit or Host Link Unit, but with the C200HS Peripheral Devices can be
connected to the PC through a CQM1-CIF02 Connecting Cable.
10
New C200HS FeaturesSection 1-8
I/O Comments Stored in PCBy allocating a part of UM as the I/O Comment area, it is no longer necessary to
read I/O Comments from a Peripheral Device’s floppy disk. If the Peripheral Device is connected to the C200HS online, the ladder diagram can be viewed with
I/O comments.
Online EditingA “CYCLE TIME OVER” error will no longer be generated when the program in
the PC itself is being edited online.
1-8-12Using C200H Programs
Programs developed for the C200H can be very easily transferred for use in the
C200HS. This section provides the steps necessary to achieve this. Two procedures are provided: one for transferring using only internal CPU memory and
one for transferring via Memory Cassettes.
Detailed procedures for the individual steps involved in transferring programs
can be found in the Version-3 LSS Operation Manuals. You will also require a
CQM1-CIF02 Connecting Cable to connect the computer running LSS to the
C200HS.
PrecautionsObserve the following precautions when transferring C200H programs to the
C200HS.
• If a C200H program including the SET SYSTEM instruction (SYS(49)) is transferred to the C200HS, the operating parameters set by this instruction will be
transferred to the C200HS’s PC Setup area (DM 6600, DM 6601, and
DM 6655) and overwrite any current settings. Be sure to confirm that the settings in these words are correct before using the C200HS after program transfer.
• If the C200H program accesses the C200H’s error log in DM 0969 to DM 0999,
the addresses of the words being accessed must be changed to DM 6000 to
DM 6030, which is the error log area for the C200HS.
• Any programs that rely on the execution cycle time (i.e., on the time require to
execute any one part of all of the program) must be adjusted when used on the
C200HS, which provides a much faster cycle time.
Using Internal MemoryThe following procedure outlines the steps to transfer C200H programs to the
user memory inside the C200HS.
1, 2, 3...
1. Transfer the program and any other required data to the LSS work area. This
data can be transferred from a C200H CPU, from floppy disk, or from a
C200HS Memory Unit.
To transfer from a C200H CPU, set the PC for the LSS to the C200H, connect the LSS to the C200H, go online, and transfer the program and any other require data to the LSS work area. Y ou will probably want to transfer DM
data and the I/O table, if you have created an I/O table for the C200H.
or To transfer from floppy disk, set the PC for the LSS to the C200H in the of fline
mode and load the program and any other require data to the LSS work
area. You will probably want to load DM data and the I/O table, if you have
created an I/O table for the C200H.
or To transfer from a C200H-MP831, set the PC for the LSS to the C200H in the
offline mode and read data from the Memory Unit into the LSS work area.
2. Go offline if the LSS is not already offline.
3. Change the PC setting for the LSS to the C200HS.
4. If you want to transfer I/O comments together with the program to the
C200HS, allocate UM area for I/O comments.
5. Connect the LSS to the C200HS and go online.
6. Make sure that pin 1 on the C200HS’s CPU is OFF to enable writing to the
UM area.
11
New C200HS FeaturesSection 1-8
7. Transfer the program and and any other require data to the C200HS. You
will probably want to transfer DM data and the I/O table, if you have created
an I/O table for the C200H.
8. Turn the C200HS off and then back on to reset it.
9. Test program execution before attempting actual operation.
Using Memory CassettesThe following procedure outlines the steps to transfer C200H programs to the
C200HS via EEPROM or EPROM Memory Cassettes. This will allow you to read
the program data from the Memory Cassette automatically at C200HS startup.
The first four steps of this procedure is the same as those used for transferring
directly to the C200HS’s internal memory (UM area).
1, 2, 3...
1. Transfer the program and any other required data to the LSS work area. This
data can be transferred from a C200H CPU, from floppy disk, or from a
C200HS Memory Unit.
To transfer from a C200H CPU, set the PC for the LSS to the C200H, connect the LSS to the C200H, go online, and transfer the program and any other require data to the LSS work area. Y ou will probably want to transfer DM
data and the I/O table, if you have created an I/O table for the C200H.
or To transfer from floppy disk, set the PC for the LSS to the C200H in the of fline
mode and load the program and any other require data to the LSS work
area. You will probably want to load DM data and the I/O table, if you have
created an I/O table for the C200H.
or To transfer from a C200H-MP831, set the PC for the LSS to the C200H in the
offline mode and read data from the Memory Unit into the LSS work area.
2. Go offline if the LSS is not already offline.
3. Change the PC setting for the LSS to the C200HS.
4. If you want to transfer I/O comments together with the program to the
C200HS, allocate UM area for I/O comments.
5. Allocate expansion DM words DM 7000 to DM 7999 in the UM area using the
UM allocation operation from the LSS.
6. Copy DM 1000 through DM 1999 to DM 7000 through DM 7999.
7. Write “0100” to DM 6602 to automatically transfer the contents of DM 7000
through DM 7999 to DM 1000 through DM 1999 at startup.
8. To transfer to an EEPROM Memory Cassette, use the following procedure.
a) Connect the LSS to the C200HS and go online.
b) Make sure that pin 1 on the C200HS’s CPU is OFF to enable writing to
the UM area.
c) Transfer the program and any other require data to the C200HS. You will
probably want to transfer DM data and the I/O table, if you have created
an I/O table for the C200H. Make sure you specify transfer of the Expansion DM Area and, if desired, the I/O Comment Area.
d) Turn ON SR 27000 from the LSS to transfer UM data to the Memory Cas-
sette and continue from step 9.
or To transfer to an EPROM Memory Cassette, use the following procedure.
a) Connect an PROM Writer to the LSS and write the data to the EPROM
chip using the LSS EPROM writing operation.
e) Set the ROM type selector on the Memory Cassette to the correct capac-
ity.
f) Mount the ROM chip to the Memory Cassette.
g) Mount a EPROM Memory Cassette to the C200HS.
9. Turn ON pin 2 on the C200HS’s DIP switch to enable automatic transfer of
Memory Cassette data to the CPU at startup.
12
New C200HS FeaturesSection 1-8
10. Turn the C200HS off and then back on to reset it and transfer data from the
Memory Cassette to the CPU.
11. Test program execution before attempting actual operation.
13
SECTION 2
Hardware Considerations
This section provides information on hardware aspects of the C200HS that are relevant to programming and software operation. These include CPU Components, basic PC configuration, CPU capabilities, and Memory Cassettes. This information is
covered in detail in the C200HS Installation Guide.