CN114895614A - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
CN114895614A
CN114895614A CN202210823361.0A CN202210823361A CN114895614A CN 114895614 A CN114895614 A CN 114895614A CN 202210823361 A CN202210823361 A CN 202210823361A CN 114895614 A CN114895614 A CN 114895614A
Authority
CN
China
Prior art keywords
switching value
port
sub
microcontroller
ports
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210823361.0A
Other languages
Chinese (zh)
Other versions
CN114895614B (en
Inventor
韩景超
董丽佳
郭宏伟
付建伟
沙宏磊
俞天野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Feixuan Technology Co ltd
Original Assignee
Tianjin Feixuan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin Feixuan Technology Co ltd filed Critical Tianjin Feixuan Technology Co ltd
Priority to CN202210823361.0A priority Critical patent/CN114895614B/en
Publication of CN114895614A publication Critical patent/CN114895614A/en
Application granted granted Critical
Publication of CN114895614B publication Critical patent/CN114895614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24215Scada supervisory control and data acquisition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention provides a programmable controller, which relates to the technical field of electronic power and comprises the following components: a plurality of input ports of the microcontroller are connected with the switching value input module, a plurality of output ports of the microcontroller are connected with the switching value output module, a plurality of standby ports of the microcontroller are respectively connected with the switching value input module and the switching value output module through relays, the switching value input module is connected with the switching value output module, and the first pin connector is respectively connected with the switching value input module and the switching value output module through relays; the microcontroller is used for determining a target port according to the first level signal group and the second level signal group; and the microcontroller is also used for writing the configuration information of the target port into the corresponding target standby port after the target port is determined, so that the technical problems that manual troubleshooting and manual interface mode configuration are required when the digital quantity port of the programmable controller fails are solved.

Description

Programmable controller
Technical Field
The invention relates to the technical field of electronic power, in particular to a programmable controller.
Background
A Programmable Logic Controller (PC) or PLC is an electronic system with digital operation, and is designed for application in industrial environments. It employs a programmable memory for storing instructions for logical operations and sequence control, timing, counting, and arithmetic operations, and controls various types of machinery or manufacturing processes via digital or analog input (I) and output (O) ports.
The digital quantity port of the current programmable controller has the conditions of single-point or multi-point damage, protection shutdown and the like, but whether the port is damaged or not needs to be checked manually, and even if the damaged port is determined and a standby port is available, the port definition needs to be reconfigured to work continuously, and the program is burned again and the line is changed. And sometimes, when the spare port is used, the new module is required to be added because of the incompatibility of input and output characteristics. This causes a delay in the field recovery, which affects the field work efficiency.
No effective solution has been proposed to the above problems.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a programmable controller, so as to alleviate the technical problem that when a digital port of the programmable controller fails, a manual troubleshooting and a port programming reconfiguration procedure are required.
In a first aspect, an embodiment of the present invention provides a programmable controller, including: the device comprises a microcontroller, a switching value input module, a switching value output module and a first pin connector, wherein a plurality of input ports of the microcontroller are connected with the switching value input module through resistors, a plurality of output ports of the microcontroller are connected with the switching value output module, a plurality of standby ports of the microcontroller are respectively connected with the switching value input module and the switching value output module through relays, the switching value input module is connected with the switching value output module, and the first pin connector is respectively connected with the switching value input module and the switching value output module through relays; the microcontroller is used for determining a target port according to a first level signal group and a second level signal group, wherein the first level signal group comprises output level signals of each output port, the second level signal group comprises input level signals of a plurality of input ports and a plurality of standby ports corresponding to each output port, and the target port is a port with a fault in the plurality of input ports, the plurality of output ports and the plurality of standby ports; the microcontroller is further configured to write configuration information of the target port into a corresponding target backup port after the target port is determined, where the target backup port is a port other than the target port in the backup ports.
Further, the switching value output module includes: a first resistor group, a buffer, a plurality of output port switching value output circuits, a plurality of standby port switching value output circuits and a second pin connector, wherein the first resistor group comprises a plurality of first sub-resistors, the number of the output port switching value output circuits is the same as that of the output ports of the microcontroller, the number of the standby port switching value output circuits is the same as that of the standby ports of the microcontroller, one output port switching value output circuit is respectively connected with one first sub-resistor, the second pin connector, the buffer and the switching value input module, one standby port switching value output circuit is connected with the buffer through a resistor, and a spare port switching value output circuit is respectively connected with the first pin connector and the switching value input module.
Further, the output port switching value output circuit and the spare port switching value output circuit each include: the first optical coupler is connected with the second sub-resistor and the MOS tube respectively, the MOS tube is connected with the first sub-relay, the second sub-resistor, the third sub-resistor and the first diode respectively, the second sub-resistor is connected with the third sub-resistor and the first diode in parallel, any two MOS tubes are connected with one another, and the third sub-resistor and the first diode are connected with the first sub-relay.
Further, the switching value input module includes: a logic chip, a plurality of input port switching value input circuits, a plurality of standby port switching value input circuits and a third pin connector, wherein the number of the input port switching value input circuits is the same as the number of the input ports of the microcontroller, the number of the standby port switching value input circuits is the same as that of the standby ports of the microcontroller, the logic chip is connected with a plurality of input ports of the microcontroller and a plurality of standby ports of the microcontroller through resistors, and the logic chip is respectively connected with the plurality of input port switching value input circuits and a plurality of standby port switching value input circuits, the plurality of input port switching value input circuits are connected to the third pin connector, and the plurality of spare port switching value input circuits are connected to the first pin connector.
Further, the input port switching value input circuit and the standby port switching value input circuit each include: the second optical coupler is respectively connected with the fourth sub-resistor, the fifth sub-resistor and the logic chip, the fourth sub-resistor is connected with the logic chip, and the fifth sub-resistor is connected with the second sub-relay.
Further, second optical couplers in the input port switching value input circuits are connected; and the second optical couplers in the switching value input circuits of the plurality of spare ports are connected.
Further, the programmable controller further comprises: and the number of the third sub-relays is the same as that of the standby ports of the microcontroller, and one third sub-relay is respectively connected with the first sub-relay in the standby switching value output circuit and the second sub-relay in the standby port switching value input circuit corresponding to the first pin connector and the same standby port.
Further, the programmable controller further comprises: the self-checking module is connected with the microcontroller; the self-checking module is used for carrying out state detection on the switching value input module and the switching value output module and determining whether the switching value input module and the switching value output module are abnormal or not.
Further, the self-test module comprises: the self-checking module comprises: a plurality of self-test circuits, wherein one self-test circuit comprises a second diode and a fourth sub-relay.
Further, the microcontroller is further configured to send the port number of the target port and the port number of the target backup port to a display device.
In an embodiment of the present invention, a programmable controller includes: the device comprises a microcontroller, a switching value input module, a switching value output module and a first pin connector, wherein a plurality of input ports of the microcontroller are connected with the switching value input module through resistors, a plurality of output ports of the microcontroller are connected with the switching value output module, a plurality of standby ports of the microcontroller are respectively connected with the switching value input module and the switching value output module through relays, the switching value input module is connected with the switching value output module, and the first pin connector is respectively connected with the switching value input module and the switching value output module through relays; the microcontroller is used for determining a target port according to a first level signal group and a second level signal group, wherein the first level signal group comprises output level signals of each output port, the second level signal group comprises input level signals of a plurality of input ports and a plurality of standby ports corresponding to each output port, and the target port is a port with a fault in the plurality of input ports, the plurality of output ports and the plurality of standby ports; the microcontroller is further configured to write configuration information of the target port into a corresponding target standby port after the target port is determined, wherein the target standby port is a port other than the target port in the standby port, and the purpose of determining a faulty port through an output level signal of the output port and an input level signal of the input port of the microcontroller is achieved, so that the technical problem that manual troubleshooting is required when a digital quantity port of the programmable controller fails is solved, and therefore the technical effects of improving the working efficiency and the use experience of workers are achieved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of a programmable controller according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another programmable controller according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
according to an embodiment of the present invention, an embodiment of a programmable controller is provided, and it should be noted that fig. 1 is a schematic diagram of a programmable controller according to an embodiment of the present invention, as shown in fig. 1, the programmable controller includes: the device comprises a microcontroller 10, a switching value input module 20, a switching value output module 30 and a first pin connector 40, wherein a plurality of input ports of the microcontroller are connected with the switching value input module through resistors, a plurality of output ports of the microcontroller are connected with the switching value output module, a plurality of standby ports of the microcontroller are respectively connected with the switching value input module and the switching value output module through relays, the switching value input module is connected with the switching value output module, and the first pin connector is respectively connected with the switching value input module and the switching value output module through relays;
the microcontroller is configured to determine a first target port of the input ports and/or a second target port of the output ports according to the output level signals of the output ports and the input level signals of the input ports corresponding to the output ports, respectively, where the target port is a failed port;
the microcontroller is further configured to write configuration information of the target port into a corresponding target backup port after the target port is determined, where the target backup port is a port other than the target port in the backup ports.
It should be further noted that the microcontroller is further configured to send the port number of the target port and the port number of the target backup port to the display device, so that the worker can clearly know the failed port and the backup port corresponding to the failed port through the display device.
In an embodiment of the present invention, a programmable controller includes: the device comprises a microcontroller, a switching value input module, a switching value output module and a first pin connector, wherein a plurality of input ports of the microcontroller are connected with the switching value input module through resistors, a plurality of output ports of the microcontroller are connected with the switching value output module, a plurality of standby ports of the microcontroller are respectively connected with the switching value input module and the switching value output module through relays, the switching value input module is connected with the switching value output module, and the first pin connector is respectively connected with the switching value input module and the switching value output module through relays; the microcontroller is used for determining a target port according to a first level signal group and a second level signal group, wherein the first level signal group comprises output level signals of each output port, the second level signal group comprises input level signals of a plurality of input ports and a plurality of standby ports corresponding to each output port, and the target port is a port with a fault in the plurality of input ports, the plurality of output ports and the plurality of standby ports; the microcontroller is further configured to write configuration information of the target port into a corresponding target standby port after the target port is determined, wherein the target standby port is a port other than the target port in the standby port, and the purpose of determining a faulty port through an output level signal of the output port and an input level signal of the input port of the microcontroller is achieved, so that the technical problem that manual troubleshooting is required when a digital quantity port of the programmable controller fails is solved, and therefore the technical effects of improving the working efficiency and the use experience of workers are achieved.
In the embodiment of the present invention, as shown in fig. 2, the switching value output module includes: a first resistor group, a buffer, a plurality of output port switching value output circuits, a plurality of standby port switching value output circuits and a second pin connector, wherein the first resistor group comprises a plurality of first sub-resistors, the number of the output port switching value output circuits is the same as that of the output ports of the microcontroller, the number of the standby port switching value output circuits is the same as that of the standby ports of the microcontroller, one output port switching value output circuit is respectively connected with one first sub-resistor, the second pin connector, the buffer and the switching value input module, one standby port switching value output circuit is connected with the buffer through a resistor, and a spare port switching value output circuit is respectively connected with the first pin connector and the switching value input module.
As shown in fig. 2, the output ports are IO _ OUT 1-IO _ OUT3, the spare ports are IO _1 and IO _2, the buffer is U1, the second pin connector is P1, the first pin connector is P2, the microcontroller is an MCU, the relays for connecting the microcontroller and the buffer are J6B and J7B, and the resistors for connecting the buffer and the spare port switching value output circuit are R1 and R2.
The output port switching value output circuit and the standby port switching value output circuit both include: the first optical coupler is connected with the second sub-resistor and the MOS tube respectively, the MOS tube is connected with the first sub-relay, the second sub-resistor, the third sub-resistor and the first diode respectively, the second sub-resistor is connected with the third sub-resistor and the first diode in parallel, any two MOS tubes are connected with one another, and the third sub-resistor and the first diode are connected with the first sub-relay.
As shown in FIG. 2, the first optocoupler is U2-U6, the second sub-resistors are R6, R8, R10, R12 and R14, the third sub-resistors are R7, R9, R11, R13 and R15, the first diode is D1-D5, the first sub-relay is JIB-J5B, and the MOS transistor is Q1-Q5.
The switching value input module includes: a logic chip, a plurality of input port switching value input circuits, a plurality of standby port switching value input circuits and a third pin connector, wherein the number of the input port switching value input circuits is the same as the number of the input ports of the microcontroller, the number of the standby port switching value input circuits is the same as that of the standby ports of the microcontroller, the logic chip is connected with a plurality of input ports of the microcontroller and a plurality of standby ports of the microcontroller through resistors, and the logic chip is respectively connected with the plurality of input port switching value input circuits and a plurality of standby port switching value input circuits, the plurality of input port switching value input circuits are connected to the third pin connector, and the plurality of spare port switching value input circuits are connected to the first pin connector.
As shown IN FIG. 2, the third pin connector is P3, the logic chip is U7, the input ports of the microcontroller are IO _ IN 1-IO _ IN3, and the resistors for connecting the microcontroller and the logic chip are R18-R20.
The input port switching value input circuit and the standby port switching value input circuit both include: the second optical coupler is respectively connected with the fourth sub-resistor, the fifth sub-resistor and the logic chip, the fourth sub-resistor is connected with the logic chip, and the fifth sub-resistor is connected with the second sub-relay.
As shown in FIG. 2, the fourth sub-resistor is R21-R25, the second optocoupler is U8-U12, the fifth sub-resistor is R26-R30, and the second sub-relay is JIC-J5C.
It should be noted that the second optocouplers in the input circuit for the switching values of the plurality of input ports are connected; and the second optical couplers in the switching value input circuits of the plurality of spare ports are connected.
In addition, as shown in fig. 2, the relays for connecting the first pin connector to the switching value input module and the switching value output module are J6C and J7C, and the resistors R16 and R17 are used to connect the spare port and the logic chip.
It should be noted that, since the microcontroller has two determination modes of high-activity and low-activity of the level signal when determining the target port, the standby port switching value output circuit is connected to the buffer through the resistor and connected to the standby port and the logic chip through the resistors R16 and R17, and is a connection mode corresponding to the high-activity determination mode, but does not represent that the standby port and the buffer, and the standby port and the logic chip must be connected in the connection modes.
In an embodiment of the present invention, the programmable controller further includes: the self-checking module is connected with the microcontroller;
the self-checking module is used for carrying out state detection on the switching value input module and the switching value output module and determining whether the switching value input module and the switching value output module are abnormal or not.
The self-checking module comprises: a plurality of self-test circuits, wherein one self-test circuit comprises a second diode and a fourth sub-relay.
As shown in FIG. 2, the second diodes are D7-D13, the fourth sub-relays are J1A-J7A, and the preferred fourth sub-relay adopts a 2-level pair signal relay.
The above-described programmable controller will be described with reference to fig. 1 and 2.
Firstly, the microcontroller is started through the self-checking module, and simultaneously controls the nodes 2 and 4 in the plurality of first sub-relays to be connected, so that the connection between the microcontroller and the third pin connector is cut off, and controls the nodes 5 and 7 in the plurality of second sub-relays to be connected, so that the connection between the microcontroller and the second pin connector is cut off, the connection between the microcontroller and the pin connectors and the interconnection between the output end of the switching value output module and the input end of the switching value input module are realized, and meanwhile, the parallel connection between the plurality of switching value input circuits is also realized.
As shown in fig. 2, in the controllable programmer, U2\ U3\ U4 in the switching value output module is active low (meaning that the optical coupler operates when a low level signal is input), and U5\ U6 is active high (meaning that the optical coupler operates when a high level signal is input). U10\ U11\ U12 in the switching value input module is output low and active (indicating that the optical coupler outputs a low level signal when working), and U8\ U9 is output high and active (indicating that the optical coupler outputs a high level signal when working).
Enabling IO _ OUT1 to output low-level signals, and collecting input signals of IO _ IN 1-IO _ IN3 and IO _1\ IO _ 2; then, cyclically enabling IO _ OUT2 and IO _ OUT3 to output low-level signals, and collecting input signals of IO _ IN 1-IO _ IN3 and IO _1\ IO _ 2; then the normally open node of the J6B is connected and outputs a high level signal, and the J6B is disconnected to recover the connection state of the normally closed node and collect input signals of IO _ IN 1-IO _ IN3 and IO _1\ IO _ 2.
Then, the normally open node of the J7B is connected and outputs a high level signal, and the J7B is disconnected to recover the on state of the normally closed node and collect input signals of IO _ IN 1-IO _ IN3 and IO _1\ IO _ 2. And judging whether the collected signal is abnormal or not through an algorithm. After the self-test is finished, the relays J1A-J5A are switched off, so that the normally closed nodes J1B-J5B and J1C-J5C are switched on, and the switching value output module and the switching value input module are connected with the P1 and the P3.
For example, the normal IO _ OUT1 outputs 0, and the input signals collected from IO _ IN1 to IO _ IN3 and IO _1\ IO _2 should be 0, 1, and 1; IO _1 outputs 1, and the input signals of the collected IO _ IN 1-IO _ IN3 and IO _1\ IO _2 should be 0, 1 and 1; if the IO _ OUT1 outputs 0, the collected signals are 1, 0 and 0, and then the IO _ OUT1 is judged to be damaged; if 0 is output from IO _ OUT1, the collected signals are 0, 1, 0, 1 is output from IO _1, and the collected signals are 0, 1, 0, 1, the matrix data is used to determine that IO _ IN2\ IO _1 is damaged.
The standby port is a multiplexing port, that is, when the standby port needs to be used, the relay J6B \ J7B is controlled according to the use requirement (output and input mode), so that the output end or the input end is connected with the port of the first pin connector P2. The input mode is the condition that the relay does not work, when the relay works, the control relay is controlled to be in the working state, the normally open node is connected through J6B \ J7B \ J6C \ J7C, and at the moment, the P2 is connected with the switching value output module to be in the output mode.
The spare port will participate in the self-test during normal self-test.
After the fault port is determined, the configuration information of the fault port can be written into the standby port, the configuration information is recorded by using storage elements such as an EEPROM (electrically erasable programmable read-only memory) and the like, the configuration information is effective when the next restart is waited, the fault port and the standby port are prompted through a communication or display module, and an alarm log is written and an alarm is given. And if the damaged port is not the functional port, the normal startup is carried out.
The working personnel can start the device after switching the wiring of the fault port to the replacement port, the first start of the device after the fault port is replaced by the standby port can prompt the replaced information of the port and require to confirm the information, and the device can normally operate after confirmation.
It should be noted that the input/output characteristics of the spare ports may be made into a multiplexing form as shown in fig. 2, that is, the spare ports (IO _1 and IO _ 2) are connected to the logic chip and the buffer through the relay, respectively. If the standby port is used, the program can select the input and output characteristics of the standby port through the relay according to the input and output characteristics of the target port replaced by the standby port, and the standby port can be simply made into the non-multiplexing form of the output end and the output end respectively.
The programmable controller provided by the embodiment of the invention can confirm the state of the digital channel through power-on self-detection, and automatically configure other ports to replace a fault port under the condition that the port has a fault, so that the programmable controller can continuously operate only by simply replacing the channel wiring on site. Because the standby port is an input-output multiplexing port, the utilization rate of the standby port can be effectively improved. The whole control method greatly improves operability and reliability and improves production efficiency.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication ports, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A programmable controller, comprising: the device comprises a microcontroller, a switching value input module, a switching value output module and a first pin connector, wherein a plurality of input ports of the microcontroller are connected with the switching value input module through resistors, a plurality of output ports of the microcontroller are connected with the switching value output module, a plurality of standby ports of the microcontroller are respectively connected with the switching value input module and the switching value output module through relays, the switching value input module is connected with the switching value output module, and the first pin connector is respectively connected with the switching value input module and the switching value output module through relays;
the microcontroller is used for determining a target port according to a first level signal group and a second level signal group, wherein the first level signal group comprises output level signals of each output port, the second level signal group comprises input level signals of a plurality of input ports and a plurality of standby ports corresponding to each output port, and the target port is a port with a fault in the plurality of input ports, the plurality of output ports and the plurality of standby ports;
the microcontroller is further configured to write configuration information of the target port into a corresponding target backup port after the target port is determined, where the target backup port is a port other than the target port in the backup ports.
2. The programmable controller according to claim 1, wherein the switching value output module includes: a first resistor group, a buffer, a plurality of output port switching value output circuits, a plurality of standby port switching value output circuits and a second pin connector, wherein the first resistor group comprises a plurality of first sub-resistors, the number of the output port switching value output circuits is the same as that of the output ports of the microcontroller, the number of the standby port switching value output circuits is the same as that of the standby ports of the microcontroller, one output port switching value output circuit is respectively connected with one first sub-resistor, the second pin connector, the buffer and the switching value input module, one standby port switching value output circuit is connected with the buffer through a resistor, and a spare port switching value output circuit is respectively connected with the first pin connector and the switching value input module.
3. The programmable controller of claim 2, wherein the output port switching value output circuit and the backup port switching value output circuit each comprise: the first optical coupler is connected with the second sub-resistor and the MOS tube respectively, the MOS tube is connected with the first sub-relay, the second sub-resistor, the third sub-resistor and the first diode respectively, the second sub-resistor is connected with the third sub-resistor and the first diode in parallel, any two MOS tubes are connected with one another, and the third sub-resistor and the first diode are connected with the first sub-relay.
4. The programmable controller of claim 2, wherein the switching value input module comprises: a logic chip, a plurality of input port switching value input circuits, a plurality of standby port switching value input circuits and a third pin connector, wherein the number of the input port switching value input circuits is the same as the number of the input ports of the microcontroller, the number of the standby port switching value input circuits is the same as that of the standby ports of the microcontroller, the logic chip is connected with a plurality of input ports of the microcontroller and a plurality of standby ports of the microcontroller through resistors, and the logic chip is respectively connected with the plurality of input port switching value input circuits and a plurality of standby port switching value input circuits, the plurality of input port switching value input circuits are connected to the third pin connector, and the plurality of spare port switching value input circuits are connected to the first pin connector.
5. The programmable controller of claim 4, wherein the input port switching value input circuit and the backup port switching value input circuit each comprise: the second optical coupler is respectively connected with the fourth sub-resistor, the fifth sub-resistor and the logic chip, the fourth sub-resistor is connected with the logic chip, and the fifth sub-resistor is connected with the second sub-relay.
6. The programmable controller of claim 5,
the second optical couplers in the input port switching value input circuits are connected;
and the second optical couplers in the switching value input circuits of the plurality of spare ports are connected.
7. The programmable controller of claim 2, further comprising: and the number of the third sub-relays is the same as that of the standby ports of the microcontroller, and one third sub-relay is respectively connected with the first sub-relay in the standby switching value output circuit and the second sub-relay in the standby port switching value input circuit corresponding to the first pin connector and the same standby port.
8. The programmable controller of claim 2, further comprising: the self-checking module is connected with the microcontroller;
the self-checking module is used for carrying out state detection on the switching value input module and the switching value output module and determining whether the switching value input module and the switching value output module are abnormal or not.
9. The programmable controller of claim 8, wherein the self-test module comprises: a plurality of self-test circuits, wherein one self-test circuit comprises a second diode and a fourth sub-relay.
10. The programmable controller of claim 1,
and the microcontroller is also used for sending the port number of the target port and the port number of the target standby port to display equipment.
CN202210823361.0A 2022-07-14 2022-07-14 Programmable controller Active CN114895614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210823361.0A CN114895614B (en) 2022-07-14 2022-07-14 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210823361.0A CN114895614B (en) 2022-07-14 2022-07-14 Programmable controller

Publications (2)

Publication Number Publication Date
CN114895614A true CN114895614A (en) 2022-08-12
CN114895614B CN114895614B (en) 2022-10-11

Family

ID=82729959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210823361.0A Active CN114895614B (en) 2022-07-14 2022-07-14 Programmable controller

Country Status (1)

Country Link
CN (1) CN114895614B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5058112A (en) * 1989-07-31 1991-10-15 Ag Communication Systems Corporation Programmable fault insertion circuit
US20110187384A1 (en) * 2010-02-02 2011-08-04 Stmicroelectronics S.R.L. Electrical interconnection integrated device with fault detecting module and electronic apparatus comprising the device
CN102467106A (en) * 2010-11-15 2012-05-23 深圳市合信自动化技术有限公司 Programmable logic controller (PLC) digital input control device and control method
US20180284178A1 (en) * 2017-04-01 2018-10-04 Analog Devices Global Adc input circuit sensing for fault detection
CN112130514A (en) * 2020-10-24 2020-12-25 西安热工研究院有限公司 DCS switching value output clamping piece
CN212322106U (en) * 2020-06-28 2021-01-08 天津中德应用技术大学 Railway controller internal component fault self-diagnosis system
CN114340345A (en) * 2021-12-28 2022-04-12 广州高澜节能技术股份有限公司 Integrated controller for cooling system of high-power electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5058112A (en) * 1989-07-31 1991-10-15 Ag Communication Systems Corporation Programmable fault insertion circuit
US20110187384A1 (en) * 2010-02-02 2011-08-04 Stmicroelectronics S.R.L. Electrical interconnection integrated device with fault detecting module and electronic apparatus comprising the device
CN102467106A (en) * 2010-11-15 2012-05-23 深圳市合信自动化技术有限公司 Programmable logic controller (PLC) digital input control device and control method
US20180284178A1 (en) * 2017-04-01 2018-10-04 Analog Devices Global Adc input circuit sensing for fault detection
CN212322106U (en) * 2020-06-28 2021-01-08 天津中德应用技术大学 Railway controller internal component fault self-diagnosis system
CN112130514A (en) * 2020-10-24 2020-12-25 西安热工研究院有限公司 DCS switching value output clamping piece
CN114340345A (en) * 2021-12-28 2022-04-12 广州高澜节能技术股份有限公司 Integrated controller for cooling system of high-power electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈家雨: "《车用控制器数字量端口的可配置的实现》", 《电子设计工程》 *

Also Published As

Publication number Publication date
CN114895614B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
CN101989085B (en) Controller
US9178564B2 (en) Communication cable breaker and method using same
CN103647781B (en) Mixed redundancy programmable control system based on equipment redundancy and network redundancy
CN101339426B (en) Numerical controller
CN207397077U (en) Communicator, casing and rack for remote-terminal unit
CN102981431B (en) Nuclear power station diversity protection system hardware framework based on FPGA
CN108073540A (en) I2C bus systems, warping apparatus investigation method
CN102571498A (en) Fault injection control method and device
CN103152221A (en) Multi-equipment self-checking method, monitoring system for equipment state and equipment group
CN112669590A (en) Serial plug-and-play intelligent sensing communication system and automatic addressing method thereof
CN114895614B (en) Programmable controller
CN112019455B (en) Switch monitoring device and method based on programmable logic device
CN101854263B (en) Method, system and management server for analysis processing of network topology
KR101748282B1 (en) Plant diagnosis system and diagnosis method using the same
CN110888390A (en) Digital quantity output redundancy circuit and PLC control system
CN207992997U (en) I2C bus systems
CN112383462B (en) Network device and bus configuration method
CN101520660A (en) Simulation device and simulation method for monitoring sensor signals in general environment
CN115705267A (en) Monitoring acquisition equipment, and main/standby switching method and system based on monitoring acquisition equipment
CN110114805B (en) Fire protection control unit
CN105425780A (en) Bus fault self-diagnosis device
KR20210025823A (en) Abnormality check system of equipment and facilities
CN218974903U (en) Domestic server BIOS firmware backup device
CN104038365A (en) Diagnostic Port For Inter-switch And Node Link Testing In Electrical, Optical And Remote Loopback Modes
KR101376387B1 (en) Appartus and method for real-time diagnosis network 0f in redundant plc system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant