(19)
(11) EP 0 152 484 A1

(12) EUROPEAN PATENT APPLICATION
published in accordance with Art. 158(3) EPC

(43) Date of publication:
28.08.1985 Bulletin 1985/35

(21) Application number: 83903221.6

(22) Date of filing: 14.10.1983
(51) International Patent Classification (IPC)4G06K 1/02
(86) International application number:
PCT/JP8300/357
(87) International publication number:
WO 8401/646 (26.04.1984 Gazette 1984/11)
(84) Designated Contracting States:
DE FR GB

(30) Priority: 16.10.1982 JP 181826/82

(71) Applicant: FANUC LTD.
Minamitsuru-gun, Yamanashi 401-05 (JP)

(72) Inventors:
  • KISHI, Hajimu
    Hino-shi Tokyo 191 (JP)
  • SEKI, Masaki
    Suginami-ku Tokyo 168 (JP)
  • MIZUNO, Yutaka
    Tokyo 192 (JP)

(74) Representative: Billington, Lawrence Emlyn et al
HASELTINE LAKE & CO Hazlitt House 28 Southampton Buildings Chancery Lane
London WC2A 1AT
London WC2A 1AT (GB)


(56) References cited: : 
   
       


    (54) DATA INPUT/OUTPUT DEVICE


    (57) A data input/output device comprises a controller (1), a tape punch (5), a tape reader (4), and a printer (6) and can be operated by commands from a host computer. A counter (5h) counting the number of print characters in one block, a parity instruction circuit (5i) judging the parity of the count of the counter, and a punch control circuit (5c) capable of adding or erasing a parity code are provided in the tape punch (5). The punch control circuit (5c) can add or erase a parity code according to a parity signal from the parity instruction circuit (5i).




    Description

    Technical Field



    [0001] This invention relates to a transportable data input/output unit capable of being detached from the body of a numerical control device.

    Background Art



    [0002] In numerical control, there are cases where a host computer is used and made to perform a variety of data processing to create command data for the machining of a workpiece. The data created by the host computer is recorded on a paper tape by a tape puncher and, with the paper tape serving as the recording medium, is used as input information for another system. In creating the paper tape, the contents of the tape are printed out by a printer in order to provide a record thereof beforehand. Where an output from the host computer is recorded on the paper tape or printed on recording paper, the paper tape puncher and printer used ordinarily are provided separately of the host computer body. These pieces of equipment are connected to the host computer and operate solely in response to commands therefrom. Unlike a system in which such peripheral equipment is of a disjointed nature, a system is conceivable in which the equipment operates on the basis of commands from a host computer when connected to the computer, but in which the contents of a paper tape may be read independently and printed for copying purposes when the equipment is disconnected from the host computer. However, a system of such type can be applied to only very limited systems and is inapplicable to others in certain aspects. Moreover, even where applicable, a disadvantage is that results cannot be obtained unless the host computer software is modified. Furthermore, where numerical control data is to be dealt with, a parity code is sometimes added as will render the length of one block punched into a paper tape an even or odd number. Heretofore, with a paper tape having a parity code, copying the paper tape has meant copying the parity code as well. In cases where data recorded on such a paper tape are read into a numerical control device which does require a parity code, the parity code is meaningless information which has the deleterious effect of delaying data processing. Conversely, when a paper tape not furnished with a parity code is copied, providing the tape with a parity code is impossible when attempted.

    [0003] Accordingly, the object of the present invention is to provide a data input/output unit of a numerical control device in a numerical control system, wherein the input/output unit is detachable from a host computer and includes a tape puncher, tape reader and printer combined into one, and wherein the operation of removing parity from data provided with parity, or of adding parity to data devoid of such parity, is capable of being performed by the data input/output unit itself or based on a command from a host computer.

    Disclosure of the Invention



    [0004] The present invention provides a processing function which not only enables a data input/output unit to operate in accordance with a command from a host computer in order to create a paper tape, print out transferred data and enter data, but which also enables the unit itself to be programmed independently to create a paper tape and print the data borne by the paper tape. A tape puncher is provided with a counter for counting the number of print characters in one block, a parity designating circuit for determining a parity change indicated by the value counted by the counter, and a puncher control circuit capable of adding or erasing a parity code. In response to a parity signal from the parity designating circuit, the puncher control circuit performs at least an addition or erasure of a parity code. According to the present invention, the operation of removing parity from data provided with parity, or of adding parity to data devoid of such parity, is capable of being performed by the data input/output unit itself or based on a command from a host computer.

    Brief Description of the Drawings



    [0005] Fig. 1 is a block diagram of a data input/output unit according to the present invention, Fig. 2 is a block diagram showing the constitution of a tape puncher, and Fig. 3 is a view showing the arrangement of command data recorded on a paper tape.

    Best Mode for Carrying Out the Invention



    [0006] An embodiment of the present invention will now be described in detail with reference to the drawings.

    [0007] Fig. 1 is a block diagram of a data input/output unit according to the present invention. In the Figure, numeral 1 denotes a control device, 2 a read-only memory (hereafter abbreviated to "ROM") storing a program necessary for operating the data input/output unit, 3 a random-access memory (hereafter abbreviated to "RAM") for temporarily storing data or the like read from a paper tape or the like, 4 a tape reader, 5 a tape puncher, and 6 a printer for printing data read by the tape reader, data punched by the tape puncher 5, or data received from a host computer. Numeral 7 denotes an operator's panel having character keys, numeric keys, function keys and the like. In particular, the panel has an operation changeover switch for deciding whether operation is by a command from the host computer or whether the data input/output unit of the present invention is to operate independently. Numeral 8 is an interface circuit for interfacing the host computer. Numeral 9 designates a changeover circuit.

    [0008] The unit shown in Fig. 1 is capable of performing the following operations by itself. Specifically, data entered from the operator's panel 7 can be printed out immediately by the printer and the data can be stored in the RAM 3. In addition, after the results of the print-out are checked, errors in the data stored in the RAM 3 can be corrected. After the correction operation, the data stored in the RAM 3 can be printed out and punched in a paper tape as well. Furthermore, data read from the tape reader 4 can be printed out by the printer 6 and punched in a paper tape by the tape puncher 5 to create a copy of the paper tape. These operations can be performed simultaneously.

    [0009] The data input/output unit shown in Fig. 1 can be connected to a host computer by turning on the changeover circuit 9 through manipulation of the operation changeover switch provided on the operator's panel 7, and data can be transferred from the operator's panel 7 or tape reader 4 to the host computer through the RAM 3 or by by-passing the RAM. In addition, data transferred from the host computer can be recorded on a paper tape by the tape puncher 5, and the data can also be printed out by the printer 6.

    [0010] Fig. 2 is a block diagram showing the constitution of the tape puncher 5. In the Figure, numeral 5a denotes a gate circuit, 5b a data buffer, and 5c a puncher control circuit in which there are provided a register 5ca for storing two codes, and a gate 5cb. Data from the data buffer 5b passes through the register 5ca in serial fashion. Numeral 5d denotes a punching section, 5e a start data sensing circuit, 5f an end data sensing circuit, 5g a flip-flop circuit (hereafter referred to as an "FF circuit"), 5h a counter for counting the number of print characters, and 5i a parity designating circuit. If an odd number is designated by a parity changeover signal, the circuit 5j produces a parity signal P when the counted value delivered by the counter 5h is odd. If an even number is designated by the parity changeover signal, the circuit 5j produces a parity signal P when the counted value delivered by the counter 5h is even.

    [0011] As shown in Fig. 3, one block of numerical control data recorded on a paper tape starts from an initial sequence number code and ends with an end-of-block code ";" When the start data sensing circuit 5e, which incorporates a decoder for sensing the sequence number code, senses this code, the circuit produces a "1" output. When the end data sensing circuit 5f, which incorporates a decoder for sensing the end-of-block code ";", senses this code, the circuit produces a "1" output.

    [0012] The operation of the tape puncher 5 shown in Fig. 2 will now be described.

    [0013] Described first will be a case where parity is added to data devoid of parity in data having a length of one block, with the data then being punched into a paper tape.

    [0014] Punch data from the data bus DB applied to the data buffer 5b via the gate circuit 5a is delivered to the puncher control circuit 5c. Upon sensing a sequence number code in the data received, the start data sensing circuit 5e sets the FF circuit 5g. The set signal Q enables the counter 5h, the counted value of which has been cleared. Punch data thenceforth is delivered as an output by the data buffer 5b, the data passes through the register 5ca of the puncher control circuit 5c, the output whereof is a punch command delivered to the punching section 5d. The punching section 5d punches a code, which has received the punch command, into the paper tape. The puncher control circuit 5c produces a single pulse each time an item of punch data is applied thereto. The counter 5h counts the number of pulses to count the number of print characters.

    [0015] The FF circuit 5g is reset when the end-of-block code ";" is sensed in the print data delivered by the data buffer 5b. The reset signal Q halts the counting operation performed by the counter. The value of the count recorded by the counter 5h is then applied to the parity designating circuit 5i. If the value of the count indicates that a parity code is necessary, the parity signal P is produced. This signal is delivered to the puncher control circuit 5c. When this signal is received at the puncher control circuit 5c, a space code used as a parity code is inserted between the end-of-block code ";" stored in the register 5ca and the code stored ahead of the end-of-block code. The resulting punch command is delivered to the punching section 5d.

    [0016] A paper tape punched in this manner already has a parity code added thereto.

    [0017] Described next will be a case where a paper tape is created upon removing a parity code from data provided with a parity code.

    [0018] Punch data from the data bus DB applied to the data buffer 5b via the gate circuit 5a is delivered to the puncher control circuit 5c. Upon sensing a sequence number code in the data received, the start data sensing circuit 5e sets the FF circuit 5g. The set signal Q enables the counter 5h, the counted value of which has been cleared. Punch data thenceforth is delivered as an output by the data buffer 5b, the data passes through the register 5ca of the puncher control circuit 5c, the output whereof is a punch command delivered to the punching section 5d. The punching section 5d punches a code, which has received the punch command, into the paper tape. The puncher control circuit 5c produces a single pulse each time an item of punch data is applied thereto. The counter 5h counts the number of pulses to count the number of print characters.

    [0019] The FF circuit 5g is reset when the end-of-block code ";" is sensed in the print data delivered by the data buffer 5b. The reset signal Q halts the counting operation performed by the counter. The value of the count recorded by the counter 5h is then applied to the parity designating circuit 5i. If the value of the count indicates that a parity code is necessary, the parity signal P is produced. If the indication is that no parity code is necessary, then the parity signal P is not produced. This signal is delivered to the puncher control circuit 5c. When this signal is received at the puncher control circuit 5c, the signal is discriminated. When the signal P is not produced, the gate circuit 5cb is closed to one code if the code preceding the end-of-block code is a parity code, whereby the transmission of the one code (a space code serving as a parity code) is halted. As a result, no parity code whatsoever is punched into the paper tape. The remaining end-of-block codes are punched thereafter.

    [0020] The foregoing changeover is controlled by a control signal S generated on the host computer side or by the control device 1 itself and delivered via the gate circuit 5a. The tape puncher can be made to perform one or both of the two above-described operations.

    [0021] Where the tape puncher is not provided with the parity processing function of the type described above and is to perform an ordinary punching operation, it will suffice if the transfer of data to the start data sensing circuit 5e and end data sensing circuit 5f is suspended by the control signal S generated on the host computer side or by the control device 1 itself and delivered through the gate circuit 5a.

    [0022] As described in detail above, the present invention is equipped with a processing function which not only enables a data input/output unit to operate in accordance with a command from a host computer in order to create a paper tape, print out transferred data and enter data, but which also enables the unit itself to be programmed independently to create a paper tape and print the data borne by the paper tape. The present invention therefore serves well as a transportable data input/output unit capable of servicing several numerical control devices. Furthermore, a tape puncher is provided with a counter for counting the number of print characters, a parity designating circuit for determining a parity change indicated by the value counted by the counter, and a puncher control circuit capable of adding and erasing a parity code. In response to a parity signal from the parity designating circuit, the puncher control circuit performs at least an addition or erasure of a parity code. Therefore, when punch data received from a host computer, or data read in from the tape reader 4 of the present input/output unit proper, is processed based on a command from the operator's panel or host computer and is punched out by the tape puncher, the operation of removing parity from data provided with parity, or of adding parity to data devoid of such parity, is capable of being performed by the data input/output unit itself or on the basis of a command from the host computer.

    Industrial Applicability



    [0023] According to the present invention, there can be obtained a data input/output unit which is detachable from a host computer and in which the operation of removing parity from data provided with parity, or of adding parity to data devoid of such parity, is capable of being performed by the data input/output unit itself or on the basis of a command from the host computer. The present invention therefore serves well as a transportable data input/output unit capable of servicing several numerical control devices.


    Claims

    1. A data input/output unit capable of being connected to a host computer, characterized by having, incorporated therewithin, a control device, a read-only memory storing a program necessary for operation of said data input/output unit, a random-access memory for temporarily storing data or the like read from a paper tape or the like, a tape reader for reading data contained by a tape, and a tape puncher for punching data into a paper tape, said tape puncher being provided with a counter for counting the number of print characters in one block, a parity designating circuit for determining a parity change indicated by a value counted by said counter, and a puncher control circuit capable of adding or erasing a parity code, said puncher control circuit performing at least an addition or erasure of a parity code in response to a parity signal from the parity designating circuit.
     




    Drawing













    Search report