摘要 |
PURPOSE:To simplify the comparison operation and to speed up it by comparing sequentially an elapsed time and a designated time stored as to each on/off control signal in a program setting device generating plural on/off control signal in matching with the progress of a control pattern. CONSTITUTION:In inputting a time, gradiend and level of each segment as a decisive parameter of the control pattern from a key input device 7, they are stored in a RAM 4 by a CPU 2 and then a contrl data of an on/off signal Sn is stored similarly in the RAM 4. Thus, the CPU 2 executes the program in a ROM 3. When a start command is inputted, the CPU 2 starts the execution of a control pattern generating program in the ROM 3, calculates sequentially the control pattern data according to the parameter and outputs the result to a display device 8 and a D/A converter 9. During the execution of the control pattern generating processing, if an interruption takes place, the CPU 2 interrupts the control pattern generating processing, executes the program of an on/off signal generating processing in the ROM 3 and when it is finished, the interrupted control pattern generating processing is restarted. Then the control data and a data (time) to be compared with it are reduced. |