Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 4 of 27

SYSMAC C20P/C28P/C40P/C60P P-type Programmable Controllers Operation Manual: SECTION 1

Pages 11 to 17 of 211, from SYSMAC C20P/C28P/C40P/C60P P-type Programmable Controllers Operation Manual

The original document is the PDF (2.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Omron C28P

Page 11

SECTION 1 Background 1–1 1–2 1–3 1–4 1–5 1–6 1–7

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Relay Circuits: The Roots of PC Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PC Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OMRON Product Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview of PC Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Peripheral Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Available Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

2 2 3 4 4 6 7

1

Page 12

Section 1–2

Relay Circuits: The Roots of PC Logic

1–1

Introduction A Programmable Controller (PC) is basically a central processing unit (CPU) containing a program and connected to input and output (I/O) devices (I/O Devices). The program controls the PC so that when an input signal from an input device turns ON, the appropriate response is made. The response normally involves turning ON an output signal to some sort of output device. The input devices could be photoelectric sensors, pushbuttons on control panels, limit switches, or any other device that can produce a signal that can be input into the PC. The output devices could be solenoids, switches activating indicator lamps, relays turning on motors, or any other devices that can be activated by signals output from the PC. For example, a sensor detecting a product passing by turns ON an input to the PC. The PC responds by turning ON an output that activates a pusher that pushes the product onto another conveyor for further processing. Another sensor, positioned higher than the first, turns ON a different input to indicate that the product is too tall. The PC responds by turning on another pusher positioned before the pusher mentioned above to push the too-tall product into a rejection box. Although this example involves only two inputs and two outputs, it is typical of the type of control operation that PCs can achieve. Actually even this example is much more complex than it may at first appear because of the timing that would be required, i.e., “How does the PC know when to activate each pusher?” Much more complicated operations, however, are also possible. The problem is how to get the desired control signals from available inputs at appropriate times. Desired control sequences are input to the P-type PCs using 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 P-type PCs.

1–2

Relay Circuits: The Roots of PC Logic PCs historically originate in relay-based control systems. And although the integrated circuits and internal logic of the PC have taken the place of the discrete relays, timers, counters, and other such devices, actual PC operation proceeds as if those discrete devices were still in place. PC control, however, also provides computer capabilities and consistency to achieve a great deal more flexibility and reliability than is possible with relays. The symbols and other control concepts used to describe PC operation also come from relay-based control and form the basis of the ladder-diagram programming method. Most of the terms used to describe these symbols and concepts, however, originated as 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

2

PC equivalent contact input or condition coil output or work bit

NO relay condition

NC relay inverse condition

Page 13

Section 1–3

PC Terminology

Actually there is not a total equivalence between these terms, because the term condition is used only to describe ladder diagram programs in general and is specifically equivalent to one of certain 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. Conditions and inverse conditions are explained in 4–3 The Ladder Diagram.

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 as well.

PC

When we refer to the PC, 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 inputs and outputs. If you are not familiar with the terms used above to describe a PC, refer to 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 location in memory that reflects its status, i.e., either ON or OFF. This memory location is called an input bit. The CPU in its normal processing cycle monitors the status of all input points and turns ON and OFF corresponding input bits accordingly. There are also output bits in memory that are allocated to output points on Units through which output signals are sent to output devices, i.e., an output bit is turned ON to send a signal to an output device through an output point. The CPU periodically turns output points ON and OFF according to the status of the output bits. These terms are used when describing different aspects of PC operation. When programming, one is concerned with what information is held in memory, and so I/O bits are referred to. When describing 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 describing the signals that enter or leave the system, reference is made to input signals and output signals, or sometimes just inputs and outputs.

Controlled System and Control System

The Control System includes the PC and all I/O devices it uses to control an external system. A sensor that provides information to achieve control is an input device that is clearly part of the Control System. The controlled system is the external system that is being controlled by the PC program through these I/O devices. I/O devices can sometimes be considered part of the controlled system, e.g., a motor used to drive a conveyor belt.

3

Page 14

Section 1–5

Overview of PC Operation

1–4

OMRON Product Terminology OMRON products are divided into several functional groups that have generic names. Appendix A Standard Models list products by these groups. The term Unit is used to refer to all OMRON PC products, depending on the context. The largest group of OMRON products is I/O Units. I/O Units come in a variety of point quantities and specifications. Special I/O Units are dedicated Units that are designed to meet specific needs. These include Analog Timer 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 I/O Link Units that are used to connect P-type PCs to Remote I/O Systems controlled by a larger PC (e.g. C1000H) and Host Link Units. 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 P-type 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 section(s) of this manual that provide relevant information are listed with each of these steps.

1, 2, 3... 1. 2. 3.

4.

5. 6.

7.

8.

9.

4

Determine what the controlled system must do, in what order, and at what times. Determine what Units will be required. Refer to the Installation Guide. If a Link System is required, refer to the required System Manual(s). On paper, assign all input and output devices to I/O points on Units and determine which I/O bits will be allocated to each. If the PC includes Special I/O Units or Link Systems, refer to the individual Operation Manuals or System Manuals for details on I/O bit allocation. (Section 3 Memory Areas) 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 Programming, Section 5 Instruction Set, Section 6 Program Execution Timing) Input the program and all required operating parameters into the PC. (Section 7 Program Input, Debugging, and Execution) Debug the program, first to eliminate any syntax errors and then to eliminate execution errors. (Section 7 Program Input, Debugging, and Execution and Section 8 Troubleshooting) Wire the PC to the controlled system. This step can actually be started as soon as step 3 has been completed. Refer to the Installation Guide and to Operation Manuals and System Manuals for details on individual Units. Test the program in an actual control situation and fine tune it if required. (Section 7 Program Input, Debugging, and Execution and Section 8 Troubleshooting) Record two copies of the finished program on masters and store them safely in different locations. (Section 7 Program Input, Debugging, and Execution)

Page 15

Overview of PC Operation

Section 1–5

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 a thorough understanding of the system that is to be controlled. The first step in designing a Control System is thus determining the requirements of the controlled system.

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 assigning I/O bits to I/O points.

Sequence, Timing, and Relationships

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 five input signals from the photoelectric switch. Each of the related tasks must be similarly determined, throughout the entire control operation.

Unit Requirements

The actual Units that will be mounted must be determined according to the requirements of the I/O devices. This will include actual hardware specifications, such as voltage and current levels, as well as functional considerations, such as those that require Special I/O Units or Link Systems. In many cases, Special I/O Units or Link Systems can greatly reduce the programming burden. Details on these Units and Link Systems are available in individual 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.

5

Page 16

Section 1–6

Peripheral Devices

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 output the program or memory area data. Model numbers for all devices listed below 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 OMRON PCs. Although a Programming Console Adapter is sometimes required, all Programming Consoles are connected directly to the CPU without requiring a separate interface. The Programming Console also functions as an interface to output programs to a standard cassette tape recorder. Various types of Programming Console are available, including both CPU-mounting and Hand-held models. Programming Console operations are described later in this manual.

Graphic Programming Console: GPC

A Peripheral Interface Unit is required to interface the GPC to the PC. The GPC also functions as an interface to output programs directly to a standard cassette tape recorder. A PROM Writer, Floppy Disk Interface Unit, or Printer Interface Unit can be directly mounted to the GPC to output programs directly to an EPROM chip, floppy disk drive, or printing device.

Ladder Support Software: LSS

LSS is designed to run on IBM AT/XT compatibles to enable nearly all of the operations available on the GPC. It also offers extensive documentation capabilities. A Host Link Unit is required to interface a computer running LSS to the PC.

Factory Intelligent Terminal: The FIT is an OMRON computer with specially designed software that allows FIT you to perform all of the operations that are available with the GPC or LSS. Programs can also be output directly to an EPROM chip, floppy disk drive, or printing device without any additional interface units. The FIT has an EPROM writer and a 3.5” floppy disk drive built in. A Peripheral Interface Unit or Host Link Unit is required to interface the FIT to the PC. Using an Optical Host Link Unit also enables the use of optical fiber cable to connect the FIT to the PC. Wired Host Link Units are available when desired. (Although FIT does not have optical connectors, conversion to optical fiber cable is possible by using Converting Link Adapters.) PROM Writer

Other than its applications described above, the PROM Writer can be mounted to the PC’s CPU to write programs to EPROM chips.

Floppy Disk Interface Unit

Other than its applications described above, the Floppy Disk Interface Unit can be mounted to the PC’s CPU to interface a floppy disk drive and write programs onto floppy disks.

Printer Interface Unit

Other than its applications described above, the Printer Interface Unit can be mounted to the PC’s CPU to interface a printer or X–Y plotter to print out programs in either mnemonic or ladder-diagram form.

6

Page 17

Section 1–7

Available Manuals

1–7

Available Manuals The following table lists other manuals that may be required to program and/ or operate the P-type 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

Installation Guide

W167

Hardware specifications

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

LSS Operation Manual

W113

Programming procedures for using LSS (Ladder Support Software)

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 a PC to a floppy disk drive

Optical Remote I/O System Manual

W136

Information on building an Optical Remote I/O System to enable remote I/O capability

Host Link System Manual

W143

Information on building a Host Link System to manage PCs from a ‘host’ computer

K-type Analog I/O Units Operation Guide

W122

Hardware and software information on using Analog I/O Units with the P-type PCs.

7