AN IMAGE PROCESSING DEVICE OF MULTIFUNCTIONAL TYPE

Abstract: An image processing device (1) which accommodates in a housing (101) an image scanner (2), an image printer (3), a facsimile control unit (4), bus lines (DB, AB, CB) for data transfer, a bidirection parallel interface unit(5), and a main CPU (50) for controlling data transfer and is connected to an external data processing device (8) through the parallel interface unit (5). In addition to functions which are obtained independent of the external data processing device (8), the image processing device (1) realizes various kinds of functions by controlling each of the image scanner(2), image printer (3), facsimile control unit (4) and interface unit (5) by means of the main CPU (50) in accordance with commands given by the data processing device (8), whereby various kinds of image processing are carried out.

Description: The present invention generally relates to an image processing device connected to an external data processing device such as a personal computer or the like and more particularly, a multifunctional image processing device which, comprising a main control portion, an image read control unit, an image recording control unit, a facsimile control unit, and an interface unit for connecting a personal computer as an external unit, provides following various functions by controlling each unit with the main control portion: (1) copying document, that is, recording image information outputted from the image read control unit, (2) recording image information generated in the personal computer, (3) displaying or filing image information outputted from the image read control unit at the personal computer, (4) transmitting via facsimile image information provided by the image read control unit, (5) transmitting via facsimile image information produced at the personal computer, (6) recording incoming image information sent via facsimile and/or filing it in the personal computer, and so on. Following devices are known as conventional image processing systems: a device which records or prints image information read by an image scanner by means of an image printer and/or supplies a computer with it; a facsimile device which once memorizes image information received through a telephone line in an internal memory prior to recording it; and the like. In such conventional image processing systems, such units as the image scanner, image printer, facsimile device and personal computer are independent of each other, and therefore those systems cannot transmit image information read out of the image scanner or that produced at the personal computer via facsimile without help of the separate facsimile device. Also, the traditional systems cannot synthesize image information received by the facsimile device with another image information by using the personal computer or the like. Like this, according to the traditional systems, units having respective functions are not connected to each other internally, so that data reciprocation between units is impossible and moreover transmission of data produced by other units via facsimile are time-consuming and troublesome. DE-A-3731754 discloses an image processing device wherein a facsimile device is coupled to a host computer so that information is transferred between each unit in the facsimile device and the host computer. FR-A-2374796 discloses a facsimile transceiver which is unitized. Each unit of the facsimile transceiver is controlled by a main CPU in accordance with a sequence program stored in a ROM. Accordingly, the present invention has been developed with a view to substantially eliminating the above described disadvantages inherent in the prior art and has for its essential object to provide a multifunctional image processing device which has functions proper to an image recording unit such as the image scanner, to an image recording unit such as the image printer, and to the facsimile device, and can effect image transferring between such units, thereby realizing various kinds of image processing. In accomplishing this object, a multifunctional image processing device according to one preferred embodiment of the present invention comprises a housing which includes an image read control unit for reading an image and an image and outputting image data in response to control information, a facsimile control unit for sending and receiving image data through a telephone line in response to the control information, an image record control unit for recording the image data in response to the control information, an interface unit connected to an external data processing device for transferring control commands and image data between the external data processing device and the image processing device, a main control unit for controlling operation of the entire image processing device by the control information, and bus lines, for connecting the image read control unit, the facsimile control unit, the image record control unit, the interface unit, and the main control unit, wherein the image processing device further comprises writable memory means connected to said bus lines and having a plurality of areas for storing operating conditions for said image read control unit, said facsimile control unit , said image record control unit , said interface unit , and said main control unit; and said main control unit includes selection means for selecting at least two units from among said image read control unit, said facsimile control unit, said image record control unit and said interface unit so that image data is transferred between said at least two units; means for switching the image processing device between an on-line control mode wherein at least said interface unit is selected by said selection means and the transfer of image data is performed between the image processing device and the external data processing devices through the interface unit in response to the control commands from the external data processing device, and an off-line control mode wherein said at least two units selected by said selection means are individually controlled by the control information, irrespective of the external data processing device ; and means for, in said on-line control mode, accessing the 20 areas of said writable memory means corresponding to said at least two units selected by said selection means and transferring the operating conditions stored in said areas to said at least two units selected. This multifunctional image processing device functions as follows: When the device is in an off-line control status, it is operated independently of the data processing device as an external device connected thereto through the interface unit and following functions are effected selectively. (1) COPY function.....Image information read by the image read control unit is supplied to the image recording unit on a data bus and printed by it according to the control information transferred from the main control unit. (2) FACSIMILE function.....The image information read by the image read control unit is transferred to the facsimile control unit and then transmitted therefrom through the telephone line, according to the control information outputted from the main control unit. On the other hand, image information received through the telephone line is recorded by the image record control unit. Meanwhile, when the present device is in an on-line control status, following functions are selectively executed according to control commands provided to the device by the external data processing device connected to the device. (3) IMAGE INPUT function.....The image information read by the image read control unit is transferred to the data processing device on the data bus according to control commands. (4) IMAGE PRINT function.....The image information sent from the external data processing device is recorded by the image record control unit. (5) FACSIMILE function..... Image information received by the facsimile control unit through the telephone line is transferred to the external data processing device. Also, image information inputted from the external 5 data processing device is transmitted by the facsimile control unit through the telephone line. Furthermore, functions corresponding to the above independent functions (1) and (2) are also effected based on the control commands provided by the external data processing device through the bus lines connected to the respective units. Moreover, the synthesis and editing of image data is executed by combining the above functions with each other, whereby various kinds of image processing are carried out without difficulties. In acomplishing the above object, a multifunctional image processing device according to a further embodiment of the present invention comprises a housing which includes a multifunctional image processing device wherein a housing thereof includes an image read control unit for reading an image and outputting image data in response to control information, a facsimile control unit for sending and receiving the image data through a telephone line in response to the control information, an image record control unit for recording the image data in response to the control inf ormation, an interface unit connected to an external data processing device for transferring control commands and the image data between the external data processing device and the image processing device , a main control unit for controlling operation of the entire image processing device by the control information, and bus lines for connecting the image read control unit, the facsimile control unit, the image record control unit, the interface unit, and the main control unit wherein the image processing device further comprises writable memory means connected to said bus lines and having a plurality of areas for storing operating conditions for said image read control unit, said facsimile control unit , said image record control unit, said interface unit, and said main control unit; memory meansconnected to said bus lines for storing a plurality of predetermined I/O combinations, in the form of codes, of said image read control unit, said facsimile control unit, said image record control unit, and said interface unit as input and output units for transferring the image data therebetween; and said main control unit includes selectionmeans for selecting one from among said I/O combinations as the input and output units upon receipt of the code from the external data processing device; means for switching the image processing device between an online control mode wherein the transfer of the image data is performed between the image processing device and the external data processing device through said interface unit in response to the control commands and the code transmitted from the external data processing device through said interface unit, and an off-line control mode wherein the input and output units selected by said selection means are individually controlled by the control information, irrespective of the external data processing device; and means for, in said on-line control mode, accessing the areas of said writable memory means corresponding to the input and output units selected by said selection means and transferring the operating conditions stored in said areas to the input and output units selected. These features and advantages of the present invention will become more apparent with reference to the following detailed description of a preferred embodiment thereof in connection with the accompanying drawings. Fig. 1 shows a schematic view of a multifunctional image data processing device of a preferred embodiment of the invention being connected to a personal computer; Fig. 2 shows an operating panel fixed to the device; Fig. 3 is a block diagram corresponding to the Fig. Fig. 4 shows the construction of RAM included in the device; Fig. 5 shows an example of I/O setting codes; Fig. 6 is a flow chart of the main program for the device; Fig. 7 through Fig. 8e are flow charts for processes carried out in the off-line control status of the device; and Fig. 9 through Fig. 10d are flow charts for processes carried out in the on-line control status of the device. Fig. 1 schematically shows a system consisting of a multifunctional image processing device and a personal computer connected to the device, in which reference numeral 1 designates the image processing device of multifunctional type, which includes a housing 101; an image scanner 2 as the image read control unit for reading a fixedly mounted document line by line by means of a line CCD sensor (a line sensor constituted of a charge coupled device); an image printer 3 as the image record control unit for recording image information using a line thermal head and record paper; a facsimile control unit 4 connected to a telephone line 4a; and a bidirectional parallel interface unit 5 for connecting the personal computer, external device 8 through a cable 7. On the front face of the device 1 there is provided an operating panel 6 for operating the device 1. The personal computer 8 is comprised of a CRT display 10, a keyboard device 9 and a floppy disk device 11. Various kinds of image processing and data processing are carried out by the computer 8 according to programs for respective applications. The personal computer 8 stores preset control commands (to be referred to later) and provides the image processing device 1 with the control commands according to the respective application programs or input from the keyboard 9 so as to control various kinds of image processing. The operating panel 6 shown in detail in Fig. 2 is comprised of an operating portion 20 for the whole device 1, an operating portion 30 for the facsimile function, and an operating portion 40 for the copy function. In the operating portion 20 for the device, an on-line lamp 29 is adapted to be turned on when the personal computer 8 gives the device 1 a control command so as to electrically connect the device 1 to the personal computer 8, that is, an on-line status is generated. In the on-line status, all keys but a STOP key 22 on the panel 6 are deemed to be invalid and the device 1 acts only under the instructions given by the personal computer 8. On the other hand, in the off-line status, all key inputs are valid and the device 1 rejects instructions transferred from the personal computer 8. HALF TONE 23 is a key for instructing whether to read a document by bi-level values or to read it according to a predetermined tone. When an operator orders the device 1 to read a document in HALF tone by depressing the HALF TONE key 23, HALF TONE lamp 23L is turned on. PAPER FEED 24 is a key used to let paper being set at the image printer 3 to advance without printing. DENSITY ADJUST 25 is a sliding key used to adjust density with which the document is to be read. The density adjustment is carried out by varying the standard level for deciding a border between black and white. Reference numerals 26, 27 and 28 are indicator lamps: POWER 26 is a lamp to be turned on when the device 1 is powered on, WRN 27 is a lamp for indicating troubles in each of the units, and SPLY PPR 28 is a lamp for indicating shortage of the paper at the image printer 3. In the operating portion 30 for the facsimile function, FACSIMILE 31 is an instructing key for causing the device 1 to act as a facsimile device. FACSIMILE lamp 31L is turned on when the device 1 is set for the facsimile mode. RECEIVE 32 is a key for setting the device 1 to be ready for receiving via facsimile and when this setting is completed, a lamp 32L is turned on. To the contrary, SEND 33 is a key for setting the facsimile for the transmission mode and when this setting is completed, a lamp 33L is turned on. FINE 34 is a key for setting line density to 4 lines/mm or 7.7 lines/mm. When the latter is selected, a lamp 34L is turned on. CALL 35 is a key for requesting a call when the transmission or the reception via facsimile of a document is completed. When this key 35 is depressed, a lamp 35L is turned on. In the operating portion 40 for the copy function, COPY 41 is a key for setting the device 1 for the document copy mode. When this key 41 is depressed and the device 1 is set for the copy mode, a lamp 41L is turned on. SCALE 42 is a key to be depressed for determining scale in copying document. The scale is set to any one of A4 →A4 (same size), A4 →B5 and A4 →A5 by depressing SCALE 42 a plurality of times. Then one of lamps 44, 45 and 46 corresponding to the respective scales A4 →A4, A4 →B5 and A4 →A5 is turned on in accordance with the scale selection. START 43 is a key for giving instructions to start copying. STOP 22 is a key for halting or stopping action of each unit during the operation process. Fig. 3 is a block diagram of the device 1 with the personal computer 8 being connected thereto. Reference numeral 50 designates a main CPU as the main control unit which controls the device 1 in accordance with each of system programs stored in a read-only memory (ROM) 51 in advance. To this main CPU 50 are connected common data bus DB, address bus AB, and control bus CB. Following units are connected to each of the buses DB, AB and CB and controlled by the main CPU 50: the ROM 51, a random-access memory (RAM) 52, a CCD read control portion 54 containing a slave CPU, an image data codec control portion 69 containing a slave CPU, a facsimile transmission control portion 70 containing a slave CPU, an interface 53 for connecting the operating panel 6, another interface 66 for connecting a mechanism and record control portion 67, and the parallel interface 5 for connecting the personal computer 8. Besides the system programs, ROM 51 is also provided with a command analyzing portion for transferring data to and receiving data from the personal computer 8. As shown in Fig. 4, RAM 52 consists of a plurality of areas: a status area 100 storing information representing statuses of the device 1, unit setting areas 201 through 205 for storing set values relative to respective function units, a flag area 206, and a work area 300 comprising various kinds of buffers and the like. The CCD read control portion 54 is operated when the device 1 working as a facsimile device is in a transmission mode, a copy mode or a scanning mode. The mechanism and record control portion 67 includes a slave CPU and is caused to act in a printing mode in addition to the above modes. Such a construction made of the combination of the CCD read control portion 54 with the mechanism and record control portion 67 is substantially the same as that of generally known facsimile devices. A scanning panel 60, shown in Fig. 3, of the image scanner 2 is formed of a transparent sheet such as glass or the like, on which panel 60 a document to be read is placed. The document is fixed on the scanning panel 60 by a white plate (not shown). Under the scanning panel 60 is provided the CCD sensor 58 extending in the main scanning direction. The CCD sensor 58 is moved by a motor 59 in the subscanning direction intersecting perpendicularly to the main scanning direction. A fluorescent lamp (not shown) as light source is placed near the CCD sensor 58 and is moved together with it. Light coming from the light source irradiates the document and the light reflected by the document is introduced into the CCD sensor 58. The CCD sensor 58 is caused to carry out the reading operation by timing pulses transferred from a driver 57 controlled by the CCD read control portion 54. Analog signals outputted from the CCD sensor 58 are supplied to an analog regulating circuit 56, in which the analog signals are converted to a digital form in accordance with a predetermined density level or slice level. Obtained image data in a digital form are supplied to the CCD read control portion 54. When the HALF tone mode is selected, the analog signals outputted from the CCD sensor 58 are converted to a digital form according to a predetermined HALF tone level. The image data obtained in either way is stored in a line memory 55 connected to the CCD read control portion 54 and having a capacity for information in one line of a document and then the data for each line is outputted therefrom to the data bus DB. A mechanism control section of the mechanism and record control portion 67 drives a motor 59 so as to transfer the CCD sensor 58 line by line in the subscanning direction, whereby reading operation is effected line by line. If necessary, the CCD sensor 58 is caused to skip lines. The mechanism and record control portion 67 contains not only the mechanism control section but also an image printer control section, including a line buffer for storing line data to be recorded. The image printer 3 is provided with a thermal head 63 extending in the main scanning direction for line printing, which head 63 is pressed onto a platen 68 with paper 65 therebetween. The motor 64 causes the platen 68 to rotate in a direction according to a command transferred from the record control section of the mechanism and record control portion 67 each time image data for one line is transferred. The thermal head 63 is driven by a driver 62 so as to record an image based on the image data stored in the line buffer of the mechanism and record control portion 67. The image data to be recorded is supplied to the thermal head 63 in a digital form of binary values through the data bus DB and then the interface 66. The image data codec control portion 69 controls the encoding of modified Huffman (MH) or modified relative element address designate (MR) compression codes of CCITT standard into binary data and the decoding of the latter into the former. This encoding and decoding control technique is well known in facsimile devices generally used. The image data codec control portion 69 is operated when (1) the device 1 is in a facsimile status, (2) image data read by the image scanner 2 is compressed and then transferred to the personal computer 8, (3) compression data sent from the personal computer 8 is recorded by the image printer 3, and (4) binary image data outputted from the personal computer 8 is transmitted via facsimile. Accordingly, the image data codec control portion 69 is comprised of algorithms, buffers, and the like for encoding and decoding. The facsimile control unit 4 for controlling transmission and reception via facsimile is substantially same as a transmission control system for a facsimile device in general use. The facsimile transmission control portion 70 contains a slave CPU for controlling data transmission procedure based on the CCITT standard and exchanges data with the data bus DB according to the transmission procedure. The facsimile transmission control portion 70 is connected to the telephone line 4a through a MODEM 71 and a network control unit (NCU) 72. An automatic dial unit 73 connects the circuit according to dial information provided by the personal computer 8. For a manual dialing operation, a telephone is connected to the NCU 72. The parallel interface connecting the personal computer 8, external device, to the device 1 is provided with a buffer for data of one bite, for example. The personal computer 8 supplies the parallel interface 5 with various kinds of commands and data, whereby the above mentioned units transfer data to each other. The personal computer 8 is substantially of the same construction as other personal computers in general use. The personal computer 8 is connected to the device 1 by connecting parallel interfaces of the personal computer 8 and of the device 1 through a cable 7. The personal computer 8 controls the device 1 by outputting various kinds of commands to the device 1 in accordance with programs stored in advance in RAM or ROM in itself. So, such various functions as before mentioned can be realized by operating the personal computer 8. To say concretely, image data supplied by the device 1 can be displayed on the CRT display unit of the personal computer 8 and/or filed in a floppy disk by the floppy disk device of the personal computer 8, in the meanwhile, image data produced according to a program of the personal computer 8 can be transferred to the device 1 so as to be recorded and/or transmitted via facsimile. An interface 53 is for connecting the operating panel 6 shown in Fig. 2 to the buses DB, AD, CB, as shown in Fig. 3. The device 1 has following functions: A. Functions obtained when the device 1 is operated independent of the personal computer 8 (OFF-LINE control) (1) COPY function When the COPY key 41 is depressed, the device 1 starts operation. The image scanner 2 reads image data of a document to be copied and supplies the image printer 3 with it so that the image printer 3 may print the document. (2) FACSIMILE function This is a function obtained when the FACSIMILE key 31 is operated. The device 1 encodes image data read by the image scanner 2 into compression codes by means of the image codec control portion 69 and transmits the encoded data via facsimile by means of the facsimile control unit 4. Also, the device 1 decodes information received via facsimile through the telephone line 4a into binary data by means of the image data codec control portion 69 and records it by means of the image printer 3. B. Functions obtained when the device 1 is operated under the control of the personal computer 8 (ON-LINE control) (1) IMAGE INPUT function The device 1 outputs image data read by the image scanner 2 to the personal computer 8. The personal computer 8 displays the data on the CRT display unit and/or files it in a floppy disk (2) IMAGE PRINT function The image printer 3 of the device 1 records image data transferred by the personal computer 8. (3) FACSIMILE INPUT function The device 1 outputs image data received via facsimile to the personal computer 8, which displays the data on the CRT display unit and/or files it in a floppy disk. (4) FACSIMILE TRANSMISSION function The device 1 transmits image data outputted from the personal computer 8 through the telephone line 4a. (5) IMAGE DATA CONVERSION function The device 1 converts binary data or compressed data, of an image, outputted by the personal computer 8 into compressed or binary data, respectively, at the image data codec control portion 69. And, (6) COPY and FACSIMILE functions Functions corresponding to the above independent functions obtained when the device 1 is in an off-line state are also effected under the control of the personal computer 8. The following describes control commands which the personal computer 8 outputs in order to control the device 1. (1) STATUS REQUEST command This is a command outputted when the computer 8 requests the device 1 to report on an actual status thereof so as to control the device 1. In response to this command, the device 1 reports on (1) whether or not the remote control is available, (2) whether or not there are errors, (3) whether or not the previous operation has been completed, (4) whether or not a next page is required in the facsimile reception, (5) whether or not a call is requested in the facsimile transmission, and (6) whether or not paper is required to be supplied to the image printer. The status data in relation to the above are stored in the status area 100 of the RAM 52 as shown in Fig. 4. (2) STOP command This is a command for instructing the device 1 to stop controlling. (3) DATA TRANSMISSION AND RECEPTION command This is a command for instructing the device 1 to get ready for receiving or transmitting data prior to the starting. (4) CALL REQUEST command This is a command for instructing the device 1 to give a call over the telephone when the data transmission via facsimile is completed. (5) SUPPLY NEXT PAGE command This is a command for instructing the device 1 to supply data of the next page when data corresponding to a plurality of pages of document are outputted from the personal computer 8 so as to be transmitted via facsimile. (6) SCANNER'S SKIP command This is a command for instructing the device 1 to determine the quantity by which the image scanner 2 should be advanced or skip a document without scanning. (7) PRINTER CONTROL command This is a command in relation to the control of the image printer 3 such as "line feed", "page end" and so on (8) UNIT SETTING command This is a command for instructing the device 1 to set conditions for each of functions proper to the whole device 1, facsimile, image scanner, and image printer. Such condition setting is partially presented hereinafter. (a) Condition setting for the whole device (i) Data format for the transfer between the device 1 and the personal computer 8.....necessity of compression, MH or MR encoding method (ii) Validity of each key input (key masking) (b) Condition setting for the facsimile (i) Data format for transmission.....MH or MR encoding method (ii) Document line density for transmission ...4 lines/mm (standard) or 7.7 lines/mm (fine) (iii) Data reception duration...5ms, 10ms or 20 ms (iv) Transmission speed...4800 bps or 2400 bps (c) Condition setting for the image scanner (i) HALF tone (ii) Reading range of document the image scanner should read (iii) Scale (d) Condition setting for the image printer (i) Printing length in the main scanning direction (ii) Number of bits per line for requiring a line feed, and (iii) Number of lines per page (9) I/O SETTING command This is a command for instructing the device 1 to determine an input device and an output device. In the concrete, it is determined which of the personal computer 8, the facsimile unit 4 and the image scanner 2 as input units to combine with the personal computer 8, the facsimile unit 4, or the image printer 3 as an output unit. The combination is determined by coded set values shown in Fig. 5 accompanied by a code representing this command. The set values corresponding to the above unit setting conditions are stored in the respective areas of RAM 52 as shown in Fig. 4 and some of them are read out and supplied to the respective units according to commands. The device 1 of the above construction acts as follows: Figs. 6 through 10d are flow charts showing programs to be carried out by the device 1. The following description is given according to those figures (the personal computer 8 will be referred to as a host hereinafter). 1. INITIAL SETTING When the device 1 is powered on, the program shown in Fig. 6 is carried out. At step S1, every circuit element and input portions are initialized so as to be in a reset status. Then, at step S2, initial values for the whole device 1 are set and stored in the area 201 of RAM 52. For example, (i) Format of data to be transferred to and from the host 8 is set to modified Huffman compression codes. (ii) Keys are released from the mask in order that every key may be available or input therefrom is valid. Subsequently, at step S3, initial values for the facsimile function are set and stored in the area 202 of RAM 52. For example, (i) Data format for transmission...modified Huffman codes (ii) Line density...a fine mode (7.7 lines/mm) (iii) Time required for data reception ...20 ms (the minimum time for a line transmission). (iv) Transmission speed...4800 bps. (this means a transmission rate at the modem 71) At step S4, initial values for the scanning function are set and stored in the area 203 of RAM 52. For example, (i) No HALF tone (ii) The scanner's reading range...A4 size in width from the top of document through (iii) Scale...A4 → A4 (same size). Then, at step S5, initial setting for the printing function is carried out and set values are stored in the area 204 of RAM 52. For example, (i) Length in the main scanning length...A4 size in width. (ii) Quantity for line feed...30 dots per line. (iii) Number of lines per page...66 lines. Setting of input and output devices for the area 205 of RAM 52 is not carried out in this stage. At step S6, the on-line flag in the area 206 of RAM 52 is set to be off so as to enable the local or off-line control. All initial setting is completed at this step. Subsequently, at step S7, it is discriminated whether or not the printer 3 is running out of paper, in other words, paper is required to be supplied. When paper is wanted, that is, the printer is not provided with paper, the program proceeds to step S8, at which PAPER REQUEST status is set on and the lamp 28 on the operating panel 6 shown in Fig. 2 is turned on. At step S9 it is discriminated whether or not some key on the panel 6 is operated and when it is judged that there is no key operation, the program proceeds to step 10, at which it is discriminated whether or not the device 1 has received data from the host 8. With a negative answer, the program returns to step S7 and repeats steps S7, S9 and S10 in order to wait for some input from keys on the operating panel 6 or from the host 8. During such a waiting state, either the local (off-line) control or the remote (on-line) control is started when there is some key input or command from the host 8 as follows: A. THE LOCAL (OFF-LINE) CONTROL When it is discriminated at step 9 that a key is operated, the program proceeds to step S11 at which it is discriminated whether or not the key is masked. When the key is masked, the key input can not be accepted, so that 25 e program proceeds to step S10. When the key is not masked, it is discriminated at next step S12 whether or not the device 1 is under the control of the host 8, that is, the device 1 is in an on-line state. With the device 1 in an on-line state, it is discriminated at step S13 if the depressed key is STOP 22. If it is not STOP 22, the key input is not accepted and the program returns to step S7 to wait for further key input or data input from the host 8. Either when it is discriminated at step S12 that the device 1 is not in an on-line state or when it is discriminated at step S13 that the depressed key is STOP 22, the program proceeds to 1 ○ shown in Fig. 7 and processing under the local control is carried out. The following describes the program to be carried out when the following respective keys on the operating panel 6 are depressed during the waiting state. (1) STOP key When this key is depressed, the program goes to (1-1) of Fig. 8a. First, at step S20, a task being carried out is stopped and instructions to finish are transferred to each control portion. The instructions cause each control portion to keep a waiting state till it receives next instructions. The task stop is effected by recognizing the finish of a control command even when the task is done under the control of the host 8. At step S21 the on-line flag is turned off (when the on-line flag has been off, the flag state does not change.). At step S22 the completion flag indicating the completion of the operation is turned on. After the above process, the program returns to the step S7 of Fig. 6 and repeats steps S7, S9 and S10 so as to wait for a further key input. (2) PAPER FEED key When this key is depressed, the program branches to (1-2) shown in Figs. 7 and 8a. At step S23 it is discriminated whether or not the paper request status is OFF. When the paper request status is ON because paper shortage has been found out during the waiting state, the program returns to step S7 without feeding paper. When the paper request status is OFF, the program proceeds to step S24, at which the remote status (in the area 100 of RAM 52 of Fig. 4) is turned off, whereby the control by the host 8 is prohibited. At step S25, the completion status is turned off in order to show that the device 1 is in operation. Then, at step S26, a preset value, stored in the area 204, in relation to the printer (in this case, number of dots for line feed) is supplied to the mechanism and record control portion 67. At next step S27, transfer of operating instructions (in this case, instructions to feed a line) to the control portion 67 follows the supply of the set value. According to the instructions, the mechanism and record control portion 67 determines the dot quantity for paper feed or dots per line and then determines the revolution quantity of the motor 64 based on the dot quantity for paper feed. Thereafter, the control portion 67 drives the motor 64. During driving the motor 64, discriminations on the paper request and on the reception of data from the host 8 are done at steps S28 and S29, respectively. When it is judged at step S28 that the paper is required, the program goes to step S33 where the paper request status is turned on (the lamp 28 is turned on). And then, at step S31, the remote status is turned on and thereafter, at step S32, the completion status is turned on to finish this operation. On the other hand, when detecting the data reception from the host 8 at step S29, the program proceeds to step S200 of Fig. 9. When there is no data from the host 8 at step A29, the program proceeds to step S30, at which it is discriminated whether or not the PAPER FEED key 24 is still depressed. When depression of that key is detected again after carrying out the foregoing operation, steps S27 through S30 are repeated till the PAPER FEED 24 is released. When the operation of the PAPER FEED key 24 is stopped, the program returns to step S7 of Fig. 6 via steps S31 and S32. With the above procedure, paper of the amount required by an operator is fed. (3) HALF TONE key Depression of this key 23 leads the program to routine to (1-3) of Fig. 8b. At step S34, the scanner setting area 203 of RAM 52 shown in Fig. 4 is set for a HALF tone mode and the program returns to step S7 of Fig. 6. The set value corresponding to the HALF tone mode is supplied to the CCD read control portion 54 according to the instructions, given later, to read an image. The CCD read control portion 54 determines to which one of a plurality of slice levels fixedly set in advance each one of picture elements corresponds, and provides the analog regulating circuit 56 with digital data in accordance with respective determined levels. The CCD read control portion 54 determines the black level arrangement for each of the picture elements according to the digital values provided by the analog regulating circuit 56, as a model HALF tone, for example, and outputs the black level arrangement as read data. Such technology is generally known. (4) COPY key, SCALE key and START key When the COPY key 41 is depressed, the program branches to (1-4) of Fig. 8b so as to set the device 1 for a copy mode, as described hereinafter. At step S40 it is discriminated whether or not the paper request status is ON. If so, the program returns to step S7 of Fig. 6 in order to prohibit the acceptance of this key input. If not, the program proceeds to step S41, at which the REMOTE status is turned off, if it is in an ON-state, so as to prohibit the control by the host 8. Then, at step S42, the COMPLETION status is turned off so as to show that the device is in operation. At step S43, the I/O setting code "47", shown in Fig. 5, of one bite is stored in the area 205 of RAM 52 of Fig. 4. This I/O setting code "47" means that the image scanner 2 is selected as an input unit and the image printer 3 as an output unit. Thus, with this code "47" the device 1 can realize the copy function by outputting image data read by the image scanner 2 to the image printer 3 and recording the image data. At step S44, the copy flag is turned on and then, the program returns to step S7 of Fig. 6 and repeats steps S7, S9 and S10 so as to wait for another key input. After depressing COPY 41, the operator may depress SCALE 42 or START 43. The STOP key 22 may be operated if the operator wants to cancel the copy order, though. Now assume that SCALE 42 is operated. The program branches to (1-5) of Fig. 8b. At step S45, discrimination on the COPY flag is carried out. When this flag is not ON, the program returns to step S7 of Fig. 6 in order to prohibit the acceptance of this key input. When the COPY flag is ON, the program advances. At steps S46 and S46′ the previous scale setting is confirmed by discriminating whether or not the previous scale setting is A4/A4 and then whether it is A4/B5 or not. As understood from the arrangement order of scales in Fig. 2, each depression of the SCALE key 42 changes the scale setting in order according to the arrangement order. So, if the discrimination result at step S46 says that the previous setting is A4/A4, the scale is set to A4/B5 at step S49. When the previous setting is judged to be A4/B5 at step S46′, the scale is set to A4/A5 at step S48. When the previous scale setting is judged to be neither A4/A4 nor A4/B5 at steps S46 and S46′, the scale is set to A4/A4 at step S47. The newly set value is stored in the area 209 of RAM 52 and either one of the lamps 44, 45 and 46 (See Fig. 2) is turned on in conformity with the set value, and thereafter the program returns. On operating the START key 43 after setting the above conditions, the program branches to (1-6) of Fig. 8c. At step S50, discrimination on the COPY flag is carried out. When this flag is not ON, the program returns to the step S7 of Fig. 6 so as to prohibit the acceptance of this key. When the COPY flag is ON, the program from step S51 on is carried out based on the I/O setting effected at foregoing step S43. At step S51 the set value stored in the area 203 for the scanner setting is supplied to the CCD read control portion 54. Then, at step S52, the set value stored in the area 204 for the printer setting is supplied to the mechanism and record control portion 67 together with the above set value for the scanner. At step S53, operating instructions are given to both control portions 54 and 67, whereby the document reading and recording are started. At step S54 data read and outputted by the image scanner 2 keeps being transferred to the image printer 3 line by line according to the subroutine of data transfer between units (which subroutine will be referred to later) shown in Fig. 8d till the document scanning for the preset reading range (stored in the scanner setting area 203 of RAM 52 of Fig. 4) is completed. During this process, it is discriminated whether or not paper is required at step S55. When paper shortage is detected as a result of this discrimination at step S55, the processing is stopped like by operating the STOP key at step S58, and then the copy flag is turned off at step S59. Thereafter, the program goes to step S33 of Fig. 8a. On the other hand, when data reception from the host 8 is detected at step S56, the program proceeds to step S200 of Fig. 9. At step S57 it is discriminated whether or not the above routine has been finished. With the answer in the affirmative, the COPY flag is turned off at step S60, the COMPLETION status is turned on at step S61 and then the REMOTE status is turned on at step S62. After that, the program returns to step S7 of Fig. 6. Referring now to the subroutine of data transfer between units carried out at step S54 (See Fig. 8a), first, at step S70, the set value of a bite for the I/O setting code "47" is read out of the area 205 of RAM 52. The input and output units are determined by the set value. Then, at step S71, instructions to transfer data is given to the CCD read control portion 54 as an input. On receiving the instructions, this control portion 54 drives the driver 57 and analog regulating circuit 56 to cause them to read one line data and convert the data into a digital form. The digital data is latched or taken hold of in a buffer inside of the CCD read control portion 54. Then, the motor 59 is driven by the mechanism and record control portion 67 so as to move the CCD sensor 58 to the next line. The data latched in the buffer is transferred on the data bus DB to the mechanism and record control portion 67. In the case that the printer is in operation (e.g. recording the previous line of document) when the data is outputted toward the mechanism and record control portion 67, that data is temporarily stored in the line buffer inside the mechanism and record control portion 67. The data transfer from the CCD read control portion 54 to the mechanism and record control portion 67 may be done directly by means of a DMA controller, for example, or alternatively it may be done through the intermediary of the work area 300 of RAM 52. The above operation is effected by a time-sharing system. When the set scale is a reduced one such as A4/B5 or A4/A5, the CCD read control portion 54 performs a predetermined selection of data in the main and subscanning directions in reading data. Accordingly, document recording on a reduced scale is obtained by recording the selected data. Recording document on a magnified scale is done likewise. (5) FACSIMILE key, FINE key, CALL key, SEND key, and RECEIVE key. When the FACSIMILE key 31 is depressed, the program carries out (1-7) of Fig. 8d as follows: The FAX flag is turned on, the REMOTE status is turned off and the COMPLETION status is turned off at respective steps S80, S81 and S82. By so doing, the device 1 is set for a facsimile mode like a facsimile device of general use and the program returns to step S7 of Fig. 6 and repeats steps S7, S9 and S10. Following procedure is taken in accordance with key input of FINE, CALL, RECEIVE or SEND key. First, in the case that FINE key 34 is depressed, (1-8) of Fig. 8d is carried out. At step S90, it is discriminated whether or not the FAX flag is ON. With this flag being OFF, the program returns to step S7 of Fig. 6 in order to prohibit the acceptance of this key input. When the flag is ON, the program proceeds to step S91, at which a previous set value, stored in the area 202 of RAM 52, in relation to line density is confirmed by discriminating whether the previous line density is of the normal mode. When it is of the normal mode, value to be stored in the area 202 is set for the fine mode at step S92 and thereafter, the program returns. On the other hand, the line density is discriminated not to be of the normal mode at step S91, it is reset for the normal mode at step S93 and the program returns to step S7 of Fig. 6. When the line density is set for the fine mode, the lamp 34 on the operating panel 6 of Fig. 2 is turned on. In the case that the CALL key 35 is depressed, (1-9) of Fig. 8d is carried out. At step S94, it is discriminated whether or not the FAX flag is ON. With this flag being OFF, the program returns to step S7 of Fig. 6 so as to prohibit the key input of this key. When the FAX flag is ON, the program proceeds to step S95, at which the CALL status in the status area 100 of RAM 52 is turned on and the program returns. The call request is accepted at the end of the facsimile transmission. After completing such a condition setting, data transmission or reception is carried out by the depression of the SEND or RECEIVE key as will be described later. The key operation in sending data is done when the circuit connection is completed, while that in receiving data is done when the circuit connection is realized by data incoming. When the SEND key 33 is depressed, (1-10) of Fig. 8e. is carried out. At step S100, it is discriminated whether or not the FAX flag is ON. With this flag being OFF, the program returns to step S7 of Fig. 6 and prohibits the acceptance of the key input of SEND key 33. On the other hand, when the flag is ON, which means that the circuit connection has been completed, the program proceeds to step S101, at which I/O setting code "46" is stored in the I/O setting area 205 of RAM 52 of Fig. 4. As shown in Fig. 5, this code means that an input unit is the image scanner 2 and that an output unit is the unit 4 required for the communication via facsimile. At step S102, the set values stored in the scanner setting area 203 and the set values stored in the facsimile setting area 202 in relation to line density are transferred to the CCD read control portion 54 and the mechanism and record control portion 67, respectively, in the similar manner as the case of the copy mode. At step S103, the data format for transfer (compression code) stored in the facsimile setting area 202 of RAM 52 is transferred to the image data codec control portion 69, and then, at step S104, each of the set values stored in the area 202 of Fig. 4 is transferred to the facsimile transmission control portion 70. In this way, the line density is set for 4 lines/mm or 8 lines/mm and the image reading is carried out with resolution based on the line density selected. The image data codec control portion 69 is caused to convert binary image data into run length codes when the data format for transfer has been set for the modified Huffman codes. The facsimile transmission control portion 70 can control the outputting of the image data into the line 4a in accordance with the data transmission procedure based on the CCITT standard. At step S105, operating instructions are given to the respective control portions, whereby at step S106 the subroutine of "data transfer between units" (See Fig. 8d) on the data bus DB is carried out. In this case, the data transfer subroutine is repeated twice. First, image data for one line is transferred on the data bus DB from the CCD read control portion 54 (a first input unit) to the image data codec control portion 69 (a first output unit), where the image data is encoded by the modified Huffman encoding method. Second, the modified Huffman encoded data is transferred on the data bus DB from the image data codec control portion 69 (the first output unit and a second input unit) to the facsimile transmission control portion 70 (a second output unit). Accordingly, the image data (binary data) read by the image scanner 2 is stored in the line memory 55 and then the data is transferred to the facsimile transmission control portion 70 bite by bite. The above data transfer operation is carried out repeatedly by repeating steps S105 to S110 for every line. At steps S108, S109, and S110, discriminations on the data reception from the host 8, depression of a key, and task finish of the CCD read control portion 54 and of the facsimile transmission control portion 70 are carried out, respectively. When data reception from the host 8 is detected at step S108, the program proceeds to step S200 of Fig. 9. And when it is discriminated at step S109 that some key has been operated, the program returns to 1 ○ of Fig. 7 so as to identify the key. When the transmission of a sheet of document is completed, the processing in a call mode is carried out by the facsimile transmission control portion 70 because the CALL status is ON. As soon as the phone call is finished, the facsimile transmission control portion 70 outputs a discrimination code for the task end, by which code the end of task is confirmed. The CALL status is turned off at step S114, the REMOTE status is turned on at step S115, and the COMPLETION status is turned on at step S116, whereby the data transmission process is completed. Then, the program returns to step S7 of Fig. 6. Next, when the RECEIVE key is operated, (1-11) of Fig. 8e is carried out as follows: If the FAX flag is discriminated to be OFF at step S120 or if the PAPER REQUEST status is discriminated to be ON at step S121, the program returns to step S7 of Fig. 6 so as to prohibit the acceptance of this key input. In addition, if the circuit is not connected, this routine is not carried out like in data transmission. When those conditions are satisfactory, the I/O setting code "44" is stored in the I/O setting area 205 of RAM 52 at step S122. With this code, the facsimile 4 is set as an input and the image printer 3 as an output. Then, at step S123, a set values stored in the printer setting area 204 of RAM 52 is transferred to the mechanism and record control portion 67. After that, the program proceeds to step S103 of the data transmission routine (1-10) of Fig. 8e. From this step on, the data reception routine is carried out according to said data transmission routine except for the step S106. Therefore the same description on those steps is omitted here. In the data transfer process between units carried out at step S106 (See Fig. 8d), which is repeated twice like in the data transmission process, modified Huffman encoded data received from the facsimile transmission control portion 70 (a first input unit) through the telephone line 4a is transferred to the image data codec control portion 69 (a first output unit), by which the modified Huffman codes are decoded into binary data. The decoded data in the binary form is transferred from the image data codec control portion 69 (a second input unit) to the mechanism and record control portion 67 (a second output unit). This two-step data transfer operation is carried out repeatedly for every line by repeating the steps S105 to S110. If paper shortage is detected during the data reception process at step S107, the program proceeds to step S111, at which it is discriminated whether or not the device 1 is of a transmission mode. With a negative answer, the program proceeds to step S112, at which an error discrimination code is supplied to the facsimile transmission portion 70 for error processing and at the same time the ERROR status is turned on (the lamp 27 on the operating panel 6 shown in Fig. 2 is turned on). After that, the PAPER REQUEST status is turned on at step S113, and then the program proceeds to step S114 to end this data reception process. As described above, different types of processing are carried out by operating the keys on the operating panel 6 shown in Fig. 2, independent of the host 8. B. THE REMOTE (ON-LINE) CONTROL Further different kinds of processing are also carried out by the device 1 according to the following demands outputted from the host 8 in the waiting state of steps S7, S9 and S10 of Fig. 6. (1) STATUS REQUEST command This is a command for confirming an actual status of the device 1 in the case of controlling the device 1 due to a predetermined program for the host 8. The device 1 is adapted to respond to this command even while it is doing some task. When the device 1 receives this command from the host 8 at step S10 of Fig. 6, step S29 in (1-2) of Fig. 8a, step S56 in (1-8) of Fig. 8c, step S108 in (1-10) of Fig. 8e, step S234 in (2-2) (described later) of Fig. 10a, or step S243 in (2-3) (described later) of Fig. 10b, the program proceeds to step S200 of Fig. 9. At step S200, it is discriminated whether or not the received command is STATUS REQUEST command. With an answer in the affirmative, the program proceeds to step S201, while with an answer in the negative, it proceeds to step S203. At step S201, data stored in the area 100 for status setting of RAM 52 is read out. Then, at step S202, the read data of one bite in relation to the status of the device 1 is transferred to the host 8 through the parallel interface 5. Thereafter, the program returns to step S7 to repeat steps S7, S9 and S10 waiting for the next key depression or the next command from the host 8. At step S203, it is discriminated whether or not the REMOTE status is ON. When the REMOTE status is OFF, the program proceeds to step S204, at which data "BREAK" is transferred to the host 8 through the parallel interface 5 and then the program returns to step S7 so as to wait for a further key operation or command from the host 8. On receiving BREAK, the host 8 confirms that it has transferred a wrong command to the device 1. On the other hand, when it is discriminated at step S203 that the REMOTE status is ON, the program skips to step S205. (2) STOP command When the program proceeds to step S205 passing steps S200 and S203 through, it is discriminated whether or not the command transferred from the host 8 is STOP command. If it is so, the program proceeds to step S206, at which it is discriminated whether or not the ON-LINE flag is in an ON-state. If it is in an OFF-state, that is, the device 1 is not operating under the control of the host 8, the program returns to step S204, at which the data "BREAK" is outputted to the host 8 because STOP command is a wrong command. On the other hand, when the ON-LINE flag is judged to be in an ON-state at step S206, the device 1 stops the operation actually being carried out at step S207. This corresponds to the operation of STOP key in the OFF-LINE control. Subsequently to the operation stop, the ON-LINE flag is turned off at step S208, the REMOTE status is turned off at step S209, the COMPLETION status is turned on at step S210, and then the program returns to step S7 and waits for the next key operation or command from the host 8. When the received command is discriminated not to be STOP at step S205, the program proceeds to step S211, at which the received command is checked. At step S212 it is discriminated if the received command is acceptable with respect to the data format, command transfer procedure, etc. When it is unacceptable because the command has not been transferred prior to corresponding data transfer, for example, the program goes to step S204 to transfer the data "BREAK" to the host 8 and returns to step S7 of Fig. 6. When the received command is judged to be acceptable at step S212, the ON-LINE flag is turned on at step S213 so that control may be carried out in accordance with the command. The command transfer process is determined in advance, that is, prior to data transfer form the host 8 to the device 1, UNIT SETTING command described in detail later is transferred to RAM 52 together with the initial setting data for each of the functions or set values to be stored in the respective areas 201 to 204 of RAM 52. After that, I/O SETTING command for specifying the input and output units is transferred to RAM 52 together with one of the preset unit setting codes of one bite (See Fig. 5). In the data transfer between the device 1 and the host 8, the host 8 transfers DATA TRANSFER command to the device 1. The device 1 transfers data "ACK" (acknowledge) or "NAK" (negative acknowledge) to the host 8 in reply to the command. The host 8 prepares to transfer the next command in accordance with the reply. The following commands are those which are to be received by the device 1 during the waiting state (though STATUS REQUEST and STOP commands will be omitted in the following description). (3) UNIT SETTING command This command is for effecting initial setting for the respective functions of the device 1 and consists of a device designating code of one bite for discerning the facsimile, scanner and printer from each other. This command is accompanied by the set values of a plurality of bites to be stored in the respective areas 201 to 204 of RAM 52. When this command is received, the program advances to step S214 via steps S200, S203, S205, S211, S212 and S213. If the received command is discriminated to be UNIT SETTING at step S214, (2-1) of Fig. 10a is carried out. If not, the program proceeds to step S215. Referring to the (2-1), at step S230, the set values are put into the corresponding area 201, 202, 203 or 204 of RAM 52 in conformity with the transferred device code. Then, at step S231 the device 1 forwards the data "ACK" to the host 8 through the parallel interface 5 and the program returns to step S7 of Fig. 6. Receiving the data "ACK", the host 8 starts preparing for the next command transfer. The host 8 outputs the UNIT SETTING command repeatedly when it requires further devices to be set. (4) SCANNER'S SKIP command This command is for shifting the CCD sensor 58 in the image reading process so that the CCD sensor may skip document of a range unnecessary to read. Value representing the shift or skip quantity, which consists of a plurality of bites, follows the SCANNER'S SKIP command of one bite. When it is discriminated at step S215 that the received command is SCANNER'S SKIP, the program branches to (2-2) of Fig. 10a. If not SCANNER'S SKIP, the program proceeds to step S216. Referring to the (2-2), first, the COMPLETION status is turned off at step S232, and then the set value for scanner's skip quantity is supplied to the mechanism and record control portion 67 so that the CCD sensor 58 may be shifted. The mechanism and record control portion 67 drives the motor 59 according to the scanner's skip quantity. As soon as the scanner's shift is completed, a signal representing the scanner's being busy is turned off and then a signal representing the completion of the operation is outputted from the mechanism and record control portion 67. In the meanwhile, the program proceeds to step S234, at which it is discriminated whether or not some command from the host 8 is received. With some command received from the host 8, the program proceeds to the above mentioned step S200. Furthermore, at step S235 it is discriminated whether the "scanner's being busy" signal is in an ON-state or not. With the answer in the affirmative, the program returns to step S234 and repeats steps S234 and S235 so as to wait for a further command from the host 8. When there is neither data reception from the host 8 nor the "scanner's being busy" signal in an ON-state, the program proceeds to step S236, at which the COMPLETION status is turned off. Subsequently the data "ACK" is transferred to the host 8 at step S237 and then the program returns to step S7 of Fig. 6. Receiving the data "ACK", the host 8 starts preparing for the next command transfer. (5) I/O SETTING command This command is for specifying input and output units, consisting of one bite. Subsequently to the command, the host 8 outputs one of the predetermined I/O setting codes shown in Fig. 5 to RAM 52 according to a given program for the host 8. The code is put into the I/O setting area 205 of RAM 52. The following describes the operation of the device 1 in accordance with each of the before mentioned commands (UNIT SETTING, SCANNER'S SKIP, PRINTER CONTROL, CALL REQUEST, PAGE REQUEST, I/O SETTING and DATA TRANSFER REQUEST). Each time any one of those commands outputted from the host 8 is received during the waiting state of steps S7, S9 and S10 of Fig. 6, the program proceeds to (2-1), (2-2), (2-3), (2-4), (2-5), (2-6) or (2-7) via steps S200, S203, S205, S211, S212, and S213 of Fig. 9, so that the device 1 accomplishes the following functions by the respective programs. (i) Reading image data by means of the image scanner 2 and transferring it to the host 8 Prior to carrying out this operation, the host 8 transfers the UNIT SETTING command to the device 1 to store set values for the scanner in the corresponding area of RAM 52. The host 8 outputs the setting code "45" together with the I/O SETTING command to the device 1. By this code "45" the image scanner 2 is determined as an input unit and the host 8 as an output unit, as shown in Fig. 5. The program carries out a routine (2-6) of Fig. 10c due to the I/O SETTING command. At step S269, it is discriminated whether the COMPLETION flag is in an ON-state or not. When the flag is in an ON-state, the program proceeds to step S270. When it is OFF (this means that the image scanner is in operation), the program proceeds to step S279, at which the device 1 transfers the data "NAK" to the host 8 to let it know that the image scanner 2 is not ready yet. At step S270, the I/O setting code "45" gets stored in the corresponding area 205 of RAM 52. Thereafter, at step S271 the set values stored in the area 203 of RAM 52 are transferred to the corresponding control portions in accordance with the code "45". In the concrete, the set values stored in the scanner setting area 203 of RAM 52 are supplied to the CCD read control portion 54 and to the mechanism and record control portion 67. In the case that the value, stored in the device setting area 201 of RAM 52, in relation to the data format for data transfer represents modified Huffman compression codes, instructions to convert data into modified Huffman codes are given to the image data codec control portion 69. At step S272, it is discriminated whether or not the image printer 3 is selected as an output unit. As the I/O setting code designates the host 8 as an output unit in this case, the discrimination at this step gives an answer in the negative. Then, the program skips to step S274, at which it is discriminated whether the facsimile 4 is selected as an output unit. Here again, by the same reason, the program skips to step S276, at which the device 1 provides the host 8 with the data "ACK". The program returns to step S7 of Fig. 6. The data "ACK" confirms the host 8 that the unit setting has been completed. Therefore, the host 8 starts preparing for receiving data from the device 1. When the host 8 gets ready, it outputs the DATA TRANSFER REQUEST command to the device 1. On receiving the command, the device 1 carries out a routine (2-7) of Fig. 10d. At step S280 it is discriminated whether or not "BUSY" signal indicating that an input unit or an output unit designated by the I/O setting code is in operation is in an ON-state. In this case, "BUSY" signal outputted from the CCD read control portion 54 is checked for the discrimination whether the image scanner 2 is in operation or not. When the signal is discriminated to be in an ON-state, the program proceeds to step S279 at which the "NAK" data is transferred to the host 8, and it returns to step S7 of Fig. 6. Receiving the data "NAK", the host 8 outputs the DATA TRANSFER REQUEST command to the device 1 over and over again till the image scanner 2 gets ready for outputting data to the host 8. Then, the program proceeds to step S281. At step S281 operating instructions are given to the designated units according to the I/O setting code stored in the area 205 of RAM 52. That is, the CCD read control portion 54 and mechanism and record control portion 67 receive the operating instructions and control the image scanner 2 to read document line by line in the same manner as in the copy mode (See Fig. 8c). The read data for one line is stored in the line memory 55. If completion of the image reading is confirmed as a result of the discrimination at step S282, the program proceeds to step S283, at which the device 1 outputs the data "ACK" to the host 8. If the image reading is not completed yet, the step S282 is repeated till the completion is confirmed. At step S284, it is discriminated whether or not the device 1 is required to receive data from the host 8. As the device 1 is supposed to transfer data read by the image scanner 2 to the host 8 in this case, the program proceeds to step S285. At step S285, the data transfer between control portions is carried out based on the subroutine shown in Fig. 8d. In this example, the CCD read control portion 54 provides the parallel interface 5 with obtained image data since the host 8 is designated as an output unit. In transferring line data to the host 8, if the device setting area 201 of RAM 52 sets the data transfer format to the modified Huffman codes, the CCD read control portion 54 once forwards the image data of one line to the image data codec control portion 69 where the data is encoded by the modified Huffman compression encoding method. The modified Huffman compression codes so obtained are finally transferred to the host 8. Generally speaking, modified Huffman compression data is of shorter bit length than binary data, so that the host 8 selects the modified Huffman compression encoding in the case of filing data in a floppy disk or in the like case, though this compressed data is decoded into binary data again when displayed on the CRT display unit, etc. At step S287, it is discriminated whether or not the image printer 3 is designated as an output unit. As the printer 3 is not designated as an output unit in this case, the program returns to step S7 of Fig. 6 so as to wait for another DATA TRANSFER REQUEST command. When the device 1 receives this command, image data of the next line is read. This process is repeated till reading of image data for every line is completed. When data of predetermined quantity has been read, the host 8 outputs the STOP command to stop the on-line control. As understood from the above description, the control by the host 8 enables the device 1 to read image data at the portion of the image scanner 2 and provide it to the host 8, so that the host 8 can output the incoming data on the CRT display unit or file it in a floppy disk by means of the floppy disk device, etc. (ii) Recording image data generated in the host 8 by means of the image printer 3 In recording image data generated in the host 8 as a result of execution of a program for the host 8 or image data filed in the floppy disk, the host 8 forwards the I/O setting code "42" together with the I/O SETTING command to the device 1. This code assigns the host 8 to the input unit and the image printer 3 to the output unit. The routine (2-6) of Fig. 10c is also carried out in this case. The following describes only steps different from the above case. At step 270, the I/O setting code "42" gets stored in the corresponding area 205 of RAM 52. Then, at next step S271, set values stored in advance in the printer setting area 204 and the device setting area 201 of RAM 52 are read out and the set values for the printer 3 are supplied to the mechanism and record control portion 67. When values on the data transfer format in the area 201 of RAM 52 are set for the modified Huffman codes, instructions to decode incoming data are given to the image data codec control portion 69. In the discrimination on the output unit setting at step S272, an answer in the affirmative is obtained because the I/O setting code designates the image printer 3 as an output unit in this case. So the program proceeds to step S273, at which it is discriminated whether the PAPER REQUEST status is ON or not. If the status is ON, the program proceeds to step S277, at which the ON-LINE flag is turned off and then, at step S278, the data "BREAK" is transferred to the host 8. The programs returns to step S7 of Fig. 6 at this point. When the PAPER REQUEST status is discriminated to be OFF at step S273, the program proceeds to step S276 via step S274. The device 1 forwards the data "ACK" to the host 8 at step S276 and then the program returns to step S7 of Fig. 6 so as to wait for a further commands. When the further command is DATA TRANSFER REQUEST command, the (2-7) of Fig. 10d is carried out similarly to the foregoing. Description on steps similar to those for the above procedure will be omitted. At step S284 it is discriminated whether or not the the host 8 requires the device 1 to receive data from the host 8. As the input unit for this case is the host 8, it is discriminated that the device 1 is required to receive data from the host 8. Then the host 8 starts forwarding a line data to the device 1. When it is discriminated at step S286 that the data reception is completed, the program advances to step S285 at which the data corresponding to each line is transferred to the record control section of the mechanism and record control portion 67 together with the DATA TRANSFER command according to the subroutine of "data transfer between units" shown in Fig. 8d. At step 287 it is discriminated that the printer 3 is designated as an output unit, and so, the program proceeds to step S288 at which discrimination on paper shortage or paper request is carried out. When paper has run short, the program proceeds to step S277 of Fig. 10c, where the ON-LINE flag is turned off, and subsequently the data "BREAK" is forwarded to the host 8. Then, the program returns to step S7 of Fig. 6. On the other hand, when paper is not wanted to be supplied at step S288 of Fig. 10d, the program immediately returns to step S7 so that the device 1 may be brought into a waiting state. If the device 1 receives the PRINTER CONTROL command from the host 8 while steps S7, S9 and S10 are repeated in turn, (2-3) of Fig. 10b is carried out. As soon as the PRINTER CONTROL command (e.g. line feed command) is received, the COMPLETION status is turned off at step S240. At step S241 set values stored in advance in the printer setting area 204 of RAM 52 (See Fig. 4) are read out and transferred to the mechanism and record control portion 67. Then, at step S242, the mechanism and record control portion 67 is given instructions to carry out the command. Therefore, the mechanism and record control portion 67 carries out the command according to the transferred set values. At step S243 it is discriminated whether or not the device 1 has received some other command from the host 8. When there is some command outputted from the host 8, the program returns to step S200. Without any other command, the program proceeds to step S244 at which it is discriminated whether or not signal representing that the image printer 3 is in some operation is in an ON-state. With the signal in an ON-state, the program returns to S243 and these steps S243 and S244 are repeated in turn till the signal is turned off, that is, the image printer gets ready. When the "BUSY" signal is in an OFF-state, the programs returns to step S7 of Fig. 6 via steps S245 and S246 at which the COMPLETION status is turned off and then the data "ACK" is forwarded to the host 8. When the printer 3 runs short of paper during printing operation, the device 1 transfers the data "BREAK" to the host 8 at step S278 as described before. When the printing operation finishes, the host 8 outputs the STOP command to stop the control. (iii) Data communication via facsimile of image data produced in the host 8 In transmitting image data produced in the host 8 or image data filed in the floppy disk via facsimile using the telephone line 4a connected to the device 1, the host 8 outputs the I/O setting code "41" to the device 1. This code assigns the host 8 to the input unit and the facsimile 4 to the output unit. In this case, the routines (2-6) and (2-7) of Fig. 14 are carried out as follows (though steps for the processing similar to foregoing one are omitted): In starting the (2-6), the circuit is connected for the data transmission by a manual dialing or an automatic dialing under the control of the host 8. At step S274 it is discriminated whether or not the facsimile 4 is designated as an output unit. As a result of the discrimination, the program proceeds to step S275, at which it is discriminated by checking signal outputted by the facsimile transmission control portion 70 whether or not the circuit is connected. When the circuit is not connected, the program proceeds to step S277, at which the ON-LINE flag is turned off. Then, the device 1 forwarding the data "BREAK" to the host 8, the program returns to step S7 of Fig. 6. On the other hand, when the circuit is connected, the data "ACK" is transferred to the host 8. Then the program returns to step S7 of Fig. 6 and repeats steps S7, S9 and S10 to wait for the next command from the host 8. When the device 1 receives the CALL REQUEST command in the waiting state, the program carries out (2-4) of Fig. 10b. First, at step 250, the CALL status in the area 100 of RAM 52 is turned on. And then, at step S251, instructions to give a call are given to the facsimile transmission control portion 70. Further processing is done similarly to the facsimile transmitting operation under the local (off-line) control. In the case that data corresponding to a plurality of sheets or pages of paper is transmitted, the host 8 forwards the PAGE REQUEST command to the device 1, whereby the program carries out (2-5) of Fig. 10b as follows: At step S260, the PAGE REQUEST status in the area 100 of RAM 52 is turned on due to the PAGE REQUEST command. At step S261, instructions to require the next page of data are given to the facsimile transmission control portion 70. At step S262, the device 1 transfers the data "ACK" to the host 8, whereby the transfer of data of the next page is carried out in conformity with the CCITT standard. (iv) Transferring image data received via facsimile to the host 8 After confirming the circuit connection (not shown in the flow chart), the host 8 outputs the I/O setting code "43" together with the I/O SETTING command. This code means that the facsimile 4 and host 8 are input and output units, respectively (See Fig. 5). On receiving the I/O SETTING command, the program carries out the (2-6) and then the (2-7). The data transfer from the device 1 to the host 8 is started by receiving the DATA TRANSFER command. Data format for the transfer to the host 8 is determined by the data stored in the device setting area 201 of RAM 52. (v) Converting image data generated or filed in the host 8 into binary data or modified Huffman codes This task is carried out when the I/O setting code "40" is transferred from the host 8. Set values indicative of I/O data format stored in the area 201, that is, MH /MR codes or binary data, are read out and supplied to the image data codec control portion 69, whereby encoding or decoding is effected. Binary data or modified Huffman codes obtained through the conversion processing are sent back to the host 8. The (2-7) of Fig. 10d is used for this data conversion. In this data conversion, DATA RECEPTION REQUEST command and DATA TRANSFER REQUEST are outputted alternately. For example, first, the host 8 transfers DATA RECEPTION REQUEST command to the device 1 so as to transfer line data encoded by the modified Huffman encoding method to the image data codec control portion 69, which decodes the incoming modified Huffman codes into binary data and stores it in the work area 300 of RAM 52 temporarily. Next, the host 8 transfers DATA TRANSFER REQUEST command to the device 1 so that the device 1 transfers the binary data corresponding to one line of document back to the host 8. The above is repeated for every line. The line memory 55 may be used for the temporary storage of data as an alternative of the work area 300 of RAM 52. As described above, various kinds of controls are realized according to the I/O setting codes shown in Fig. 5 in the on-line control state and off-line control state. As obvious from the above description, a multifunctional data processing device according to the invention can copy or transmit document via facsimile selectively independent of the control of the external data processing unit. In the meanwhile, under the control of the host 8, that is, in the on-line state, data transfer between units such as the image read control unit, facsimile transmission control unit, image record control unit and the external data processing unit connected to the interface can be effected through the intermediary of the data bus according to each of control command outputted from the external data processing unit, whereby the device of the present invention realizes further functions such as outputting image data read by the image read control unit to the external data processing unit, recording data transferred from the external data processing unit by means of the image record control unit, transmitting data received from the external data processing unit via facsimile or transferring data received via facsimile to the external data processing unit by means of the facsimile transmission control unit, and so on. To sum up, various kinds of image processing and image editing are easily realized by a single compact device by connecting the device to the external data processing unit. Although the present invention has been fully described by way of example with reference to the accompanying drawings, it is to be noted here that various changes and modifications will be apparent to those skilled in the art. Therefore, unless otherwise such changes and modifications depart from the scope of the present invention, they should be construed as being included therein.

Claims: A multifunctional image processing device (1) wherein a housing (101) thereof includes an image read control unit (2) for reading an image and outputting image data in response to control information, a facsimile control unit (4) for sending and receiving image data through a telephone line in response to the control information, an image record control unit (3) for recording image data in response to the control information, an interface unit (5) connected to an external data processing device (8) for transferring control commands and image data between the external data processing device (8) and the image processing device (1), a main control unit (50) for controlling operation of the entire image processing device (1) by the control information, and bus lines (DB, AB, CB) for connecting the image read control unit (2), the facsimile control unit (4), the image record control unit (3), the interface unit (5), and the main control unit (50), characterized in that: the image processing device (1) further comprises writable memory means (52) connected to said bus lines (DB, AB, CB) and having a plurality of areas (100, 201-206) for storing operating conditions for said image read control unit (2), said facsimile control unit (4), said image record control unit (3), said interface unit (5), and said main control unit (50); and said main control unit (50) includes selection means for selecting at least two units from among said image read control unit (2), said facsimile control unit (4), said image record control unit (3) and said interface unit (5) so that image data is transferred between said at least two units; means for switching the image processing device (1) between an on-line control mode wherein at least said interface unit (5) is selected by said selection means and the transfer of image data is performed between the image processing device (1) and the external data processing devices (8) through the interface unit (5) in response to the control commands from the external data processing device (8), and an off-line control mode wherein said at least two units selected by said selection means are individually controlled by the control information, irrespective of the external data processing device (8); and means for, in said on-line control mode, accessing the areas of said writable memory means (52) corresponding to said at least two units selected by said selection means and transferring the operating conditions stored in said areas to said at least two units selected. A multifunctional image processing device (1) wherein a housing (101) thereof includes an image read control unit (2) for reading an image and outputting image data in response to control information, a facsimile control unit (4) for sending and receiving image data through a telephone line in response to the control information, an image record control unit (3) for recording image data in response to the control information, an interface unit (5) connected to an external data processing device (8) for transferring control commands and image data between the external data processing device (8) and the image processing device (1), a main control unit (50) for controlling operation of the entire image processing device (1) by the control information, and bus lines (DB, AB, CB) for connecting the image read control unit (2), the facsimile control unit (4), the image record control unit (3), the interface unit (5), and the main control unit (50), characterized in that: the image processing device (1) further comprises writable memory means (52) connected to said bus lines (DB, AB, CB) and having a plurality of areas (100, 201-206) for storing operating conditions for said image read control unit (2), said facsimile control unit (4), said image record control unit (3), said interface unit (5), and said main control unit (50); memory means (51) connected to said bus lines for storing a plurality of predetermined I/O combinations, in the form of codes, of said image read control unit (2), said facsimile control unit (4), said image record control unit (3), and said interface unit (5) as input and output units for transferring the image data therebetween; and said main control unit (50) includes selection means for selecting one from among said I/O combinations as the input and output units upon receipt of the code from the external data processing device (8); means for switching the image processing device (1) between an on-line control mode wherein the transfer of image data is performed between the image processing device (1) and the external data processing device (8) through said interface unit (5) in response to the control commands and the code transmitted from the external data processing device through said interface unit (5), and an off-line control mode wherein the input and output units selected by said selection means are individually controlled by the control information, irrespective of the external data processing device (8); and means for, in said on-line control mode, accessing the areas of said writable memory means (52) corresponding to the input and output units selected by said selection means and transferring the operating conditions stored in said areas to the input and output units selected.

Inventors: GENBA, SUSUMU, HIGASHIYAMA, MIKIO, IIZUKA, YUTAKA, ITOGA, TOSHIYUKI, KITA, TOSHIRO, OKAMOTO, SHINJI, TAKEMOTO, MASATO, TANIMOTO, AKIRA, TATSUMI, TAKASHI, TOMINAGA, SATOSHI, YOSHIDA, TOSHIHIKO
Applicants: SHARP KABUSHIKI KAISHA
Application year: 1987
Main classification: H04N1
IPC codes: H04N1, H04M11, G06T1, G06F3