Programmable logic controller
The programmable logic controller uses a dual communication system with parallel and serial buses to maintain communication speed and stability, addressing the issue of decreased communication speed with expanding units, ensuring efficient data transfer and controller miniaturization.
Patent Information
- Application Number
- JP2023078051
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2024-11-21
AI Technical Summary
As the number of expansion base units and I/O units increase, the communication speed between units, particularly those requiring high-speed communication, decreases, making it difficult to update data at predetermined intervals.
A programmable logic controller with a basic base unit and extension base units connected by a serial communication cable, utilizing a signal distributor with parallel and serial communication signal generation sections to manage communication between units, allowing high-speed data transfer for certain units and stable communication for others.
The solution stabilizes communication speed and prevents decreases, enabling efficient data transfer without increasing bus occupancy, thus minimizing the programmable logic controller's size and reducing latch errors.
Smart Images

Figure 2024162499000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to programmable logic controllers. [Background technology]
[0002] A programmable logic controller (PLC) is a controller that executes sequence control. Recently, programmable logic controllers have been equipped with various interfaces and communication functions, and are used to control various robots, automatic machines, etc., and for process management, etc.
[0003] For example, the prior art of Patent Document 1 describes that the PLC main body directly reads and writes data from and to each local I / O module 103 in each I / O unit via a parallel I / O bus.
[0004] Now, with reference to FIG. 4, the programmable logic controller 3 including the basic base unit 300 and the extension base units 331 and 332 will be described.
[0005] As shown in Fig. 4, the basic base unit 300 includes a control unit 301, a communication unit 302, an I / O unit (input / output unit) 303, and a master unit 311. The control unit 301 includes a CPU (Central Processing Unit) for performing various controls, arithmetic processing, and communication processing, and a memory for storing programs. The communication unit 302 is a unit for transmitting and receiving signals to and from an external device (not shown), and transmits and receives signals to and from the control unit 301 via a parallel bus 306. The external device is a device that is the object of control by the programmable logic controller, another programmable logic controller, etc. The I / O unit 303 and the master unit 311 transmit and receive signals to and from the control unit 301 via the parallel bus 306, and the remote units 351, 352, ... transmit and receive signals to and from the master unit 311 via a serial bus cable 311.
[0006] The extension base unit 331 also includes an interface (IF) unit 309 and an I / O unit 303 , and the IF unit 309 and the above-mentioned control unit 301 transmit and receive signals via a parallel bus cable 307 .
[0007] The additional base unit 332 includes an IF unit 309 and an I / O unit 303 , and the IF unit 309 of the additional base unit 331 and the IF unit 309 of the additional base unit 332 transmit and receive signals via a parallel bus cable 307 .
[0008] This allows the control unit 301 to send and receive signals to and from various units included in the basic base unit 300, the extension base unit 331, and the extension base unit 332, respectively.
[0009] In addition, in order to uniquely identify each of the multiple I / O units 303 included in each of the multiple expansion base units 331, a signal bearing the address of the parallel bus cable 307 corresponding to the I / O unit 303 is transmitted, and the signal is received by the appropriate I / O unit 303. [Prior art documents] [Patent documents]
[0010] [Patent Document 1] JP 2003-114704 A Summary of the Invention [Problem to be solved by the invention]
[0011] However, in the above-mentioned method, the amount of data transmitted through the parallel bus increases as the number of expansion base units and I / O units increases. This can cause a decrease in communication speed between units, especially between the control unit and a unit (e.g., a communication unit) that requires high-speed communication. This can make it difficult to update data at a specified interval.
[0012] In view of the above problems, an object of the present disclosure is to provide a programmable logic controller that can stabilize communication while suppressing a decrease in communication speed. [Means for solving the problem]
[0013] In order to solve the above problem, a programmable logic controller in one embodiment comprises a basic base unit and one or more expansion base units, the basic base unit including a control unit, a first unit that transmits and receives signals with the control unit, and a second unit that transmits and receives signals with the control unit and requires a lower communication speed than the first unit, the expansion base unit includes a third unit that is connected to the basic base unit by a serial communication cable and transmits and receives signals with the control unit, the control unit includes a main arithmetic unit and a signal distributor having a parallel communication signal generating unit and a serial communication signal generating unit, the parallel communication signal generating unit transmits and receives signals between the main arithmetic unit and the first unit by parallel communication, the serial communication signal generating unit transmits and receives signals between the main arithmetic unit and the second unit by serial communication, and transmits and receives signals between the main arithmetic unit and the third unit by serial communication.
[0014] Moreover, in a programmable logic controller according to one embodiment, the serial communication signal generating unit may transmit and receive signals at a faster clock when transmitting and receiving signals between the main computing unit and the second unit compared to transmitting and receiving signals between the main computing unit and the third unit.
[0015] In addition, in the programmable logic controller according to one embodiment, the first unit may be a communication unit that communicates with an external device. Effect of the Invention
[0016] According to the programmable logic controller according to the present disclosure, it is possible to stabilize communication while suppressing a decrease in communication speed. [Brief description of the drawings]
[0017] [Figure 1] FIG. 2 is a diagram illustrating a configuration example of a programmable logic controller according to an embodiment of the present disclosure. [Diagram 2]FIG. 2 is a detailed diagram of the control unit shown in FIG. [Diagram 3] 3 is a detailed diagram of the signal distributor shown in FIG. 2. [Figure 4] FIG. 1 is a diagram illustrating an example of the configuration of a conventional programmable logic controller. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings.
[0019] As shown in FIG. 1, a programmable logic controller 1 according to this embodiment of the present disclosure includes a basic base unit 100 and one or more extension base units 101.
[0020] The basic base unit 100 includes a parallel bus 103, a serial bus 104, a control unit 111, a first unit 112, an additional master unit 113, and a second unit 115. The control unit 111, the communication unit 112, the additional master unit 113, and the general-purpose unit 115 can transmit and receive data via the parallel bus 103 and the serial bus 104. The serial bus 104 transmits signals at a TTL (Transistor Transistor Logic) level. The first unit 112 transmits and receives signals to and from the control unit 111. The first unit 112 is, for example, a communication unit that communicates with an external device, but is not limited to this. The second unit 115 is a unit that requires a lower communication speed than the first unit 112, and is, for example, an input / output unit. Hereinafter, the first unit 112 will be described as a "communication unit 112". Hereinafter, the second unit 115 will be referred to as a "general-purpose unit 115". In addition, the basic base unit 100 may include multiple communication units, and the communication speed of the communications performed by the first unit 112 and the second unit 115 is determined by their respective communication specifications, not by the location where each unit is located.
[0021] The parallel bus 103 is a transmission path for transmitting signals by parallel communication.
[0022] The serial bus 104 is a transmission path for transmitting signals by serial communication.
[0023] As shown in FIG. 2, the control unit 111 includes a parallel bus 103, a serial bus 104, an external communication interface (I / F) 120, a main computing unit 121, a signal distributor 122, a ROM (Read-Only Memory) 123, and a main memory 124.
[0024] The external communication I / F 120 is an interface for the control unit 111 to communicate with other devices (e.g., higher-level devices, debug devices, etc.) The main computing unit 121 is configured by, for example, a CPU, and can execute ladder processing, various calculations, data management, etc.
[0025] The signal distributor 122 transmits the signal output by the main arithmetic unit 121 by parallel communication or serial communication. The signal output by the main arithmetic unit 121 may be a signal indicating the result of the calculation by the main arithmetic unit 121, or may be a signal received by the main arithmetic unit 121. In this case, the signal distributor 122 transmits and receives the signal by either parallel communication or serial communication depending on the unit transmitting and receiving the signal.
[0026] 3, the signal distributor 122 is connected to the main computing unit 121 by a CPU parallel bus 203, and thereby, is controlled by the main computing unit 121 and can transmit and receive signals output from the main computing unit 121. The signal distributor 122 is also connected to the main memory 124 by the CPU parallel bus 203, and thereby, the signal distributor 122 can transmit and receive signals indicating data stored in the main memory 124.
[0027] The signal distributor 122 has a parallel communication signal generating section 201 and a serial communication signal generating section 202. When transmitting and receiving a signal between the main computing unit 121 and the communication unit 112 included in the basic base unit 100, the signal distributor 122 switches so that the parallel communication signal generating section 201 transmits and receives a signal by parallel communication, and when transmitting and receiving a signal between the main computing unit 121 and the general-purpose unit 116 (third unit) included in the basic base unit 100 or the expansion base unit 101, the signal distributor 122 switches so that the serial communication signal generating section 202 transmits and receives a signal by serial communication.
[0028] That is, the parallel communication signal generation unit 201 transmits and receives signals between the main arithmetic unit 121 and the communication unit 112 by parallel communication. Specifically, the parallel communication signal generation unit 201 transmits a signal output by the main arithmetic unit 121 to the communication unit 112 via the parallel bus 103, and transmits a signal received from the communication unit 112 via the parallel bus 103 to the main arithmetic unit 121.
[0029] Here, the parallel communication signal generating unit 201 can transmit and receive signals via the parallel bus 103 only with units included in the basic base unit 100. This allows the parallel communication signal generating unit 201 to transmit and receive word-sized data at once. Therefore, the parallel communication signal generating unit 201 transmits and receives signals by parallel communication with units (e.g., communication unit 112) that need to transmit and receive large-sized data at high speed.
[0030] The serial communication signal generating unit 202 also transmits and receives signals between the main arithmetic unit 121 and a general-purpose unit 115 (second unit) included in the basic base unit 100 by serial communication. The serial communication signal generating unit 202 also transmits and receives signals between the main arithmetic unit 121 and a general-purpose unit 116 (third unit) included in the extension base unit 101 by serial communication. Specifically, the serial communication signal generating unit 202 transmits a signal output by the main arithmetic unit 121 to the general-purpose unit 115 via the serial bus 104, and transmits a signal received from the general-purpose unit 115 via the serial bus 104 to the main arithmetic unit 121. The serial communication signal generating unit 202 transmits a signal output by the main arithmetic unit 121 to the general-purpose unit 116 via the serial bus 104 and the extension cable 102, and transmits a signal received from the general-purpose unit 116 via the serial bus 104 and the extension cable 102 to the main arithmetic unit 121. The extension cable 102 is a serial communication cable.
[0031] Here, the serial communication signal generating unit 202 can transmit and receive signals by serial communication with units included in each of the basic base unit 100 and the extension base unit 101. It should be noted that it is more difficult to transmit and receive large amounts of large-sized data in a short period of time with serial communication than with parallel communication. Therefore, the serial communication signal generating unit 202 transmits and receives signals by serial communication with units that do not need to transmit and receive large-sized data at high speed (for example, the general-purpose unit 115).
[0032] In addition, when transmitting and receiving signals between the main calculator 121 and the general-purpose unit 115 (second unit) included in the basic base unit 100, the serial communication signal generating unit 202 transmits and receives signals at a faster clock than when transmitting and receiving signals between the main calculator 121 and the general-purpose unit 116 (third unit) included in the expansion base unit 101.
[0033] 2 again, the ROM 123 stores program data such as a ladder, constants, etc. used by the main computing unit 121 to execute calculations. The main memory 124 can store data being calculated by the main computing unit 121, and communication data being transmitted / received by the external communication I / F 120, or data that has been transmitted / received and is temporarily waiting.
[0034] 1 again, the communication unit 112 transmits and receives signals to and from the control unit 111. Specifically, the communication unit 112 is connected to the parallel bus 103 and serial bus 104 included in the basic base unit 100. For example, the communication unit 112 has a built-in parallel bus and serial bus, and the parallel bus and serial bus are respectively connected to the parallel bus 103 and serial bus 104 provided in the basic base unit 100. This allows the communication unit 112 to transmit and receive signals to and from the control unit 111 by parallel communication via the parallel bus 103. Also, the communication unit 112 can transmit and receive signals to and from the control unit 111 by serial communication via the serial bus 104.
[0035] The expansion master unit 113 is connected to the parallel bus 103 and serial bus 104 included in the basic base unit 100. Specifically, the expansion master unit 113 has a built-in parallel bus and serial bus, which are respectively connected to the parallel bus 103 and serial bus 104 provided in the basic base unit 100. This allows the expansion master unit 113 to transmit and receive signals to and from the control unit 111 by parallel communication via the parallel bus 103. Also, the general-purpose unit 115 can transmit and receive signals to and from the control unit 111 by serial communication via the serial bus 104.
[0036] The additional master unit 113 is also connected to the additional slave unit 114, which will be described in detail later, by the additional cable 102, which is a serial cable, and can thereby transmit and receive signals to and from the additional slave unit 114 via the additional cable 102. The additional master unit 113 converts the TTL level signal transmitted by the serial bus 104 into a differential signal and transmits the differential signal to the additional slave unit 114 via the additional cable 102. If the length of the additional cable 102 is long, the TTL level signal is significantly affected by external noise. Therefore, by converting the TTL level signal into a differential signal, the additional master unit 113 can transmit a signal to the additional slave unit 114 while suppressing quality degradation due to external noise even if the additional cable 102 is long.
[0037] The general-purpose unit 115 is a unit that requires a lower communication speed than the communication unit 112. The general-purpose unit 115 of the basic base unit 100 is connected to the parallel bus 103 and serial bus 104 included in the basic base unit 100. Specifically, the general-purpose unit 115 has a built-in parallel bus and serial bus, and the parallel bus and serial bus are respectively connected to the parallel bus 103 and serial bus 104 provided in the extension base unit 101. This allows the general-purpose unit 115 to transmit and receive signals to and from the control unit 111 by parallel communication via the parallel bus 103. Also, the general-purpose unit 115 can transmit and receive signals to and from the control unit 111 by serial communication via the serial bus 104.
[0038] The additional base unit 101 is connected to the basic base unit 100 by an additional cable 102 (serial communication cable), and includes a general-purpose unit 116 (third unit) that transmits and receives signals to and from the control unit 111. Specifically, the additional base unit 101 includes an additional base unit 101a and an additional base unit 101b, and each of the additional base units 101a and 101b has a parallel bus 103, a serial bus 104, an additional slave unit 114, and a general-purpose unit 116.
[0039] The additional slave unit 114 is connected to the additional master unit 113 by an additional cable 102, and can thereby transmit and receive signals to and from the additional master unit 113 by serial communication via the additional cable 102. The additional slave unit 114 is also connected to a parallel bus 103 and a serial bus 104 included in an additional base unit 101 having the additional slave unit 114.
[0040] The additional slave unit 114 included in the additional base unit 101a and the additional slave unit 114 included in the additional base unit 101b are connected by an additional cable 102. As a result, the additional slave unit 114 included in the additional base unit 101a and the additional slave unit 114 included in the additional base unit 101b transmit and receive signals to each other by serial communication via the additional cable 102.
[0041] In this example, since the expansion base unit 101b is the base unit of the final stage in the programmable logic controller 1, a termination resistor 117 is provided in the port of the expansion slave unit 114 of the expansion base unit 101b for connection to the expansion slave unit of the next stage. Note that the expansion slave unit 114 of the expansion base unit 101b may be further connected to a different expansion base unit, and in such a configuration, a termination resistor 117 is provided in the port of the expansion slave unit of the final stage for connection to the expansion slave unit of the next stage.
[0042] Further, the additional slave unit 114 of the additional base unit 101a receives a differential signal transmitted from the additional master unit 113 via the additional cable 102. Then, the additional slave unit 114 of the additional base unit 101a can transmit the received differential signal to the additional slave unit 114 of the additional base unit 101b via the additional cable 102. Further, the additional slave unit 114 of the additional base unit 101a can convert the received differential signal into a TTL level signal and transmit the TTL level signal to the general-purpose unit 116 of the additional base unit 101a via the serial bus 104. That is, differential signals are transmitted and received between the basic base unit 100 and the additional base unit 101a, and between the additional base unit 101a and the additional base unit 101b. Furthermore, in transmission and reception via the serial bus 104 in each of the basic base unit 100, the extension base unit 101a, and the extension base unit 101b, a TTL level signal is transmitted and received.
[0043] In addition, the additional master unit 113 converts a TTL level signal into a differential signal, and the additional slave unit 114 converts the differential signal received via the additional cable 102 into a TTL level signal, so that the time required for these two conversions varies when receiving signals between the basic base unit 100 and the additional base unit 101a. The same is true for sending and receiving signals between the additional base unit 101a and the additional base unit 101b.
[0044] The general-purpose unit 116 of the extension base unit 101 is connected to the serial bus 104 provided in the extension base unit 101. Specifically, the general-purpose unit 116 has a built-in serial bus, and the serial bus is connected to the serial bus 104 provided in the extension base unit 101. This allows the general-purpose unit 116 to transmit and receive signals to and from the extension slave unit 114 by serial communication via the serial bus 104.
[0045] As described above, the programmable logic controller 1 according to this embodiment includes a basic base unit 100 and one or more extension base units 101. The basic base unit 100 includes a control unit 111, a communication unit 112 that transmits and receives signals to and from the control unit 111, and a general-purpose unit 115 that transmits and receives signals to and from the control unit 111 and requires a lower communication speed than the communication unit 112. The extension base unit 101 is connected to the basic base unit 100 by a serial communication cable (extension cable 102), and includes a general-purpose unit 116. The control unit 111 includes a main arithmetic unit 121 and a signal distributor 122 having a parallel communication signal generating unit 201 and a serial communication signal generating unit 202. The parallel communication signal generating unit 201 transmits and receives signals between the main calculator 121 and the communication unit 112 via parallel communication, and the serial communication signal generating unit 202 transmits and receives signals between the main calculator 121 and a general-purpose unit 115 (second unit) included in the basic base unit 100 via serial communication, and transmits and receives signals between the main calculator 121 and a general-purpose unit 116 included in the expansion base unit 101.
[0046] As a result, signals are transmitted and received by parallel communication to the communication unit 112, which needs to transmit and receive large data at high speed, and signals are transmitted and received by serial communication to the general-purpose unit 115, which does not need to transmit and receive large data at high speed. Therefore, the programmable logic controller 1 can suppress a decrease in communication speed while stabilizing communication. In addition, since a decrease in communication speed can be suppressed without increasing the occupancy rate of the parallel bus 103, miniaturization of the programmable logic controller 1 is not easily hindered.
[0047] In addition, in the programmable logic controller 1 according to this embodiment, when transmitting and receiving signals between the main arithmetic unit 121 and the general-purpose unit 115 (second unit) included in the basic base unit 100, the serial communication signal generating unit 202 transmits and receives signals at a higher clock speed than when transmitting and receiving signals between the main arithmetic unit 121 and the general-purpose unit 116 (third unit) included in the extension base unit 101. In general, the higher the clock speed of serial communication, the more likely it is that latch errors will occur due to variations in signal conversion. However, signals are not converted in transmitting and receiving signals between the main arithmetic unit 121 and the general-purpose unit 115 (second unit) in the control unit 111 included in the basic base unit 100, so latch errors do not occur, and therefore the clock speed of serial communication can be increased to speed up communication. On the other hand, signals are converted in communication between the main arithmetic unit 121 in the control unit 111 and the general-purpose unit 116 (third unit) of the extension base unit 101, so the clock speed of serial communication can be reduced to suppress latch errors.
[0048] Although the above-mentioned embodiment has been described as a representative example, it is obvious to those skilled in the art that many modifications and substitutions can be made within the spirit and scope of the present disclosure. Therefore, the present invention should not be interpreted as being limited by the above-mentioned embodiment, and various modifications or changes can be made without departing from the scope of the claims. For example, it is possible to combine multiple building blocks shown in the configuration diagram of the embodiment into one, or to divide one building block. [Explanation of symbols]
[0049] 1 Programmable Logic Controller 100 Basic Base Unit 101, 101a, 101b Expansion Base Unit 102 Additional cable 103 Parallel Bus 104 Serial Bus 111 Control Unit 112 First unit (communication unit) 113 Expansion master unit 114 Expansion slave unit 115 Second Unit (General Purpose Unit) 116 Third Unit (General Purpose Unit) 117 Termination Resistor 120 External communication interface 121 Main Calculator 122 Signal splitter 123 ROM 124 Main memory 201 Parallel communication signal generation unit 202 Serial communication signal generator 203 CPU parallel bus
Claims
1. A basic base unit and one or more extension base units are provided. The basic base unit includes a control unit, a first unit for transmitting and receiving signals to and from the control unit, and a second unit for transmitting and receiving signals to and from the control unit and requiring a communication speed lower than that of the first unit, the extension base unit includes a third unit connected to the basic base unit by a serial communication cable and transmitting / receiving signals to / from the control unit; the control unit includes a main arithmetic unit and a signal distributor having a parallel communication signal generating unit and a serial communication signal generating unit; the parallel communication signal generation unit transmits and receives signals between the main computing unit and the first unit by parallel communication; The serial communication signal generation unit transmits and receives signals between the main arithmetic unit and the second unit, and transmits and receives signals between the main arithmetic unit and the third unit, via serial communication.
2. 2. The programmable logic controller according to claim 1, wherein the serial communication signal generating unit transmits and receives signals at a faster clock when transmitting and receiving signals between the main computing unit and the second unit than when transmitting and receiving signals between the main computing unit and the third unit.
3. 3. The programmable logic controller according to claim 1, wherein the first unit is a communication unit for communicating with an external device.
Citation Information
Patent Citations
Digital controller
JP1990264351A
Programmable controller device
JP2006294007A
Programmable logic controller system
JP2003114704A
Cited By
Separator, electrochemical cell, stack and device
CN121709653A
