Omron SYSMAC C200HS Operation Manual

Cat. No. W235-E1-05
SYSMAC Programmable Controllers
C200HS
C200HS Programmable Controllers
Operation Manual
iv
!
!
!
v
Notice:
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 dam­age to property.
DANGER Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.
WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.
Caution Indicates 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 any­thing else.
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 ef
ficient and convenient operation
of the product.
1, 2, 3... 1. Indicates lists of one sort or another, such as procedures, checklists, etc.
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 permis­sion 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 informa­tion contained in this publication.
vi
TABLE OF CONTENTS
vii
PRECAUTIONS xiii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 Intended Audience xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions xv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 Conformance to EC Directives xvi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 1
Introduction 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1 Overview 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 The Origins of PC Logic 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3 PC Terminology 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4 OMRON Product Terminology 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5 Overview of PC Operation 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-6 Peripheral Devices 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-7 Available Manuals 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8 New C200HS Features 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 2
Hardware Considerations 15. . . . . . . . . . . . . . . . . . . . . . . . .
2-1 CPU Components 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 PC Configuration 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3 CPU Capabilities 19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4 Memory Cassettes 20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-5 Installing Memory Cassettes 21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-6 CPU DIP Switch 23. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 3
Memory Areas 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1 Introduction 26. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Data Area Structure 27. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3 IR (Internal Relay) Area 31. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-4 SR (Special Relay) Area 33. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-5 AR (Auxiliary Relay) Area 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-6 DM (Data Memory) Area 55. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-7 HR (Holding Relay) Area 60. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-8 TC (Timer/Counter) Area 60. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-9 LR (Link Relay) Area 61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-10 UM Area 61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-11 TR (Temporary Relay) Area 61. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 4
Writing and Inputting the Program 63. . . . . . . . . . . . . . . . .
4-1 Basic Procedure 64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2 Instruction Terminology 64. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-3 Program Capacity 65. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-4 Basic Ladder Diagrams 65. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-5 The Programming Console 78. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-6 Preparation for Operation 80. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-7 Inputting, Modifying, and Checking the Program 92. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-8 Controlling Bit Status 108. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-9 Work Bits (Internal Relays) 110. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-10 Programming Precautions 112. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-11 Program Execution 114. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TABLE OF CONTENTS
viii
SECTION 5
Instruction Set 115. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1 Notation 118. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2 Instruction Format 118. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3 Data Areas, Definer Values, and Flags 118. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4 Differentiated Instructions 119. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5 Expansion Instructions 120. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6 Coding Right-hand Instructions 122. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7 Instruction Set Lists 125. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-8 Ladder Diagram Instructions 129. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-9 Bit Control Instructions 130. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-10 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03) 135. . . . . . . . . . . . . . . . . . .
5-11 JUMP and JUMP END – JMP(04) and JME(05) 137. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-12 END – END(01) 138. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13 NO OPERATION – NOP(00) 138. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14 Timer and Counter Instructions 138. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15 Data Shifting 150. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16 Data Movement 158. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-17 Data Comparison 169. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-18 Data Conversion 181. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-19 BCD Calculations 205. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-20 Binary Calculations 220. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-21 Special Math Instructions 234. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-22 Logic Instructions 250. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-23 Subroutines and Interrupt Control 254. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-24 Step Instructions 267. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-25 Special Instructions 276. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-26 Network Instructions 292. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-27 Serial Communications Instructions 298. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-28 Advanced I/O Instructions 302. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 6
Program Execution Timing 317. . . . . . . . . . . . . . . . . . . . . . . .
6-1 Cycle Time 318. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2 Calculating Cycle Time 322. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3 Instruction Execution Times 324. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4 I/O Response Time 333. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 7
Program Monitoring and Execution 345. . . . . . . . . . . . . . . .
7-1 Monitoring Operation and Modifying Data 346. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 8
Communications 373. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-1 Introduction 374. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-2 Parameters for Host Link and RS-232C Communications 374. . . . . . . . . . . . . . . . . . . . . . . .
SECTION 9
Memory Cassette Operations 385. . . . . . . . . . . . . . . . . . . . . .
9-1 Memory Cassettes 386. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-2 Memory Cassette Settings and Flags 386. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-3 UM Area Data 387. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-4 IOM Area Data 388. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TABLE OF CONTENTS
ix
SECTION 10
Troubleshooting 391. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-1 Alarm Indicators 392. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-2 Programmed Alarms and Error Messages 392. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-3 Reading and Clearing Errors and Messages 392. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-4 Error Messages 392. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-5 Error Flags 397. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-6 Host Link Errors 399. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 11
Host Link Commands 401. . . . . . . . . . . . . . . . . . . . . . . . . . . .
11-1 Communications Procedure 402. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11-2 Command and Response Formats 404. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11-3 Host Link Commands 407. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11-4 Host Link Errors 431. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendices
A Standard Models 433. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B Programming Instructions 443. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C Error and Arithmetic Flag Operation 449. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D Memory Areas 453. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
E PC Setup 461. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
F Word Assignment Recording Sheets 465. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
G Program Coding Sheet 471. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
H Data Conversion Tables 473. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
I Extended ASCII 475. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Glossary 477. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index 493. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Revision History 499. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xi
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
C200HS Programmable Control
-
ler
Installation Guide
. A table of other manuals that can
be used in conjunction with this manual is provided in Section 1 Introduction. Provided in Section 2 Hardware Considerations is a description of the differ- 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 attempt
-
ing to operate the C200HS. Be sure to read the precautions in the following section. Section 1 Introduction explains the background and some of the basic terms used in ladder-diagram
programming.
It also provides an overview of the process of programming and operating a PC and ex
­plains 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 explains basic aspects of the overall PC configuration and de-
scribes the indicators that are referred to in other sections of this manual.
Section
3 Memory Areas
takes a look at the way memory is divided and allocated and explains the infor
­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 W
riting and Entering Programs
explains the basics of
ladder-diagram programming, looking
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.
Section 5 Instruction Set describes all of the instructions used in programming. Section
6 Program Execution T
iming explains the cycling process used to execute the program and
tells how to coordinate inputs and outputs so that they occur at the proper times.
Section
7 Program Debugging and Execution explains the Programming Console procedures used to
input and debug the program and to monitor and control operation. Section 8 Communications provides an overview of the communications features provided by the
C200HS. Section 9 Memory Cassette Operations describes how to manage both UM Area and IOM data via
Memory Cassettes. mounted in the CPU.
Section
10 T
roubleshooting
provides information on
error indications and other means of reducing down-
time. Information in this section is also useful when debugging programs.
Section
1
1 Host Link Commands
explains the methods
and procedures for using host link commands,
which can be used for host link communications via the C200HS ports. The
Appendices
provide tables of standard OMRON products available for the C200HS PCs,
reference tables of instructions and Programming Console operations, coding sheet to help in programming and parameter input, and other information helpful in PC operation.
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.
!
xiii
PRECAUTIONS
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 r
eliable application of the PC. Y
ou must read
this section and understand the information contained before attempting to set up or operate a PC system.
1 Intended Audience xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions xv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 Conformance to EC Directives xvi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
!
!
!
xiv
1 Intended Audience
This
manual is intended for the following personnel, who must also have knowl
-
edge 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.
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 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.
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.
3 Safety 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.
4 Operating 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.
Operating Environment Precautions
4
!
!
!
!
xv
Caution The
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 installa
-
tion and remains within the specified conditions during the life of the system.
5 Application 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 of
f the power supply to the PC before attempting any of the follow
-
ing.
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.
Caution Failure
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 pre
-
cautions.
Use
the Units only with the power supplies and voltages specified in the opera
-
tion 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.
Caution The
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.
Application Precautions
5
xvi
6 Conformance 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 con
­nected 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.
Conformance to EC Directives
Section 6
1
SECTION 1
Introduction
This
section gives a brief overview of the history of Programmable Controllers and explains terms commonly used in ladder
-
diagram
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.
1-1 Overview 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 The Origins of PC Logic 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3 PC Terminology 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4 OMRON Product Terminology 3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5 Overview of PC Operation 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-6 Peripheral Devices 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-7 A
vailable Manuals
5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8
New C200HS Features
6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-1 Improved Memory Capabilities 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-2 Faster Execution Times 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-3 Larger Instruction Set 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-4 Wide Selection of Special I/O Units 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-5 Improved Interrupt Functions 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-6 SYSMAC NET Link and SYSMAC LINK Capabilities 9. . . . . . . . . . . . . . . . . . . .
1-8-7 Built-in RS-232C Connector 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-8 More Flexible PC Settings 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-9
Debugging and Maintenance
10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-10 New Programming Console Operations 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-11 Peripheral Devices 10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-12 Using C200H Programs 11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
1-1 Overview
A PC (Programmable Controller) is basically a CPU (Central Processing Unit) containing
a program and connected to input and
output (I/O) devices. The pro
-
gram
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 photo
-
electric
sensors, pushbuttons
on control panels, limit switches, or any other de
­vice 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 mo­tors,
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
, posi
­tioned
higher than the first, turns ON a dif
ferent 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-dia
-
gram
programming. This manual is written to explain ladder-diagram program
-
ming and to prepare the reader to program and operate the C200HS.
1-2 The Origins of PC Logic
PCs
historically originate in relay-based control
systems. And although the inte
-
grated
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 pro­vides
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 pro­gramming
method. Most of the terms used to describe these symbols and
con
-
cepts, however, have come in from computer terminology.
Relay vs. PC Terminology The
terminology
used throughout this manual is somewhat dif
ferent 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 term PC equivalent
contact input or condition coil output or work bit NO relay normally open condition NC relay normally closed condition
Actually
there is not a total equivalence between these terms. The term
condi
-
tion
is only used to describe ladder diagram programs in general
and is specifi
-
cally
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. Nor­mally
open conditions
and normally closed conditions are explained in
4-4 Basic
Ladder Diagrams.
The Origins of PC Logic Section 1-2
3
1-3 PC Terminology
Although
also provided in the
Glossary
at the back of this manual, the following
terms are crucial to understanding PC operation and are thus explained here.
PC Because 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 PC in
-
puts and outputs. If
you are not
familiar with the terms used above to describe a PC, refer to
Sec-
tion 2 Hardware Considerations for explanations.
Inputs and Outputs A 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 loca
-
tion
in memory that reflects its
status, i.e., either ON or OFF
. This memory loca
-
tion
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 accord
-
ingly. 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 dif
ferent 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. The
Control System
includes the PC and all I/O devices it uses to control an ex
-
ternal
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 sys­tem, e.g., a motor used to drive a conveyor belt.
1-4 OMRON Product Terminology
OMRON
products are divided into several functional groups that have generic names. Appendix A Standard Models list products according to these groups. 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 gen
-
eral
use. I/O Units come with a variety of point connections and specifications.
Controlled System and Control System
OMRON Product Terminology Section 1-4
4
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, High-
speed 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 CPU1
1 only
.
Other product groups include Programming Devices, Peripheral Devices, and DIN Rail Products.
1-5 Overview 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
to
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... 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
C200HS
Installation
Guide
. If a Link System is required,
refer to the appropriate
Sys-
tem Manual.
3. On
paper
, assign all input and output devices to I/O points on Units and de
-
termine
which I/O bits will be allocated to each. If
the PC includes Special I/O
Units
or Link Systems, refer to the individual
Operation Manuals
or
System
Manuals for details on I/O bit allocation. (Section 3 Memory Areas)
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. (Section 4
Writing
and Inputting the Program, Section
5 Instruction Set, Section
6 Pro
-
gram Execution Timing)
5. Input
the program and all required operating
parameters into the PC. (
Sec-
tion 4-7 Inputting, Modifying, and Checking the Program.)
6. Debug
the program, first to eliminate any syntax errors, and then to find ex
-
ecution errors. (Section 4-7 Inputting, Modifying, and Checking the Pro-
gram, Section 7 Program Monitoring and Execution, and Section 10 Troubleshooting)
7. Wire the PC to the controlled system. This step can actually be started
as
soon
as step 3 has been completed. Refer
to the
C200HS Installation Guide
and to Operation Manuals and System Manuals for details on individual Units.
8. Test
the program in an actual control situation and carry out fine tuning as required. (Section 7 Program Monitoring and Execution and Section 10 Troubleshooting)
9. Record
two copies of the finished program on masters and store them safely in different locations. (Section 4-7 Inputting, Modifying, and Checking the Program)
Control System Design Designing
the Control System is the first step in automating any
process. A PC
can
be programmed and operated only after the overall Control System is fully understood. Designing the Control System requires, first of all, a thorough un­derstanding 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.
Overview of PC Operation Section 1-5
5
Input/Output Requirements The 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
3-3 IR Area
for details on I/O capacity and
the allocation of I/O bits to I/O points. 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.
Unit Requirements The
actual Units that will be mounted or connected to PC Racks must be deter
-
mined
according to the requirements of the
I/O devices. Actual hardware specifi
-
cations,
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 con
-
sidered.
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
Operation Manuals
and
System Manuals.
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.
1-6 Peripheral 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 out
-
put
the program or memory area data. Model numbers for all devices listed be
-
low
are provided
in
Appendix A Standard Models
. OMRON product names have
been placed in bold when introduced in the following descriptions.
Programming Console A 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. LSS
is designed to run on
IBM A
T/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 mne­monic
form. As the program is written, it is displayed on a display
, making confir
-
mation
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.
1-7 Available Manuals
The
following table lists other manuals that may be required to program and/or
operate
the
C200HS.
Operation Manuals
and/or
Operation Guides
are also pro
-
vided
with individual Units and are required
for wiring and other specifications.
Name Cat. No. Contents
GPC Operation Manual W84 Programming procedures for the GPC
(Graphics Programming Console)
FIT Operation Manual W150 Programming procedures for using the FIT
(Factory Intelligent Terminal
Sequence, Timing, and Relationships
Ladder Support Software: LSS
Available Manuals Section 1-7
6
Name ContentsCat. No.
SYSMAC Support Software Operation Manuals W247/W248 Programming procedures for using the SSS Data Access Console Operation Guide W173 Data area monitoring and data modification
procedures for the Data Access Console Printer Interface Unit Operation Guide W107 Procedures for interfacing a PC to a printer PROM Writer Operation Guide W155 Procedures for writing programs to EPROM chips Floppy Disk Interface Unit Operation Guide W119 Procedures for interfacing PCs to floppy disk drives Wired Remote I/O System Manual
(SYSMAC BUS)
W120 Information on building a Wired Remote I/O System
to enable remote I/O capability Optical Remote I/O System Manual
(SYSMAC BUS)
W136 Information on building an Optical Remote I/O
System to enable remote I/O capability PC Link System Manual W135 Information on building a PC Link System to
automatically transfer data between PCs Host Link System Manual
(SYSMAC WAY)
W143 Information on building a Host Link System to
manage PCs from a ‘host’ computer SYSMAC NET Link Unit Operation Manual W114 Information on building a SYSMAC NET Link
System and thus create an optical LAN integrating
PCs with computers and other peripheral devices SYSMAC LINK System Manual W174 Information on building a SYSMAC LINK System to
enable automatic data transfer, programming, and
programmed data transfer between the PCs in the
System High-speed Counter Unit Operation Manual W141 Information on High-speed Counter Unit Position Control Unit Operation Manuals NC111: W137
NC112: W128 NC211: W166
Information on Position Control Unit
Analog I/O Units Operation Guide W127 Information on the C200H-AD001, C200H-DA001
Analog I/O Units Analog Input Unit Operation Manual W229 Information on the C200H-AD002 Analog Input Unit Temperature Sensor Unit Operation Guide W124 Information on Temperature Sensor Unit ASCII Unit Operation Manual W165 Information on ASCII Unit ID Sensor Unit Operation Guide W153 Information on ID Sensor Unit Voice Unit Operation Manual W172 Information on Voice Unit Fuzzy Logic Unit Operation Manual W208 Information on Fuzzy Logic Unit Fuzzy Support Software Operation Manual W210 Information on the Fuzzy Support Software which
supports the Fuzzy Logic Units Temperature Control Unit Operation Manual W225 Information on Temperature Control Unit Heat/Cool Temperature Control Unit Operation
Manual
W240 Information on Heating and Cooling Temperature
Control Unit PID Control Unit Operation Manual W241 Information on PID Control Unit Cam Positioner Unit Operation Manual W224 Information on Cam Positioner Unit
1-8 New C200HS Features
The C200HS CPUs (C200HS-CPU01-E, C200HS-CPU03-E, C200HS­CPU21-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, C200HS­CPU21-E, C200HS-CPU31-E use an AC power supply and the C200HS­CPU03-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 C200HS­CPU31-E and C200HS-CPU33-E CPUs support the SYSMAC NET Link Unit and
SYSMAC LINK Unit.
New C200HS Features Section 1-8
7
1-8-1 Improved 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 Cassettes Two 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.
Model Specifications
C200HS-ME16K 16-K Word EEPROM C200HS-MP16K 16-K Word EPROM
Note C200H Memory Cassettes cannot be used in the C200HS.
Clock Function The 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 Area In 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 with
-
out worrying the empty areas.
Conventional areas IR Area 1 (without I/O area): IR 030 to 235
SR Area 1: SR 236 to 255
Additional areas IR 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 Area The
Read/W
rite 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.) 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 stored in words DM 1000 to DM 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-2 Faster Execution Times
Instruction Execution Time Basic
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 Time The 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.
Fixed DM and Expansion DM Areas
New C200HS Features Section 1-8
8
I/O Refreshing Time The
I/O refreshing time has been reduced for all units, as shown
in the following
table.
I/O Unit Time 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-3 Larger Instruction Set
Advanced programming is facilitated by the 225 application instructions avail­able 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
Section
5 Instruction Set
.
Improved Instructions Additional
functions have been
added to the 7 instructions in the following table.
Instruction Additional 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.
Expansion Instructions A
group of 47 instructions have been designated as expansion instructions. An
expansion
instruction does not have a fixed function code; one of the 18 expan
-
sion
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 instruc­tions can be used.
New Instructions A
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 instruc
­tion
do
have default function codes. The SET and RESET instructions are basic
instructions,
MACRO and TRACE MEMOR
Y SAMPLE instructions are
applied
instructions,
and the other
instructions are expansion applied instructions. A de
­fault function number is assigned to the TOTALIZING TIMER, TRANSFER BITS,
AREA RANGE COMP
ARE, MACRO, AND TRACE MEMOR
Y SAMPLE
instructions.
New C200HS Features Section 1-8
9
TRSM(45) TRACE MEMOR
Y SAMPLE MCRO(99) MACRO MAX(--) FIND MAXIMUM MIN(--) FIND MINIMUM SUM(--) SUM SRCH(--) DAT
A SEARCH FPD(--) FAILURE POINT DETECTION PID(--) PID CONTROL HEX(--) ASCII T
O HEX
XDMR(--) EXP
ANSION DM READ DSW(--) DIGITAL SWITCH INPUT TKY(--)
TEN-KEY INPUT MTR(--) MATRIX INPUT HKY(--)
16-KEY INPUT ADBL(--)
DOUBLE BINAR
Y ADD
SBBL(--)
DOUBLE BINAR
Y SUBTRACT
MBSL(--)
DOUBLE SIGNED BINAR
Y MULTIPL
Y
DBSL(--)
DOUBLE SIGNED BINAR
Y DIVIDE
MBS(--)
SIGNED BINAR
Y MULTIPL
Y
DBS(--)
SIGNED BINAR
Y DIVIDE
FCS(--)
FRAME CHECKSUM
7SEG(--)
7-SEGMENT DISPLA
Y OUTPUT RXD(--) RECEIVE TXD(--) TRANSMIT CPS(--)
SIGNED BINAR
Y COMP
ARE
CPSL(--)
SIGNED DOUBLE
BINAR
Y COMP
ARE NEG(--) 2’S COMPLEMENT NEGL(--) DOUBLE 2’S COMPLEMENT ZCPL(--)
DOUBLE AREA RANGE COMP
ARE
AVG(--) A
VERAGE V
ALUE SCL(--) SCALE SET SET RSET RESET TTIM(87) TOTALIZING TIMER XFRB(62)
TRANSFER BITS
ZCP(88)
AREA RANGE COMP
ARE
1-8-4 Wide 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, T
empera-
ture Sensor Units, ASCII Units, V
oice Units, ID Sensor
Units,
Fuzzy Logic Units,
Cam Positioner Units, and so on.
1-8-5 Improved Interrupt Functions
Scheduled Interrupts The
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 Interrupts Up
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 in
­put 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.
1-8-6 SYSMAC NET Link and SYSMAC LINK Capabilities
The SYSMAC NET Link and SYSMAC LINK Systems are high-speed FA net­works 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.
New C200HS Features Section 1-8
10
1-8-7 Built-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 time­consuming 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-8 More 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 Settings The
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 Allocation Portions
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 Setup DM
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-9 Debugging and Maintenance
Data Trace A
data trace function has been added, allowing bit status or word
content to be
traced in real time.
Differential Monitor The
C200HS supports dif
ferential 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
Area
The 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 C200H­CPU31-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 (dif
feren-
tial monitoring).
Function codes can be allocated to expansion instructions and current func-
tion 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 in
-
formation.
1-8-11 Peripheral Devices
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.
Peripheral Device Connection
New C200HS Features Section 1-8
11
I/O Comments Stored in PC By
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 De
-
vice
is connected to the C200HS online, the ladder diagram can be viewed with
I/O comments.
Online Editing A
“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. T
wo proce
­dures 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.
Precautions Observe the following precautions when transferring C200H programs to the
C200HS.
If
a C200H program including the SET
SYSTEM instruction (SYS(49)) is trans
-
ferred
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 set
-
tings
in these words are correct before using the C200HS after program trans
-
fer.
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 Memory The 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, con
-
nect
the LSS to
the C200H, go online, and transfer the program and any oth
-
er
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.
Y
ou 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.
New C200HS Features Section 1-8
12
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 Cassettes The 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, con
-
nect
the LSS to
the C200H, go online, and transfer the program and any oth
-
er
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.
Y
ou 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. 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. Make sure you specify transfer of the Expan
-
sion 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 W
riter 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.
New C200HS Features Section 1-8
13
10. Turn
the C200HS of
f 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.
New C200HS Features Section 1-8
15
SECTION 2
Hardware Considerations
This
section provides
information on hardware aspects of the C200HS that are relevant to programming and software opera
-
tion.
These include CPU Components, basic PC configuration, CPU capabilities, and Memory Cassettes. This information is
covered in detail in the C200HS Installation Guide.
2-1
CPU Components
16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-1 CPU Indicators 17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-2 Peripheral Device Connection 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 PC Configuration 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3
CPU Capabilities
19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4
Memory Cassettes
20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-5
Installing Memory Cassettes
21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-6 CPU DIP Switch 23. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
!
16
2-1 CPU Components
There
are two groups of CPUs available, one that uses an AC power supply
, and
one
that
uses a DC power supply
. Select one of the models shown below accord
-
ing to requirements of your control system.
CPU model Power supply voltage
C200HS-CPU01-E/CPU21-E/CPU31-E 100 to 120 VAC or 200 to 240 VAC
(voltage selector)
C200HS-CPU03-E/CPU23-E/CPU33-E 24 VDC
The CPU21-E, CPU23-E, CPU31-E, and CPU33-E CPUs have an RS-232C connector.
The CPU31-E and CPU33-E CPUs support the SYSMAC NET Link
Unit and SYSMAC LINK Unit.
Caution Be
sure to check the power supply used by the CPU. Absolutely
do not provide an AC power sup
-
ply to a DC-type CPU.
The following diagram shows the main CPU components.
Power fuse (MF51NR, 5.2 dia. x 20 mm) C200HS-CPU01-E: 2 A, 250 V C200HS-CPU03-E: 5 A, 125 V
Indicators
Removable terminal block
Cable connector for Peripheral Devices (Peripheral port)
Battery/switch compartment
The backup lithium battery (C200H-BAT09) and the DIP switch for setting C200HS opera­tions are contained. An optional Memory Cas­sette can also be mounted.
CPU Components Section 2-1
17
C200HS-CPU21-E/CPU23-E/CPU31-E/CPU33-E
Memory Casette compartment
Bus connector: Available only with the CPU31-E and CPU33-E. Use this connector when SYSMAC NET Link Unit or SYSMAC LINK Unit is used.
RS-232C connector
Cable connector for peripheral devices
Battery/Switch compartment
Power fuse (MF51NR, 5.2 dia. x 20 mm): C200HS-CPU21-E/CPU31-E: 2 A, 250 V C200HS-CPU23-E/CPU33-E: 5 A, 125 V
Indicators
Removable terminal block
2-1-1 CPU Indicators
CPU indicators provide visual information on the general operation of the PC. Although
not substitutes for proper
error programming using the flags and other
error
indicators provided in the data areas of memory
, these indicators provide
ready confirmation of proper operation.
CPU Indicators CPU
indicators are shown and described below
. (CPU01-E/03-E shown below
.)
COMM/COMM1 (orange): Lights when a peripheral device is in operation. COMM2 (orange): Available only with the CPU21-E, CPU23-E, CPU31-E, and CPU33-E. Lights when the CPU is communicating via the RS-232C connector.
RUN indicator (green) Lights when the PC is operating normally.
POWER (green) Lights when power is supplied to the CPU.
OUT INHIBIT (red) Lights when the Load OFF flag (SR bit 25215) turns ON, at which time all the outputs are turned OFF.
ALM (blinking red) Blinks if an error occurs that does not stop the CPU.
ERR (solid red) Lights if an error occurs that stops the CPU, at which time the RUN indicator turns OFF and the outputs are turned OFF.
COMM
CPU Components Section 2-1
18
2-1-2 Peripheral Device Connection
A Programming Console or IBM PC/AT running LSS can be used to program and monitor the C200HS PCs.
Programming Console A C200H-PR027-E or CQM1-PRO01-E Programming Console can be con-
nected as shown in the following diagram. The C200H-PR027-E is connected via the C200H-CN222 or C200H-CN422 Programming Console Connecting Cable, which must be purchased separately. A Connecting Cable is provided with the CQM1-PRO01-E.
Connecting
Cable
Programming Console
IBM
PC/A
T with LSS An
IBM PC/A
T or compatible computer can be connected as shown in the follow
-
ing diagram. The LSS is available on either 3.5” disks (C500-SF312-EV3) or
5.25” disks (C500-SF711-EV3). Only version 3 or later of the LSS supports C200HS functionality.
Connecting
Cable
(CQM1-CIF02)
IBM PC/AT
2-2 PC Configuration
The
basic PC configuration consists of two types of Rack: a CPU Rack and Ex
-
pansion
I/O Racks. The Expansion I/O Racks are
not a required part of the basic system. They are used to increase the number of I/O points. An illustration of these
Racks is provided in
3-3 IR Area.
A third type of Rack, called a Slave Rack,
can be used when the PC is provided with a Remote I/O System.
CPU Racks A
C200HS CPU Rack
consists of three components: (1) The CPU Backplane, to
which
the CPU and other Units are mounted. (2)
The CPU, which executes the program and controls the PC. (3) Other Units, such as I/O Units, Special I/O Units,
and Link Units, which provide the physical I/O terminals corresponding to
I/O points. A
C200HS CPU Rack can be used alone or it can be connected to other Racks to provide additional I/O points. The CPU Rack provides three, five, eight, or ten slots to which these other Units can be mounted depending on the backplane used.
PC Configuration Section 2-2
Loading...
+ 473 hidden pages