HIGH-SPEED INPUT/OUTPUT MODULE AND PLC APPARATUS

Abstract: A PLC apparatus that performs operation processing of a sequence program using a micro-processor. The PLC ap­ paratus has a PLC control unit (10) and a high-speed input/output module (20) that performs logic operation at high speeds in response to input signals from an external unit and that produces the result of logic operation to an external unit. Therefore, external signals can be processed at high speeds without the need for any particular processor.

Description: TECHNICAL FIELD The present invention relates to a PLC device (programmable logic control device), and more specifically, to a PLC device provided with a high speed input/output module capable of processing an input/output signal at a high speed. BACKGROUND ART A PLC device processes a sequence program by receiving an input signal and outputs an output signal as a result thereof, and repeatedly executes this cycle. A scanning time (process time) of the sequence program is usually about several milliseconds to one hundred milliseconds, and most controls are executed during that time, but some controls must be partially processed at a very high speed, e.g., in a very short time such as one millisecond or less. Conventionally, a special unit is provided for the high speed processing, wherein a signal is transmitted between the special unit and a PLC device for effecting an overall control. This special control unit, however, is cumbersome as a system and requires a large space for the installation. Further, in interface between the PLC device and the special unit is complex. US-A-4117317, over which the present invention is characterised, discloses a digital controller with handwired backup connecting terminals. JP-A-58186804 discloses a controller with some high speed handwired input/output circuits. An object of the present invention is to solve the above problems and to provide a PLC device provided with a high speed input/output module capable of processing an input/output signal at a high speed without using a special high speed processing unit. To solve the above problems, in accordance with the present invention, there is provided a high speed input/output module used for a PLC device or a numerical control apparatus, comprising: a logical operation element which reads an external input signal and an output from the PLC device or the numerical control apparatus, and outputs a specific output pattern in accordance with the external input signal and the output, and inputs the specific output pattern to the PLC device or numerical control apparatus, the logical operation element comprising: an input circuit for receiving the external input signal; characterised by: the logical operation element being programmable and further comprising: a first latch, connected to the input circuit, for storing the external input signal; a programmable device, connected to the first latch, for outputting the specific output pattern; a second latch, connected to the programmable device, for storing the specific output pattern ; and an output circuit, connected to the second latch, for outputting the specific output pattern. The logical operation element can independently execute a simple operation process, and processes an input/output which must be processed at a high speed, an externally outputs same. When necessary, the element later transmits it to a PLC control unit. This high speed module is coupled with the PLC device, a numerical control apparatus or the like, and processes an external signal which must be processed at a high speed. In addition, an arrangement of the PLC device including this high speed module processes the external signal which must be processed at a high speed, without the need for a special processing unit. Fig. 1 is a block diagram of an overall PLC device of an embodiment of the present invention; and Fig. 2 is a detailed diagram of a high speed input/output module. An embodiment of the present invention will be hereinafter described in detail with reference to the drawings. FIG. 1 is a block diagram of an overall PLC device of an embodiment of the present invention, wherein 10 designates a PLC control unit as a center for controlling the PLC device; 20 designates a high speed input/output module for processing an input/output signal to be processed at a high speed, which will be described later in detail; 41 designates an input module for receiving an input signal from a switch or the like and applies the input signal to the PLC control unit through an I/O bus; and 42 designates an output module for receiving an output signal from the PLC control unit 10 through the I/O bus 40, and outputs same to energize a lamp, a solenoid and the like. Next, the interior of the PLC control unit 10 will be described. Designated at 11 is a microprocessor for controlling the overall PLC device; designated at 12 is a ROM in which a system program is stored, the microprocessor 11 controlling the PLC device in accordance with the system program in the ROM 12; designated at 13 is a RAM for a workpiece in which data and the like is stored; and designated at 14 is a RAM in which a sequence program and the like for a sequence processing is stored. The sequence program is used for regulating the operation of a machine which is actually controlled by the PLC device, and can be changed in midcourse in accordance with a change in the operation of the machine. The RAM 14 is backed up by a battery 15 to maintain the sequence program when a power supply is turned off. A usual signal, which need not be processed at a high speed, is received from the input module 41, processed in accordance with the sequence program, and output from the output module 42. A signal to be processed at a high speed is input to the high speed input/output module 20, processed in the interior thereof, and output from the high speed input and output module 20. If necessary, a result of the output is later transmitted to the PLC control unit 10. For example, the signal to be processed at a high speed is a signal to be output in correspondence with a signal received from an external absolute encoder mounted on a shaft rotating at a high speed. Next, the high speed input/output module 20 will be described in detail. FIG. 2 is a detailed diagram of the high speed input/output module 20, wherein 21 designates a buffer as an interface with the I/O bus 40; 22 designates a bus buffer for applying an input signal and the like to the I/O bus 40 through the bus buffer 21; 23 designates a latch for temporarily storing a signal from the PLC control unit 10; 24 designates a latch for storing an input signal and a signal from the latch 23 in synchronism with a clock of a clock circuit 25; 26 designates an EPROM programmed to output a specific output pattern to a certain input to thereby execute a logic operation; 27 designates a latch for storing an output from the EPROM 26 in synchronism with a clock of the clock circuit 25; 28 designates an input circuit comprising a receiver; and 29 designates an output circuit comprising a driver. Next, the operation of the high speed input/output module 20 will be described. When a signal to be processed at a high speed is received by the input circuit 28, the signal is applied to the EPROM 26 through the latch 24, and thus a logical operation predetermined by a program is executed. For example, the EPROM 26 receives a signal from the absolute encoder mounted on the shaft rotating at a high speed, as described above, and outputs a pattern signal corresponding to that signal. The output signal from the EPROM 26 is stored in the latch 27 and externally output from the output circuit 29 for controlling an external apparatus at a high speed. If the output signal is required by the PLC control unit 10, it is transmitted thereto through the bus buffers 22 and 21. A signal which need not be processed at a high speed is received by the input circuit 28 and transmitted to the PLC control unit 10 as it is, through the bus buffers 22, 21. Conversely, the usual output is externally output from the output circuit 29 through the bus buffer 21 and the latch 23. Although the high speed logical operation element is described as an EPROM in the above description, a PLD (programmable logic device) or the like, for example, may be used instead of the EPROM. A RAM also may be used instead of the EPROM, and when a RAM is used, a greater flexibility can be provided because a logical operation to be processed at a high speed, an input signal, and the like can be rewritten in response to a command from the PLC control unit 10. According to the present invention, as described above, since a high speed input/output module is provided which includes a logical operation element capable of processing an input/output signal at a high speed, the high speed input/output module can be coupled with a PLC device or the like, instead of a special high speed processing unit, to process an external signal at a high speed. In addition, since the PLC device includes the high speed input/output module provided with the logical operation element capable of processing an input/output signal at a high speed, an external signal to be processed at a high speed can be processed without using a special high speed processing unit.

Claims: A high speed input/output module (20) used for a programmable logic control device, called a PLC device, or a numerical control apparatus, comprising: a logical operation element (20) which reads an external input signal and an output from the PLC device or the numerical control apparatus, and outputs a specific output pattern in accordance with the external input signal and the output, and inputs the specific output pattern to the PLC device or numerical control apparatus, the logical operation element (20) comprising: an input circuit (28) for receiving the external input signal; characterised by: the logical operation element being programmable and further comprising: a first latch (24), connected to the input circuit, for storing the external input signal; a programmable device (26), connected to the first latch, for outputting the specific output pattern ; a second latch (27), connected to the programmable device, for storing the specific output pattern; and an output circuit (29), connected to the second latch, for outputting the specific output pattern. A high speed input/output module (20) according to claim 1, wherein the programmable device is in EPROM. A high speed input/output module (20) according to claim 1, wherein the programmable device is a programmable logic device, called a PLD. A high speed input/output module (20) according to claim 1, wherein the programmable device is an RAM. A PLC device executing a logical operation process of a sequence program by a microprocessor, characterised by including a high-speed input/output module (20) according to any of claims 1 to 4 and further comprising: at least one input module (41), connected to the PLC for receiving signals which must not be executed at high speed; and at least one output module (42), connected to the PLC for outputting signals at low speed from the programmable logic control means.

Inventors: YAMAUCHI TAKASHI FANUC MANSION, YAMAUCHI, TAKASHI FANUC MANSION HARIMOMI 6-202
Applicants: FANUC LTD, FANUC LTD.
Application year: 1988
Main classification: G05B19
IPC codes: G05B19, G06F13