Industrial controller extended input and output module circuit
By using the SPI interface and digital logic chip in the industrial controller, the problem of high cost of expansion modules in the existing technology is solved, low-cost, easy-to-connect and high-stability expansion module interaction is achieved, and the burden on the main control chip is reduced. Dependencies and CPU resource usage.
Patent Information
- Application Number
- CN202322838666.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2033-10-20
AI Technical Summary
When upgrading the input and output signals of existing industrial controllers, special interfaces and protocols are required between the expansion modules and the main controller, resulting in high costs and expensive expansion modules.
The SPI interface is used as the interactive interface protocol between the expansion module and the main controller, and the module model identification and function output are realized through the digital input signal acquisition circuit and the numerical signal output circuit, reducing the dependence on the main control chip, and using the SPI interface for data interaction.
It achieves easy connection, easy interaction and low cost of expansion modules, reduces software and hardware costs, and improves real-time control and stability.
Smart Images

Figure CN221650829U
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of controller expansion, in particular to an industrial controller expansion input and output module circuit. Background Art
[0002] The current industrial equipment is becoming more and more automated, and the continuous iteration of advanced processes has led to a continuous increase in the input and output signals of industrial controllers during later upgrades. This has resulted in the hardware planned at the beginning not being able to meet the requirements of process upgrades in the later stages. Therefore, in the early stages of designing industrial controllers, it is necessary to consider how to expand the corresponding input and output modules in the later stages.
[0003] There are many ways to expand traditional industrial controllers. The most direct way is to reserve direct digital points on the initial interface of the controller and then directly connect the expansion circuit later. There are also similar buses, such as CANopen bus based on CAN, ModbusRTU based on RS45, EtherCAT real-time bus based on Ethernet, etc.
[0004] Later upgrades of industrial equipment are often upgraded on the basis of the same equipment platform. Connecting new expansion modules behind the main controller and using buses such as CANopen, ModbusRTU or EtherCAT is indeed a relatively stable and convenient expansion method. However, both the expansion module and the main controller require dedicated interfaces to interact using specified protocols. This results in not only the main controller requiring additional interface and protocol docking costs, but the expansion module also needs to have interface and protocol interaction functions, so this type of expansion module is also relatively expensive. Utility Model Content
[0005] In order to solve the defects and shortcomings of the prior art, the purpose of the utility model is to provide an industrial controller expansion input and output module circuit with a simple structure, reasonable design and easy use. It adopts the SPI interface as the interactive interface protocol of the expansion module. Under the premise of taking into account the functional diversity, the expansion module is easy to connect, easy to interact and low cost.
[0006] To achieve the above-mentioned purpose, the technical solution adopted by the utility model is: it comprises SPI interface 1, SPI interface 2, power supply filter circuit, resistor 17, resistor 18, resistor 20 to resistor 24; pin 9 of the SPI interface 1 is connected to the voltage output end of the power supply filter circuit through resistor 17; pins 2, 4, 6, 8 and 10 of the SPI interface 1 are respectively connected to resistor 20 to resistor 24, and resistor 20, resistor 21, resistor 23 and resistor 24 are connected to the power supply; pin 10 of the SPI interface 2 is connected to resistor 18 and a capacitor; a digital input signal acquisition circuit and a numerical signal output circuit are connected between the SPI interface 1 and the SPI interface 2.
[0007] Preferably, the digital input signal acquisition circuit is composed of multiple 74HC165 single-chip microcomputers.
[0008] Preferably, the numerical signal output circuit is composed of a plurality of 74HC595 single-chip microcomputers.
[0009] Preferably, the digital input signal acquisition circuit outputs the module model identification value and executes output via a numerical signal output circuit.
[0010] After adopting the above structure, the utility model has the following beneficial effects: it adopts the SPI interface as the interactive interface protocol of the expansion module; under the premise of taking into account the functional diversity, the expansion module is easy to connect, easy to interact, and low-cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the utility model or the technical solutions in the prior art, the utility model is described in detail through the following specific implementations and drawings.
[0012] Figure 1 It is a schematic diagram of the structure of the utility model;
[0013] Figure 2 This is a schematic diagram of the structure of a digital input signal acquisition circuit B of the utility model;
[0014] Figure 3 This is a schematic diagram of the structure of the numerical signal output circuit C of the utility model;
[0015] Figure 4 This is the main control chip connection circuit diagram of the utility model;
[0016] Description of the accompanying drawings: SPI interface 1 JP1, SPI interface 2 JP2, power supply filter circuit A, resistor 17 R17, resistor 18 R18, resistor 20 to resistor 24 R20-R24. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solution and advantages of the utility model clearer, the utility model is described below by specific embodiments shown in the accompanying drawings. However, it should be understood that these descriptions are only exemplary and are not intended to limit the scope of the utility model. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the utility model.
[0018] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the scheme according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.
[0019] See Figure 1-Figure 4 As shown, this specific implementation adopts the following technical scheme: it includes SPI interface 1 JP1, SPI interface 2 JP2, power supply filter circuit A, resistor 17 R17, resistor 18 R18, resistor 20 to resistor 24 R20-R24; the 9th pin of the SPI interface 1 JP1 is connected to the voltage output terminal VDD of the power supply filter circuit A through resistor 17 R17; the 2nd, 4th, 6th, 8th and 10th pins of the SPI interface 1 JP1 are respectively connected to resistor 20 to resistor 24 R20-R24, and resistor 20 R20, resistor 21 R21, resistor 23 R23 and resistor 24 R24 are connected to power supply VDD; the 10th pin of the SPI interface 2 JP2 is connected to resistor 18 R18 and capacitor C58; a digital input signal acquisition circuit B and a numerical signal output circuit C are connected between the SPI interface 1 JP1 and the SPI interface 2 JP2.
[0020] Among them, the digital input signal acquisition circuit B is composed of multiple 74HC165 single-chip microcomputers; the numerical signal output circuit C is composed of multiple 74HC595 single-chip microcomputers; the output module signal recognition value of the digital input signal acquisition circuit B is executed and output through the numerical signal output circuit C.
[0021] The working principle of this specific implementation is as follows: the expansion module uses the first 74HC165 as the module model identification. The first 74HC165 will give a unique model identification value according to the functional configuration of the expansion module. The main controller needs to read this value to initialize the function of the expansion module. At the same time, the last 74HC595 is used as the module working indicator operation class. When the operating indicator light flashes, it means that the module is working normally. Other input and output functions are composed of multiple 74HC165 and 74HC595. If necessary, an expansion main control chip can also be added to achieve more complex functions, such as analog input and output.
[0022] After adopting the above structure, the beneficial effects of this specific implementation are: since the expansion is completely operated by digital logic chips, unless special functions are expanded, there is no need to add a main control chip, and there is no need to write a bus docking protocol when using it, so the software and hardware costs are extremely low. During use, the main controller can use SPIDMA plus a periodic trigger method to achieve 200US cycles to perform signal acquisition and signal output for multiple expansion modules at the same time, and the CPU resource occupation of the main controller is extremely low. It only needs to read the data of the entire cascade expansion during the power-on process and initialize the module model, and it can work normally, stably and reliably, and the control real-time performance is high.
[0023] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention.
[0024] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. An industrial controller expansion input and output module circuit, characterized in that: It comprises SPI interface 1, SPI interface 2, power supply filter circuit, resistor 17, resistor 18, resistor 20 to resistor 24; pin 9 of the SPI interface 1 is connected to the voltage output end of the power supply filter circuit through resistor 17; pins 2, 4, 6, 8 and 10 of the SPI interface 1 are respectively connected to resistor 20 to resistor 24, and resistor 20, resistor 21, resistor 23 and resistor 24 are connected to the power supply; pin 10 of the SPI interface 2 is connected to resistor 18 and a capacitor; a digital input signal acquisition circuit and a numerical signal output circuit are connected between the SPI interface 1 and the SPI interface 2.
2. The industrial controller expansion input and output module circuit according to claim 1, characterized in that: The digital input signal acquisition circuit is composed of a plurality of 74HC165 single chip microcomputers.
3. The industrial controller expansion input and output module circuit according to claim 1, characterized in that: The numerical signal output circuit is composed of a plurality of 74HC595 single chip microcomputers.
4. The industrial controller expansion input and output module circuit according to claim 1, characterized in that: The digital input signal acquisition circuit outputs the module model identification value and performs output via the numerical signal output circuit.
