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

The text of a manual · part 12 of 35

Series One Programmable Controllers, Series One/One Plus User's Manual: Chapter 5 Programming, pages 101 to 110

Pages 101 to 110 of 300, from Series One Programmable Controllers, Series One/One Plus User's Manual

The original document is the PDF (40 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 GE Fanuc IC610CPU105A, GE Fanuc IC610CPU105C, Fanuc IC610CPU105A, GE IC610CPU105A, Fanuc IC610CPU105C and GE IC610CPU105C

Page 101

Programming

Table 5-6. Summary of I/O References for 8 Circuit Modules - Continued Module No.

07

10

11

Circuit No.

Reference

0 1 2 3 4 5 6 7

070 071 072 073 074 075 076 077

0 1 2 3 4 5 6 7

100 101 102 103 104 105 106 107

0 1 2 3 4 5 6 7

110 111 112 113 114 115 116 117 120 121 122 123 124 125 126 127

13

14

15

0 1 2 3 4 5 6

130 131 132 133 134 135 136

0 1 2 3 4 5 6 7

140 141 142 143 144 145 146 147

0 1 2 3 4 5 6 7

150 151 152 153 154 155 156 157

InOut

Device Name

Wire No. ~-

Page 102

5-12 GEL90842

Table 5-6. Summsiry of I/O References for 8 Circuit Modules - Continued Module No.

70

71

72

73

74

75

76

Circuit No.

Reference

0 1 2 3 4 5 6 7

700 701 702 703 704 705 706 707

0 1 2 3 4 5 6 7

710 711 712 713 714 715 716 717

0 1 2 3 4 5 6 7

720 721 722 723 724 725 726 727

0 1 2 3 4 5 6 7

730 731 732 733 734 735 736 737

0 1 2 3 4 5 6 7

740 741 742 743 744 745 746 747

0 1 2 3 4 5 6 7

750 751 752 753 754 755 756 757

0 1 2 3 4 5 6 7

760 761 762 763 764 765 766 767

In/out

Device Name

Wire No.

,~

Page 103

Programming

5-13

GEK-90842

Internal Coils The internal coils are control relays that can be used to control logic in the Series One or Series One Plus user program. However, their status cannot be provided directly to the I/O section. Retentive relays are specialized internal coils that have their ON or OFF status retained during time periods that the PC is not operating such as during loss of AC power. They use dual operations (set and reset) similar to hard-wired latching relays. A switch (Sl) on the CPU module must be set to the ON position in order for the internal coils, 340 to 377, to be retentive upon loss of power. If the switch is not set properly, these coils will function as non-retentive coils.

Use of the Special Function Coils Internal coils 374 through 377 are special purpose coils, in that they always perform specific internal functions and also provide useful internal system status. Coil 374 is a fist scan reset or power-up indicator. Coil 375 provides a convenient way to program a 0.1 second clock pulse. Coil 376 can be used to inhibit all hardware outputs, that is, outputs that are connected to user devices (programmed with an OUT m instruction). Finally, coil 377 is an indicator of the operating status of the back-up battery for the CMOS memory devices. This coil could be used as a contact to turn on an output connected to a light, bell, etc. as a visual warning of a low battery.

Shift Register References A group of references (400 to 577) are used by the shift register. A total of 128 stages are possible and they can be used as one large shift register or a group of smaller shift registers (for example, 3 @ 30 stages and 2 @ 19 stages) as long as the total number of stages does not exceed 128. Additional details on all these functions will be provided later in this chapter.

Timer and Counter References Another group of fixed references (600 to 677) are used with timers and counters. Any mix of timers or counters totaling 64 can be used in a Series One or Series One Plus PC. Counters provide an additional function, in that they can also control a sequencer with up to 1000 steps. Counters are retentive upon power failure. References 600 to 673 can be used as 16.bit data registers if they are not used as T/C references. T/C references 674-677 are reserved for Thumbwheel Interfaces or Timer/Counter Set Point use only.

Data Registers Data registers are available only with a Series One Plus PC. This is a group of sixty four 16-bit registers which can be used for storage of numerical data. Data can be written to or read from the data registers for use by the data operation instructions. Additionally data stored in the regkters can be used as Timer/Counter presets. The references to be assigned to these registers are 400 to 577. Note that these references are identical to the shift register references. However, shift registers operate on individual bits (4(X),401,402, etc.), while the data registers operate on bytes and are located in a totally merent area of memory. A byte in the Series One Plus PC is a group of 8 consecutive bits and each register is 2 bytes in length. By using available T/C references, the total number of data registers references can be up to 124.

Page 104

5-14

Programming

Flexibility in Using References Although references are assigned to specific functions as shown in Table 5.5, there is some flexibility in their use. I/O references not used by the hardware I/O section (for example, no module inserted into that slot or circuit not wired up) can be used as internal coils. However, if expansion is planned for the future, sufficient references to support that expansion should be reserved and not used in the current programming. Retentive coils can also be used as internal coils if their retentive function is not required. However, typically the unique value of retentive relays does not justify their sacrifice for a few internal coils. The shift register references can be used as a source for additional retentive or internal coils if they are not used for shift registers or sequencers.

Operating Principles Before discussing the details of programming and the use of references, some details on the internal operation of the CPU can be useful. The majority of Series One and Series One Plus applications can be solved and the programs developed without consideration of the internal structure of the CPU. However, some applications can be more efficiently solved if knowledge of the CPU operation is applied while the program is being developed. The basic operation of virtually all PCs is referred to as a scanning function. There are many hundreds of decisions to be performed in any program, and the CPU cannot do all of them simultaneously. Similar to any electronic processor, it performs its operations one at a time. However, the speed of performance internally, makes the external results appear to have all operations accomplished at once. scanning

The term scan is a method of describing how the CPU performs its assigned tasks (see Figure 5.2). It begins at the first function, such as a relay contact, entered into the beginning of memory (address 0000). It proceeds sequentially through all memory addresses performing all functions entered by the user (for example, relay contacts, timers, latching relays, counters, sequencers, shift registers, etc.) until it reaches either the end of memory (address 1723) or the end of the program as entered by the user. During the scan the logic sets or resets coils, according to the instructions entered into the logic program by the user. The status of these coils is immediately available to the next logic function. At the end of the logic scan, the CPU gets input data from the input modules and provides new data to output modules. Next, the programmer, if connected, is serviced by making logic changes and/or updating its display. After servicing the programmer, the CPU performs a check of its internal hardware and resets the watchdog timer. The watchdog timer is a hardware timer set at 180 msec (milliseconds) to ensure that memory or internal circuit faults do not cause the CPU to enter an endless loop because of hardware failure. If a scan is not completed at least once every 180 msec (typical maximum scan is 60 msec), the hardware will shut the CPU down turning outputs OFF. Finally, any forced I/O wiIl be entered. With successful completion of the internal checks, the CPU goes back to the start of the scan and continues its scanning sequence with the logic function entered at address 0000. This repetitive scanning operation is performed from the time power is applied to the CPU until it is removed. Total scan time includes user logic solution time plus overhead. The overhead time includes monitoring functions, I/O updates and housekeeping tasks. The typical scan times listed in the specifications in Chapter 1 assume that only basic instructions have been programmed (AND, OR, STR, NOT, etc.), they do not include overhead. The overhcti time is about the same (4 to 5 mSec) for Series One and Series One Plus. This time must be added to the logic solution time to obtain the total real scan time.

Page 105

515

Programming GEK-90842

In order to achieve the maximum scan time, the monitor function should be disabled for both Series One and Series One Plus programs, since the monitor function adds about 2 mSec of overhead time when it is active. Also the overhead of a Series One Plus is increased slightly when communicating through the DCM, since both the Series One Plus CPU and DCM have been designed to provide a much higher throughput than the Series One CPU/DCM combination. Additionally, timer and counter instructions in the Series One Plus are slower than in the Series One because of the ability to use registers for preset values. The scanning operation is very basic to PC operation and should not be overlooked. It provides a very useful verification of the CPU’s reliability. For details on troubleshooting, refer to Chapter 7. The scanning operation also provides a fixed and definable sequence of logic decisions. Functions are solved in the order programmed. The results of one function (for example, coil, timer, shift register, etc.) are immediately available internally to the next logic element. In larger complex logic programs, internal races can be eliminated. The user does not need to be concerned with the time delay relays required to pull in or activate nor their variations (for example, a 4 pole vs 8 pole relay).

SOLVE LADDER MAGRAM

SERVICE r/o

SERVICE PROGRAMMER

WATCHDOG TMER

ADD FORCED Vb

Figure S-2. CPU Scanning Sequence

Programmer Functions The basic programming language of the Series One and Series One Plus PCs is a simple relay ladder representation based upon standard Boolean functions (AND, OR, and NOT). Throughout the discussion of programming, examples will be used to illustrate the function described. The illustration of the Programmer (Figure 5.3) will be used as a reference for these examples and specific key sequences will

Page 106

5-16

Programming GEK-90842 be provided so that the user can follow and demonstrate the example. A short-hand notation will also be provided that is recommended as a simple method to document your program. A complete discussion of the programmer is provided in Chapter 4. A brief overview of important keys is presented below to aid the user’s understanding of the examples.

The keyboard has both upper and lower case functions similar to a typewriter. The numerical keys for most programming steps are accessed by first selecting the SHF (Shift) key to the upper right. Once depressed, the SHF LED is lit (display center right) and then the appropriate numerical digit(s) can be selected. The shift function is latched and will be released only by selection of the ENT (Enter) or CLR (Clear) key. The SHF key does not have to be held down. The display window in the upper left reflects either address or data information (not both) as the operation progresses. Typically, as keys are selected, their resmctive LEDs will light to display the function selected. Other important keys are as follows: KEY

AND OR STR NOT

OUT TMR CNT SET MCS MCR SR RST F R

FUNCTION AND referenced status with previously entered logic (Series) OR referenced status with previously entesed logic (Parallel) START new rung of a ladder diagram NOT or invert (i.e. make normally closed) contact referenced OUTput logic status to a coil, either output or intemal TIMER is selected as desired function COUNTER is selected as &s&d function SET latching relay or shift register status Master Control Start - begin control of master control relay Master Control Reset - end control of master control relay Shift Register - establish range of shift register RESET latching relay or shift register status FUNCTION - specifies a data operation (Series On& Plus) REGISTER - specifies a data qister or group entry (Series One Plus)

a41 939

Figure 5-X Programmer for Series One and Series One Plus

Page 107

Programming

5-17 _~

GEL90842

Basic Ladder Diagram Format Figure 5.4 illustrates a typical ladder diagram. Between two vertical power rails to the extreme left and right, contacts are placed in horizontal strings or lines. Adjacent lines can be connected between contacts by a vertical line to allow logic to be solved in parallel. The horizontal strings (series) of contacts anz equivalent to ANDs. For example line 1 can be described as: A and B and C must occur before coil X is energized; any one reference can prevent the coil from energizing. Similarly vertical contacts are in parallel and programmed as ORs. Thus, line 2 is described as: D or E or F will energize coil Y. Any one reference can by itself energize coil Y. In the Series One and Series One Plus PCs, there is no internal limit on how many contacts can be placed in series, nor how many in parallel. However, as a practical limit for simple programming and system documentation, it is recommended that a horizontal string be limited to nine contacts and one coil; and a vertical array to seven parallel lines. a42342

D

E F It v

-

0

OUTPUT f COIL

RlGuT POWER RAIL

-

’

LEU POWER RAIL

Figure S-4. Typical Ladder Diagram

Concept of Power Flow One key feature of PCs is power flow. This is a conceptual flow of power used to visualize the operation of coils, timers, counters etc. Referring again to Figure 5.4, the left hand power rail can be envisioned as “hot” (connected to 115 V ac or +24 V dc) and the right as its associated “neutral” (connected to 115 V ac or -24 V dc), The coils (e.g. X and Y) will be energized if there is a path for power flow from the left leg to the coil placing the full potential across the coil. If there is no power (electron) flow, the coil will be de-energized (OFF). Power always flows from the left towards the right and will pass through normally open contacts if their references are energized (ON) or normally closed with de-energized (OFF) references. Power flow is also allowed vertically either up or down between adjacent lines where parallel connections are programmed. However, power can NOT flow from right to left at any time through contacts or horizontal shunts. ‘I&s feature simpWes programmin g and prevents undesired sneak paths. However, if hard wired relays are replaced by a Series One or Series One Plus PC, it is possible some adjustments may be necessary to the logic to either simplify the programming or to add sneak paths that may be a basis for the relays functioning.

Page 108

5-18

Programming GEK-90842

Unlimited References Another difference between PC programmin g and hardwired relays is that any reference such as an input or coil can be used on relay contacts as often as necessary. Since references are merely a unique series of bits in a word of memory, they can be programmed wherever and whenever necessary. Now with PCs, there is no need to count relay contacts and try to limit individual references to four or less contacts; no need to plan to use form C relay configurations to squeeze two contacts from one pole. Any reference can be envisioned as a relay controlling many poles providing both normally open and normally closed contacts that operate without any time delay from pole 1 (closest to the coil) to pole 1000 (furthest away from coil).

Page 109

Programming

5-19

GE&90842

SECTION 2

Basic Instructions Basic Instructions This group can be considered as the basic building blocks for a relay ladder diagram. The instructions reference discrete bits that are to be part of an operation, that is, a conditional contact or the end of a rung, which could be an output or an internal relay.

How to Begin Programming The easiest way to begin feeling comfortable with programming a Series One or Series One Plus PC, is to enter one rung of logic with contacts in series that control a single coil. Physically connect input devices (pushbutton switches, limit switches, etc) and an output device (such as a lamp) to the corresponding terminals on an input and output module in the PC, turn the inputs on and off, and observe the result on the output device.

Entering a Rung With Series Contacts In the following program sequence, a rung of ladder logic is shown, then the keystroke sequence required for entering the logic. Notice that when entering a numerical sequence, the SHF key must be depressed before the number or number sequence. In the example, each keystroke is separated by a comma. Numbers with more than 1 digit are grouped together for ease of interpretation. Turn the mode keyswitch to the PROG (programmin g) position in order to enter the logic. Enter wo normally open contacts (1 and 2) in series controlling the state of an output coil (17). Both contacts must be closed to tum on the output. a40347

When input devices wired to inputs 1 and 2 are closed, output 17 will tum on. The operating state of the inputs and outputs, either ON or OFF, can be monitored by observing the LEDs on the Programmer’s logic display that correq3ond to the input or output.

Entering the Clear all Memory Sequence After observing the operation of the series rung, the rung can be deleted by entering the clear all memory sequence, or the rung can remain in memory, with the next rung starting at the next memory address. The next memory address, assuming that tEre above rung was entered at address 0000, is 0003. If you wish to clear tie contents of memory and , start the next rung at address 0000, enter the following key sequence.

CLR, SHF, 348, DEL, NXI’

Page 110

5-20

Programming GEK-90842

When the clear all memory sequence has been successfully entered, the rung of logic that had been entered will be cleared from memory. (Remember, whenever the clear all memory sequence is entered, the entire contents of memory will be cleared). NOTE

Be sure that you want to clear the complete contents of memory when using this sequence, there is no recovery.

Entering a Rung with Parallel Contacts Continue the simple program entry by entering a normally open contact (4) in parallel with a second nomally open contact (20) that references the output coil (20). In series with these, add a normally closed contact (5), then the output coil. a40347

If an input device, such as a limit switch is wired to input 4, and the limit switch is closed, the output would turn on. The normally open contact referencing the output would close and become a seal contact, which would maintain the output in the on state, even if the limit switch wired to input 4 were then opened. The output could be turned off, in this example, by momentarily closing a switch connected to the closed contact, reference 5. Since this is a normally closed contact, it would open when the switch is depressed, and the output would turn off. This logic is commonly used as a motor starter.

Entering a Simple Timer Rung Next, enter two rungs of logic, the first ending with a timer, having a preset value of 30 secondsThe second rung has an output controlled by the state of the timer coil. When input 11 is closed, the timer begins timing up from 0 towards the preset value of 30 seconds. When the accumulated value of the preset reaches 30, the timer coil will turn on, contact T605 will close, and output 25 will turn on. a40347