Omron C200HE, C200HG, C200HX User Manual

Cat.No. W303–E1–4
Programmable Controllers
C200HX/C200HG/C200HE
OPERATION MANUAL
C200HX/C200HG/C200HE Programmable Controllers
Revised June 2000

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.
OMRON, 1996
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.
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.
v

TABLE OF CONTENTS

PRECAUTIONS xiii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 Intended Audience xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions xv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions xv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 Conformance to EC Directives xvii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5 Overview of PC Operation 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-6 Peripheral Devices 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-7 Available Manuals 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8 C200HX/HG/HE Features 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 2
Hardware Considerations 11. . . . . . . . . . . . . . . . . . . . . . . . .
2-1 CPU Unit Components 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 PC Configuration 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3 CPU Unit Capabilities 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4 Memory Cassettes 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-5 CPU Unit DIP Switch 20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-6 Operating without a Backup Battery 21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 3
Memory Areas 23. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1 Introduction 24. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Data Area Structure 25. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3 IR (Internal Relay) Area 29. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-4 SR (Special Relay) Area 33. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-5 AR (Auxiliary Relay) Area 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-6 DM (Data Memory) Area 56. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-7 HR (Holding Relay) Area 68. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-8 TC (Timer/Counter) Area 68. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-9 LR (Link Relay) Area 69. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-10 UM Area 70. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-11 TR (Temporary Relay) Area 71. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-12 EM (Extended Data Memory) Area 71. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 4
Writing and Inputting the Program 73. . . . . . . . . . . . . . . . .
4-1 Basic Procedure 74. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2 Instruction Terminology 74. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-3 Program Capacity 75. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-4 Basic Ladder Diagrams 75. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-5 The Programming Console 88. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-6 Preparation for Operation 91. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-7 Inputting, Modifying, and Checking the Program 104. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vii
TABLE OF CONTENTS
4-8 Controlling Bit Status 120. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-9 Work Bits (Internal Relays) 122. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-10 Programming Precautions 124. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-11 Program Execution 126. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-12 Special I/O Unit Interface Programs 126. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-13 Analog Timer Unit Programming 130. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 5
Instruction Set 135. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-1 Notation 138. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2 Instruction Format 138. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3 Data Areas, Definer Values, and Flags 138. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4 Differentiated Instructions 140. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5 Expansion Instructions 141. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6 Coding Right-hand Instructions 142. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7 Instruction Set Lists 145. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-8 Ladder Diagram Instructions 149. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-9 Bit Control Instructions 150. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-10 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03) 155. . . . . . . . . . . . . . . . . . .
5-11 JUMP and JUMP END – JMP(04) and JME(05) 157. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-12 END – END(01) 158. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-13 NO OPERATION – NOP(00) 158. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-14 Timer and Counter Instructions 158. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-15 Data Shifting 171. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-16 Data Movement 180. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-17 Data Comparison 192. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-18 Data Conversion 204. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-19 BCD Calculations 228. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-20 Binary Calculations 243. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-21 Special Math Instructions 257. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-22 Logic Instructions 275. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-23 Subroutines and Interrupt Control 279. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-24 Step Instructions 291. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-25 Special Instructions 300. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-26 Network Instructions 318. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-27 Serial Communications Instructions 329. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-28 Advanced I/O Instructions 336. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-29 Special I/O Unit Instructions 350. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 6
Program Execution Timing 359. . . . . . . . . . . . . . . . . . . . . . . .
6-1 Cycle Time 360. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2 Calculating Cycle Time 364. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3 Instruction Execution Times 367. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4 I/O Response Time 376. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 7
Program Monitoring and Execution 389. . . . . . . . . . . . . . . .
7-1 Monitoring Operation and Modifying Data 390. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7-2 Programming Console Operations 390. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
viii
TABLE OF CONTENTS
SECTION 8
Serial Communications 417. . . . . . . . . . . . . . . . . . . . . . . . . . .
8-1 Introduction 418. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-2 Host Link Communications 419. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-3 RS-232C Communications 426. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-4 One-to-one PC Links 430. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-5 NT Links 432. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-6 The Protocol Macro Function 433. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 9
Troubleshooting 443. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-1 Alarm Indicators 444. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-2 Programmed Alarms and Error Messages 444. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-3 Reading and Clearing Errors and Messages 444. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-4 Error Messages 445. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-5 Error Flags 449. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-6 Host Link Errors 450. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 10
Host Link Commands 453. . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-1 Host Link Command Summary 454. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-2 Host Link End Codes 455. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
10-3 Host Link Commands 458. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendices
A Standard Models 501. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B Programming Instructions 517. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
C Error and Arithmetic Flag Operation 523. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
D Word Assignment Recording Sheets 527. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
E Program Coding Sheet 533. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
F Data Conversion Tables 535. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
G Extended ASCII 537. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Glossary 539. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index 555. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Revision History 561. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ix

About this Manual:

This manual describes the operation of the C200HX/HG/HE Programmable Controllers, and it includes the sections described below. Installation information is provided in the C200HX/HG/HE Programmable Controller 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 differences between the C200HS CPU Units and the new CPU Units described in this manual.
Please read this manual completely and be sure you understand the information provided before attempt­ing to operate the C200HX/HG/HE. 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 C200HX/HG/HE PCs and a table of other manuals available to use with this manual for special PC ap­plications are also provided.
Section 2 Hardware Considerations explains basic aspects of the overall PC configuration, describes the indicators that are referred to in other sections of this manual, and explains how to use the Memory Cassette to manage UM and IOM data.
Section 3 Memory Areas takes a look at the way memory is divided and allocated and explains the in­formation 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 C200HX/HG/HE PCs that provides the user with flexible control of PC operating parameters.
Section 4 Writing 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 Timing 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 Troubleshooting provides information on error indications and other means of reducing
down-time. Information in this section is also useful when debugging programs. Section 10 Host Link Commands explains the host link commands that can be used for host link com-
munications via the C200HX/HG/HE ports. The Appendices provide tables of standard OMRON products available for the C200HX/HG/HE PCs,
reference tables of instructions, a 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.
xi

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 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.
1 Intended Audience xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions xiv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions xv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions xv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 Conformance to EC Directives xvii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
xiii
Safety Precautions

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 ma­chines, 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.
3
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 above mentioned applications.

3 Safety Precautions

WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing so
!
may result in electric shock.
WARNING Do not touch any of the terminals or terminal blocks while the power is being
!
supplied. Doing so may result in electric shock.
WARNING Provide safety measures in external circuits (i.e., not in the Programmable
!
Controller), including the following items, to ensure safety in the system if an abnormality occurs due to malfunction of the PC or another external factor affecting the PC operation. Not doing so may result in serious accidents.
Emergency stop circuits, interlock circuits, limit circuits, and similar safety measures must be provided in external control circuits.
The PC will turn OFF all outputs when its self-diagnosis function detects any error or when a severe failure alarm (FALS) instruction is executed. As a coun­termeasure for such errors, external safety measures must be provided to en­sure safety in the system.
The PC outputs may remain ON or OFF due to deposition or burning of the output relays or destruction of the output transistors. As a countermeasure for
xiv
Application Precautions
such problems, external safety measures must be provided to ensure safety in the system.
When the 24-VDC output (service power supply to the PC) is overloaded or short-circuited, the voltage may drop and result in the outputs being turned OFF. As a countermeasure for such problems, external safety measures must be provided to ensure safety in the system.
Caution Execute online edit only after confirming that no adverse effects will be caused
!
by extending the cycle time. Otherwise, the input signals may not be readable.
Caution Confirm safety at the destination node before transferring a program to another
!
node or changing contents of the I/O memory area. Doing either of these without confirming safety may result in injury.
Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the
!
torque specified in the operation manual. The loose screws may result in burning or malfunction.

4 Operating Environment Precautions

5
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.
Caution The operating environment of the PC System can have a large effect 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 OFF the power supply to the PC before attempting any of the fol­lowing. Performing any of the following with the power supply turned ON may lead to electrical shock:
Mounting or removing any Units (e.g., I/O Units, CPU Unit, etc.) or memory cassettes.
Assembling any devices or racks.
xv
Application Precautions
Caution Failure to abide by the following precautions could lead to faulty operation of the
!
5
Connecting or disconnecting any cables or wiring.
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.
Do not apply voltages exceeding the maximum switching capacity to Output
Units.
Always disconnect the functional ground terminal when performing withstand voltage tests.
Carefully follow all of the installation instructions provided in the manuals, in­cluding the Installation Guide.
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.
xvi
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.
Always test the operation of the user program sufficiently before starting actual system operation.
Always confirm that there will be no adverse affects on the system before changing the PC’s operating mode.
Always confirm that there will be no adverse affects on the system before force-setting/resetting any bits in PC memory.
Always confirm that there will be no adverse affects on the system before changing any set values or present values in PC memory.
Whenever the CPU Unit has been replaced, be sure that all required memory data, such as that in the HR and DM areas, has been transferred to the new CPU Unit before starting operation.
Never pull on or place objects on cables or cords, or wires may be broken.
Conformance to EC Directives

6 Conformance to EC Directives

Observe the following precautions when installing the C200HX/HG/HE PCs 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.
6
xvii
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 C200HX/HG/HE PCs, a table of other manuals available to use with this manual for special PC applications, and a description of the new features of the C200HX/ HG/HE PCs 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 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5 Overview of PC Operation 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-6 Peripheral Devices 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-7 Available Manuals 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8 C200HX/HG/HE Features 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-1 C200HS and C200HX/HG/HE Capabilities 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-8-2 Program Compatibility 8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
The Origins of PC Logic Section 1-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 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 C200HX/HG/HE PCs use 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 PC.

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 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 term PC equivalent
contact input or condition coil output or work bit NO relay normally open condition NC relay normally closed condition
2
PC Terminology Section 1-3
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 a 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.

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 C200HX/HG/HE PCs are Rack PCs, there is no one product that is
a C200HX/HG/HE 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 Unit and all of the Units directly controlled by it through the program. This does not include the I/O devices connected to PC inputs 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 Unit, in its normal processing cycle, monitors the status of all input points and turns ON or OFF corresponding input bits ac­cordingly.
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 Unit 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 , a nd s o 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.
Controlled System and Control System
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.
3
Overview of PC Operation Section 1-5

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 C200HX/HG/HE 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.
High-density I/O Units are designed to provide high-density I/O capability a n d 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 CPU11-E 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 C200HX/HG/HE PC. 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 C200HX/HG/HE PC Installation Guide. If a Link System is required, refer to the appropriate System 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 execution errors. (Section 4-7 Inputting, Modifying, and Checking the Pro-
gram, Section 7 Program Monitoring and Execution, and Section 9 Trouble­shooting)
4
Peripheral Devices Section 1-6
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 C200HX/HG/HE PC Instal- lation 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 9 Trou- bleshooting)
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.
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.
Sequence, Timing, and Relationships
Unit Requirements The 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 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 Unit without requiring a separate interface.
SYSMAC Support Software: SSS
SSS is designed to run on IBM PC/AT or compatibles and allows you to perform all the operations of the Programming Console as well as many additional ones.
5
Available Manuals Section 1-7
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 con­firmation and modification quick and easy. Syntax checks may also be per­formed on the programs before they are downloaded to the PC.
The SSS comes on 3.5 disks. A computer running the SSS is connected to the C200HX/HG/HE PC via the Pe-
ripheral Port on the CPU Unit using the CQM1-CIF02 or CV500-CIF01 cable.

1-7 Available Manuals

The following table lists other manuals that may be required to program and/or operate the C200HX/HG/HE PCs. Operation Manuals and/or Operation Guides are also provided with individual Units and are required for wiring and other specifications.
Name Cat. No. Contents
GPC Operation Manual W84 Programming procedures for the GPC
FIT Operation Manual W150 Programming procedures for using the FIT
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
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) Optical Remote I/O System Manual
(SYSMAC BUS) PC Link System Manual W135 Information on building a PC Link System to
Host Link System Manual (SYSMAC WAY)
SYSMAC NET Link Unit Operation Manual W114 Information on building a SYSMAC NET Link
SYSMAC LINK System Manual W174 Information on building a SYSMAC LINK System to
High-speed Counter Unit Operation Manual W141 Information on High-speed Counter Unit Position Control Unit Operation Manuals NC111: W137
Analog I/O Units Operation Guide W127 Information on the C200H-AD001, C200H-DA001
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
Temperature Control Unit Operation Manual W225 Information on Temperature Control Unit Heat/Cool Temperature Control Unit Operation
Manual
W120 Information on building a Wired Remote I/O System
W136 Information on building an Optical Remote I/O
W143 Information on building a Host Link System to
NC112: W128 NC211: W166
W240 Information on Heating and Cooling Temperature
(Graphics Programming Console)
(Factory Intelligent Terminal)
procedures for the Data Access Console
to enable remote I/O capability
System to enable remote I/O capability
automatically transfer data between PCs
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
Analog I/O Units
supports the Fuzzy Logic Units
Control Unit
6
C200HX/HG/HE Features Section 1-8
Name ContentsCat. No.
PID Control Unit Operation Manual W241 Information on PID Control Unit Cam Positioner Unit Operation Manual W224 Information on Cam Positioner Unit

1-8 C200HX/HG/HE Features

The C200HX/HG/HE CPU Units have a number of new features, but C200H and C200HS programs can be used in the new CPU Units.

1-8-1 C200HS and C200HX/HG/HE Capabilities

The following table shows the new capabilities of the C200HX/HG/HE PCs and compares them with those of the C200HS.
Function Capability
C200HX/HG/HE C200HS
Memory
I/O allocation
Execution time
User memory (UM) C200HE-CPU11-E: 3.2K words
C200HE-CPU2-E: 7.2K words C200HG-CPU3-E: 15.2K words C200HX-CPU4-E: 31.2K words
Normal DM 6,144 words (DM 0000 to DM 6143)
(The C200HE-CPU11-E doesnt have DM 4096 to DM 5999.)
Fixed DM 512 words (DM 6144 to DM 6655) 512 words
Expansion DM 0 to 3,000 words (DM 7000 to DM 9999) 0 to 3,000 words
Extended Data Memory (EM)
Expansion Racks 3 Racks
Group-2 Multipoint I/O Units
Special I/O Units Unit numbers 0 to 9, A to F
Basic instructions (LD) 0.104 µs (C200HX)
MOV(21) 0.417 µs (C200HX)
ADD(30) 16.65 µs (C200HX/HG)
Other instructions C200HX/HG: 1/3 to 2/3 of C200HS time
Common processes (END(01) processing)
I/O refresh time Same as the C200HS, although part of
6,144 words (EM 0000 to EM 6143) C200HE: None
C200HG: 6,144 words × 1 bank C200HX: 6,144 words × 3 banks
(2 Racks in the C200HE-CPU-E or C200HX/HG-CPU3-E/4-E)
Unit numbers 0 to 9, A to F (Incompatible with the C200HE-CPU11-E.)
(Unit numbers 0 to 9 with the C200HE-CPU2-E, C200HX/HG-CPU3-E/4-E.)
(Unit numbers 0 to 9 with the C200HE-CPU-E or C200HX/HG-CPU3-E/4-E.)
0.156 µs (C200HG)
0.313 µs (C200HE)
0.625 µs (C200HG)
1.250 µs (C200HE)
31.45 µs (C200HE)
C200HE: 3/4 to 4/5 of C200HS time
0.7 ms (C200HX/HG)
2.1 ms (C200HE)
Special I/O refreshing takes 1/2 to 2/3 the C200HS time.
15.2K words
6,144 words (DM 0000 to DM 6143)
(DM 6144 to DM 6655)
(DM 7000 to DM 9999) None
2 Racks
Unit numbers 0 to 9
Unit numbers 0 to 9
0.375 µs
19.00 µs
40.10 µs
---
0.7 ms
---
7
C200HX/HG/HE Features Section 1-8
Function CapabilityFunction
C200HSC200HX/HG/HE
CPU Unit functions
Communications Boards
Special I/O Units --- The IORD(––) and IOWR(––) instructions
Interrupts
PTs --- NT Link (1:1) or NT Link (1:N)
SYSMAC LINK
RS-232C port Available in the
C200HX/HG/HE-CPU4-E/6-E
Clock function Available in all except the C200HE-CPU11-E Available in all models SYSMAC NET Link and
SYSMAC LINK functions
--- Communications Boards can be installed in
Interrupt Input Units 2 Units (16 inputs) 1 Unit (8 inputs) Communications Board
interrupts Response characteristics Same as the C200HS, although a 1-ms
Service time 3.5 ms max. (1 operating level) 10.8 ms max.
Remote programming Possible from the Peripheral Port or RS-232C
Effect on response time None 10 ms in any mode
Communications Boards can be installed in all PCs except the C200HE-CPU11-E. (Board model numbers: C200HW-COM01/04-E)
all PCs except the C200HE-CPU11-E. These Boards can provide the following functions:
SYSMAC NET Link and SYSMAC LINK, Communications Ports (Ports 1 and 2), and Protocol Macro functions
allow data to be transferred to and from Special I/O Units.
Can be set. ---
response is possible in the C200HW-SLK
(Up to 8 PTs can be connected from the RS-232C port through an RS-422/485 Link Adapter. When the C200HE-CPU-E with a Communications Board is used, only 3 PTs can be connected)
Ports (including Communications Boards).
Available in the C200HS-CPU2-E /3-E
Available in the C200HS-CPU3-E
---
---
Normal mode: 10 ms High-speed mode: 1 ms
(Always 10 ms when a SYSMAC NET Link or SYSMAC LINK is used.)
NT Link (1:1)
(1 operating level) Possible from the
Peripheral Port.

1-8-2 Program Compatibility

C200HS programs and Memory Cassettes can be used as is in the C200HX/ HG/HE and programs developed for the C200H can be transferred for use in the C200HX/HG/HE very easily.
Detailed procedures for the individual steps involved in transferring programs can be found in the SSS Operation Manuals. You will also require a CQM1-CIF02 Connecting Cable to connect the computer running SSS to the C200HS.
Precautions Observe the following precautions when transferring C200H programs to the
C200HX/HG/HE.
If a C200H program including the SET SYSTEM instruction (SYS(49)) is trans­ferred to the C200HX/HG/HE, the operating parameters set by this instruction will be transferred to the C200HX/HG/HEs 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 PC after program transfer.
8
C200HX/HG/HE Features Section 1-8
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 C200HX/HG/HE.
Any programs that rely on the execution cycle time (i.e., on the time required to execute any one part of all of the program) must be adjusted when used on the C200HX/HG/HE, 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 C200HX/HG/HE.
1, 2, 3... 1. Transfer the program and any other required data to the SSS work area.
This data can be transferred from a C200H CPU Unit, from floppy disk, or from a C200HS Memory Unit.
To transfer from a C200H CPU Unit, set the PC for the SSS to the C200H, connect the SSS to the C200H, go online, and transfer the program and any other required data to the SSS work area. You 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 SSS to the C200H in the
offline mode and load the program and any other require data to the SSS 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 SSS to the C200H in the
offline mode and read data from the Memory Unit into the SSS work area.
2. Go offline if the SSS is not already offline.
3. Change the PC setting for the SSS to the C200HX/HG/HE.
4. If you want to transfer I/O comments together with the program to the C200HX/HG/HE, allocate UM area for I/O comments.
5. Connect the SSS to the C200HX/HG/HE and go online.
6. Make sure that pin 1 on the C200HX/HG/HEs CPU Unit is OFF to enable writing to the UM area.
7. Transfer the program and and any other required data to the C200HX/HG/ HE. 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 OFF the C200HX/HG/HE 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
C200HX/HG/HE via EEPROM or EPROM Memory Cassettes. This will allow you to read the program data from the Memory Cassette automatically at C200HX/HG/HE startup. The first four steps of this procedure is the same as those used for transferring directly to the C200HX/HG/HEs internal memory (UM area).
1, 2, 3... 1. Transfer the program and any other required data to the SSS work area.
This data can be transferred from a C200H CPU Unit, from floppy disk, or from a Memory Unit.
To transfer from a C200H CPU Unit, set the PC for the SSS to the C200H, connect the SSS to the C200H, go online, and transfer the program and any other required data to the SSS work area. You 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 SSS to the C200H in the
offline mode and load the program and any other required data to the SSS 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 SSS to the C200H in the
offline mode and read data from the Memory Unit into the SSS work area.
9
C200HX/HG/HE Features Section 1-8
2. Go offline if the SSS is not already offline.
3. Change the PC setting for the SSS to the C200HX/HG/HE.
4. If you want to transfer I/O comments together with the program to the C200HX/HG/HE, 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 SSS.
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 SSS to the C200HX/HG/HE and go online. b) Make sure that pin 1 on the C200HX/HG/HEs CPU Unit is OFF to enable
writing to the UM area.
c) Transfer the program and any other require data to the C200HX/HG/HE.
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 SSS 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 a PROM Writer to the SSS and write the data to the EPROM
chip using the SSS EPROM writing operation.
b) Set the ROM type selector on the Memory Cassette to the correct capac-
ity. c) Mount the ROM chip to the Memory Cassette. d) Mount a EPROM Memory Cassette to the C200HX/HG/HE.
9. Turn ON pin 2 on the C200HX/HG/HE’s DIP switch to enable automatic transfer of Memory Cassette data to the CPU Unit at startup.
10. Turn OFF the C200HX/HG/HE and then back ON to reset it and transfer data from the Memory Cassette to the CPU Unit.
11. Test program execution before attempting actual operation.
10
SECTION 2
Hardware Considerations
This section provides information on hardware aspects of the C200HX/HG/HE that are relevant to programming and software operation. These include CPU Unit Components, the basic PC configuration, CPU Unit capabilities, and Memory Cassettes. This information is covered in detail in the C200HX/HG/HE Installation Guide.
2-1 CPU Unit Components 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-1 CPU Unit Indicators 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-2 Peripheral Device Connection 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 PC Configuration 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3 CPU Unit Capabilities 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4 Memory Cassettes 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4-1 Hardware and Software Settings 17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4-2 Writing/Reading UM Data 17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-4-3 Writing/Reading IOM Data 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-5 CPU Unit DIP Switch 20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-6 Operating without a Backup Battery 21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11
CPU Unit Components Section 2-1

2-1 CPU Unit Components

The following diagram shows the main CPU Unit components.
Indicators
Memory Cassette DIP switch
Communications Board (The C200HW-COM06-E is mounted to this CPU Unit.)
Peripheral port
RS-232C port
Memory Cassette The CPU Unit has a compartment to connect the Memory Cassette to the CPU
Unit. The Memory Cassette works as a RAM together with the built-in RAM of the CPU Unit.
Peripheral Port A peripheral device can be connected to the peripheral port. RS-232C Port The CPU Unit has a built-in RS-232C port. Communications Board The CPU Unit has a compartment to connect the Communications Board to the
CPU Unit.
DIP Switch The PC operates according to the DIP switch settings of the CPU Unit. The DIP
switch of the CPU Unit for the C200HX/HG/HE has six pins. For the function of each of the pins, refer to the following table. (All six pins are OFF when the PC is shipped.)
123456
12
ON
OFFON
Pin Setting Function
1 ON Data cannot be written to the UM area.
OFF Data can be written to the UM area.
2 ON Memory Cassette data is read automatically at startup.
OFF Memory Cassette data is not read automatically at startup.
3 ON Programming Console displays messages in English.
OFF Programming Console displays messages in Japanese.
4 ON The expansion instructions can be set.
OFF The expansion instructions cannot be set (default setting).
5 ON Sets the following conditions for the communications port (including
when a CQM1-CIF02 is connected to the Peripheral Port): 1 start bit, 7 data bits, even parity, 2 stop bit, 9,600 bps baud rate
OFF Cancels the above settings.
6 ON Programming Console is in expansion terminal mode (AR 0712 is
turned ON).
OFF Programming Console is in normal mode (AR 0712 is turned OFF).
CPU Unit Components Section 2-1

2-1-1 CPU Unit Indicators

CPU Unit 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 pro­vide ready confirmation of proper operation.
Indicator Meaning
RUN (green) Lit when the PC is operating normally. ERR (red) Flashes if the PC detects any non-fatal error in operation. The PC
will continue operating. Lit if the PC detects any fatal error in operation. The PC will stop
operating. After the PC stops operating, the RUN indicator will be OFF and all output signals of the Output Units will be interrupted (turned OFF).
INH (orange) Lit when the Load OFF flag (AR bit) is ON, in which case all
output signals of the Output Units will be interrupted (turned OFF).
COMM (orange)
Flashes when the CPU Unit is communicating with the device connected to the peripheral port or RS-232C port.

2-1-2 Peripheral Device Connection

A Programming Console or IBM PC/AT running SSS can be used to program and monitor the C200HX/HG/HE PCs.
Programming Console A C200H-PR027-E or CQM1-PRO01-E Programming Console can be con-
nected as shown in the 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.
Data Access Console A C200H-DAC01 Data Access Console can be connected via the C200H-
CN222 or C200H-CN422 Programming Console Connecting Cable, which must be purchased separately. The following operations are not available when the C200H-DAC01 is used with the C200HX/HG/HE:
Set value read and change Error message display
13
CPU Unit Components Section 2-1
IBM PC/AT with SSS An IBM PC/AT or compatible computer with SYSMAC Support Software can be
connected as shown in the diagram.
C200H-LK201-V1
C200HX/HG/HE
Mounted directly
Host Link Unit
Connecting Cables
Peripheral Device
C200H-CN222/422 (2 m/4 m)
Programming Console Connecting Cable
XW2Z-200S/500S (See note)
Connecting Cable
RS-232C port
Support Software
Peripheral port
CQM1-CIF02
Connecting CableConnecting Cable
C500-ZL3AT1-E
14
IBM PC/AT or Compatible SYSMAC Support Software
Programming Console for C200H
C200H-PRO27-E CQM1-PRO01-EC200H-DAC01
Data Access Console for C200H
Programming Console
Note The connector of the XW2Z-200S/500S Connecting Cable is a male 25-pin ter-
minal. An adapter is required for the 9-pin male D-sub terminal on the IBM PC/AT or compatible side.
CPU Unit Capabilities Section 2-3

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 C200HX/HG/HE CPU Rack consists of three components: (1) The CPU Back-
plane, to which the CPU Unit and other Units are mounted. (2) The CPU Unit, 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 C200HX/HG/HE 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 back­plane used.
Expansion I/O Racks An Expansion I/O Rack can be thought of as an extension of the PC because it
provides additional slots to which other Units can be mounted. It is built onto an Expansion I/O Backplane to which a Power Supply and up to ten other Units are mounted.
An Expansion I/O Rack is always connected to the CPU Unit via the connectors on the Backplanes, allowing communication between the two Racks. Up to three Expansion I/O Racks (two with the C200HE PCs) can be connected in series to the CPU Rack.
Unit Mounting Position Only I/O Units and Special I/O Units can be mounted to Slave Racks. All I/O
Units, Special I/O Units, Group-2 High-density I/O Units, Remote I/O Master Units, PC and Host Link Units, can be mounted to any slot on all other Racks. Interrupt Input Units must be mounted to Backplanes with the -V2 suffix on the model number.
Refer to t h e C200HX/HG/HE Installation Guide for details about which slots can be used for which Units and other details about PC configuration. The way in which I/O points on Units are allocated in memory is described in 3-3 IR Area.

2-3 CPU Unit Capabilities

The following table shows the capabilities of the C200HX/HG/HE CPU Units. The CPU4-E and CPU6-E CPU Units are equipped with RS-232C ports.
Item C200HE- C200HG- C200HX-
CPU11-E CPU32-E/
Program capacity 3.2K words 7.2K words 15.2K words 31.2K words DM capacity 4K words 6K words 6K words 6K words EM capacity None 6K words × 1 bank 6K words × 3 banks Basic instruction execution time 0.3 µs min. 0.15 µs min. 0.1 µs min. Max. number of Expansion I/O Racks 2 Racks 2 Racks 3 Racks 2 Racks 3 Racks Max. number of Group-2 High-density I/O
Units Max. number of Special I/O Units 10 Units 10 Units 16 Units 10 Units 16 Units Clock function No Yes Yes Yes Communications Board Slot No Yes Yes Yes
None 10 Units 10 Units 16 Units 10 Units 16 Units
42-E
CPU33-E/
43-E
CPU53-E/
63-E
CPU34-E/
44-E
CPU54-E/
64-E
15
Memory Cassettes Section 2-4

2-4 Memory Cassettes

The C200HX/HG/HE comes equipped with a built-in RAM for the users pro­gram, so a normal program be created even without installing a Memory Cas­sette. An optional Memory Cassette can be used to store the program, PC Set­up, I/O comments, DM area and other data area contents. Refer to the C200HX/ HG/HE Installation Guide for details on installing Memory Cassettes.
Memory Cassette Functions The Memory Cassette can be used to store and retrieve UM and IOM data; UM
stored in the Memory Cassette can also be compared to the UM in the PC.
1, 2, 3... 1. The contents of UM (user memory) can be stored in the Memory Cassette
for later retrieval or verification. If pin 2 of the CPU Unit DIP switch is set to ON, the contents of the Memory Cassette are automatically retrieved when the PC is turned ON.
The UM area contains the ladder program, fixed DM (such as the PC Setup), expansion DM, I/O comments, the I/O table, and th e UM ar ea allocation in­formation.
2. The contents of the PCs I/O memory (IOM) can be stored in the Memory Cassette for later retrieval.
Compatible Memory Cassettes
IOM includes the IR area, SR area, LR area, HR area, AR area, timer and counter PVs, DM 0000 through DM 6143, and EM 0000 through EM 6143.
UM and IOM data is completely compatible between the C200HX/HG/HE and the C200HS data, except the portion of the C200HX/HG/HE data areas that ex­ceed the capacity of the C200HS and the new instructions (BXF2(––), IEMS(––), IORD(––), IOWR(––), PMCR(––), STUP(––), and XFR2(––)) that aren’t supported by the C200HS CPU Unit. Data area addresses and instruc­tions that aren’t supported by the C200HS can’t be used in the C200HS. IOM data can ’t be retrieved to the PC’s RAM unless the size of the IOM in the Memory Cassette matches the size of the IOM in the PC.
There are two types of Memory Cassette available: EEPROM and EPROM. The following table shows the Memory Cassettes which can be used with the C200HX/HG/HE PCs.
Memory Capacity Model number Comments
EEPROM
EPROM 16K or 32K
4K words C200HW-ME04K 8K words C200HW-ME08K 16K words C200HW-ME16K 32K words C200HW-ME32K
words
C200HS-MP16K The EPROM chip is not included
The EEPROM Memory Cassette can be used to write and read UM and I/O data to the CPU Unit. It does
and I/O data to the CPU Unit. It does not require any backup power sup­ply and will retain its data even after it is removed from the CPU Unit.
with the Memory Cassette; it must be purchased separately.
27256 equivalent (ROM-JD-B): 16K 27512 equivalent (ROM-KD-B): 32K
16
Note 1. Data stored in EEPROM wont be reliable after the contents have been over-
written 50,000 times.
2. Use a standard PROM writer to write a program to the EPROM Memory Cassette. Connect an EPROM to the EPROM Memory Cassette before installing the EPROM Memory Cassette to the CPU Unit. The EPROM Memory Cassette will lose its data if it is removed from the CPU Unit.
Memory Cassettes Section 2-4

2-4-1 Hardware and Software Settings

The hardware and software settings related to Memory Cassette operations are described below.
Switch Settings Switch 1 on the Memory Cassette is turned OFF when the Memory Cassette is
shipped. Check the setting on switch 1 before installation.
SR Area Flags and Control Bits
Memory
Cassette
EEPROM
EPROM
SR 269 through SR 273 contain flags and control bits related to Memory Cas­sette contents and operation. Refer to 3-4 SR (Special Relay) Area for details.
Switch 1
ON The data in the Memory Cassette is write-protected. OFF The data in the Memory Cassette can be overwritten. ON 27512-equivalent ROM-KD-B EPROM
OFF 27256-equivalent ROM-JD-B EPROM

2-4-2 Writing/Reading UM Data

Use the following procedures to transfer UM data to or from a Memory Cassette. (A PROM writer is required to write data to an EPROM Memory Cassette. Refer to the SYSMAC Support Software Operation Manual for details.)
Note UM contains the ladder program, fixed DM (such as the PC Setup), expansion
DM, I/O comments, the I/O table, and the UM area allocation information.
Writing UM Data to a Memory Cassette
1, 2, 3... 1. Before turning ON the C200HX/HG/HEs power supply, make sure that
Reading UM Data from a Memory Cassette
1, 2, 3... 1. Turn ON pin 2 of the CPU Units DIP switch.
1, 2, 3... 1. Install the Memory Cassette containing the data into the C200HX/HG/HE.
Use the following procedure to write UM data to an EEPROM Memory Cassette.
switch 1 on the Memory Cassette is set to OFF.
2. Turn ON the C200HX/HG/HE and write the ladder program or read an exist­ing program from a data disk.
3. Switch the C200HX/HG/HE to PROGRAM mode.
4. Use a host computer running SSS or a Programming Console to turn ON SR 27000 (the Save UM to Cassette Bit). The data will be written from the PC to the Memory Cassette. SR 27000 will be turned OFF automatically af­ter the data transfer has been completed.
5. If you want to write-protect the data on the Memory Cassette, turn OFF the PC and set switch 1 of the Memory Cassette to ON. If this switch is ON, data in the Memory Cassette will be retained even if SR 27000 is turned ON.
There are two ways to read UM data from a Memory Cassette: automatic trans­fer at startup or a one-time transfer using a Peripheral Device. (There is no function that automatically writes data to the Memory Cassette.)
Automatic Transfer at Startup:
2. Install the Memory Cassette containing the data into the C200HX/HG/HE.
3. Turn ON the C200HX/HG/HEs power supply. The contents of the Memory Cassette will be transferred to the CPU Unit automatically . A memory error will occur if the data couldn’t be transferred.
One-time Transfer using a Peripheral Device:
2. Turn ON the C200HX/HG/HE and switch it to PROGRAM mode.
3. Use a host computer running SSS or a Programming Console to turn ON SR 27001 (the Load UM from Cassette Bit). The data will be read from the Memory Cass e t t e t o t h e PC. SR 27001 will be turned OFF automatically af­ter the data transfer has been completed.
setting
Function
(32K words, 150 ns access time)
(16K words, 150 ns access time)
17
Memory Cassettes Section 2-4
Comparing UM Data on a Memory Cassette
Use the following procedure to the UM data on an Memory Cassette to the UM data in the PC.
1, 2, 3... 1. Switch the C200HX/HG/HE to PROGRAM mode.
2. Use a host computer running SSS or a Programming Console to turn ON SR 27002 (the Compare UM to Cassette Bit). The data will be compared be­tween the PC and the Memory Cassette. SR 27002 will be turned OFF auto­matically after the data comparison has been completed.
3. Use a host computer running SSS or a Programming Console to check the status of SR 27003 (the Comparison Results Flag).
Note If data verification is executed in a mode other than the PROGRAM mode, an
operation continuance error (FAL90) will occur and 27002 will turn ON (1). Al­though 27003 will also turn ON, comparison will not be performed. If data com­parison is executed without mounting the Memory Cassette, 27003 will turn ON (1).

2-4-3 Writing/Reading IOM Data

Use the following procedures to transfer IOM data to or from a Memory Cas­sette. (A PROM writer is required to write data to an EPROM Memory Cassette. Refer to the SYSMAC Support Software Operation Manual for details.)
IOM includes the IR area, SR area, LR area, HR area, AR area, timer and count­er PVs, DM 0000 through DM 6143, and EM 0000 through EM 6143.
The capacity of the Memory Cassette must match the memory capacity of the CPU Unit when IOM data is transferred to or from a Memory Cassette. The memory requirements are as follows:
Writing IOM: CPU Units capacity Memory Cassettes capacity Reading IOM: CPU Unit’s capacity = Amount of IOM data in Memory Cas- sette
Note In C200HS PCs, the data transfer will be performed even if the memory capaci-
ties don’t match, an error which can easily go unnoticed. The following table shows the Memory Cassette capacity required to store 1 or
more banks of EM.
Writing IOM Data to a Memory Cassette
18
Memory Cassette capacity Number of EM banks
4K words None (A 4K-word Memory Cassette cant be used to
8K words None 16K words 1 bank (Only EM bank 0 can be stored.) 32K words 3 banks (EM banks 0 through 2 can be stored.)
store other IOM data, either.)
Bits 08 through 15 of SR 273 indicate the EM bank number of the IOM data stored in the Memory Cassette.
Content of
SR 27308 to SR 27315
00 There is no Memory Cassette installed, no IOM data in
the Memory Cassette, or no EM data in the Memory Cas­sette.
01 The Memory Cassette contains IOM data that includes
EM bank 0 only.
04 The Memory Cassette contains IOM data that includes
EM banks 0 through 2.
Meaning
Use the following procedure to write IOM data to an EEPROM Memory Cas­sette.
1, 2, 3... 1. Before turning ON the C200HX/HG/HEs power supply, make sure that
switch 1 on the Memory Cassette is set to OFF.
Loading...
+ 534 hidden pages