The text of a manual · part 6 of 13
Micro 84 Programmable Controller User's Manual, pages 51 to 60
Pages 51 to 60 of 124
The original document is the PDF (6.0 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 Gould Micro 84 Controller, Modicon Micro 84 Controller, AEG Micro 84 Controller and Schneider Micro 84 Controller
Page 51
where: Input 1 The timer is activated when power is connected to Input 1. A normally open contact is usually in this input line. Input 2 The timer is enabled (able to be activated) when power is connected to Input 2 and is reset when power is removed. A normally closed contact is usually in this input line. Preset The upper element of the timer (preset) is used for setting the time period in seconds, or in tenths of seconds, that is to elapse before Output 1 is activated. The preset can be a fixed value (up to 999) or a register. When the preset is a register (reference number 300X or 40Xx), the content of the register (a value up to 999) is used as the preset value. This register may be used by all timers having the same preset value. Accumulated Time The lower element of the timer must be a register (reference number 40Xx) in which the actual (accumulated) time is stored. This “holding” register must be unique for this timer. output 1 Output 1 is a normally open circuit that becomes a closed circuit when the accumulated time equals the preset time. Remains closed until the timer is reset or until the equality no longer exists. output 2 Output 2 is a normally closed circuit that becomes an open circuit when the accumulated time equals the preset time. Remains open until the timer is reset or until the equality no longer exists. 7.6.3
Counters The MICRO 84 contains circuits that simulate event counters. The counter increases its value by one whenever the input signal goes from OFF (deenergized) to ON (energized). Only on this positive transition (OFF to ON) is the count increased. Even if the input signal remains ON for several hours, it represents only one transition from OFF to ON and is thus only one count. The format of the counter element is shown below:
COUNTER
ENABLE RESET
ACCUM.COUNT 4oxx
OUTPUT 2 PRESET # ACCUM.COUNT
The counter functions the same as the timer except that the preset value and the value being accumulated in the lower register are in terms of the number of times an event has occurred rather than the amount of time that has elapsed.
7-7
Page 52
7.6.4
Cascading Timers and Counters Timers and counters can be interconnected or cascaded to satisfy any required logic. As many timers and counters as necessary can be placed within a network limited only by the 4 x 7 logic element format. Two timers (or counters) can be placed in series (interconnected) by using output 1 of one timer as input 1 to a second timer. These two timers allow twice as much time to be measured; they are cumulative in effect. START 900 it-
900
-
IOr
RESET I
4001
.
IU
Tl.O
TI.0
4002
.
Figure 7-5. Interconnecting Timers Timers and counters can also be cascaded to, in effect, multiply their range. Figure 7-6 illustrates a timer/counter network that produces a timeof-day clock measuring time in hours and minutes.
START it-
TENTHS OFA SECOND
MINUTES
1
600
HOURS 1 t
P ---P
60
TO. I
0001
4001
XI
24
0002
CTR .
4002
XI
I
4003
0003
0002 I
0003
CTR
I
I
NOTE For greater long-term accuracy, adjust timer between 598 and 602 using an accurate clock. Figure 7-6. Time-of-Day Clock 7.6.5
Arithmetic Operations The arithmetic operations consist of addition and subtraction. The format of the arithmetic operations is shown below: ARITHMETIC
IN
PRESET
OUTPUT I
(nnn ,3~,4OXX) REGISTER 40Xx
-
RE=S”LT
(40xX+1)
7-8
OUTPUT2
Page 53
where: Input The arithmetic operation is performed when power is connected to the input. The input circuit is normally open. Preset The upper element of an arithmetic operation is a preset value. The preset can be a fixed value (up to 999) or a register. When the preset is a register (reference number 300X or 40Xx), the content of the register (a value up to 999) is used as the preset value. Holding Register A register that holds the result of another logic operation (reference number 40Xx). Result Register A register in which the answer to the arithmetic operation is stored. The MICRO 84 automatically assigns a reference number to this register. The number assigned is the holding register reference number plus one (e.g., 40XX + 1). When assigning a reference number to a holding register, make sure that there is an unassigned reference number, one larger than the one being assigned, for use by the controller. output 1 The status of the output is determined by the result of the arithmetic process. output 2 The status of the output is determined by the result of the arithmetic process. NOTE An output is energized only if the input is also energized. When power is removed from the input, the output is deenergized.
J
7.651
Addition The addition function adds the preset value to the contents of the holding register and stores the result in the result register. Based on the results of the addition, one of two output conditions exists: l
If the sum exceeds 999, Output 1 is energized (Output 2 is de-energized) and the remainder (the sum minus 1000) is stored in the result register. If the sum is less than 999, Output 2 is energized (Output 1 deenergized).
l
NOTE The result register contains only the result of the latest calculation. 7.6.5.2
Subtraction The subtraction function compares the value in the preset with the value in the holding register and places the value of the difference in the result register. Based on the results of the compare, one of three output conditions exists: l If the preset is greater than the holding register, Output 1 is energized (Output 2 de-energized). l l
If the preset is less than the holding register, Output 2 is energized (Output 1 de-energized). If the preset is equal to the holding register, both Output 1 and Output 2 are energized.
7-9
Page 54
7.6.6
Sequencers (Drum Programmers) The MICRO 84 Programmable Controller can be used to produce a drum type programmer on a circumferential row-by-row (sequencer) basis. Each circumferential row can operate independently or dependently with reference to the surrounding rows. The controller can contain up to eight sequencers with up to sixteen contacts for each. Reference numbers for sequencer contacts start with the digit 2 and are in the form 2RXX. The significance of the remaining three digits of a sequencer contact reference number is as follows: Sequencers are controlled by the value (00-16) that is contained sequence register (reference numbers 4001-4008). Sequencer Register Reference Number:
4OOY
Sequencer Contact Reference Number:
2RXX where: R=
1 thru 8 (Sequencer reference register number 4001-4008)
xx =
01 thru 16 (Sequencer contact number)
in a
Sequencer operation is controlled by a numeric value (1 thru 16) placed in a specific sequencer register (4001-4008) by any of the non-relay devices such as a counter, timer, or arithmetic operation. The value placed in the sequencer reference register results in a single sequencer contact (2RXX) being energized (contact closes). All other contacts are de-energized. As an example, refer to Figure 7-7. 2300
2311
0II
Figure 7-7. Sequencer Example Each time input “count” contact (1001) is closed, the value in register 4003 increases by one. This is equivalent to moving the stepping switch one position (clockwise). If register 4003 contains the value five, sequencer contact 2305 is energized. When input 1002 is energized, the counter is reset to zero and the stepping switch goes to home position (no contacts closed). Each sequencer is completely independent since each is controlled by a separate register (4001-4008). Each sequencer contact reference number (2RXX) can be used one or more times anywhere in the logic where a contact is appropriate. By using various logic techniques, any sequencer can be made to skip steps and to jump forward or backward as necessary. Only one sequencer contact (per sequencer) is in effect at any one time (i.e., contact points between the jump points are not affected by the jump). The keystrokes required to program a typical sequence are given in Appendix B.
7-10
Page 55
SECTION 8 USING THE P371 PROGRAM PACK
The MICRO 84 P371 Program Pack (see Figure 8-1) incorporates a memory that is identical to the user’s portion of the controller memory. It is this portion of the controller memory that contains the user-generated logic program. The program pack allows the user to dump (store) this logic program for use as a backup to the current system. The program pack also allows a logic program generated on one controller to be transferred (loaded) into another controller with a minimum of effort. NOTES Only the user-generated logic program is dumped to the program pack. The contents of all holding registers, and the redefinition of the A and B keys are not transferred. Be sure the Program Pack used matches the controller (i.e., only use the 1K P371-001 with M84A-001 and the 2K P371-002 with M84A-002). Before transferring the user’s logic program, the MICRO 84 automatically erases the memory that is to receive the program (e.g., when dumping a logic program to the program pack, the first step that the controller performs is to erase the memory in the program pack).
Figure 8-1. Program Pack 8.1
P371 PROGRAM
PACK INSERTION The program pack fits into a slot in the bottom of the MICRO 84 Controller. Insert the male connector on the program pack into the slot on the controller. Push on the base of the program pack so that it mates firmly with the controller. When not actively using the Program Pack, remove it from the controller and store it in a safe place. Do not press the orange button while inserting the pack into the mainframe.
8-1
Page 56
NOTE
When recording and then reloading a program into the same controller, remove the P371 Program Pack and then reinsert it before loading the program. .This procedure prevents the occurence of false error conditions. 8.2
DUMPING (STORING) A PROGRAM TO THE P371 PROGRAM PACK Dumping a user’s logic program from the MICRO 84 controller to the program pack is initiated by a sequence of keystrokes entered into the P370 programmer. The necessary steps and keystrokes to dump a program are given below. (controller RUN
Dump the user’s logic program into the program pack. During this process, the WRITE light on the program pack illuminates.
Wait until the WRITE light goes out before proceeding. Restart the controller. The controller’s
RUN light illuminates.
Return the P370 Programming Panel to the EXAMINE mode.
8.3
LOADING A PROGRAM FROM THE P371 PROGRAM PACK The button located on the program pack’s bottom activates the transfer of program data from t‘he program pack to the controller. 1.
Pressing the button once causes the following action: a.
The controller stops, turning off the RUN light on the controller.
b.
Initiates the program data transfer. After the data is transferred, the DONE light, located on the program pack, turns on. If the DONE light does not turn on, it indicates that the load was not successful. Retry loading.
2.
3.
Pressing the button the second time causes the following action: a.
The DONE (green) light turns off.
b.
The controller’s RUN light turns controller has restarted.
on, indicating that the
If the P370 Programmer was attached during the loading sequencer, press SHIFT/RESET. This is necessary so that the programmer can reflect the new controller logic.
8-2
Page 57
APPENDIX A ERROR CODES
When the MICRO 84 system detects an error, the letter E and the corresponding error code (00-99) appear in the data display. The system detects errors in both the controller and the programmer. Controller errors (e.g., communications, logic, etc.) require that the controller- be restarted. This is accomplished using the SHIFT and RESET keys on the~$ogrammer. Programmer errors (e.g., an illegal sequence of keystrokes is entered) require using the RESET key only. Table A-l lists the error codes, their meaning, and remedy. The asterisk that follows some of the error codes indicates that the error is a controller error. The other errors are P370 Programmer errors. i Table A-l. Error Mk?ages
ERROR CODE
MEANING
REMEDY
60*
A diagnostic error has occurred in the controller’s RAM or ROM memory.
1, Restart Controller-(SHIFT/RESET) If the error does not reoccur, system is OK. 2. If the error reoccurs after restarting and-user logic was just loaded from a program pack, reload making sure the program pack is correctly and firmly inserted. If the error reoccurs, clear the controller memory (SUPV3) and restart controller (SUPV2). If controller runs (RUN light on), program pack contains garbled logic or pack itself is bad. Reload program pack with known good logic and reattempt. Could also be caused by using the wrong program pack/controller combination (memory size mismatch). 3. If error reoccurs after attempting to restart, and program pack has not been used to load new logic, a hardware problem exists (call your distributor).
61*
An error has occurred in the Input/Output section of the controller.
1. Check to ascertain proper installation of terminator plug (see Section 3). Retry. 2. Bad controller. Remove all l/O modules, insert terminator plug in controller. Retry. If no error, controller is good. 3. Bad l/O module. Reinstall the modules (and terminator plug) removed in step 2 one at a time, and retry. Error will occur when faulty I/O module is installed. Replace the module.
\‘,
J d
*To clear errors with an asterisk, press SHIFT/RESET; errors without an asterisk, press RESET. (All errors can be cleared using the SHIFT/RESET sequence.)
A-l
Page 58
Table A-l. Error Messages (Cot-H) ERROR CODE
MEANING
REMEDY
62*
An error is detected in user logic during the power up sequence.
1. Reattempt to start the controller from the programmer (SHIFT/RESET). 2. Reload the user logic from the program pack. 3. Clear controller memory (SUPVI, SUPVB, then SUPVP and reprogram the controller.
63*
A message from the programmer to the controller arrived garbled.
1. Check cable connections between programmer and controller and retry. 2. Retry using another programmer.
64*
A message sent by the programmer has taken too long to get to the controller.
1. Check cable connections between programmer and controller and retry. 2. Retry using another programmer.
65.
The transfer of user logic between the program pack and the controller (or viceversa) was not successful.
1. Check that program pack is inserted correctly and retry. 2. When loading the controller, this message indicates that controller memory is bad. 3. When dumping to the program pack, this message indicates that program pack is faulty.
66*
Insufficient power (less than 100 (or 200) VAC).
If there is insufficient power, data cannot be entered into the controller (i.e., user logic cannot be altered). The controller will continue to function normally and the P370 Programmer will operate in the Examine, Supervisory, and Error modes.
67
An attempt has been made to disable a coil (00Xx) and the cursor is not positioned on top of a coil.
Move cursor to appropriate element and retry. Coil contacts cannot be individually disabled. They are all disabled when the coil is disabled.
I
68
An attempt was made to force a coil or input contact that was not previously disabled.
Disable the element and retry.
70*
A message sent by the controller has taken too long to get to the programmer.
1. Check cable connections between the programmer and controller and retry. 2. Retry using another programmer.
71
A message from the controller to the programmer arrived garbled.
1. Check cable connections between the programmer and controller and retry. 2. Retry using another programmer.
l
L1
T ‘ o clear errors with an asterisk, press SHIFT/RESET; errors without an asterisk, press RESET. (All errors can be cleared using the SHIFT/RESET sequence.)
A-2
Page 59
Table A-l. Error Messages ERROR CODE
(Cont)
MEANING
REMEDY
A diagnostic error has been detected in the programmer ROM.
This error may occur when a programmer is plugged into the controller for the first time. Press SHIFT/RESET. If the error reoccurs, try another programmer.
A diagnostic error has been detected in the programmer RAM.
Try another programmer.
76
An illegal sequence of keystrokes was entered for a Search
The proper sequence is: Search Type, SRCH key, Reference Number (or Element Type), SRCH key.
77
An illegal Search Type code or Reference Number was entered in a Search request.
Retry using proper Search Type code and Reference Number.
76
An attempt has been made to Search without specifying a Search Type code or Reference Number.
Retry using proper Search Type code and Reference Number.
79
The search for the specified logic element was unsuccessful.
Retry.
30
Illegal entry of vertical connector.
A vertical connector cannot be used in the fourth row or seventh column.
31
The controller was not stopped before function was attempted.
Controller must be stopped to either Clear or Dump memory.
32
An attempt was made to disable an element that cannot be disabled.
Only coils (00Xx) and input contacts (10Xx) can be disabled.
33
An attempt was made to enter a logic element but no logic element was included in the Enter sequence.
Retry using proper keystrokes.
64
An attempt was made to enter a logic element but no preset (doublenode elements) and/or reference number was included in the Enter sequence.
Retry using proper keystrokes.
73*
J
“To clear errors with an asterisk, press SHIFT/RESET; errors without an asterisk, press RESET. (All errors can be cleared using the SHIFT/RESET sequence.)
A-3
Page 60
Table A-l. Error Messages (Cont) ERROR CODE
MEANING
REMEDY
85
An invalid network number was entered.
The MICRO 84 can have l-9 or 1-18 networks depending upon the memory size. -.
87
An out-of-range or invalid reference number has been entered.
Retry using a valid reference number.
88
The data value entered was greater than 999.
Retry using data value equal to or less than 999.
89
Memory is protected.
The keylock switch key is in the vertical position or has been removed.
92
Illegal entry of logic element was attempted.
See “Logic Element Entry Rules” in Section 6.
93
Double node logic element entered in an illegal position.
See “Logic Element Entry Rules” in Section 6.
94
A wrong reference number has been entered for an element type (e.g., a 40XX reference has been entered for a coil).
Correct and retry.
95
The same reference number has been entered for two coils.
Coil reference numbers must be unique. Retry using unique reference number.
A-4