Drive control system for vehicle mounted, electrically driven devices
BACKGROUND OF THE INVENTION 
     The invention relates to a system which is driven by an electric motor drive mechanism for controlling the position of a side window, roof panel, seat and mirrors, and also for detecting any abnormality thereof. 
     In certain vehicles, devices such as a side window including windows located on the opposite sides of a driver&#39;s seat and windows located on the opposite sides of a rear seat, a sun roof or roof panel, a seat and mirrors, which are disposed either internally or externally of the vehicle are electrically driven. An electric drive mechanism is provided including a motor associated with a control circuit which may be located in response to a switch operatio to energize the motor for rotation in either forward or reverse direction. An occupant of the vehicle must control the time over which the switch remains operated while monitoring the condition of each device. In particular, where a device is to be driven through a very small stroke, it is difficult to operate the switch for a precisely controlled time interval, while where a device is to be driven through an increased stroke, a driver of the vehicle cannot be freed from the switch, presenting a difficulty in driving the vehicle. 
     To accommodate for this, there is proposed an arrangement, including a separate switch having a limited energization time interval, and another arrangement including a self-holding circuit associated with the control circuit for the motor. In this manner, the switch having a limited energization time may be operated where a particular device is to be driven throgh a small stroke while when another device is to be driven through an increased stroke, a switch which activates the self-holding circuit may be operated. 
     A system for driving vehicle mounted devices which includes a motor drive mechanism is usually turned on or off by an ignition key switch. Accordingly, when the ignition key is withdrawn, these devices can no longer be driven. For example, when parking a vehicle, a driver or occupant may withdraw the ignition key, get out of the vehicle, and lock the door. He may then become aware of the fact that he has forgotten to close either a side window or the sun roof. In this instance, he must unlock the door, insert the ignition key to enable a required switch operation in order to close the side window or sun roof which may have been left open and then withdraw the ignition key, get out of the vehicle and again lock the door. It will be seen that any mistake in performing such procedure of operations results in a significant reduction convenience. It is also possible that the driver may have left the vehicle while being unaware of having forgotten or close the side window or sun roof. Accordingly, the vehicle may be subject to weather or theft. 
     To overcome such inconveniences, Japanese Patent Publication No. 22,763/1982 discloses an electrically driven sun roof including means for detecting the open or closed condition of a sun roof. Further means are provided for detecting whether an engine key is in a position to close the sun roof when it is determined that the sun roof is open. Also, Japanese Laid-Open Patent Application No. 36,119/1980 discloses a window power drive system in which switch means closes when an engine key is in the off position and another switch means which closes when the door is locked are connected in series with a supply line connected to a motor of the mechanism. In the former, if the sun roof is open when the engine key is withdrawn, the sun roof can be automatically closed, thus positively preventing a failure of closing the sun roof. In the latter, if there is a window which remains open when the driver has withdrawn the engine key, got out of the vehicle and locked the door this window can be automatically closed. 
     Considering a mechanism which is used in a side window or sun roof, it will be seen that such mechanism generally comprises a transmission mechanism including gears and wires or the like for connection with the motor. Thus, the side window or sun roof can be opened by tampering with the mechanism. When a hand is put through an opening that is tampered, a knob for a door lock which is located within the vehicle is accessible. Accordingly, either the vehicle or goods disposed within the vehicle may be subject to theft. 
     To prevent such casualty, there is proposed an anti-theft apparatus which issues an alarm whenever a door lock knob disposed within a vehicle is operated before a door is opened or which issues an alarm in response to the detection of an oscillation of the vehicle or a change in the electrical potential of the body. With such approach, oscillations which are produced when an electrically driven device such as side window or sun roof is tampered with, can trigger an alarm, and also a knob operation for a door lock located within the vehicle also triggers an alarm, preventing such casualty. 
     Each of the arrangements described above is effective to solve a particular problem for which it is intended. However, it must be noted that problems relating to an electrically driven device are compounded. For example, considering a side window, it usually requires a first switch which limits the duration of energization of a motor, a normal on/off switch and a self-holding switch. If the vehicle has four doors, the number of parts increases in a corresponding manner. 
     It will be seen that a side window or sun roof may be left slightly open in order to prevent an excessive temperature rise within the vehicle when the vehicle is parked outdoors on a hot summer day. With the prior art arrangements as mentioned above, such side window or sun roof will be closed independently from the intent of the driver, based on the recognition that such element has been mistakenly left open. Accordingly, to prevent such inconvenience, there must be provided separate switch means which prevents a failure-to-close preventing apparatus from operating. On the contrary, if such separate switch means is left activated, the failure-to-close preventing apparatus is prevented from operating. In the event a failure actually occurs to close if the side window or sun roof is left slightly open in order to prevent an excessive temperature rise within the vehicle, a thin instrument, hand or finger may be inserted through the slight clearance to tamper with the side window or sun roof. 
     To summarize, if it is attempted to improve the operation of vehicle mounted devices such as the side window or sun roof, to prevent the failure to close and to prevent the tampering operation with the prior art approach, it is necessary to include every means described above in combination and to add any wanting capability, resulting in an enormous increase in the number of parts to cause an increase in the cost and a degradation in the reliability. Such combination added with wanting capability is still incapable of solving the fundamental problem such as the failure to close a side window due to an improper operation of switch means which disables the failure-to-close preventing apparatus. 
     SUMMARY OF THE INVENTION 
     It is a primary object of the invention to prevent a failure to close a side window or sun roof without requiring any special operation, and a second object to prevent casualty caused by tampering with a side window or sun roof. 
     The above objects are accomplished in accordance with the invention by a driven control system for controllably driving a vehicle mounted device which is supported in a movable manner in accordance with an input. The driven control system drives a vehicle mounted device until it reaches a limit position when an ignition key is not inserted into the ignition switch and when a door on the vehicle closes. In this manner, a window is closed or a sun roof is closed in response to a usual operation conducted by a driver of a vehicle when he ceases to use the vehicle and gets out of the vehicle. Namely stopping the engine, withdrawing the ignition key, opening the door to get out of the vehicle and closing the door again. In this manner, no particular operation is required on the part of the driver. 
     When a vehicle mounted device is driven in response to an input without the ignition key being inserted into the ignition switch, such drive is stored by the control system. The control switch operates to controllably drive the vehicle mounted device until it reaches a limit position when the ignition key is not inserted into the ignition switch and, the door closes. Accordingly, if the window or sun roof is driven to a desired position after withdrawing the ignition key, the window or sun roof can be maintained in that position if the door is subsequently opened to allow the driver to get out of the vehicle and close the door. This will prevent the parked car from overheating. 
     Tampering with the side window or sun roof can be prevented by providing an alarm unit and means for energizing the alarm unit when an electromotive force of a motor of the drive mechanism, when not energized, exceeds a given value. 
     The above and other objects and features of the invention will become apparent from the following description of an embodiment thereof with reference to the drawings. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1a is a side elevation of a mechanism according to one embodiment of the invention, specifically, illustrating an electrically driven window opening and closing mechanism disposed adjacent to an assistant driver&#39;s seat of an automobile; 
     FIG. 1b is an enlarged perspective view of part of the mechanism shown in FIG. 1a; 
     FIG. 2 is a cross section taken along the line II--II shown in FIG. 1a; 
     FIG. 3 graphically shows a current which energizes an electric motor driving a window glass pane as the latter moves upward; 
     FIGS. 4a and 4b are block diagrams of an electrical control system which controls the energization of the window opening and closing mechanism by reading switch entry, both Figures are joined together by aligning the line IVB--IVB shown in FIG. 4a with the line IVA--IVA shown in FIG. 4b; 
     FIGS. 5a, 5b, and 5c illustrate a detailed circuit diagram of an input switch circuit shown in FIGS. 4a and 4b, which circuit is completed by joining the line VB--VB of FIG. 5a to the line VA--VA of FIG. 5b and joining the line VC--VC of FIG. 5b to the line VB--VB of FIG. 5c; 
     FIG. 6a shows the appearance of a switch group disposed on an arm rest of a door adjacent to a driver&#39;s seat for commanding opening or closing of a door; 
     FIG. 6b is a left-hand side elevation of one of the combinatorial switches in its normal condition; 
     FIGS. 6c, 6d, 6e and 6f are left-hand side elevations, illustrating different operated conditions of the switch; 
     FIG. 7a shows the appearance of a switch disposed on an inner panel of a door adjacent to a driver&#39;s seat for commanding an opening or closing of a window; 
     FIGS. 7b, 7c and 7d are side elevations, illustrating a normal and an operated condition of the switch; 
     FIGS. 8a, 8b, 8c, 8d, 8e, 8f, 8g, 8h, 8i, 8j, 8k, 8l, 8m and 8n are flowcharts illustrating a control operation by the microcomputer shown in FIGS. 4a and 4b; 
     FIG. 9 is a flowchart of a timer interrupt operation by the microcomputer shown in FIGS. 4a and 4b; and 
     FIGS. 10a and 10b are flowcharts of modifications of the control operation by the microcomputer in a modified version of the invention. 
    
    
     DETAILED DESCRIPTION OF EMBODIMENT 
     FIG. 1a shows an electric drive mechanism which drives a glass pane 2 up and down, for a door 1 adjacent to an assistant driver&#39;s seat, or front passenger seat, (FL seat) of an automobile. A pair of upper and lower guide rails are secured to the glass pane 2, and are engated by pins located on one end of a pair of link arms 3 1 , 3 2 . A sector-shaped gear 4 is coupled to an elevating arm, engaged with the other end of the link arm 3 2 , for driving it up and down. The sector-shaped gear 4 meshes with a wheel of a worm wheel assembly 5, and the wheel is in meshing engagement with a worm which is coupled with the rotary shaft of an electric motor M FL . The combination of the gear 4 and the worm wheel assembly 5 is illustrated in FIG. 1b. When the motor M FL  rotates in the forward direction, the resulting rotation is transmitted through the worm wheel assembly 5 to rotate the sector-shaped gear 4 clockwise as viewed in FIG. 1a, thus driving the glass pane 2 upward. When the motor M FL  rotates in the reverse direction, the resulting rotation is similarly transmitted through the worm wheel assembly 5 to rotate the gear 4 counter-closkwise in FIG. 1a, thus lowering the glass pane 2. 
     FIG. 2 shows a cross section taken along the line II--II shown in FIG. 1a. As shown, a door frame located at the top of the door 1 has a hollow space in which a limit switch MS FL  is disposed for purpose of detecting the position. The switch MS FL  has a switch knob which projects through the door frame into the hollow space within a weather strip 6, and has an elevation which is below the edge of the door frame. When the glass pane 2 assumes its lower position or when the window is open, the switch contact of the switch MS FL  is closed. When the motor M FL  is energized for rotation in the forward direction, the glass pane 2 moves upward, and its front end moves into abutment against the weather strip 6. A continued energization in the forward direction causes the front end of the glass plane 2 to advance into the door frame, compressing the weather strip 6 to drive the switch knob of the switch MS FL  upward. Thereupon, the switch MS FL  becomes open or becomes non-conductive. The glass pane 2 can be further driven upward through a given small distance beyond such position, which is chosen to be less than the play of the switch knob, thus reaching a completely closed condition. In this manner, the limit switch MS FL  detects the location assumed by the glass pane 2 immediately before complete closure. 
     As is well recognized, the motor current has a proportional relationship with respect to a mechanical load thereon. Accordingly, when the motor M FL  is energized for rotation in the forward direction to drive the glass panes 2 upward, and before the front end of the glass pane 2 abuts against the weather strip 6, the load on the motor is low, and hence the motor current is low. However, when the glass pane 2 moves upward and abuts against the weather strip 6, compressing it as shown in FIG. 2, the load on the motor increases as does the motor current. When it fully compresses the weather strip 6, the motor drive mechanism ceases to move, and the load on the motor increases to infinity, causing a rapid increase in the motor current. 
     The described change in the motor current is graphically shown in FIG. 3. The curve shown indicates a change in the current of the motor M FL  when it drives the glass pane 2 from its full window open to its full window closed condition. Friction associated with a glass running and oscillations of the vehicle influence upon the mechanism load, which does not remain constant, thus causing an oscillating change in the motor current. It will be noted that a motor current of a relatively high magnitude occurs during a time interval from the initiation of the energization until the motor reaches its steady state rotation, or during an acceleration period. The same applies when the motor M FL  is energized for rotation in the reverse direction to lower the glass pane 2. In this instance, the load on the motor will be reduced as a result of the weight of the glass pane 2, but a motor current of a relatively high magnitude occurs during an acceleration period until the motor reaches its steady state rotation, producing a substantially constant current flow when it drives the glass pane 2 downward at a uniform rate. When the glass pane 2 reaches its lowermost position and cannot be driven further downward (fully open position), the motor current increases rapidly. 
     It is to be noted that a similar motor drive mechanism is associated with each of the three remaining doors associated with the driver&#39;s seat and the opposite sides of the rear seat. Motors used in these drive mechanisms will be designated by M FR , M RR  and M RL , respectively, and the associated limit switches are designated by MS FR , MS RR  and MS RL , respectively. The motor current in each of these drive mechanisms exhibit a similar response as graphically shown in FIG. 3. 
     FIGS. 4a and 4b illustrate an electric control system which controls the energization of the electrical drive mechanisms associated with the four doors mentioned above. The electrical control system essentially comprises a microcomputer (MPU) 7, an input switch circuit 8, a drive circuit 9, power supply circuits 10a,  10b, a current detector circuit 11 and a theft preventing circuit 12. 
     MPU 7 includes input ports R0 to R7 and output ports P0, P1 which are connected to the input switch circuit 8. The detail of the input switch circuit 8 is shown in FIGS. 5a, 5b, and 5c. The input switch circuit includes a switch group (see FIG. 6a) disposed on the arm rest of the door adjacent to the driver&#39;s seat (FR seat), including an FR window up/down switch, an FR window automatic up/down switch, an FL window (the window adjacent to the assistant driver&#39;s seat) up/down switch, an FL window automatic up/down switch, an RR window (the window adjacent to the seat located immediately behind the driver&#39;s seat) up/down switch, an RR window automatic up/down switch, an RL window (the window adjacent to the seat which is located immediately behind the assistant driver&#39;s seat) up/down switch, and an RL window automatic up/down switch; a position detecting limit switch MS FR  disposed on the door frame of FR seat, an FR seat door open/close detecting courtesy switch OC FR  disposed on a right-hand center body pillar (not shown), an FR seat door lock/unlock detecting switch DL FR  ; an FL window up/down switch (see FIG. 7a) disposed on the inner panel of the door adjacent to the assistant driver&#39;s seat (FL seat), a position detecting limit switch MS FL  (see FIG. 2) disposed on the door frame of the FL seat, an FL seat door open/close detecting courtesy switch OC FL  disposed on a left-hand center body pillar (not shown), an FL seat door lock/unlock detecting switch DL FL  ; an RR window up/down switch disposed on the inner panel of the door adjacent to the RR seat (the seat located immediately behind the driver&#39;s seat), a position detecting limit switch MS RR  disposed on the door frame of the RR seat, an RR seat door open/close detecting courtesy switch OC FL  disposed on a right-hand quarter lock piller (not shown), an RR seat door lock/unlock detecting switch DL RR  ; an RL window up/down switch disposed on the inner panel of the RL seat (the seat located immediately behind the assistant driver&#39;s seat), a position detecting limit switch MS RL  disposed on the door frame of the RL seat, an RL seat door open/close detecting courtesy switch OC RL  disposed on a left-hand quarter lock pillar (not shown), an RL seat door lock/unlock detecting switch DL RL  ; and IC key switch disposed in a receptacle (not shown) for an ignition key for detecting the presence or absence of an ignition key. 
     In FIG. 5a, the limit switches are designated as MS ij , the door courtesy switches are designated as OC ij  and the door lock/unlock switches are designated as DL ij  where the suffix &#34;i&#34; indicates either F or R while the suffix &#34;j&#34; indicates either R or L. 
     The appearance of the switch group disposed on the arm rest of the FR seat or the driver&#39;s seat is shown in FIG. 6a. In this group, a combinatorial switch for commanding to open or close the FR window, and similar combinatorial switches for the FL, RR and RL windows are disposed in a manner corresponding to the location of the respective windows. In each combinatorial switch, the outer switch comprises an automatic up/down switch while the inner switch comprises an up/down switch, each of which represents a two-pole switch. 
     FIGS. 6b to 6f indicate the operative conditions of one of the switches shown in FIG. 6a, specifically, the combinatorial switch for the FR window, in left-hand side elevation. Specifically, in FIG. 6b, the switch is shown in its normal condition where the outer, automatic up/down switch assumes a horizontal position while the inner up/down switch assumes a vertical position. When the outer switch is depressed at its end indicated as &#34;AUTO UP&#34;, the switch rotates into a position shown in FIG. 6c where its movable contact moves into contact with a fixed contact, which commands an automatic up operation of the FR window (or specifically fixed contact AUTO UP for the FR window shown in FIG. 5a). When the switch is released, a spring which is internally housed therein causes the switch to be returned to its normal condition shown in FIG. 6b. When the outer switch is depressed at its end indicated by an &#34;AUTO DOWN&#34;, the switch rotates into a position shown in FIG. 6d where the movable contact moves into contact with a fixed contact, which commands an automatic down operation for the FR window (or specifically fixed contact AUTO DOWN for the FR window shown in FIG. 5a). When the switch is released, the spring again returns the switch to its normal condition shown in FIG. 6b. In the normal condition, the movable contact assumes a neutral position where it does not engage either fixed contact. 
     When the inner up/down switch is thrown to the &#34;up&#34; side, it tilts as shown in FIG. 6e where the movable contact moves into contact with a fixed contact, which commands an up operation of the FR window (or specifically fixed contact UP for the FR window shown in FIG. 5a). When the switch is released, the spring returns the switch to the normal condition shown in FIG. 6d. When the inner switch is tilted to the &#34;down&#34; side, it rotates to a position shown in FIG. 6f where the movable contact moves into contact with a fixed contact, which commands a down operation of the FR window (or specifically fixed contact DOWN for the FR window shown in FIG. 5a). When the switch is released, the spring again returns the switch to the normal condition shown in FIG. 6b. In the neutral position, the movable contact engages neither fixed contact. Other combinatorial switches shown in FIG. 6a are constructed in an identical manner. 
     The appearance of the up/down switch adjacent the FL seat (assistant driver&#39;s seat) is shown in FIG. 7a. A side elevation of the switch in its normal condition is shown in FIG. 7b. Referring to FIG. 7b, an operating surface of the switch is offset, with the lower surface being embossed. When the embossed face is depressed, the switch rotates into a position shown in FIG. 7c where the movable contact moves into contact with the fixed contact commanding a down operation for the FL window (or specifically, fixed contact UP of the FL window shown in FIG. 5a). When released, the switch returns to the normal condition shown in FIG. 7b under the resilience of an internal spring. On the contrary, when the raised surface is depressed, the switch turns to a position shown in FIG. 7d where the movable contact moves into contact with a fixed contact commanding a down operation of the FL window (or specifically, fixed contact DOWN of the FL window shown in FIG. 5a). When released, the switch again returns to the normal condition shown in FIG. 7b under the resilience of the internal spring. In the normal condition, the movable contact assumes a neutral position in which it engages neither fixed contact. This switch is mounted on the inner panel of the FL door so that the &#34;up&#34; side is located upside. Similar switches are mounted on the inner panels of the RR door (for RR window up/down switch) and the RL door (for RL window up/down switch). 
     In this manner, the FL window up/down switch, the RR window up/down switch and the RL window up/down switch function in an identical manner with the FL window up/down switch, RR window up/down switch and the RL window up/down switch contained within the switch group disposed adjacent to the FR seat, and accordingly, the fixed contacts UP and DOWN of these switches are connected in parallel to each other, as shown in FIG. 5a. 
     FIG. 5c shows a decoder IC2 having input terminals which are connected to the output ports P0 and P1 of the microcomputer (MPU) 7. The decoder IC2 is responsive to signals on the output ports P0 and P1 to select one of output terminals A to D to establish 0 (L level) thereon while providing 1 (H level) on the remaining output terminals. The relationship between the inputs and outputs is indicated in the Table 1 below. 
     
                       TABLE 1                                                     
______________________________________                                    
inputs            outputs                                                 
P.sub.0                                                                   
       P.sub.1    A     B         C   D                                   
______________________________________                                    
0      0          0     1         1   1                                   
0      1          1     0         1   1                                   
1      0          1     1         0   1                                   
1      1          1     1         1   0                                   
______________________________________                                    
 
    
     The output from each of the output terminals A, B, C and D is inverted by inverters INV A , INV B , INV C  and INV D , respectively. Accordingly, when the output terminal A assumes an L level (0), the output from the inverter INV A  will b an H level (1), allowing the anode level of eight diodes which are connected in parallel to the output terminal of the inverter INV A  to be established in accordance with the operation of the FR seat up/down switch, FR seat automatic up/down switch, FL seat up/down switch and FL seat automatic up/down switch. Conversely, when the output terminal A assumes H level (1), the output from the inverter INV A  will be an L level (0), causing the anode level of the eight diodes which are connected in parallel to the output terminal of the inverter INV A  to assume an L level independently from the switch operation. The same applies to the remaining output terminals B, C and D. In this manner, MPU 7 is capable of reading twenty-nine inputs from the input switch circuit through the eight input ports R0 to R7 by changing the level on the output ports P0 and P1. By way of example, the input port R0 is connected to the contact UP of the FR window up/down switch, the contact UP of the RR window up/down switch, the fixed contact of IC key switch and the fixed contact of RL courtesy switch in the input switch circuit. When the both output ports P0 and P1 are set to 0, the output from the inverter INV A  will be an H level (1) while the outputs from the remaining inverters will be an L level (0), so that the up operation of the FR window or the presence of the depression at the &#34;up&#34; side (UP contact on/off) can be read. 
     Returning to FIGS. 4a and 4b, the microcomputer (MPU) 7 has output ports O0 to O8, which are connected to relay drivers of the drive circuit 9. Each relay driver essentially comprises an inverter and a switching transistor, and when the output port assumes an L level (0), the inverter inverts such level to render the switching transistor conductive, thus energizing its connected relay. When the output port O0 assumes an L level (0) to energize a relay RY1, its relay contact ry1 is closed for connection with the power supply +B, allowing a current flow through the motor M FR  associated with the FR window in a direction indicated by an arrow DOWN, thus reversing the motor M FR  or opening the window. When the output port O1 assumes an L level (0) to energize a relay RY2, its relay contact ry2 is closed for connection with the supply +B. As will be described later, a relay 9 is energized when controlling the opening or closing of each window, and hence its relay contact ry9 1  is closed, passing a current through the motor M FR  associated the FR window in a direction indicated by an arrow UP, causing the motor M FR  to rotate in the forward direction, thus closing the window. 
     Similarly, relay RY3 or RY4 is selectively energized to control the motor M FL  associated with the FL window to rotate in either forward or reverse direction. Relay RY5 or RY6 is selectively energized to control the rotation of the motor M RR  associated with the RR window in either forward or reverse direction. Relay RY7 or RY8 is selectively energized to control the rotation of the motor M RL  associated with the RL window in either forward or reverse direction. 
     The motor current through each motor M FR , M FL , M RR  and M RL  is detected as a voltage drop across a detecting resistor r, and is fed through a low pass filter comprising resistors and a capacitor where oscillating components are removed. Subsequently, the voltage signal is amplified to be fed to analog input ports AN0 to AN3. As mentioned previously, during the time a window is being closed or when the motor is energized for rotation in the forward direction, the motor current will behave as shown graphically in FIG. 3, provided no abnormality prevails. When the upper end of the glass pane moves into the door frame and begins to compress the weather strip, the motor will be overloaded, rapidly increasing the motor current. The motor will also be overloaded to cause a rapid increase in the motor current if some object is held sandwiched between the glass pane and the door frame during the time the door is being closed. The limit switch MS ij  will be turned off as a result of the compression of the weather strip in the former instance, but will be on in the latter instance since the weather strip is not compressed. Accordingly, MPU 7 determines the occurrence of an abnormality, indicating that some object is held sandwiched, and causes the window in question to be opened fully in response to a rapid increase in the motor current when the limit switch MS ij  is on. 
     When the theft preventing circuit 12 is to be activated, an H level (1) is established at the output port O8 to deenergize a relay RY9. Relay RY9 includes one break contact ry9 0  and four make contacts ry9 1  to ry9 4 . The theft preventing circuit 12 comprises four blocks, each comprising a motor, an amplifier circuit, a buzzer Bz and a buzzer driver. When the relay RY9 is deenergized, the relay contacts ry9 1  to ry9 4  are open, whereby the respective amplifier circuits operate to amplify the terminal voltage across the motors M FR , M FL , M RR  and M FL , to which they are connected. At this time, the relay contact ry9 0  is closed to supply a constant voltage Vcc from the power supply circuit 10b to the buzzer driver. Since the motors M FR , M FL , M RR  and M RL  are engaged with the respective glass panes, when these glass panes are forcibly open, the associated motors rotate, developing an electromotive force. The resulting terminal voltage is amplified, and when it exceeds a given value, the buzzer driver energizes the buzzer Bz. In this manner, if a window of the vehicle is forcibly opened, the buzzer provides a warning, thus preventing a theft of the vehicle which is going to take place in this manner. 
     It will be noted that the theft preventing circuit is activated when the vehicle is at rest and no charging of a battery takes place by the rotation of an engine, and accordingly this circuit is activated by deenergizing the relay RY in order to minimize the power dissipation. The relay contact ry9 0  is broken to disconnect the buzzer driver from the power supply when a window is either opened or closed in a normal manner, in order to prevent an unnecessary energization of the buzzer Bz. 
     A driver or an occupant of a vehicle can utilize the vehicle according to a procedure as summarized below: 
     A: A door lock of the vehicle is unlocked (door lock/unlock switch on) and the door is opened (door courtesy switch on). 
     B. A driver or occupant gets into the vehicle, closes the door (door courtesy switch off) and locks the door (door lock/unlock switch off). 
     C: An ignition key is inserted into the receptacle (IG key switch on), and the engine is started. 
     D: A desired switch is operated to open or close the window by performing switch operations described under sub-paragraphs D 1  to D 4  below. 
     D 1  : An up/down switch associated with a window which is desired to be opened is depressed or tilted at its down side (DOWN contact on), lowering the glass pane to a desired location. 
     D 1  &#39;: An up/down switch associated with a window which is desired to be opened is depressed or tilted in a succession of small strokes at its down side (DOWN contact on), thus lowering the glass pane in small increments (inching). 
     D 2  : An up/down switch associated with a window which is desired to be closed is depressed or tilted at its up side (UP contact on), thus raising the glass pane to a desired location. 
     D 2  &#39;: An up/down switch associated with a window which is desired to be opened is depressed or tilted at its up side in a series of small strokes (UP contact on), thus raising the glass pane in small increments (inching). 
     D 3  : An automatic up/down switch associated with a window which is to be opened fully is depressed at its automatic down side (AUTO DOWN contact on), thus fully opening the glass pane. 
     D 4  : An automatic up/down switch associated with a window which is to be closed fully is depressed at its automatic up side (AUTO UP contact on), thus fully closing the glass pane. 
     E: The engine is stopped, and the ignition key is withdrawn (IG key switch off). 
     F: When it is desired to prevent a temperature rise within the vehicle when it is parked for a short time interval, a switch (up/down switch or automatic up/down switch) which is required to operate a desired window is operated a single time alone, in the similar manner as mentioned under the paragraph D, thus opening or closing the window. 
     G: The vehicle door lock is unlocked (door lock/unlock switch on), opening the door (door courtesy switch on). 
     H: The driver or occupant gets out of the vehicle, closes the door (door courtesy switch off), and locks the door (door lock/unlock switch off), or locks the door (door lock/unlock switch off) and then gets out of the vehicle and closes the door (door courtesy switch off). 
     The microcomputer (MPU) 7 shown in FIG. 4b has an internal read-only memory (ROM) which stores a program for controlling the opening or closing of a window or windows, as indicated by the status of individual switches in the input switch circuit in the procedure utilized by the driver or occupant of the vehicle, and a program which detects any abnormality in the motor current. The control operation which takes place in accordance with these programs will be briefly summarized below in a manner corresponding to the procedure utilized by the driver or occupant of the vehicle is mentioned in the preceding paragraphs. It is to be understood that a small letter represents a control operation corresponding to the operation indicated by a corresponding capital letter. 
     a, b: A standby mode is establishied to read a switch entry, and the system waits for the IG key switch to be turned on. In the meantime, the relay RY9 is deenergized, activating the theft preventing circuit 12. 
     c: When it is detected that the IG key switch is turned on, the standby mode is terminated and the normal window open/close control mode is established. The relay RY9 is then energized, ceasing the operation of the theft preventing circuit 12. 
     d: Window control 
     d 1  : A motor corresponding to the operated switch is energized for rotation in the reverse direction as long as DOWN contact remains on. 
     d 1  &#39;: When the time length during which DOWN contact remains on is less than a preselected time, the motor corresponding to the operated switch is energized for rotation in the reverse direction for a very brief time internal. 
     d 2  : The motor corresponding to the operated switch is energized for rotation in the forward direction as long as UP contact remains on. In the meantime, if an abnormality, indicating that some object is held sandwiched, is detected, an abnormality processing mode is established, and the motor is energized for rotation in the reverse direction. When the fully open condition of the door is detected, the motor is deenergized and the abnormality processing mode is terminated. 
     d 2  &#39;: When the time length during which UP contact remains on is less than a preselected time, the motor corresponding to the operated switch is energized for rotation in the forward direction for a very brief time interval. If the abnormality as described above is detected in the meantime, the abnormality processing mode is established and the motor is energized for rotation in the reverse direction, and when the fully open condition of the window is detected, the motor is deenergized and the abnormality processing mode is terminated. 
     d 3  : When AUTO DOWN contact is turned on, the motor corresponding to the operated switch is energized for rotation in the reverse direction. When the fully open condition is detected, the motor is deenergized. 
     d 4  : When AUTO UP contact is turned on, the motor corresponding to the operated switch is energized for rotation in the forward direction. If the abnormality as described above is detected in the meantime, the abnormality processing mode is established, and the motor is energized for rotation in the reverse direction. When the fully open condition is detected, the motor is deenergized, and the abnormality processing mode is terminated. If no abnormality is detected, the motor is deenergized upon detection of a fully closed condition. 
     e, f: When it is detected that the ignition key is off, a single operation mode is established for each of the windows. A control operation according to one of the sub-paragraphs D 1  to D 4  responsive to a switch operation is performed, and then the single operation mode for each window is terminated. 
     g, h: The on condition of the courtesy switch OC FR  of the driver&#39;s seat is read, and if the off condition of this switch is read subsequently, a failure-to-close preventing mode is established. In this mode, the control operation according to the sub-paragraph d 4  is executed for any open window except for a window which is driven by the single operation mode since such condition is established in response to the intent of the driver. When the control operation which closes any open window in the failure-to-close preventing mode is completed, this mode is terminated and the standby mode is established. 
     FIGS. 8a to 8n illustrate main routines for the control operation according to the paragraphs A to H which is executed by the microcomputer 7. FIG. 9 shows a flowchart for a timer interrupt routine which is used to detect any abnormality. The control operation by the microcomputer 7 will now be described in detail with reference to these Figures. 
     Initially, flags, timers and registers used in these flowcharts will be described. The timers will be described first. 
     FRU, FLU, RRU, RLU timers: These timers determine the length of time during which UP contact of FR window, FL window, RR window and RL window, respectively, remains on. 
     FRD, RLD, RRD, RLD timers: These timers determine the length of time during which DOWN contact of the FR window, FL window, RR window and RL window, respectively, remains on. 
     FRAU, FLAU, RRAU, RLAU timers: These timers determine the length of time during which AUTO UP contact of the FR window, FL window, RR window and RL window, respectively, remains on. 
     FRAD, FLAD, RRAD, RLAD timers: These timers determine the length of time during which AUTO DOWN contact of the FR window, FL window, RR window and RL window, respectively, remains on. 
     FR, FL, RR, RL timers: These timers determine the length of time during which the electric motor which elevates the FR window, FL window, RR window and RL window, respectively, is energized for rotation in either forward or reverse direction. 
     Interrupt timer: This timer develops an internal interrupt signal at a given time interval which is greater than the processing time required by the main routine. 
     The flags will now be described. 
     &#34;IG key&#34; flag: This flag indicates that the ignition key is inserted into the ignition key receptacle. 
     &#34;IG key withdrawal&#34; flag: This flag indicates that the ignition key is withdrawn from the receptacle, indicating a change from the inserted to the noninserted condition. 
     &#34;FR single operation&#34;, &#34;FL single operation&#34;, &#34;RR single operation&#34; and &#34;RL single operation&#34; flags: These flags indicate a single operation mode for the respective windows. 
     &#34;FR door open&#34; flag: This flag indicates that FR door has been opened. 
     &#34;FR door open/closed&#34; flag: This flag indicates that FR door has been closed after it was once opened. 
     &#34;Standby&#34; flag: This flag indicates that the standby mode is established. 
     &#34;MS FR  &#34;, &#34;MS FL  &#34;, &#34;MS RR  &#34;, &#34;MS RL  &#34; flags: These flags indicate that the respective limit switches are off. 
     &#34;FR fully closed&#34;, &#34;FL fully closed&#34;, &#34;RR fully closed&#34;, &#34;RL fully closed&#34; flags: These flags indicate that the FR window, FL window, RR window and RL window are either in their fully closed condition or in their standby position. 
     &#34;FRU timer&#34;, &#34;FLU timer&#34;, &#34;RRU timer&#34;, &#34;RLU timer&#34; flags: These flags indicate that the respective timers have been started. 
     &#34;FRD timer&#34;, &#34;FLD timer&#34;, &#34;RRD timer&#34;, &#34;RLD timer&#34; flags: These flags indicate that the respective timers have been started. 
     &#34;FRAU timer&#34;, &#34;FLAU timer&#34;, &#34;RRAU timer&#34;, &#34;RLAU timer&#34; flags: These flags indicate that the respective timers have been started. 
     &#34;FRAD timer&#34;, &#34;FLAD timer&#34;, &#34;RRAD timer&#34;, &#34;RLAD timer&#34; flags: These flags indicate that the respective timers have been started. 
     &#34;FRU&#34;, &#34;FLU&#34;, &#34;RRU&#34;, &#34;RLU&#34; flags: These flags indicate the occurrence of a window closing control corresponding to the on condition of UP contact for the respective windows. 
     &#34;FRD&#34;, &#34;FLD&#34;, &#34;RRD&#34;, &#34;RLD&#34; flags: These flags indicate the occurrence of a window opening control corresponding to the on condition of DOWN contact for the respective windows. 
     &#34;FRAU&#34;, &#34;FLAU&#34;, &#34;RRAU&#34;, &#34;RLAU&#34; flags: These flags indicate the occurrence of a window closing control in which the individual windows are closed to their fully closed position. 
     &#34;FRAD&#34;, &#34;FLAD&#34;, &#34;RRAD&#34;, &#34;RLAD&#34; flags: These flags indicate the occurrence of a window opening control in which each of the windows is opened to its fully open position. 
     &#34;FRI&#34;, &#34;FLI&#34;, &#34;RRI&#34;, &#34;RLI&#34; flags: These flags indicate an inching operation or an opening/closing control in small increments of the respective windows. 
     &#34;FR timer&#34;, &#34;FL timer&#34;, &#34;RR timer&#34;, &#34;RL timer&#34; flags: These flags indicate that the respective timers have been started. 
     &#34;FR abnormality&#34;, &#34;FL abnormality&#34;, &#34;RR abnormality&#34;, &#34;RL abnormality&#34;, flags: These flags indicate the occurrence of an abnormality when driving any of these windows. 
     &#34;FRUP inhibit&#34;, &#34;FLUP inhibit&#34;, &#34;RRUP inhibit&#34;, &#34;RLUP inhibit&#34; flags: These flags indicate that an abnormality processing mode for the respective windows has been established. 
     Constants are described below. 
     Constant t1: This constant represents a time interval which serves as marginal value which prevents a malfunctioning as a result of a chattering of a window controlling switch (either up/down switch, or automatic up/down switch). A switch on condition which continues for a time interval less than t1 seconds is discarded as noises. 
     Constant t2: This constant represents a threshold which is used to determine an inching operation for a window controlling switch (either up/down switch or automatic up/down switch). A switch on condition which continues for a time interval less than t2 seconds is determined as a command for an inching operation. 
     Constant t3: This constant indicates the duration during which the motor is energized for rotation in the forward direction which is required by an inching operation or closing the window in small increments. 
     Constant t4: This constant indicates the duration during which the motor is energized for rotation in the reverse direction which is required for an inching operation or opening the window in small increments. 
     Constant t5: This constant indicates a rise time when the motor is energized for rotation in the forward direction. 
     Constant t6: This constant indicates a rise time when the motor is energized for rotation in the reverse direction. 
     Constant I1: This constant indicates an abnormal motor current value. 
     Constant I2: This constant represents a threshold which is used to determine a motor lock current. 
     Registers will now be described. 
     t register: A value in each timer is loaded into this register for comparison against one of the described constants t1 to t6. 
     IA FR , IA FL , IA RR , IA RL  registers: The present value of the current through the motors M FR , M FL , M RR  and M RL  is stored in these registers. 
     IB FR , IB FL , IB RR , IR RL  registers: The current value through the motors M FR , M FL , M RR  and M RL  during the immediately preceding timer interrupt operation are stored in these registers. 
     I register: This register is used to load a difference between IA FR  register and IB FR  register, a difference between IA FL  register and IB FL  register, a difference between IA RR  register and IB RR  register and a difference between IA RL  register and IB RL  register therein for comparison against the threshold I1. 
     The control operation mentioned under the paragraphs A to H will now be described in detail. In the description to follow, a notation &#34;S . . . &#34; represents a step number in the flowchart. When a storage battery mounted on the vehicle is connected to the supply line of the control system, output ports, registers and flags are initialized at S1, and an interrupt timer is started to enable an interrupt. All of output ports O0 to O8 are set to &#34;1&#34; (H level), thus deenergizing all the relays RY1 to RY9 and setting &#34;standby&#34; flag to establish a standby mode. 
     At S2, output ports P1 and P2 are updated in the sequence of (0, 0), (0, 1), (1, 0) and (1, 1), reading the switch status in the input switch circuit 8 while updating the stored content or flags of the internal RAM. In the standby mode, a loop which waits for an input from IG key switch is defined comprising S2, S3, S6, S8, S2 and so on, and other switch entries are not read. Accordingly, before the IG key switch is turned on, a user of the vehicle may operate according to the paragraphs A and B, unlocking the door, accompanying an on condition of the door lock/unlock switches (DL FR , DL FL , DL RR , DL RL ), open the door, accompanied by an on condition of courtesy switches (OC FR , OC FL , OC RR , OC RL ), close the door again, accompanied by the off condition of the courtesy switches, and then again lock the door, accompanied by the off condition of door lock/unlock switches. However, these operations are irrelevant to the control. 
     When the driver inserts the ignition key into the receptacle according to the procedure mentioned under the paragraph C, the IG key switch is turned on. Upon detection of this, the program proceeds to S2 to S3 to S4. Since &#34;IG key&#34; flag is not set initially, &#34;IG key&#34; flag is set at S5 and &#34;standby&#34; flag is reset to terminate the standby mode. During the standby mode, the relay RY9 is deenergized to activate the theft preventing circuit 12, and therefore this relay is now energized to cease to operate the theft preventing circuit 12. 
     When the vehicle is in use, the ignition key may be withdrawn and then re-inserted because of need to open or close a fuel lid or trunk lid. In this instance, &#34;IG key withdrawal&#34; flag, &#34;FR single operation&#34; flag, &#34;FL single operation&#34; flag, &#34;RR single operation&#34; flag and &#34;RL single operation&#34; flag are set, as will be described later. Thus, these flags are reset at S5 each time the ignition key is inserted. When the standby mode is terminated, the program can proceed to S9 and subsequent steps. 
     When reading the position detecting limit switch MS FR  associated with the FR window, &#34;MS FR  &#34; flag is set if it is off (at S9 and S10), and &#34;MS FR  &#34; flag is reset (at S9 and S11) if it is on. Similarly, at S12, &#34;MS FL  &#34;  flag is either set or reset in accordance with the status of the position detecting limit switch MS FL  associated with the FL window, &#34;MS RR  &#34; flag is either set or reset in accordance with the status of the position detecting limit switch MS RR  associated with the RR window, and &#34;MS RL  &#34; flag is either set or reset in accordance with the status of the position detecting limit switch MS RL  associated with the RL window. If the FR door is either opened or closed during the time the vehicle is in use, associated flags are operated in a corresponding manner at S13 to S16, but the description will be continued assuming that the program proceeds from S13 to S15 to S32. 
     (1) A control over a window opening responsive to an operation mentioned under the subparagraph D 1  will be described. During a switch reading at S2, if the up/down switch associated with the FR window is detected to have been depressed or tilted at its down side, it is detected at S48 (FIG. 8d). (The operation which occurs when &#34;FRUP inhibit&#34; flag is set at S32 will be described later.) When it is found at S49 that &#34;FR fully open&#34; flag is set, this means that the FR window is fully open, and the glass pane cannot be lowered further downward. Accordingly, the program proceeds to S63 and subsequent steps. Otherwise, &#34;FRD timer&#34; flag is set and FRD timer is reset and then started (at S50 and S51) in response to the initial reading of the switch operation. Subsequently, the program goes through a loop for the normal window opening/closing control mode which comprises S63 and subsequent steps, and when it moves back to S50 again, since &#34;FRD timer&#34; flag is set now, the value of FRD timer is loaded into t register (at S52) for comparison against the constant t1 (at S53). 
     When the length of time during which DOWN contact of the FR window remains on is less than t1 seconds, it is possible that the closure of contact is caused by a chattering which results from oscillations of the vehicle, and accordingly the program waits for the time t1 to pass while remaining in this loop. Thereupon flags relating to the control of opening or closing the FR window, namely, &#34;FRU&#34; flag, &#34;FRD&#34; flag, &#34;FRAU&#34; flag, &#34;FRAD&#34; flag and &#34;FRI&#34; flag are reset at S55. This enables the control to be changed to one corresponding to a new switch operation for the FR window (the depression at the down side). Subsequently, when the up/down switch for the FR window is depressed at its down side and continues over a time which exceeds t2 seconds (S54), this represents that an operation according to the subparagraph D 1  has been performed. Accordingly, &#34;FRD&#34; flag which indicates an FR window opening control is set. In the present embodiment, the value of t2 is chosen to be 0.3 second. 
     At S81, &#34;FLD&#34; flag is set if it is found that the up/down switch for the FL window has been depressed or tilted at its down side; at S82, &#34;RRD&#34; flag is set if it is found that the up/down switch for the RR window has been depressed or tilted at its down side; and at S83, &#34;RLD&#34; flag is set if it is found that the up/down switch for the RL window has been depressed or tilted at its down side. 
     When &#34;FRD&#34; flag is set, it is detected at S108 (FIG. 8h: &#34;IG key&#34; flag being set), and &#34;FR timer&#34; flag is set in response to the initial detection, establishing 0 (L level) and 1 (H level) at output ports O0 and O1, respectively (at step S111, S112). This energizes the relay RY1 and deenergizes the relay RY2 shown in FIGS. 4a and 4b, whereby a current as indicated by an arrow DOWN flows through the electric motor M FR  which is used for elevating the window of the FR door, thus energizing it for rotation in the reverse direction. The time duration during which the motor M FR  is energized is determined by resetting and starting the FR timer. Since the FR window is lowered in response to the rotation of the motor M FR  in the reverse direction, &#34;FR fully closed&#34; flag is reset. 
     At S113, the value of the FR timer is loaded into the register t for comparison against the constant t6 at S114. If the value of the timer is less than t6, this represents the fact that it is now during the rise time of the motor M FR  in the reverse direction, and the program proceeds to S124 and subsequent steps. After going through the control loop and returning to S114 again and when it is found that the motor M FR  has been energized for a length of time which exceeds t6 seconds, the magnitude of the motor current is examined. In a timer interrupt routine shown in FIG. 9 and to be described later, which is executed in response to each timer interrupt, the motor current is stored in IA FR  register by reading the motor current from the analog port AN0 and an accompanied A/D conversion (S252). The value in IA FR  register is compared against the motor lock current value I2 (S118) and if the motor current is equal to or less than I2, the program proceeds to S124 and subsequent steps. 
     If &#34;FLD&#34; flag is set at S81, it is detected at S148 (FIG. 8j), and in a similar manner as mentioned previously, 0 (L level) and 1 (H level) are established at output ports O2 and O3, respectively, at S152, thus energizing the relay RY3 and deenergizing the relay RY4 shown in FIGS. 4a and 4b to energize the electric motor M FL  for rotation in the reverse direction. After the rise time of the motor M FL  has passed (S154), the motor current is monitored (S158). 
     If &#34;RRD&#34; flag is set at S82, it is detected at S118 (FIG. 8l), and 0 (L level) and 1 (H level) are established at output ports O4 and O5, respectively, at S192, thus energizing the relay RY5 and deenergizing the relay RY6 shown in FIGS. 4a and 4b to energize the electric motor M RR  for rotation in the reverse direction. Subsequently, when the rise time of the motor M RR  in its rotation in the reverse direction has passed (S194), the motor current is monitored (S198). 
     If &#34;RLD&#34; flag is set at S83, it is detected at S228 (FIG. 8n), and 0 (L level) and 1 (H level) are established at output ports O6 and O7, respectively, at S232 in the similar manner as before, thus energizing the relay RY7 and deenergizing the relay RY8 shown in FIGS. 4a and 4b to energize the electric motor M RL  for rotation in the reverse direction. After the rise time for the motor M RL  in its rotation in the reverse direction has passed (S234), the motor current is monitored (S238). 
     Since the operation according to the subparagraph D 1  is now being considered, when it is determined from a switch reading at S2 that the up/down switch for the FR window is not depressed or tilted at its down side, the program proceeds to S48 to S57, and to S58, resetting &#34;FRD timer&#34; flag and loading the value in the FRD timer into the register t for comparison against the constants t1 and t2 (S59, S60). Since &#34;FRD&#34; flag is already set, the time duration during which DOWN contact of the FR window remains on exceeds t2 seconds (see the subparagraph D 1 ), and accordingly &#34;FRD&#34; flag is reset at S62. 
     At S81, &#34;FLD&#34; flag is reset in response to the absence of the depression (or tilting) of the up/down switch of the FL window at its down side if &#34;FLD&#34; flag has been set. At S82, &#34;RRD&#34; flag is reset in response to the absence of the depression (or tilting) of the up/down switch of the RR window at its down side if &#34;RRD&#34; flag has been set. At S83, &#34;RLD&#34; flag is reset in response to the absence of the depression (or tilting) of the up/down switch of the RL window at its down side if &#34;RLD&#34; flag has been set. 
     When &#34;FRD&#34; flag is reset, the program proceeds through S108 to S109 to S110 in FIG. 8h. At this time, since 0 (L level) is established at the output port O0 to energize the electric motor M FR  for rotation in the reverse direction, 1 (H level) is established at both output ports O0 and O1 to deenergize both relays RY1 and RY2 shown in FIGS. 4a and 4b, thus causing the motor M FR  to assume the ground potential at its opposite ends to cease its rotation. The FR window comes to a stop at this location. &#34;FR timer&#34; flag and &#34;FR abnormality&#34; flag are now reset, and the program proceeds to S124 and subsequent steps since &#34;FR single operation&#34; flag is not set. 
     If &#34;FLD&#34; flag is reset after setting &#34;FLD&#34; flag at S81, 0 (L level) is established at the output port O2 to energize the electric motor M FL  for rotation in the reverse direction, so that 1 (H level) is established at both output ports O2 and O3 at S161 (FIG. 8j), thus deenergizing the relays RY3 and RY4. This ceases the rotation of the motor M FL , and the FL window comes to a stop at this location. &#34;FL timer&#34; flag and &#34;FL abnormality&#34; flag are now reset, and the program proceeds to S164 and subsequent steps since &#34;FL single operation&#34; flag is not set. 
     If &#34;RRD&#34; flag is reset after it has been set at S82, 0 (L level) is established at the output port O4 to energize the electric motor M RR  for elevating the window associated with the RR window for rotation in the reverse direction. Accordingly, 1 (H level) is established at both output ports O4 and O5 at S201 (FIG. 8l), deenergizing the relays RY5 and RY6. This ceases the rotation of the motor M RR , and the RR window comes to a stop at this location. &#34;RR timer&#34; flag and &#34;RR abnormality&#34; flag are now reset, and the program proceeds to S204 and subsequent steps since &#34;RR single operation&#34; flag is not set. 
     If &#34;RLD&#34; flag is reset after it has been set at S83, 0 (L level) is established at the output port O6 to energize the electric motor M RL  for rotation in the reverse direction. Accordingly, 1 (H level) is established at both output ports O6 and O7 at S241 (FIG. 8n), deenergizing the relays RY7 and RY8. This ceases the rotation of the motor M RL , and the RL window comes to a stop at this location. &#34;RL timer&#34; flag and &#34;RL abnormality&#34; flag are now reset, and the program proceeds to S2 and subsequent steps since &#34;RL single operation&#34; flag is not set. 
     The above describes a window opening control in response to an operation of the subparagraph D 1 . The continued depression or tilting of the down switch which causes the window to be fully open and the motor lock current to be detected will be treated in the description of a control which is responsive to an operation according to the subparagraph D 3  (automatic down operation). 
     (2) A window opening control responsive to an operation according to the subparagraph D 1  &#39; will now be described. It is to be understood that the processing operation up to the point where &#34;FRU&#34; flag, &#34;FRAU&#34; flag, &#34;FRD&#34; flag, &#34;FRAD&#34; flag and &#34;FRI&#34; flag are reset at S55 by detecting the on condition of the up/down switch for the FR window at its down side which continues over a time length exceeding t1 seconds is identical to the processing operation described under the paragraph (1), and therefore will not be repeated. 
     When the depression or tilting of the up/down switch for the FR window at its down side is released before a timer which counts the timer duration of such switch being depressed at its down side exceeds the time interval t2 (S57 to S60), this means that the operation according to the subparagraph D 1  &#39; has been performed. Accordingly, &#34;FRD&#34; flag which indicates the occurrence of the FR window opening control and &#34;FRI&#34; flag representing an incremental time window opening control or an inching operation are set. 
     At S81, &#34;FLD&#34; flag and &#34;FLI&#34; flag are both set in response to the depression or tilting of the up/down switch for the FL window at its down side which continues over t1 seconds but less than t2 seconds. At S82, &#34;RRD&#34; flag and &#34;RRI&#34; flag are set in response to the depression or tilting of the up/down switch for the RR window at its down side which continues over a time period greater than t1 seconds and less than t2 seconds. At S83, &#34;RLD&#34; flag and &#34;RLI&#34; flag are set in response to the depression or tilting of the up/down switch for the RL window at its down side which continues over a time period greater than t1 seconds and less than t2 seconds. 
     The processing operation in which &#34;FRD&#34; flag is detected at S108 and 0 (L level) and 1 (H level) are established at the output ports O0 and O1, respectively, to energize the motor M FR  for rotation in the reverse direction, followed by waiting for the rise time (t6 seconds) of the motor to pass remains the same as the corresponding processing operation mentioned under the paragraph (1), and therefore, will not be described again. When the rise time, t6 seconds, of the motor M FR  has passed, &#34;FRI&#34; flag is detected at S115. 
     At S116, the value in the register t is compared against the duration t4 for the energization of the motor for rotation in the reverse direction which is required to perform an incremental window opening, and if the value in the register t is less than t4 seconds, the program loops around the control loop. In the present embodiment, the value of t4 is chosen as a time interval which is required to open the glass pane by 10 mm. When the duration of energization of the motor M FR  in the reverse direction exceeds t4 seconds, &#34;FRI&#34; flag is reset at S117 and &#34;FRD&#34; flag is reset at S120 (&#34;FRAD&#34; flag being reset), the program then proceeding to S121. At S121, 1 (H level) is established at both output ports O0 and O1, deenergizing the relays RY1 and RY2. This causes the motor M FR  to assume the ground potential at its opposite terminals, and hence the motor ceases to rotate. The FR window comes to a stop after being opened through an incremental distance (10 mm). &#34;FR timer&#34; flag and &#34;FR abnormality&#34; flag are now reset, and the program proceeds to S124 and subsequent steps since &#34;FR single operation&#34; flag is not set. 
     When &#34;FLD&#34; flag and &#34;FLI&#34; flag are set at S81, 0 (L level) and 1 (H level) are established at the output ports O2 and O3, respectively, at S152 shown in Fgi. 8j, energizing the electric motor M FL  for rotation in the reverse direction. When the given time interval t4 seconds passes, 1 (H level) is established at the both output ports O2 and O3, thus deenergizing the motor M FL  (S161). Subsequently, given flags are reset, and the program proceeds to S164 and subsequent steps since &#34;FL single operation&#34; flag is not set. 
     When &#34;RRD&#34; flag and &#34;RRI&#34; flag are set at S82, 0 (L level) and 1 (H level) are established at the output ports O4 and O5, respectively, at S192 shown in FIG. 8l, in the similar manner as mentioned above, thus energizing the electric motor M RR  for rotation in the reverse direction. Subsequently, when the given time interval t4 seconds has passed, 1 (H level) is established at the both output ports O4 and O5, thus deenergizing the motor (S201). After resetting given flags, the program proceeds to S204 and subsequent steps since &#34;RR single operation&#34; flag is not set. 
     In a similar manner, when &#34;RLD&#34; flag and &#34;RLI&#34; flag are set at S83, 0 (L level) and 1 (H level) are established at the output ports O6 and O7, respectively, at S232 shown in FIG. 8n, thus energizing the electric motor M RL  for rotation in the reverse direction. Subsequently, when the given time interval t4 seconds has passed, 1 (H level) is established at the both output ports O6 and O7, thus deenergizing the motor (S241). After resetting given flags, the program returns to S2 and subsequent steps since &#34;RL single operation&#34; flag is not set. 
     The above covers the window opening control responsive to an operation according to the subparagraph D 1  &#39;. 
     (3) A control responsive to an operation according to the subparagraph D 3  will now be described. If the depression of the automatic up/down switch for the FR window at its automatic down side is read during a switch reading at S2, and is detected at S72, the detection at S73 that &#34;FR fully open&#34; flag is set causes the program to proceed to S81 and subsequent steps since this means that the FR window is fully open and the glass pane cannot be further lowered. Otherwise, &#34;FRAD timer&#34; flag is set in response to the detection of the initial switch operation, and FRAD timer is reset and started (S74 and S75). Subsequently, the program loops around the normal window opening/closing control mode which comprises S81 and subsequent steps. When the program reaches S74 again, the value in the FRAD timer is loaded into register t (S76) for comparison against the constant t1 (S77) since &#34;FRAD timer&#34; flag is now set. 
     As mentioned before, if AUTO DOWN contact of the FR window remains on for a time interval which is less than t1 seconds, it is possible that this may be a result of chattering of the contact due to oscillations of the vehicle. Accordingly, the program remains in the loop while waiting for the time interval to exceed t1 seconds, whereupon &#34;FRAD&#34; flag is set while resetting &#34;FRU&#34; flag, &#34;FRD&#34; flag, &#34;FRAU&#34; flag and &#34;FRI&#34; flag. This establishes the control which is responsive to the depression of the automatic down side. When the depression at the automatic down side ceases, &#34;FRAD timer&#34; flag which is set is reset at S80. 
     At S81, &#34;FLAD&#34; flag is set in response to the depression of the automatic up/down switch of the FL window at its automatic down side, in the similar manner as mentioned previously. At S82, &#34;RRAD&#34; flag is set in response to the depression of the automatic up/down switch of the RR window at its automatic down side. At S83, &#34;RLAD&#34; flag is set in response to the depression of the automatic up/down switch of the RL window at its automatic down side. 
     The processing operation up to the point where the program proceeds to S108 to S109 to detect that &#34;FRAD&#34; flag is set and 0 (L level) and 1 (H level) are established at the output ports O0 and O1, respectively, to energize the motor M FR  for rotation in the reverse direction, followed by waiting for the rise time (t6 seconds) to pass, remains the same as the processing operation mentioned above in connection with the paragraph (1), and therefore will not be described again. When the rise time (t6 seconds) for the rotation of the motor M FR  in the reverse direction passes, the motor current is examined at S118. In the timer interrupt routine to be described later (see FIG. 9), the motor current is stored in register IA FR  by reading it from the analog port AN0 (FIGS. 4a and 4b) followed by the A/D convertion (S252), and accordingly, the value in the IA FR  register is compared against the motor lock current I2. If the motor current is equal to or less than I2, the program proceeds to S124 and subsequent steps. When the FR window has been lowered to its fully open position and the motor M FR  has locked and the motor current exceeds I2 as a result of a repeated looping operation, the full opening of the FR window is detected to set &#34;FR fully open&#34; flag at S119. (&#34;FRUP inhibit&#34; flag will be described later.) &#34;FRAD&#34; flag is reset at S120 (&#34;FRD&#34; flag being reset). Subsequently, the program proceeds to S121 where 1 (H level) is established at the both output ports O0 and O1 to deenergize the relays RY1 and RY2 to cease the rotation of the motor M FR . &#34;FR timer&#34; flag and &#34;FR abnormality&#34; flag are now reset, and the program then proceeds to S124 and subsequent steps since it is determined at the following step S122 that &#34;FR single operation&#34; flag is not set. 
     If &#34;FLAD&#34; flag is set at S81, it is detected at S149 (FIG. 8j), and in the similar manner as mentioned above, 0 (L level) and 1 (H level) are established at the output ports O2 and O3, respectively, thereby energizing the relay RY3 and deenergizing the relay RY4 to energize the electric motor M FL  for rotation in the reverse direction. Subsequently, when the rise time for the motor M FL  for its rotation in the reverse direction has passed (S154), the motor current is monitored (S158), and when the lock current is detected, &#34;FL fully open&#34; flag is set (S159) and &#34;FLAD&#34; flag is reset (S160, &#34;FLD&#34; flag is being reset). The program then proceeds to S161 where 1 (H level) is established at the output ports O2 and O3 to deenergize the relays RY3 and RY4 to cease the rotation of the motor M FL . &#34;FL timer&#34; flag and &#34;FL abnormality&#34; flag are now reset, and the program proceeds to S164 and subsequent steps since it is determined at the following step S162 that &#34;FL single operation&#34; flag is not set. 
     If &#34;RRAD&#34; flag is set at S82, it is detected at S189 (FIG. 8l), and 0 (L level) and 1 (H level) are established at the output ports O4 and O5, respectively, at S192 to energize the relay RY5 and deenergize the relay RY6, thus energizing the electric motor M RR  for rotation in the reverse direction. Subsequently, when the rise time for the motor M RR  for its rotation in the reverse direction has passed (S194), the motor current is monitored (S198), and when the lock current is detected, &#34;RR fully open&#34; flag is set (S199) while &#34;RRAD&#34; flag is reset (S200; &#34;RRD&#34; flag being reset), the program thereafter proceeding to S201. Then 1 (H level) is established at the both output ports O4 and O5 to deenergize the relays RY5 and RY6, ceasing the rotation of the motor M RR . &#34;RR timer&#34; flag and &#34;RR abnormality&#34; flag are now reset, and the program then proceeds to S204 and subsequent steps since it is determined at the following step S202 that &#34;RR single operation&#34;  flag is not set. 
     If &#34;RLAD&#34; flag is set at S83, it is detected at S229 (FIG. 8n), and in the similar manner as before, 0 (L level) and 1 (H level) are established at the output ports O6 and O7, respectively, at S232, thereby energizing the relay RY7 and deenergizing the relay RY8 to energize the electric motor M RL  for rotation in the reverse direction. Subsequently, when the rise time for the motor M RL  for its rotation in the reverse direction has passed (S234), the motor current is monitored (S238), and when the lock current is detected, &#34;RL fully open&#34; flag is set (S239) while &#34;RLAD&#34; flag is reset (S240; &#34;RLD&#34; flag being reset), the program thereafter proceeding to S241 where 1 (H level) is established at both output pots O6 and O7 to deenergize the relays RY7 and RY8 to cease the rotation of the motor M RL . &#34;RL timer&#34; flag and &#34;RL abnormality&#34; flag are now reset, and the program then returns to S2 and subsequent steps since it is determined at the following step S242 that &#34;RL single operation&#34; flag is not set. The above covers the window opening control responsive to an operation according to the subparagraph D 3  (automatic down). 
     (4) A control responsive to an operation according to the subparagraph D 2  will now be described. During a switch reading at S2, the depression or tilting of the up/down switch for the FR window at its up side is read, and is detected at S33 (the situation in which &#34;FRUP inhibit&#34; flag is set at S32 will be described later). If it is found at S34 that &#34;FR fully closed&#34; flag is set, this means that the FR window is fully closed and hence the glass pane cannot be further raised. Accordingly, the program proceeds to S63 and subsequent steps. Otherwise, in response to the detection of the initial switch operation, &#34;FRU timer&#34; flag is set and FRU timer is reset and started (S35 and S36). Subsequently, the program once goes through the loop for the normal window opening/closing control mode, which begins with S36, and when it comes back to S35 again, the value in the FRU timer is loaded into the register t (S37) for comparison with the constant t1 (S38), since &#34;FRU timer&#34; flag is now set. 
     As mentioned previously, when the time duration during which UP contact of the FR window remains on is less than t1 seconds, it is possible that the on condition is a result of a chattering of the contact due to oscillations of the vehicle. Accordingly, the loop waits for the time to exceed t1 seconds in this loop, whereupon the flags relating to the opening/closing control of the FR window, namely, &#34;FRU&#34; flag, &#34;FRD&#34; flag, &#34;FRAU&#34; flag, &#34;FRAD&#34; flag and &#34;FRI&#34; flag are reset at S40. This enables the control to be switched on which corresponds to a new switch operation for the FR window (the depression of the up side). If the up/down switch for the FR window continues to be depressed at its up side for a time interval which exceeds t2 seconds (S39), this means that the operation according to the subparagraph D 2  has been performed. Accordingly, &#34;FRU&#34; flag is set which indicates the FR window closing control. 
     If it is found at S81 that the up/down switch for the FL window has been depressed or tilted at its up side, &#34;FLU&#34; flag is set. At S82, &#34;RRU&#34; flag is set in response to the depression or tilting of the up/down switch for the RR window at its up side. Similarly, at S83, &#34;RLU&#34; flag is set in response to the depression or tilting of the up/down switch for the RL window at its up side. 
     When &#34;FRU&#34; flag is set, it is detected at S86 (FIG. 8g; &#34;IG key&#34; flag being set), and &#34;FR timer&#34; flag is set in response to the initial detection, establishing 1 (H level) and 0 (L level) at the output ports O0 and O1, respectively, (S89, S90). This energizes the relay RY2 and deenergizes the relay RY1, whereby a current indicated by an arrow UP flows through the electric motor M FR  for elevating the window associated with the FR door, thus energizing the motor for rotation in the forward direction. The length of time during which the motor M FR  is energized for rotation in the forward direction is determined by FR timer which is reset and then started. Since the FR window is raised in response to the rotation of the motor M FR  in the forward direction, &#34;FR fully open&#34; flag is reset. 
     Referring to FIG. 9, the timer interrupt routine will be described. This routine is executed in response to a timer interrupt from an internal interrupt timer which occurs at a given time interval greater than the length of time required for the loop processing operation in the normal window opening/closing control mode indicated in FIGS. 8a to 8n. In response to the occurrence of an interrupt, the content of the registers and addresses are saved (S250), and the values in the registers IA FR , IA FL , IA RR  and IA RL  are loaded into the registers IB FR , IB FL , IB RR  and IB RL , respectively, at S251. At S252, the value obtained from the analog port AN0 (see FIGS. 4a and 4b) is read and subject to A/D conversion for storage in the register IA FR . At S253, the value obtained from the analog port AN1 is read and subject to A/D conversion for storage in the register IA FL . At S254, the value obtained from the analog port AN2 is read and subject to A/D conversion for storage in the register IA RR . At S255, the value obtained from the analog port AN3 is read and subject to A/D conversion for storage in the register IA RL . At this time, the registers IA FR , IA FL , IA RR  and IA RL  store the present current values of the electric motors M FR , M FL , M RR  and M RL , respectively, while the registers IB FR , IB FL , IB RR  and IB FL  stores the current values of the motors M FR , M FL , M RR  and M RL  which prevail at the occurrence of the previous timer interrupt. This timer interrupt routine is executed at a given time interval so that it will be seen that the value in the register IA FR  from which the value in the register IB FR  is subtracted, as shown at S256, corresponds to a rate of change in the current through the motor M FR . At S256, this value is loaded into the register I and is comared against the threshold value I1 at S257. When the load on the motor increased and changes rapidly, the value in the register I, or the rate of change in the current exceeds the threshold value I1 (the motor M FR  being overloaded), so that &#34;FR abnormality&#34; flag is set at S258. 
     Similarly, the rate of change in the current through the electric motor M FL  is loaded into the register I at S259, and is compared against the threshold value I1 at S260 to detect any overloaded condition of the motor M FL , whereupon &#34;FL abnormality&#34; flag is set at S261. AT S262, the rate of change in the current through the motor M RR  is loaded into the register I, and is compared against the threshold value I1 at S263 to detect any overloaded condition of the motor M RR , whereupon &#34;RR abnormality&#34; flat is set at S264. At S265, the rate of change in the current through the motor M RL  is loaded into the register I, and is compared against the threshold value I1 at S266 to detect any overloaded condition of the motor M RL , whereupon &#34;RL abnormality&#34; flag is set at S267. At S268, the content of the registers and addresses are returned to their original values, and the program returns to the main routine at the address or step which follows the address where the interrupt has occurred. 
     Returning to FIG. 8g, the value in the FR timer is loaded into the register t at S91, and is compared against the constant t5 at S92. As graphically when in FIG. 3, t5 represents the rise time for rotation in the forward direction when driving the window in the closing direction, and has a relatively small magnitude. If the value of t is less than t5 seconds, &#34;FR abnormality&#34; flag is reset at S94, and the program then proceeds to S124 and subsequent steps. 
     After repeatedly going through the control loop over a time interval which exceeds the rise time, and if &#34;MS FR  &#34; flag is reset as is &#34;FR abnormality&#34; flag (a situation in which any of these flags is set will be described later), the current through the motor M FR  is examined at S100. The motor current is stored in the IA FR  register at step S252 shown in FIG. 9, and hence the value in the register IA FR  is compared against the motor lock current I2. If the motor current is equal to or less than I2, the program proceeds to S127 and subsequent steps. If an object is held sandwiched between the glass pane and the door frame during the FR window closing control, &#34;FR abnormality&#34; flag is set in response to the overloaded condition of the motor M FR  (S258) during the timer interrupt routine of FIG. 9, and this flag is detected at S95, and &#34;FRUP inhibit&#34; flag and &#34;FRAD&#34; flag are set at S96 while resetting the flags relating to the FR window opening control, namely, &#34;FRU&#34; flag, &#34;FRAU&#34; flag and &#34;FRI&#34; flag, thus establishing the FR window abnormality processing mode. 
     The program then proceeds to S112 in FIG. 8h, and causes the FR window to be fully opened in the similar manner as in the automatic down operation. However, since the system is now in the FR window abnormality processing mode and &#34;FRUP&#34; flag is set, no response is made to a switch operation which commands an opening or closing of the FR window. When the lock current is detected for the motor M FR  at S118, &#34;FRUP inhibit&#34; flag is reset to terminate the FR window abnormality processing mode, while ceasing the rotation of the motor M FR  in the similar manner as mentioned previously. 
     When &#34;FLU&#34; flag is set at S81, it is detected at S126 (FIG. 8i), and 1 (H level) and 0 (L level) are established at the output ports O2 and O3, respectively, at S130, energizing the relay RY4 and deenergizing the relay RY3 to energize the motor M FL  for rotation in the forward direction. If an object is held sandwiched between the glass pane and the door frame during the FL window closing control and the motor M FL  becomes overloaded to set &#34;FL abnormality&#34; flag (S261 in FIG. 9), this flag is detected at S135, and &#34;FLUP inhibit&#34; flag and &#34;FLAD&#34; flag are set (S136) to establish the FL window abnormality processing mode. The program then proceeds to S152 in FIG. 8j, causing the FL window to be fully opened in the similar manner as in the automatic down operation. Any command to open or close the FL window during the time the FL window abnormality processing mode is established is neglected. 
     If &#34;RRU&#34; flag is set at S82, it is detected at S166 (FIG. 8k), and 1 (H level) and 0 (L level) are established at the output ports O4 and O5, respectively, at S192, energizing the relay RY6 and deenergizing the relay RY5. In this manner, the motor M RR  is energized for rotation in the forward direction. If an object is held sandwiched between the glass pane and the door frame during the RR window closing control and the motor M RR  becomes overloaded to set &#34;RR abnormality&#34; flag (S262 in FIG. 9), this flag is detected at S175, and &#34;RRUP inhibit&#34; flag and &#34;RRAD&#34; flag are set (S176), establishing the RR window abnormality processing mode. The program then proceeds to S192 in FIG. 8l, causing the RR window to be fully opened in the similar manner as in the automatic down operation. Any command to open or close the RR window during the time the RR window abnormality processing mode is established is neglected. 
     If &#34;RLU&#34; flag is set at S83, it is detected at S206 (FIG. 8m), and 1 (H level) and 0 (L level) are established at the output ports O6 and O7, respectively, at S210, energizing the relay RY8 and deenergizing the relay RY7. In this manner, the motor M RL  for elevating the window associated with the RL door is energized for rotation in the forward direction. If an object is held sandwiched between the glass pane and the door frame during the RL window closing control and the motor M RL  becomes overloaded to set &#34;RL abnormality&#34; flag (S267 in FIG. 9), this flag is detected at S215, and &#34;RLUP inhibit&#34; flag and &#34;RLAD&#34; flag are set (S216), establishing the RL window abnormality processing mode. The program then proceeds to S232 in FIG. 8n, causing the RL window to be fully opened in the similar manner as in the automatic down operation. Any command to open or close the RL window during the time the RL window abnormality processing mode is established is neglected. 
     Continuing the description of the operation according to the subparagraph D 2 , when the depression or tilting of the up/down switch for the FR window at its up side is detected during the switch reading at S2, &#34;FRU timer&#34; flag is reset, and a value in the FRU timer is loaded into the register t for comparison against the constants t1 and t2 (S59, S60). Since &#34;FRD&#34; flag is already set, the length of time during which UP contact of the FR window remains on exceeds t2 seconds (the operation according to the subparagraph D 2 ) so that &#34;FRU&#34; flag is reset at S47. 
     At S81, if &#34;FLU&#34; flag is set, this flag is reset in response to the absence of the depression or tilting of the up/down switch for the FL window at its up side. At S82, if &#34;RRU&#34; flag is set, this flag is reset in response to the absence of the depression or tilting of the up/down switch for the RR window at its up side. At S83, if &#34;RLU&#34; flag is set, this flag is reset in response to the absence of the depression or tilting of the up/down switch for the RL window at its up side. 
     When &#34;FRU&#34; flag is reset, the program proceeds through S86 to S87 to S88 in FIG. 8g. Since now 0 (L level) is established at the output port O1 to energize the motor M FR  for rotation in the forward direction, 1 (H level) is established at the both output ports O0 and O1 at S103, deenergizing the relays RY1 and RY2. This ceases the rotation of the motor M FR , and the FR window comes to a stop at this location. &#34;FR timer&#34; flag and &#34;FR abnormality&#34; flag are now reset, and the program proceeds to S106 and subsequent steps since &#34;FR single operation&#34; flag is not set. 
     If &#34;FLU&#34; flag is reset after it has been set at S81, 0 (L level) is established at the output port O3 to energize the motor M FL  for rotation in the forward direction. Accordingly, at S143 (FIG. 8i), 1 (H level) is established at the both output ports O2 and O3, deenergizing the relays RY3 and RY4. This ceases the rotation of the motor M FL , and the FL window comes to a stop at this location. Subsequently, given flags are reset, and the program proceeds to S146 and subsequent steps since it is determined at the following step S144 that &#34;FL single operation&#34; flag is not set. 
     If &#34;RRU&#34; flag is reset after it has been set at S82, 0 (L level) is established at the output port O5 to energize the motor M FR  for rotation in the forward direction. Accordingly, at S183 (FIG. 8k), 1 (H level) is established at the both output ports O4 and O5, deenergizing the relays RY5 and RY6. This ceases the rotation of the motor M RR , and the RR window comes to a stop at this location. Subsequently, given flags are reset, and the program proceeds to S186 and subsequent steps since it is determined at the following step S184 that &#34;RR single operation&#34; flag is not set. 
     If &#34;RLU&#34; flag is reset after it has been set at S83, 0 (L level) is established at the output port O7 to energize the motor M RL  for rotation in the forward direction. Accordingly, at S223 (FIG. 8m), 1 (H level) is established at the both output ports O6 and O7, deenergizing the relays RY7 and RY8. This ceases the rotation of the motor M RL , and the RL window comes to a stop at this location. Subsequently, given flags are reset, and the program returns to S2 and subsequent steps since it is determined at the following step S224 that &#34;RL single operation&#34; flag is not set. 
     The above covers the window opening control responsive to an operation according to the subparagraph D 2 . The situation in which the depression or tilting of the up side switch is continued to cause the window to be fully closed and the motor lock current is detected will be treated by the control responsive to an operation according to the subparagraph D 8 . 
     (5) A window opening control responsive to an operation according to the subparagraph D 2  &#39; will now be described. The processing operation up to the point where the on condition of the up/down switch for the FR window at its up side which continues over a time interval exceeding t1 seconds is detected and &#34;FRU&#34; flag, &#34;FRAU&#34; flag, &#34;FRD&#34; flag, &#34;FRAD&#34; flag and &#34;FRI&#34; flag are reset at S40 remains quite the same as the processing operation described above in connection with the paragraph (4), and therefore will not be described again. If the depression or tilting of the up/down switch for the FR window at its up side is terminated before the timer which determines the time duration during which this switch remains on exceeds the time interval t2 (S42 to S45), this means that the operation according to the subparagraph D 2  &#39; has taken place. Accordingly, &#34;FRU&#34; flag indicating the FR window closing control and &#34;FRI&#34; flag indicating incremental window opening control or inching operation are set. 
     At S81, &#34;FLU&#34; flag and &#34;FLI&#34; flag are set when the up/down switch for the FL window is depressed for tilted at its up side for a time interval greater than t1 seconds and less than t2 seconds. At S82, &#34;RRU&#34; flag and &#34;RRI&#34; flag are set if the switch has been depressed or tilted at its up side for a time interval greater than t1 seconds and less than t2 seconds. At S83, &#34;RLU&#34; flag and &#34;RLI&#34; flag are set if the up/down switch for the RL window has been depressed or tilted at its up side for a time interval greater than t1 seconds and less than t2 seconds. 
     The processing operation up to the point where &#34;FRU&#34; flag is detected at S86 to establish 1 (H level) and 0 (L level) at the output ports O0 and O1, respectively, to energize the motor M FR  for rotation in the forward direction, following by waiting for the rise time (t5 seconds) for the rotation in the forward direction to pass, remains quite the same as that described under the paragraph (4) and therefore will not be described again. When the rise time (t5 seconds) for the rotation of the motor M FR  in the forward direction has passed, &#34;FRI&#34; flag is detected at S97. At S98, the value in the register t is compared against the time duration t3 for the motor rotation in the forward direction which is required to perform an incremental window closing, and if the value is less then t3 seconds, the program goes through the control loop another time. In this embodiment, the value of t3 is chosen as a time interval which is required to close the glass pane through a distance of 10 mm. When the motor M FR  is energized for rotation in the forward direction over a time interval which exceeds t3 seconds, &#34;FRI&#34; flag is reset at S99, &#34;FRU&#34; flag is reset at S102 (&#34;FRAD&#34; flag being reset), and the program proceeds to S103. At S103, 1 (H level) is established at the both output ports O0 and O1, deenergizing the relays RY1 and RY2. This ceases the rotation of the motor M FR , and the FR window comes to a stop after having been raised through a given incremental distance (10 mm). 
     If an object is held sandwiched between the glass pane and the door frame during the FR window closing control, the motor M FR  becomes overloaded to set &#34;FR abnormality&#34; flag (S258) in the timer interrupt routine of FIG. 9, and this flag is detected at S95, and &#34;FRUP inhibit&#34; flag and &#34;FRAD&#34; flag are set at S96, followed by resetting the flags relating to the FR window opening control, namely, &#34;FRU&#34; flag, &#34;FRAU&#34; flag and &#34;FRI&#34; flag, thus establishing the FR window abnormality processing mode. The program then proceeds to S112 shown in FIG. 8e, causing the FR window to be fully opened in the similar manner as in the automatic down operation. However, since the system is now in the FR abnormality processing mode and &#34;FRUP inhibit&#34; flag is set, no response is made to any switch operation commanding the FR window to be opened or closed. When the lock current is detected for the motor M FR  at S118, &#34;FRUP inhibit&#34; flag is reset to terminate the FR window abnormality processing mode, thus ceasing the motor M FR . 
     If &#34;FLU&#34; flag and &#34;FLI&#34; flag are set at S81, 1 (H level) and 0 (L level) are established at the output ports O2 and O3, respectively, at S130 in FIG. 8i, energizing the motor M FL  for rotation in the forward direction. Subsequently, when the given time interval t3 seconds has passed, 1 (H level) is established at the both output ports O2 and O3 to deenergize the motor (S143). 
     If an object is held sandwiched between the glass pane and the door frame during the FL window closing control and the motor M FL  becomes overloaded to set &#34;FL abnormality&#34; flag (S261) in FIG. 9, this flag is detected at S135, and &#34;FLUP inhibit&#34; flag and &#34;FLAD&#34; flag are set (S136), establishing the FL window abnormality processing mode. The program then proceeds to S152 in FIG. 8j, causing the FL window to be fully opened in the similar manner as in the automatic down operation. Any command to open or close the FL window during the time the FL window abnormality processing mode is established is neglected. 
     If &#34;RRU&#34; flag and &#34;RRI&#34; flag are set at S82, 1 (H level) and 0 (L level) are established at the output ports O4 and O5, respectively, at S170 in FIG. 8k,  energizing the motor M RR  for rotation in the forward direction. Subsequently, when the given time interval t3 seconds has passed, 1 (H level) is established at the both output ports O4 and O5 to deenergize the motor (S183). 
     If an object is held sandwiched between the glass pane and the door frame during the RR window closing control and the motor M RR  becomes overloaded to set &#34;RR abnormality&#34; flag (S262 in FIG. 9), this flag is detected at S175, and &#34;RRUP inhibit&#34; flag and &#34;RRAD&#34; flag are set (S176), establishing the RR window abnormality processing mode. The program then proceeds to S192 in FIG. 8l, causing the RR window to be fully opened in the similar manner as in the automatic down operation. Any command to open or close the RR window during the time the RR window abnormality processing mode is established is neglected. 
     If &#34;RLU&#34; flag and &#34;RLI&#34; flag are set at S83, 1 (H level) and 0 (L level) are established at the output ports O6 and O7, respectively, at S210 in FIG. 8m, energizing the motor M RL  for rotation in the forward direction. Subsequently, when the given time interval t3 seconds has passed, 1 (H level) is established at both output ports O6 and O7 to deenergize the motor (S223). 
     If an object is held sandwiched between the glass pane and the door frame during the RL window closing control and the motor M RL  becomes overloaded to set &#34;RL abnormality&#34; flag (S267) in FIG. 9, this flag is detected at S215, and &#34;RLUP inhibit&#34; flag and &#34;RLAD&#34; flag are set (S216), establishing the RL window abnormality processing mode. The program then proceeds at S232 in FIG. 8n, causing the RL window to be fully opened in the similar manner as in the automatic down operation. Any command to open or close the RL window during the time the RL window abnormality processing mode is established is neglected. 
     The above covers the window opening control responsive to the operation under the subparagraph D 2  &#39;. 
     (6) A control which is responsive to an operation according to the subparagraph D 4  will now be described. If the depression of the automatic up/down switch for the FR window at its automatic up side is detected during the switch reading at S2 and is detected at S63, the program proceeeds to S81 and subsequent steps if it is found at S64 that &#34;FR fully closed&#34; flag is set since then the FR window has been fully closed and the glass pane cannot be further raised. Otherwise, &#34;FRAU timer&#34; flag is set in response to the detection of the initial switch operation, and the FRAU timer is reset and started (S65 and S66). 
     Subsequently, the program goes through the loop for the normal window opening/closing control mode which begins with S81 once, and when it returns to S65 again, the value in the FRAU timer is loaded into the register t (S67) for comparison against the constant t1 (S68) since now &#34;FRAU timer&#34; flag is set. As mentioned previously, when AUTO UP contact of the FR window remains on for a time interval which is less than t1 seconds, this may be a result of chattering which is caused by oscillations of the vehicle. Accordingly, the program waits for the time interval to exceed to seconds while remaining in this loop, and when it exceeds, &#34;FRAU&#34; flag is set at S69, and the other flags relating to the opening/closing control of the FR window, namely, &#34;FRU&#34; flag, &#34;FRD&#34; flag, &#34;FRAD&#34; flag and &#34;FRI&#34; flag are reset. This changes the control to one which corresponds to a new switch operation for the FR window (the depression of the automatic up side). When the switch ceases to be depressed at its automatic up side, &#34;FRAD timer&#34; flag which has been set is reset at S71. 
     At S81, &#34;FLAU&#34; flag is set in response to the depression of the automatic up/down switch for the FL window at its automatic up side. At S82, &#34;RRAU&#34; flag is set in response to the depression of the automatic up/down switch for the RR window at its automatic up side. At S83, &#34;RLAU&#34; flag is set in response to the depression of the automatic up/down switch for the RL window at its automatic up side. 
     The subsequent processing operation where the program proceeds to S86 to S86 to detect &#34;FRAU&#34; flag and 1 (H level) and 0 (L level) are established at the output ports O0 and O1, respectively, to energize the motor M FR  for forward rotation, followed by waiting for the rise time (t5 seconds) for rotation in the forward direction passes, is the same as that mentioned under the paragraph (4), and therefore will not be described again. When the rise time (t5 seconds) for the motor M FR  in its rotation in the forward direction passes, the current through the motor M FR  is examined at S100. The value in the register IA FR  is compared against the motor lock current value I2, and if the motor current is equal to or less than I2, the program proceeds to S124 and subsequent steps. 
     If an object is held sandwiched between the glass pane of the FR window and the door frame while circulating the loop, &#34;FR abnormality&#34; flag is set (S258) as the motor M FR  is overloaded, in the timer interrupt routine of FIG. 9. Accordingly, this flag is detected at S95, and &#34;FRUP inhibit&#34; flag and &#34;FRAD&#34; flag are set at S96 while resetting the flags relating to the FR window opening control, namely, &#34;FRU&#34; flag, &#34;FRAU&#34; flag and &#34;FRI&#34; flag, thus establishing the FR window abnormality processing mode. The program then proceeds to S112 shown in FIG. 8h, causing the FR window to be fully opened in the similar manner as in the automatic down control, except that no response is made to a switch operation commanding to open or close the FR window since the system is now in the FR window abnormality processing mode and &#34;FRUP inhibit&#34; flag is set. When the lock current is detected for the motor M FR  at S118, &#34;FRUP inhibit&#34; flag is reset to terminate the FR window abnormality processing mode, ceasing the rotation of the motor M FR . 
     When the FR window is raised without any abnormality and moves into the door frame until its front end begins to compress the weather strip (6 in FIG. 2) in response to the rotation of the motor M FR  in the forward direction, the limit switch MS FR  is turned off and this is read to set &#34;MS FR  &#34; flag at S12 (FIG. 8a). Sunsequently, the weather strip continues to be compressed and the motor current increases until &#34;FR abnormality&#34; flag is set in the timer interrupt routine in FIG. 9, However, since the front end of the glass pane of the FR window has already moved into the door frame, removing any likelihood that an object can be held sandwiched, the flag is reset (S93). When this loop is repeated to allow the glass pane of the FR window to be raised to its fully closed position and the motor M FR  is locked to cause the motor current to exceed I2, the full closure of the FR window is detected to set &#34;FR fully closed&#34; flag at S101 and to reset &#34;FRAU&#34; flag at S102 (&#34;FRU&#34; flag being reset). Subsequently, the program proceeds to S103, where 1 (H level) is established at the output ports O0 and O1 to deenergize the relays RY1 and RY2 to cease the rotation of the motor M FR . At this time, &#34;FR abnormality&#34; flag which has been set after &#34;MS FR  &#34; flag had been set is reset, and &#34;FR timer&#34; flag is reset. The program then proceeds to S106 and subsequent steps since it is determined at S104 that &#34;FR single operation&#34; flag is not set. 
     If &#34;FLAU&#34; flag is set at S81, it is detected at S127 (FIG. 8i), establishing 1 (H level) and 0 (L level) at the output ports O2 and O3, respectively, at S130 to energize the relay RY4 and to deenergize the relay RY3, thus energizing the motor M FL  for rotation in the forward direction. Subsequently, if an object is held sandwiched between the glass pane of the FL window and the door frame before &#34;MS FL  &#34; flag is set, the motor M FL  becomes overloaded, whereby &#34;FL abnormality&#34; flag is set (S261 in FIG. 9), causing the FL window to be fully opened in the similar manner as mentioned before. When the FL window is raised with no abnormality and after the lock current for the motor M FL  of the FL door is detected (S140) after having set &#34;MS FL  &#34; flag, &#34;FL fully closed&#34; flag is set (S141) and &#34;FLAU&#34; flag is reset (S142), the program then proceeding to S143. At this step, 1 (H level) is established at the both output ports O2 and O3 to deenergize the relays RY3 and RY4 to cease the rotation of the motor M FL . After resetting the given flags, the program proceeds to S144 to S146 and subsequent steps since it is found at S144 that &#34;FL single operation&#34; flag is not set. 
     If &#34;RRAU&#34; flag is set at S82, it is detected at S167 (FIG. 8k), and 1 (H level) and 0 (L level) are established at the output ports O4 and O5, respectively, at S170, to energize the relay RY6 and to deenergize the relay RY5, thus energizing the motor M RR  for rotation in the forward direction. Subsequently, if an object is held sandwiched between the glass pane of the RR window and the door frame before &#34;MS RR  &#34; flag is set, the motor M RR  becomes overloaded to set &#34;RR abnormality&#34; flag (S264 in FIG. 9), causing the RR window to be fully opened as mentioned before. When the RR window is raised with no abnormality, and the lock current for the motor M RR  is detected (S180) after having set &#34;MS RR  &#34; flag (S12), &#34;RR fully closed&#34; flag is set (S181) while &#34;RRAU&#34; flag is reset (S182), the program then proceeding to S183. At this step, 1 (H level) is established at the both output ports O4 and O5 to deenergize the relays RY5 and RY6 to cease the rotation of the motor M RR . After having reset the given flags, the program proceeds to S186 and subsequent steps since it is determined at the following step S184 that &#34;RR single operation&#34; flag is not set. 
     If &#34;RLAU&#34; flag is set at S83, it is detected at S207 (FIG. 8m), and 1 (H level) and 0 (L level) are established at the output ports O6 and O7, respectively, at S210, to energize the relay RY8 and to deenergize the relay RY7, thus energizing the motor M RL  for the RL door for rotation in the forward direction. If an object is subsequently held sandwiched between the glass pane of the RL window and the door frame before &#34;MS RL  &#34; flag is set, the motor M RL  becomes overloaded to set &#34;RL abnormality&#34; flag (S267 in FIG. 9), causing the RL window to be fully opened. When the RL window is raised with no abnormality, and the lock current for the motor M RL  is detected (S220) after having set &#34;MS RL  &#34; flag, &#34;RL fully closed&#34; flag is set (S221) while &#34;RLAU&#34; flag is reset (S222), the program then proceeding to S223. At this step, 1 (H level) is established at the both output ports O6 and O7 to deenergize the relays RY7 and RY8 to cease the rotation of the motor M RL . After having reset the given flags, the program proceeds to S226 and subsequent steps since it is determined at the following step S224 that &#34;RL single operation&#34; flag is not set. The above has described the window closing control responsive to the operation according to the subparagraph D 4  (automatic up operation). 
     It is to be understood that the control according to the paragraphs (1) to (6) is executed each time a switch operation according to the paragraph D (D 1  to D 4 ) takes place. When the driver of the vehicle performs an operation according to the paragraph D, or when the engine is stopped and the ignition key is withdrawn (IG key switch off), the status of the IG key switch is read at S2 (FIG. 8a), and is detected at S3. Since the ignition key had been inserted by that time and &#34;IG key&#34; flag has been set (S6), &#34;IG key withdrawal&#34; flag is set at S7 while resetting &#34;IG key&#34; flag. It is to be noted that there has been an operation to open or close the FR door subsequent to the termination of the standby mode at S5 and &#34;FR door open/closed&#34; flag has once been set, this flag is now reset. In addition, at S7, &#34;FR single operation&#34; flag, &#34;FL single operation&#34; flag, &#34;RR single operation&#34; flag and &#34;RL single operation&#34; flag are set, enabling a window opening/closing control according to one of the paragraphs (1) to (6) only once for each window. This aspect will now be described. 
     When FR up/down switch has been operated at its down side and &#34;FRD&#34; flag is set, the program proceeds to S106 to S107 to detect this fact at S108 (FIG. 8h), energizing the motor M FR  for rotation in the reverse direction, thus executing the FR window opening control. Subsequently, when the FR up/down switch ceases to be operated and &#34;FRD&#34; flag is reset, the program then proceeds through S106-S107-S108-S109-S110 shown in FIG. 8h. Since the motor M FR  is energized for rotation in the reverse direction, the output port O0 assumes 0 (L level), and thus the program proceeds from S110 to S121, deenergizing the motor M FR . The FR window opening control up to this point is substantially similar to the control according to the paragraph (1) even though there is a small difference in the steps which are passed. However, when &#34;FR single operation&#34; flag is detected at S122, this flag is reset and &#34;FR fully closed&#34; flag is set at S123. The function of the &#34;FR fully closed&#34; flag which is now set will be described later. Subsequently, when a switch operation takes place which commands to open or close the FR window, &#34;FR single operation&#34; flag is reset, thus preventing a corresponding control from being effected. 
     Similarly, if the operation according to the subparagraph D 1  &#39;, namely, incremental FR window opening command (inching command) is provided when &#34;FR single operation&#34; flag is set, the incremental FR window opening control is executed in substantially similar manner as the control according to the paragraph (2), followed by setting &#34;FR fully closed&#34; flag and resetting &#34;FR single operation&#34; flag. When &#34;FR single operation&#34; flag is set and the operation according to the subparagraph D 3  or the FR window automatic down command is provided, the FR window opening control is executed in substantially the same manner as the control according to the paragraph (3), followed by setting &#34;FR fully closed&#34; flag and resetting &#34;FR single operation&#34; flag. When &#34;FR single operation&#34; flag is set and the operation according to the subparagraph D 2  or the FR window up command is provided, the FR window closing control is executed in substantially the same manner as the control according to the paragraph (4), followed by setting &#34;FR fully closed&#34; flag and resetting &#34;FR single operation&#34; flag. When &#34;FR single operation&#34; flag is set and the operation according to the subparagraph D 2  &#39; or a command for incremental FR window closing (inching) is provided, the incremental FR window opening control is executed in substantially the same manner as the control according to the paragraph (5), followed by setting &#34;FR fully closed&#34; flag and resetting &#34;FR single operation&#34; flag. When &#34;FR single operation&#34; flag is set and the operation according to the subparagraph D 4  &#39; or the FR window automatic up command is provided, the FR window closing control is executed in substantially the same manner as the control according to the paragraph (6), followed by setting &#34;FR fully closed&#34; flag and resetting &#34;FR single operation&#34; flag. 
     The same applies to the FL window, RR window and RL window. Specifically, when &#34;FL single operation&#34; flag is set, a control according to one of the paragraphs (1) to (6) responsive to an operation according to the paragraph D for the FL window is executed, and upon completion thereof, &#34;FL fully closed&#34; flag is set while &#34;FL single operation&#34; flag is reset. When &#34;RR single operation&#34; flag is set, a control according to one of the paragraphs (1) to (6) responsive to an operation according to the paragraph D for the RR window is executed, and upon completion thereof, &#34;RR fully closed&#34; flag is set while &#34;RR single operation&#34; flag is reset. When &#34;RL single operation&#34; flag is set, a control according to one of the paragraphs (1) to (6) responsive to an operation according to the paragraph D for the RL window is executed, and upon completion thereof, &#34;RL fully closed&#34;  flag is set while &#34;RL single operation&#34; flag is reset. 
     In this manner, a window opening/closing control responsive to a switch operation according to the paragraph D (D 1  to D 4 ) is allowed to be executed only once for each window even after the ignition key has been withdrawn. 
     When the driver of the vehicle unlocks and opens the FR door (an operation according to the paragraph G), the courtesy switch OC FR  which detects the opening or closing of the FR door is turned on. This condition is read at S2 (FIG. 8a), and is detected at S13. In response thereto, since &#34;FR door open&#34; flag is reset (S14a), &#34;FR door open&#34; flag is set at S14b while &#34;FR door open/closed&#34; flag is reset. 
     When the driver gets out of the vehicle and closes the FR door, the courtesy switch OC FR  which detects the opening or closing of the FR door is turned off. This is read at S2 (FIG. 8a) and is detected at S13. since &#34;FR door open&#34; flag is set (S15), this means that the FR door has once been opened and then closed. Accordingly, &#34;FR door open/closed&#34; flag is set and &#34;FR door open&#34; flag is reset at S16. 
     It will be understood that each door lock is operated upon either while the door is open or after the door is closed (see the paragraph H). In each instance, when the FR door, FL door, RR door and RL door are closed (S18 to S21: all of the courtesy switches OC FR , OC FL , OC RR , and OC RL  being off; all the doors being closed) and the FR door lock, FL door lock, RR door lock and RL door lock are activated (S22 to S25: each door lock/unlock switch DL FR , DL FL , DL RR  and DL RL  being off; all the doors being locked), the stopped condition of the vehicle is detected, and &#34;FR single operation&#34; flag, &#34;FL single operation&#34; flag, &#34;RR single operation&#34; flag and &#34;RL single operation&#34; flag are reset at S26, establishing the failure-to-close preventing mode, which will now be described in detail. 
     When the glass pane of the FR window has been raised to its fully closed position, &#34;FR fully closed&#34; flag is found to be set at S27, whereby the failure-to-close preventing control for the FR window is not executed. In the event the FR window opening/closing control is executed in response to a corresponding command after the ignition key has been withdrawn, a failure of the glass pane of the FR window to be raised to its fully closed position signifies an intentional opening of the FR window for the purpose of preventing a temperature rise within the vehicle, and &#34;FR fully closed&#34; flag is set, so that the failure-to-close preventing control for the FR window is not executed. 
     When &#34;FR fully closed&#34; flag is not set at S27, the program proceeds to S89 through S90 shown in FIG. 8g. Since &#34;FR timer&#34; flag is not set, it is set here, and 1 (H level) and 0 (L level) are established at the output ports O0 and O1, respectively, to energize the relay RY2 and to deenergize the relay RY1, thus energizing the motor M FR  for the FR door for rotation in the forward direction. The length of time during which the motor is energized for rotation in the forward direction is determined by resetting and starting the FR timer. 
     The value in the FR timer is loaded into the register t at S91, and is compared against the constant t5 at S92. If the value of t is less than t5 seconds, this means it is now during the rise time of the motor M FR  in its rotation in the forward direction. Accordingly, &#34;FR abnormality&#34; flag is reset at S94, and the program proceeds to S124-S125-S164-S165-S204-S205-S2- . . . -S27-S89-S91, thus circulating through the control loop. If the rise time (t5 seconds) passes in the meantime and if &#34;MS FR  &#34; flag and &#34;FR abnormality&#34; flag are not set (S93 and S94), the motor current for the motor M FR  is examined at S100 since &#34;FRI&#34; flag is not set. The value in the register IA FR  is compared against the motor lock current value I2, and if the motor current is equal to or less than I2, the program repeatedly circulates the loop comprising S124-S125-S164-S165-S204-S205-S2- . . . -S27-S89-S91-S92-S93-S95-S97-S100-S124- . . . . 
     If an object is held sandwiched between the glass pane of the FR window and the door frame during the time the program loops around in this manner, &#34;FR abnormality&#34; flag is set (S258), as a result of the motor M FR  being overloaded, in the timer interrupt routine in FIG. 9, and hence this flag is detected at S95, and &#34;FRUP inhibit&#34; flag and &#34;FRAD&#34; flag are set at S96. The program then proceeds to S112 shown in FIG. 8h where 0 (L level) and 1 (H level) are established at the output ports O0 and O1, respectively, to energize the relay RY1 and to deenergize the relay RY2, thus energizing the motor M FR  for rotation in the reverse direction. Subsequently, a control loop is defined by steps including S112-S113-S114-S115-S118-S124-S125-S164-S165-S204-S205-S2- . . . -S27-S89-S91-S92-S93-S95-S96-S112- . . . . The program circulates through the loop until the lock current for the motor M FR  of the FR door is detected at S118. 
     When the FR window is lowered to its fully open position and the lock current is detected for the motor M FR  at S118, 1 (H level) is established at the both output ports O0 and O1, deenergizing the motor M FR . Subsequently, the program proceeds through S124-S125-S164-S165-S204-S205-S2- . . . . Since &#34;FR door fully closed&#34; flag remains reset, the program proceeds from S27 to S89, executing the failure-to-close preventing control for the FR window which controls the glass pane of the FR window to be fully closed. 
     When the glass pane of the FR window is raised normally as the motor M FR  is energized for rotation in the forward direction, and the front end of the glass pane moves into the door frame and begins to compress the weather strip (6 in FIG. 2), the position detecting limit switch MS FR  is turned off, and &#34;MS FR  &#34; flag is set at S10 shown in FIG. 8d. Subsequently, as the weather strip is further compressed and the motor current increases, &#34;FR abnormality&#34; flag is set in the timer interrupt routine shown in FIG. 9. However, since the glass pane of the FR window has moved into the door frame (see FIG. 2), and there is no likelihood that an object can be held sandwiched, this flag is cancelled or reset (S93). As the programs circulate through the loop and the glass pane of the FR window is raised to its fully closed position to cause the motor M FR  to be locked, causing the motor current to exceed I2, this fact is detected as representing the fully closed condition of the FR window, the &#34;FR fully closed&#34; flag is set at S101. At S103, 1 (H level) is established at the both output ports O0 and O1 to deenergize the motor M FR , resetting &#34;FR timer&#34; flag and &#34;FR abnormality&#34; flag which has been set after &#34;MS FR  &#34; flag has been set. Subsequently, the program proceeds through S103-S104-S124-S125-S164-S165-S204-S205-S2-. The program then proceeds to S28 since now &#34;FR fully closed&#34; flag is set. 
     If it is found at S28 that &#34;FL closed&#34; flag is not set, the failure-to-close preventing control for the FL window is executed. This control is executed by a procedure which is similar to that used in the failure-to-close preventing control for the FR window mentioned above. If &#34;FL fully closed&#34; flag is found not to be set, the program proceeds to S129 shown in FIG. 8i where 1 (H level) and 0 (L level) are established at the output ports O2 and O3, respectively, to energize the motor M FL  for rotation in the forward direction. The time during which the motor is energized for rotation in the forward direction is determined by the FL timer, and the program circulates through a control loop including S164-S165-S204-S205-S2- . . . -S27-S28-S129-S131-S132-S134 . . . until the rise time for the motor M FL  for its rotation in the forward direction passes. When the rise time (t5 seconds) passes, the program repeatedly circulates through a loop including S140-S164-S165-S204-S205-S2- . . . -S28-S129-S131-S132-S133-S135-S137-S140- . . . while monitoring the current through the motor M FL  at S140. 
     If an object is held sandwiched between the glass pane of the FL window and the door frame during the time the program circulates through the loop, &#34;FL abnormality&#34; is established. In response thereto, the program proceeds to S152 shown in FIG. 8j to establish 0 (L level) and 1 (H level) at the output ports O2 and O3, energizing the motor M FL  for rotation in the reverse direction. Subsequently, the program circulates through a control loop including S152-S153-S154-S155-S158-S164-S165-S204-S205-S2- . . . -S28-S129-S131-S132-S133-S135-S136-S152- . . . until the FL window is fully opened and the lock current is detected for the motor M FL . When the FL window has been lowered to its fully open position and the lock current is detected for the motor M FL  at S158, 1 (H level) is established at both output ports O2 and O3, deenergizing the motor M FL . Subsequently, the program proceeds through S164-S165-S204-S205-S2- . . . but since &#34;FL door fully closed&#34; flag remains reset, the program proceeds from S28 to S129, again executing the failure-to-close preventing control for the FL window. 
     When the glass pane of the FL window is raised with no abnormality and its front end moves into the door frame and compresses the weather strip 6 (FIG. 2), the position detecting limit switch MS FL  is turned off, and &#34;MS FL  &#34; flag is set at S12 shown in FIG. 8a. Subsequently, when the weather strip 6 is further compressed, and the motor M FL  has locked, causing the motor current to exceed I2, the fully closed condition of the FL window is detected. Thus, &#34;FL fully closed&#34; flag is set at S141, and the motor M FL  is deenergized at S143. Subsequently, the program proceeds through S143-S144-S164-S165-S204-S205-S2- . . . , but when it reaches the step S28, it then proceeds to S29 since now &#34;FL fully closed&#34; flag is set. 
     If it is found at S29 that ×RR fully closed&#34; flag is not set, the failure-to-close preventing control for the RR window is executed in quite the similar manner as the corresponding control for the FR window. When it is found at S29 that &#34;RR fully closed&#34; flag is not set, the program proceeds to S169 shown in FIG. 8k where 1 (H level) and 0 (L level) are established at the output ports O4 and O5, respectively, energizing the motor M RR  for the RR door for rotation in the forward direction. The length of time during which the motor is energized for rotation in the forward direction is determined by the RR timer, and the program circulates through a control loop including S204-S205-S2- . . . -S29-S169-S171-S172-S174- . . . until the rise time for the motor M RR  passes. When the rise time (t5 seconds) passes, the program circulates through the loop including S180-S204-S205-S2- . . . -S29-S169-S171-S172-S173-S175-S177-S180- . . . while monitoring the current through the motor M RR  at S180. 
     If an object is held sandwiched between the glass pane of the RR window and the door frame during the time the program circulates through the loop, &#34;RR abnormality&#34; is established. In response thereto, the program proceeds to S192 in FIG. 8l where 0 (L level) and 1 (H level) are established at the output ports O4 and 05, respectively, energizing the motor M RR  for rotation in the reverse direction. The program then circulates through the control loop including S192-S193-S194-S195-S198-S204-S205-S2- . . . -S29-S169-S171-S172-S173-S175-S176-S192- . . . until the RR window is fully open and the lock current is detected for the motor M RR . When the RR window is lowered to its fully open position and the lock current is detected for the motor M RR  at S198, 1 (H level) is established at the both output ports O4 and O5, deenergizing the motor M RR . Subsequently, the program proceeds S204-S205-S2- . . . , but since &#34;RR door fully closed&#34; flag remains reset, the program proceeds from S29 to S169, again executing the failure-to-close preventing control for the RR window. 
     When the glass pane of the RR window is raised with no abnormality and its front end moves into the door frame to compress the weather strip (6 in FIG. 2), the position detecting limiting switch MS RR  is turned off, and &#34;MS RR  &#34; flag is set at S12 in FIG. 8a. Subsequently, as the weather strip is further compressed and the motor M RR  has locked, causing the motor current to exceed I2, the fully closed condition of the RR window is detected, and &#34;RR fully closed&#34; flag is set at S181, and the motor M RR  is deenergized at S183. The program then proceeds through S183-S184-S204-S205-S2- . . . , but when it reaches the step S29, it then proceeds to S30 since now &#34;RR fully closed&#34; flag is set. 
     If it is found at S30 that &#34;RL fully closed&#34; flag is not set, the failure-to-close preventing control for the RL window is executed in substantially the similar manner as the corresponding control for the FR window. When &#34;RL fully closed&#34; flag is found not to be set at S30, the program proceeds to S209 shown in FIG. 8m where 1 (H level) and 0 (L level) are established at the output ports O6 and O7, respectively, to energize the motor M FL  for the RL door for rotation in the forward direction. The length of time during which the motor is energized for rotation in the forward direction is determined by the RL timer, and the program circulates around the control loop including S2- . . . -S30-S209-S211-S212-S214- . . . until the rise time for the motor passes. When the rise time (t5 seconds) passes, the program repeatedly goes through the loop including S220-S2- . . . -S30-S209-S211-S212-S213-S215-S217-S220- . . . while monitoring the current through the motor M RL  at S220. 
     If an object is held sandwiched between the glass pane of the RL window and the door frame during the time the program circulates through the loop, &#34;RL abnormality&#34; is established. In response thereto, the program proceeds to S232 in FIG. 8n where 0 (L level) and 1 (H level) are established at the output ports O6 and O7, energizing the motor M RL  for rotation in the reverse direction. The program then goes through the control loop including S232-S233-S234-S235-S238-S2- . . . -S30-S209-S211-S212-S213-S215-S216-S232- . . . until the RL window is fully open and the lock current is detected for the motor M RL . When the RL window has been lowered to its fully open position and the lock current is detected for the motor M RL  at S238, 1 (H level) is established at the both output ports O6 and O7, to deenergize the motor M RL . The program then proceeds S2, but since &#34;RL door fully closed&#34; flag remains reset, it then proceeds from S30 to S209, again executing the failure-to-close preventing control for the RL window. 
     When the glass pane of the RL window is raised with no abnormality and its front end moves into the door frame to compress the weather strip (6 in FIG. 2), the position detecting limit switch MS RL  is turned off, and &#34;MS RL  &#34; flag is set at S12 in FIG. 8a. Subsequently, as the weather strip is further compressed and the motor M RL  has locked, causing the motor current to exceed I2, this allows the fully closed condition of the RL window to be detected. Accordingly, &#34;RL fully closed&#34; flag is set at S221, and the motor M RL  is deenergized at S223. Subsequently, the program proceeds through S223-S224-S2- . . . , and when it reaches S30, the failure-to-close preventing control for all of the four windows has been completed since now &#34;RR fully closed&#34; flag is set. 
     The failure-to-close preventing control is executed when the engine is stopped and there is no charging of the battery mounted on the vehicle. As mentioned previously, any window which has been forgotten to be closed is sequentially detected in the sequence of the FR window, FL window, RR window and RL window to trigger the execution of the window closing control, thus eliminating an exhaustion of the storage battery mounted on the vehicle due to excessive current flow. 
     When the failure-to-close preventing control has been completed, &#34;standby&#34; flag is set at S31 while &#34;IG key withdrawal&#34; flag and &#34;FR open/close&#34; flag are reset. The program then circulates through S2-S3-S6-S8-S2-; establishing the standby mode in which the program waits for the ignition key to be inserted into the receptacle to turn the IG key switch on. During the standby mode, 1 (H level) is established at the output port O8 to deenergize the relay RY9, thus activating the theft preventing circuit I2. Accordingly, if any of the FR window, FL window, RR window and RL window is forcibly opened during such interval, one of the electric motors M FR , M FL , M RR  and M RL  which is engaged with that window is set in motion, developing an electromotive force across its terminal. The electromotive force is detected to energize the buzzer Bz as mentioned previously. 
     In the described embodiment, any window which has been mistakenly left open is sequentially detected and subject to the window closing control, in the sequence of the FR window, FL window, RR window and RL window. Thus, where more than one window has been left open one window is closed, followed by closing another window, each time performing a window closing control for one of the windows. The reason for this is that the failure-to-close preventing control is executed during the time when the engine is stopped and the battery on the vehicle is not being charged. If a plurality of drive motors associated with a plurality of windows are simultaneously energized, there occurs an excessive current flow which causes an early exhaustion of the battery. However, where the battery mounted has an increased capacity, a plurality of windows may be subject to a simultaneous window closing control, thus expediting the control and minimizing the time during which the window or windows remain open. It will be appreciated that there is no significant increase in the load upon the battery if the rush-in current during the starting of the motor is slightly displaced from each other. Accordingly, in a modification of the invention, a window closing control is executed substantially simultaneously for a plurality of windows which remain open as a result of forgetting to close them. 
     This modification is illustrated in FIGS. 10a and 10b, and a difference over the previous embodiment will now be described. 
     The control up to the point represented by S26 remains substantially the same as before. In this modification, a use is made of a set counter which counts the number of &#34;. . . fully closed&#34; flags which have been set. Accordingly, when &#34;FR single operation&#34; flag, &#34;FL single operation&#34; flag, &#34;RR single operation&#34; flag and &#34;RL single operation&#34; flag are set at S7 in FIG. 8a, this set counter is cleared. When the FR window opening/closing control is executed and when &#34;FR single operation&#34; flag is set, the set counter is incremented by one at S105 (FIG. 8g) or S123 (FIG. 8h). If the corresponding control is executed when &#34;FL single operation&#34; flag is set, the set counter is incremented by one at S145 (FIG. 8i) or S163 (FIG. 8j). If the corresponding control is executed when &#34;RR single operation&#34; flag is set, the set counter is incremented by one at S185 (FIG. 8k) or S203 (FIG. 8l). If the corresponding control is executed when &#34;RL single operation flag is set, the set counter is incremented by one at S225 (FIG. 8m) or S243 (FIG. 8n). The program proceeds from S26 to the flowchart shown in FIG. 10a. 
     At S270, &#34;FR fully closed&#34; flag is examined if it is set, and if it is not set, the following control is performed. Initially, at S272, &#34;FR timer&#34; flag is set, and FR timer is reset and started while establishing 1 (H level) and 0 (L level) at the output ports O0 and and O1, respectively, (thus energizing the motor M FR  for rotation in the forward direction). At S273 and S274, the time during which the motor M FR  is energized for rotation in the forward direction is determined, and if the rise time for the motor M FR  in its rotation in the forwrad direction has not passed, the program passes from S274 to S275, thus proceeding to S280. 
     At S280, &#34;FL fully closed&#34; flag is examined, and if it is not set, the following control is performed. Initially, at S282, &#34;FL timer&#34; flag is set, and FL timer is reset and started while establishing 1 (H level) and 0 (L level) at the output ports O2 and O3, respectively, (thus energizing the motor M FL  for rotation in the forward direction). At S283 and S284, the time during which the motor is energized for rotation in the forward direction is determined, and if the rise time for this motor has not passed, the program passes from S284 to S285, proceeding to S290 (FIG. 10b). 
     At S290, &#34;RR fully closed&#34; flag is examined, and if it is not set, the following control is performed. Initially, at S292, &#34;RR timer&#34; flag is set, and RR timer is reset and started while establishing 1 (H level) and 0 (L level) at the output ports O4 and O5, respectively (thus energizing the motor M RR  for rotation in the forward direction). At S293 and S294, the time during which the motor is energized for rotation in the forward direction is determined, and if the rise time for this motor has not passed, the program passes from S294 to S295, thus proceeding to S300 shown in FIG. 10b. 
     At S300, &#34;RL fully closed&#34; flag is examined, and if this flag is not set, the following control is performed. Initially, at S302, &#34;RL timer&#34; flag is set, and the RL timer is reset and started while establishing 1 (H level) and 0 (L level) at the output ports O6 and O7, respectively, (thus energizing the motor M RL  for rotation in the forward direction). At S303 and S304, the time during which this motor is energized for rotation in the forward direction is determined, and if the rise time for this motor has not passed, the program passes from S304 to S305, thus proceeding to S309. 
     The value in the set counter is examined at S309, and if this value is not equal to 4, the program proceeds to S2 in FIG. 8a. Subsequently, the program proceeds through S2 . . . S26, again entering the flowchart shown in FIG. 10a. 
     When the rise time for the motor has passed, a processing operation along a loop takes place while continuing the energization of the motor for rotation in the forward direction and while monitoring the motor current. If &#34;FR abnormality&#34; flag is set, the program then proceeds from S276 to S112 shown in FIG. 8h, thus energizing the motor M FR  for the FR door for rotation in the reverse direction, as mentioned previously. Subsequently, the program branches from S276 in FIG. 10a to the abnormality processing until the FR window is fully opened and the lock current is detected for the motor M FL . While not shown, in this instance, S276 is skipped over if &#34;MF FR  &#34; flag is set. 
     A similar operation takes place if &#34;FL abnormality&#34; flag, &#34;RR abnormality&#34; flag or &#34;RL abnormality&#34; flag is set. In each instance, if &#34;MS FL  &#34; flag, &#34;MS RR  &#34; flag or &#34;MS RL  &#34; flag is not set (not shown), the program branches from S286, S296, or S306, respectively, to the execution of the abnormality processing. 
     Each time the motor current becomes equal to or exceeds the lock current I2, the corresponding motor is deenergized. Specifically, if the motor M FR  has locked, and the motor current exceeds I2, 1 (H level) is established at the output ports O0 and O1 at S278 to deenergize the motor, and &#34;FR fully closed&#34; flag is set while incrementing the set counter by one. If the motor M FL  has locked, and the motor current exceeds I2, 1 (H level) is established at the output ports O2 and O3 at S288, thus deenergizing the motor and setting &#34;FL fully closed&#34; flag while incrementing the set counter by one. If the motor M RR  has locked, and the motor current exceeds I2, 1 (H level) is established at the output ports O4 and O5 to deenergize the motor at S298 (FIG. 10b), and &#34;RR fully closed&#34; flag is set while incrementing the set counter by one. Finally, if the motor M RL  has locked, and the motor current exceeds I2, 1 (H level) is established at the output ports O6 and O7 to deenergize the motor at S308, and &#34;RL fully closed&#34; flag is set while incrementing the set counter by one. 
     The failure-to-close preventing control is selectively executed while examining &#34;FR fully closed&#34; flag, &#34;FL fully closed&#34; flag, &#34;RR fully closed&#34; flag and &#34;RL fully closed&#34; flag. 
     When a window is fully closed, a corresponding &#34;. . . fully closed&#34; flag is set while simultaneously incrementing the set counter by one. Accordingly, when the four windows are all closed, the set counter has a count of 4 (as initially mentioned in the modification, the set counter is incremented by one when the window opening/closing control is executed in response to &#34;. . . single operation&#34; flag by considering it as representing the fully closed condition). The program then proceeds from S309 (FIG. 10b) to S31 shown in FIG. 8a. If the &#34;standby&#34; flag is now set, the program proceeds through S2-S3-S6-S8-S2- . . . as mentioned previously, thus establishing the standby mode. 
     With the described arrangement, a usual operation by the driver when he is getting out of the vehicle, namely, stopping the engine, withdrawing the ignition key, opening the door and closing and locking the door after he has got out of the vehicle, is effective to detect the stopped condition of the vehicle, which initiates the failure-to-close preventing control, without forcing any particular operation on the part of the driver. In this manner, the resulting operation is greatly simplified. On the other hand, if a driver has opened the window in order to prevent an excessive temperature rise before he gets out of the vehicle, the standby position is established under this condition, preserving the intent of the driver. If any window is forcibly opened during the time the vehicle is at rest, the alarm is activated to announce an abnormal condition, thus effectively preventing a casualty. 
     While the embodiment has been described above in connection with the window opening/closing control of the vehicle, it should be understood that the invention is not limited thereto, but is equally applicable in a variety of similar situations.