The text of a manual · part 14 of 35
Series One Programmable Controllers, Series One/One Plus User's Manual: Chapter 5 Programming, pages 121 to 130
Pages 121 to 130 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 121
Programming
5-31
GE&90842 seconds or .Ol seconds as applicable. The timer starts at 0000.0 and records time, towards the preset value. When the preset value is reached, an event will happen according to what has been programmed. Also, when the timer reaches the preset value, the timer will continue timing up, until reset by an interruption of power flow through its conditional contacts, or until it reaches its maximum value of 999.9 or 99.99, as applicable at which time it will stop. If power flow to a timer is interrupted or if the CPU should stop operating, the timer will be reset to zero. The basic clock driving all timers derives its accuracy from a crystal within the CPU, it does not depend upon the AC power line frequency.
RELAY LOGIC
Figure 546.
PRESET
Sample of Timer Logic
A timer can be programmed to be self resetting, by pro gramming a closed contact refereficing the timer coil. If programmed in this manner, when the preset value is reached, the timer coil will tum on, the closed contact referencing the coil will open and the timer will reset to 000.0 and start timing up again. Figure 5.17 illustrates the pro gramming of various types of timers. The relay logic is built in the normal The timer (TMR) function is selected along with a timer/counter manner up to the coil selection. reference (600-677). Each timer or counter must have its own unique coil to operate properly. After the timer is identified, the preset is entered. In this example, coil 41 will be OFF until 15 seconds after timer 601 is energized. It will remain ON until either the power flow to 601 is interrupted or the CPU goes through a power up operation. Coil 42 is inverted from 41 in that it stays ON until 15 seconds after power flows continuously to the timer 601, when it goes OFF. Timer 602 delays 5.5 seconds after reference 27 is energized before it turns its coil ON, also energizing coil 43. Specifying Timer Preset Values The Timer preset value can be either a fixed value entered after the T/C reference, the BCD value entered with the Timer/Counter Setpoint unit for the special Timer/Counter references (674.677), or the value in the registers that are assigned to the special Timer/Counter references. These registers are 564 and 565 for T/C reference 614; 566 and 567 for T/C reference 675; 570 and 571 for T/C reference 676; and 572 and 573 for T/C reference 677. The preset value information is also valid for Counters.
Page 122
Programming
5-32 a4001 6
OR ANDNOT isrlrlr STRNOTTMR
Il.17
LED’S
DISPLAY
SIR STR, SHF ST-R,SHF STR, SHF
CY
DtSPUY
LED’S
SHF SHF SHF SHF
OR OqsHF oR,SHF 0R, SHF
AND, NOT AND, NOT, SHF AND, NOT, SHF 3 AND, NOT, SHF 32 0.0.0.3
6 60 601 0.0.0.4
WORDS
025 026 032 601 15 601 041 601 042 027 602 5.5 602 043
PER ELEMENT]
KEY
6 60 601 0.0.0.6
LED’S
DISPUY 2 27 0.0.1 .o
6 60 602 0.0.1.1 5 ,. 5. 5.5 0.0.1.2
SHF SHF 6 SHF 60 SHF 601 0.0.0.8
4 42 0.0.0.9
SHF SHF 6 St-F60 StiF 602 0.0.1.3
4 43 0.0.1.4
Figure 5-17. Example of Timer Logic Programming Counters Counters (Figure 5.18) operate similar to timers except that they require two rungs of relay logic to control their operation. The upper rung controls when the counter is incremented. When this rung goes from no power-flow to power-flow (OFF to ON), the counter is incremented by one. To cause another count to be recorded, power-flow must be interrupted and another OFF to ON transition must occur. All counters count up, starting at zero, towards a preset value. The ability to detect transitions and record counts is built into the counter function and requires no further programming by the user. The lower rung of logic (second STR function) controls the reset of the counter function. Whenever this rung supplies power flow to the counter, the counter will be reset to zero. If both rungs supply power flow, no
Page 123
Programming GEK-90842 counts are recorded power.
and the counter is forced to zero.
All counters
. ANY
L
RELAY LOGIC t COUNT
I
. C 0
I i are retentive upon loss of CPU
1b PRESET
ANY
RELAY LOGIC
L
RESET
E R
J
Figure S-18. Example of Counter Logic Figure 5.19 illustrates the operation of counters. Again, the relay logic driving the counters is built as separate rungs using normal relay programming techniques. Counter 603 will count (increment) whenever references 015 and 016 are both ON or reference 017 is ON. If one parallel path is energized while the other is also ON, no additional count is recorded. When the count reaches 35 (its preset), coil 603 is energized, also energizing coil 46. Counting will continue beyond the preset value, and will continue counting until the counter is reset. Whenever reference 013 is energized, regardless of the count or top rung status or coil state, counter 603 will be reset to zero and held at that value until reference 013 is de-energized.
Page 124
Programming
5-34
GEK-90842
046
1.14 WORDS
KEY
ON LED’S
I STR
STR
I SHF
I
SHF
1
5
STR. S-IF
15
!ZE] SHF
I
ADR
0001
DISPLAY
LED’S
I CN’I
STR.
CNT
SHF
STR.
CNT. SHF tri
STR. SHF
1
[p]
STR. SHF
13
[-q
STR, CNT, SHF
6
1 ENfj
ADR
0004
101
STR.
60
I
CNT.
SHF
CNT
13j
STR. CN?, SHF
I EN?
ADR ml
OUT
I OR
OR
ElSW
OR. SW
El
STR
CNT. SHF
ADR
SHF
OR
7
OR, SHF ADR
1
161
CNT. SHF
16
101
CNT, SHF
0002
I L
1
Enn
ON
I STR
ISHTl
ENT El
1
SHF
KEY
ICNT]
AND,
1
STR.
SHF
DISPLAY --
AND, SHF
6
El
STR
AND
AND, SHF r
ON LED’S
0 STR 0
STR.
ENT
II
STR. SHF
1 u
KEY
DISPLAY
PER ELEMENT
SW
1
3
I
ENT
CNT. SHF ADR
I
SHF lJ
SHF
6
603 0007
I
OUT, SHF
6:
,;I
OUT, SHF
4
0005
[7]
OUT, SHF
46
[EN’I]
ADR
0.0.0
8
3
17
[T]
SHF
35
0.003
IEM]
ADR
0006
Figure 5-19. Example of Counters Extending the Timer and Counter Range Timers and countes can be connected in series or cascaded to extend their range beyond four digits. Figure 5.20 illustrates several techniques to extend preset ranges by utilizing multiple timer/counter
Page 125
Programming
5-35
GEK-90842 functions. Timer 611 will record time as soon as references 206 and 225 are energized. After 800 seconds it energizes its coil and stops recording time. However, timer 612 starts as soon as 611 reaches it preset and continues for another 950 seconds. This is a total of 1750 seconds from the time T611 started. Whenever reference 206 or 225 is de-energized, timer 611 is reset to zero, de-energizing coil 611, and also resetting timer 612 (if necessary).
7wH 225I
1611
STR
1611
1612 4 950
I I T613
1613 l 1.0 1613 l i t
7
CNT 614
306 4 t 052 c
. CNT
C615
615
I t
L.
i t a 500
.
* 1
L
CNT 616
307 I I l 750
L i I
C615
.
4
AND TMR w-e STR TMR TMR W-W STR NOT TMR TMR -aSTR TMR STR CNT --w STR STR CNT CNT W-W STR CNT STR CNT -a-
206 225 611 800 611 612 950 613 613 1.0 613 306 614 750 052 615 615 500 615 307 616 BOO
*BOO
.
Figure 5-20. Example of Extended Counters Another pair of functions are timer 613 and counter 614. Timer 613 is a self resetting timer with a preset of one second (10 tenths). It produces outputs each one scan long, every second from the time the CPU starts until it is auned OFF. Counter 614 counts these pulses up to 750 of them (750 seconds) until reset by reference 106. Since counters are retentive, using timer 613 to produce a one second clock that is counted by 614, results in a retentive timer. A similar result occurs if the top rung of counter 614 were referenced to intemal coil 375 in lieu of 613. The third example in Figure 5.20 is counters 615 and 616. Counter 615 counts reference 52, up to 500, and then resets itself. Counter 616 records how many of these groups of 500 counts occur. Since counter 616 has a preset of 900, its coil will be energized only after 450,000 transitions of reference 52. At anytime, counter 615 has a representation of the small number of counts (O-499 or least significant portion) and counter 616 the larger values representing multiples of 500 (5OO-45Oscxx) or most significant portion. Application techniques shown in Chapter 8 illustrate how a low order preset of 1000 can be obtained to produce a more conventional double precision counter.
Page 126
5-36
Programming GEK-90842
Sequencer Operation All Series One and Series One Plus counters have one other very powerful feature which is applicable to all counters. They all can be programmed to act as sequencers. Each counter can control a 1000 step sequencer, which allows any Series One or Series One Plus PC to have sixty four 1000 step sequencers, each similar to a stepping switch or drum sequencer. Figure 5.21 illustrates the operation of one of these sequencers. Each sequencer moves fkom one position to the next as directed by some user defined signal shown here as a pushbutton. Counters move or are incremented once each time a count is recorded. Each sequencer starts at zero or home position when the counter is reset, and progresses through its steps one at a time in numerical order. At any time the position of the sequencer can be determined by the current count value contained in its storage. Although any sequencer can have up to 1000 steps, many applications are solved with a smaller number. To limit a sequencer to less than 1000 steps, the preset on the counter is used. As usual, each step of the sequencer can control any number of contacts.
INCREMENT
Figure 5-21. Illustration of Sequencer Operation To illustrate the capabilities of the sequencer, refer to the example in Figure 5.22. The sequence map in this example is in the form of a timing diagram that has an overall cycle of 45 seconds. This time is subdivided into increments of 5 seconds per the requirements of this application. There are six outputs to be controlled during the sequence with the desired ON periods shown by horizontal black lines. Outputs are assigned and step numbers (starting at zero) are entered for each time period. To drive the sequencer (Figure 5.23), a timer (600) is entered to reset itself each 5 seconds. Input 030 is used to control the sequencer, which will not be incremented except when this input is energized. When energized, timer 600 will produce one pulse every 5 seconds. Counter 601 increments its count once each pulse, thus stepping the sequencer. Input 031 will reset the sequencer to home (zero) whenever it is energized, regardless of the count or position of the sequencer. The counter will go up to eight and then stop waiting for a reset signal.
Page 127
Programming
5-37
GE&90842 pc-~1-83-0021 TIME (SECONDS) 15
20
25
30
35
40
45 OUTPUT 033
RED LIGHT OUTPUT 1
034
OUTPUT 2
035
GREEN LIGHT
036
BLUE ffiHT
037
SOLENOID
STEP NUMBER
-
-
1
2
3
4
5
6
040
7
8
Figure 5-22. Example of Sequencer The outputs from the sequencer are programmed using relay logic. However, the reference is first to the counter (601) controlling the sequencer and then to the current value that is going to control that contact. For example if a reference to counter 601 is desired that will pass power only when that counter has a current count of exactly one, the value 1 is entered after the reference to 601 on a normally open contact. In this example, output 033 (red light) will be energized during 5 second intervals each for steps 0, 1, and 6. Similarly, output 034 (Output 1) will be energized at step 2, sealed and held until the beginning of step 5 (end of step 4). The other outputs are controlled using similar logic with parallel contacts or seal-in circuits. If an output is ON for more steps than it is OFF, normally closed contacts would probably simplify your logic. Counters can also be used that are driven independently and not with a time base.
Referencing Sequencer Contacts with a Series One Plus PC When progr amming a Counter or Shift Register in a Series One Plus or Series One Plus 3.7K PC that has the IC61OCPU105 CPU installed, a Drum Sequencer contact reference should not be used as the first contact (with a STR or STR NOT instruction) in the COUNT or RESET rung of a counter or the DATA, CLOCK, or RESET rung of a Shift Register. If a program using the step described above was entered into a Series One PC having an IC6lOCPUlOl CPU (this would work correctly) and written to Tape, then later transferred to a Series One Plus PC with an IC61OCPUlOS CPU or a Series One Plus 3.7K PC with an IC61OCPU106 CPU, the program would not execute properly. Do not reference a Drum Sequencer step as the first contact in the rungs as described above. If a Drum Sequencer step is required as the first contact reference for a rung in a Counter or Shift Register, a programming technique *a~ would work properly is to use the required Drum Sequencer step to tum on an internal Coil in a Separate rung, then reference that coil as the first contact in the Counter or Shift Register rung.
Page 128
PC Operation
4-27
GE&90842 t USED
TABLE v2. 2 -1.w-
SmEs MJlE m
418:8
430: t
412:8 413:3 414:s 415:8 416:3 4l7: 8
42k 8 421:8 422:3 423:a 424:3 425:8 426:t 427:t
518: 511: 512: 513: 514: 535: !i36: 517:
52%: 521: 522: 523: 524: 5a 526: 523:
530:
41: 411:If 402:
403: 404: 46: 46: W?:
YE W:
W: !iEk YM: 5Ei: !iMk 1lByI:
.
wu?
ltwsR-2e#a-2l
431: 3 432: s 433: 8 434: 3 435: a
436: 437:
446: 441: 442: 1$3: 444: 445: 446: 447:
540: 541:
53: 532:
542:
533:
543:
534: 536:
544: 545:
536:
546:
537:
547:
63h 63l: 632: 633: 634:
6e 641: 642: 64% 644: : 645 : 646 .W:
m 6s am:
458= 45.1: w: (1153= 454: 455: d?& 45%
4% 47l: 472:
!i6Ik 551: 552: !B 554: @5: 5&: 559:
m
F%gure4-8. Sample Outputs Used Table Printout
473: 474: 475: #6: 477:
-
571: 572: 57% 574: 5Nk 5E 5n:
. iF@6n
6721
67% 674: 6%: : f116 m
I .
Page 129
PC Operation GEK-90842
OUTPUf
USED
REGISTERS
000:
881:
002:
913:
M4:
B15:
0Ek
I-ABM v2.
2
$rq:
886:
06:
an:
me:
811:
@E.
070:
07l:
072:
833:
074:
mi:
m
@&
847:
020:
021:
622:
$23:
$24:
@25:
032:
033:
$34:
835:
066:
WI:
042:
813:
M4:
m6:
W:
052:
053:
64:
066:
967:
MTA E6BTER m )1: 4aQ: Wo: a: 405: 4k $87:
410z 411: 412: 413: 414: 415: U6: 117:
420:
430:
148:
421: 422: 423: 424: 425: 426: 427:
431: 432: 433: 434: 435: 436: 437:
441: 442: 443: 444: 445: 446: u7:
520E 521
HI: 531: 532: 533: 534: 535: 536: : 537
540: 541: 542: 5113: 544: 545: 51116 srtf
522; 52%
524: 525: 5a6: 527:
450: 451: 452: 453: 454: 455: 456: 457: !i6k 551: 552: 553: 554: ak 566: 967:
460:
4%
461: 462: 463: 464: 465: 466z 467:
m: 472: 473: 474: 475: 476: 477:
m 5% sn: 573: 574: 535: 536: s??..
Figure 4-9. Sample Outputs Used Table Printout (continued)
Page 130
Programming GEK-90842
030 0
1600
I
5
T600 0
T600
I
1
C601 e-m *I t t
.
It l
601
CT
03: 601
STR
It 6 601
*
It 2 034
G
601
OR AND e-s
034 kt5 l
035
601 H
8
60:
OR
G it
0
CNT s;R -se
6& 0
030 600 600 6Oi 601 031 601
STRTMR ANDNOTCNT
STR 4
033
601 l
4 8
COUNT 601
031 I m-R ANDNOTTMR
G
St1
NOT
03: 601
OUT STR
03: 601 bk-
SO?
OR
60:
OR
60:
OUT STR -we
03: 601
OR
60:
0 tw 5 601
0
IW
OR
60:
6il iii STR w-s
03: 601 it 0 601 t+
’ 036
3+
OR
60:
&ii STR m-w
03; 601
OR AND weOUT
04: 601 04:
037
Sk 0
NOT
-
II
$
Sk 0 it 6 601
’ 601 I?#
CA0
040 4
7
Figure 5-23. Typical Sequencer Logic Shift Register Functional Description Another powerful feature of all Series One and Series One Plus PCs is the ability to simulate the operation of shiftregisters. There are many physical devices that operate similar to shift registers such as an anchor chain, a conveyor belt, an indexing machine, a line of customers at a refund desk, etc.