Multi-priority time-sharing scanning system and control method thereof
Through the multi-priority time-sharing scanning system and cross-network structure, the problems of MCU port resource waste and complex signal processing in low-voltage device control are solved, and more efficient sensor status monitoring and system anti-interference capability are achieved. It is suitable for a variety of small devices control.
Patent Information
- Application Number
- CN202411099347.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-12
- Publication Date
- 2024-11-22
AI Technical Summary
In the control of low voltage device, multiple sensors and indicator lights are required to cooperate, resulting in an increase in the number of MCU pins, an increase in cost and a large PCB surface area, and it is difficult for traditional methods to effectively process complex input and output signals.
Using a multi-priority time-sharing scanning system, the cross-network structure of sensor array unit, priority response column and level reading row is achieved through the cross-network structure of sensor array unit, priority response column and level reading row, combining current limiting resistor and light-emitting diode to realize simultaneous monitoring of multiple sensor states and signals of different priority levels. The time-sharing scanning method is used to improve the system's anti-interference ability.
It realizes the use of fewer MCU port resources to monitor more sensor status, reduces product costs, improves product reliability and scope of application, and is suitable for a variety of small device controls, especially in the operation control of low-voltage circuit breakers.
Smart Images

Figure CN119002319A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of circuit control, and in particular to a multi-priority time-sharing scanning circuit control method and a system thereof. Background Art
[0002] In the field of low-voltage device control, as the functions of devices increase, the input and output signals that need to be paid attention to are becoming more and more complex and diverse.
[0003] Taking low-voltage circuit breakers as an example, attention should be paid to the three position indications of the molded case circuit breaker: opening, closing, and tripping. Electric operation of opening and closing control is required. If the circuit breaker has a remote communication function, the communication address and baud rate should be set. In addition, local padlocks may be required to prohibit operation, electric operation is prohibited and only manual operation is allowed, etc. The realization of these functions requires the cooperation of multiple sensors and indicator lights, and different types of sensors and indicator lights may have different response requirements.
[0004] This problem also exists in other similar fields of small device control.
[0005] The traditional circuit design and implementation method is to use the MCU's IO port to process each input and output signal separately. This requires the use of an MCU with more pins, which not only increases the cost but also occupies a larger PCB surface area.
[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0007] In view of the deficiencies in the prior art, the present invention discloses a multi-priority time-sharing scanning system and a control method thereof.
[0008] The technical solution adopted in the embodiment of the present invention is as follows:
[0009] A multi-priority time-sharing scanning system, comprising:
[0010] A plurality of sensor array unit groups; the sensor array unit group comprises a plurality of sensor array units; the sensor array unit comprises a sensor signal switch and a diode connected in series with each other;
[0011] A plurality of priority response columns, respectively used for receiving signals of different priorities;
[0012] A plurality of level reading rows, respectively used to read different sensor state signals; the sensor state signals are used to reflect the state of the sensor;
[0013] The first end of the sensor array unit is connected to the priority response column, and the second end of the sensor array unit is connected to the level reading row, wherein the connection direction of the diode enables the signal of the level reading row to be transmitted to the priority response column through the sensor array unit; the sensor array units belonging to the same sensor array unit group are connected to the same priority response column; the sensor array units belonging to the same sensor array unit group are sequentially connected to different level reading rows.
[0014] A further technical solution is that the sensor array unit group also includes a signal indication unit, and the signal indication unit includes a current limiting resistor and a light emitting diode connected in series; a first end of the signal indication unit is connected to a priority response column, and a second end of the signal indication unit is connected to a level reading row, wherein the connection direction of the light emitting diode enables the signal of the level reading row to be transmitted to the priority response column through the signal indication unit.
[0015] Its further technical solution is: the time-sharing scanning system is used for the operating mechanism controller of the circuit breaker; the priority response column includes a high priority response column, a first medium priority response column, a second medium priority response column and a low priority response column;
[0016] A first end of a sensor array unit of the first sensor array unit group is connected to a high priority response column, and a sensor signal switch of the first sensor array unit group is used to indicate a closing and opening command and / or position of a circuit breaker;
[0017] The first end of the sensor array unit of the second sensor array unit group is connected to the first medium priority response column; the third sensor array unit group is connected to the second medium priority response column; the second sensor array unit group and the third sensor array unit group are used to respond to the communication address and baud rate;
[0018] The fourth sensor array unit group is connected to the low priority response column, and the fourth sensor array unit group is used to indicate the circuit breaker state;
[0019] The second ends of the sensor array units of the sensor array unit group are respectively connected to a plurality of level reading rows in sequence.
[0020] Its further technical solution is that it also includes a signal indication unit, which includes a current limiting resistor and a light emitting diode connected in series; the first end of the signal indication unit is connected to a low priority response column, and the second end of the signal indication unit is connected to a level reading row; wherein the connection direction of the light emitting diode enables the signal of the level reading row to be transmitted to the low priority response column through the signal indication unit.
[0021] A further technical solution is that the first sensor array unit group includes an opening position sensor signal switch, a closing position sensor signal switch, an opening command sensor signal switch and a closing command sensor signal switch.
[0022] A further technical solution is that the second sensor array unit group and the third sensor array unit group include a communication address setting sensor signal switch and a baud rate setting sensor signal switch.
[0023] Its further technical solution is that the fourth sensor array unit group includes a padlock-prohibited operation sensor signal switch and a motor-prohibited, manual-only allowed sensor signal switch; the fourth sensor array unit group also includes a signal indication unit; the signal indication unit includes an opening indication light emitting diode and a closing indication light emitting diode.
[0024] A control method according to the multi-priority time-sharing scanning system as described above comprises the following steps:
[0025] Initialize input and output ports; both the priority response column and level read row are set to high level;
[0026] Different scanning intervals are set for response columns with different priorities; the scanning interval corresponding to a priority response column with a high priority is smaller than the scanning interval corresponding to a priority response column with a low priority;
[0027] Each time a scanning interval passes, the input of the priority response column corresponding to the scanning interval is scanned; in this step, the output of the corresponding priority response column is set to a low level; the input signals of each level reading row are read, and the state of the sensor in the sensor array unit group corresponding to the scanned priority response column is determined based on the input signals.
[0028] A control method according to the multi-priority time-sharing scanning system as described above comprises the following steps:
[0029] Initialize input and output ports; both the priority response column and level read row are set to high level;
[0030] After each first scanning interval, scan the input of the high priority response column and set the high priority response column to a low level; read the input signal of each level reading row, and determine the command and / or position indicating the closing and opening of the circuit breaker according to the input signal; and then initialize the input and output ports;
[0031] After each second scanning interval, the first medium priority response column and the second medium priority response column are scanned, and the first medium priority response column and the second medium priority response column are set to a low level; the input signal of each level reading row is read, and the communication address and the baud rate are determined according to the input signal; and then the input and output ports are initialized;
[0032] After each third scanning interval, scan the low priority response column and set the low priority response column to a low level; read the input signal of each level reading row, and determine the circuit breaker status according to the input signal;
[0033] The first scanning interval time is less than the second scanning interval time and less than the third scanning interval time.
[0034] The beneficial effects of the embodiments of the present invention are as follows:
[0035] 1. The embodiment of the present invention realizes the function of simultaneously monitoring the status of more sensors by designing the circuit structure and using fewer MCU port resources, making it easier to realize the miniaturization design of the product and greatly reducing the product cost.
[0036] 2. The scanning system in the embodiment of the present invention has a wide range of applications because it supports simultaneous input and output of multiple signals and supports multiple responses with different priorities. In the embodiment of the present invention, a low-voltage circuit breaker is taken as an example, but it can also be applied to other small devices that need to monitor multiple operating states.
[0037] 3. Since the control method of the scanning system in the embodiment of the present invention adopts time-sharing scanning, the system only processes the input signal in a very short "input processing" process, which greatly improves the anti-interference ability of the system and thus improves the product reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 Schematic diagram of the circuit structure of a multi-priority time-sharing scanning system in an embodiment of the present invention.
[0039] Figure 2 It is a control flow diagram of a multi-priority time-sharing scanning system in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The specific implementation of the present invention will be described below in conjunction with the accompanying drawings.
[0041] In order to make the purpose, technical scheme and advantages of the present invention clearer, the device proposed by the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. According to the following description, the advantages and features of the present invention will be clearer. It should be noted that the accompanying drawings adopt a very simplified form and use non-precise proportions, which are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention. In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, please refer to the accompanying drawings. It should be noted that the structure, proportion, size, etc. illustrated by the accompanying drawings of this specification are only used to match the content disclosed in the specification for people familiar with this technology to understand and read, and are not used to limit the limiting conditions for the implementation of the present invention, so they have no technical substantive significance. Any modification of the structure, change of the proportional relationship or adjustment of the size, without affecting the effect that the present invention can produce and the purpose that can be achieved, should still fall within the scope of the technical content disclosed by the present invention.
[0042] The embodiment of the present invention discloses a multi-priority time-sharing scanning system, which comprises a plurality of sensor array unit groups, a plurality of priority response columns and a plurality of level reading rows.
[0043] The sensor array unit group includes a plurality of sensor array units. The sensor array unit includes a sensor signal switch and a diode connected in series.
[0044] The plurality of priority response columns are respectively used to receive signals of different priorities.
[0045] The multiple level reading lines are used to output different sensor status signals. The sensor status signal is used to reflect the status of the sensor. The status of the sensor reflects the control status and working status of a low-voltage small device such as a circuit breaker.
[0046] The first end of the sensor array unit is connected to the priority response column, and the second end of the sensor array unit is connected to the level reading row, wherein the connection direction of the diode allows the signal of the level reading row to be transmitted to the priority response column through the sensor array unit. The sensor array units belonging to the same sensor array unit group are connected to the same priority response column. The sensor array units belonging to the same sensor array unit group are sequentially connected to different said level reading rows.
[0047] Specifically, the priority response columns and the level reading rows form a mutually intersecting network structure, and the two ends of the sensor array unit are connected in such a network structure. The number of sensor array units in the sensor array unit group is consistent with the number of level reading rows.
[0048] In use, the level of the priority response column can be set to a high level in the initialization setting, and the level of the level reading row can also be set to a high level. When performing signal scanning, the level of the corresponding priority response column is set to a low level. By reading the level state of the level reading row at this time, the state of the sensor signal switch in the corresponding sensor unit can be obtained, thereby reflecting the control state and working state of the low-voltage small device. Since a diode is set in the sensor array unit, such a cross network structure will not cause signal confusion, and the states of multiple sensor signal switches can be monitored in the same way, and fewer ports are used.
[0049] Figure 1 Schematic diagram of the circuit structure of the multi-priority time-sharing scanning system in the embodiment of the present invention. Figure 1 As shown, in this embodiment, the multi-priority time-sharing scanning system is used for the electric operating mechanism controller of the circuit breaker, and is particularly suitable for an intelligent electric operating mechanism controller with a communication function.
[0050] The multi-priority time-sharing scanning system has four sensor array unit groups, and each sensor array unit group includes four sensor array units.
[0051] Corresponding to the number of the four sensor array unit groups, there are four priority response columns: a high priority response column L0, a first medium priority response column L1, a second medium priority response column L2, and a low priority response column L3. Corresponding to the number of sensor array units in each sensor array unit group, there are a first level read row IN0, a second level read row IN1, a third level read row IN2, and a fourth level read row IN3.
[0052] The first end of the sensor array unit of the first sensor array unit group is connected to the high priority response column L0, and the sensor signal switch of the first sensor array unit group is used to indicate the closing and opening commands and / or positions of the circuit breaker.
[0053] The first end of the sensor array unit of the second sensor array unit group is connected to the first medium priority response column L1. The third sensor array unit group is connected to the second medium priority response column L2. The second sensor array unit group and the third sensor array unit group are used to set the communication address and baud rate used for remote communication.
[0054] The fourth sensor array unit group is connected to the low priority response column L3, and the fourth sensor array unit group is used to indicate the circuit breaker state.
[0055] The second ends of the sensor array units of each sensor array unit group are respectively connected in sequence to the first level reading row IN0 , the second level reading row IN1 , the third level reading row IN2 , and the fourth level reading row IN3 .
[0056] The first sensor array unit ( Figure 1 Taking the circuit structure in the upper right corner of FIG. 1 as an example, it includes a sensor signal switch S10 and a diode D00 connected in series. One end of the sensor signal switch S10 is connected to the high priority response column L0, the other end of the sensor signal switch S10 is connected to the cathode of the diode D00, and the anode of the diode D00 is connected to the first level reading row IN0, so that the signal of the first level reading row IN0 can be transmitted to the high priority response column L0 through the diode D00 and the sensor signal switch S10, but cannot be transmitted in the reverse direction.
[0057] Furthermore, the sensor array unit group further includes a signal indicating unit, which includes a current limiting resistor and a light emitting diode connected in series. A first end of the signal indicating unit is connected to a priority response column, and a second end of the signal indicating unit is connected to a level reading row, wherein the connection direction of the light emitting diode enables a signal of the level reading row to be transmitted to the priority response column through the signal indicating unit.
[0058] exist Figure 1 In the embodiment shown, the sensor array unit group connected to the low priority response column L3 includes two signal indication units. Take the fourth signal indication unit connected to the low priority response column L3 as an example ( Figure 1 The circuit structure in the lower right corner of the figure includes a current limiting resistor R33 and a light emitting diode D33 connected in series, one end of the current limiting resistor R33 is connected to the low priority response column L3, the other end of the current limiting resistor is connected to the cathode of the light emitting diode D33, and the anode of the light emitting diode D33 is connected to the fourth level reading row IN3, so that the signal of the fourth level reading row IN3 can be transmitted to the low priority response column L3 through the light emitting diode D33 and the current limiting resistor R33, but cannot be transmitted in the reverse direction.
[0059] Specifically, in this embodiment, the first sensor array unit group includes an opening position sensor signal switch S00, a closing position sensor signal switch S01, an opening command sensor signal switch S02, and a closing command sensor signal switch S03.
[0060] The second sensor array unit group and the third sensor array unit group include six communication address setting sensor signal switches S10 to S13, communication address setting sensor signal switches S20 and S21, and two baud rate setting sensor signal switches S22 and S23.
[0061] The fourth sensor array unit group includes a padlock prohibition operation sensor signal switch S30 and a prohibition of electric operation and only manual operation sensor signal switch S31. The fourth sensor array unit also includes a signal indication unit. The signal indication unit includes an opening indication light emitting diode D32 and a closing indication light emitting diode D33.
[0062] In this embodiment, there are a total of 8 ports, but the status of 16 sensors can be indicated, and signal resources can be saved by setting different priority response columns, and the anti-interference ability of the system can be improved through time-sharing scanning.
[0063] For example, all priority response columns and all level reading rows are initially set to high level. When scanning to the high priority response column L0, the high priority response column L0 is set to low level, and the level signals of the first level reading row IN0, the second level reading row IN1, the third level reading row IN2 and the fourth level reading row IN3 are read respectively. If they are all high level, it means that the corresponding sensor signal switches S00~S03 are open circuit, and it is judged that no relevant signal is detected. If they are low level, it means that the corresponding sensor signal switches S00~S03 are connected, and it is judged that relevant signals are detected. For example, if the first level reading row IN0 is low level, it means that the sensor signal switch S00 detects that the circuit breaker is in the open position. For another example, if the fourth level reading row IN3 is low level, it means that the sensor signal switch S03 detects the circuit breaker closing command signal, and then controls the circuit breaker to perform the "closing operation".
[0064] Based on the scanning system described above, the control method in the embodiment of the present invention includes:
[0065] Initialize the input and output ports. The priority response column and level read row are both set to high.
[0066] Different scanning intervals are set for different priority response columns. The scanning interval corresponding to a priority response column with a high priority is smaller than the scanning interval corresponding to a priority response column with a low priority.
[0067] Each time a scanning interval passes, the input of the priority response column corresponding to the scanning interval is scanned. In this step, the output of the corresponding priority response column is set to a low level. The input signals of each level reading row are read, and the state of the sensor in the sensor array unit group corresponding to the scanned priority response column is determined according to the input signal.
[0068] In this embodiment, since different priority response columns are set, different scanning intervals are used to judge the states of different types of sensor switch signals. The multi-priority design is to adapt to the control response accuracy of different requirements, reduce the burden on the MCU, and control costs. Since the present invention is aimed at the control field of the circuit breaker, the control field requires extremely high real-time performance. For example, to control the electric closing and opening, it is necessary to judge in real time whether the circuit breaker state is in place to control the start and stop of the motor, and the control response accuracy is at the ms level; at the same time, the controller has many other functions, such as communication function, and the communication parameters can be set through the panel, but the response accuracy requirement is relatively low, generally at the 0.5s level; there are even some other functions, and the response accuracy may meet the requirements at the order of seconds. If all responses are upgraded to the highest accuracy to respond, the performance of the MCU must be greatly improved, the power consumption and the cost will increase, which is obviously unreasonable, so the use of multi-priority involves the application of this field or other similar control fields with good technical effects.
[0069] Figure 2 FIG. 1 is a control flow diagram of a multi-priority time-sharing scanning system in an embodiment of the present invention. Figure 2 As shown, and refer to Figure 1 The circuit structure shown in the figure, the control method specifically includes:
[0070] Step 1, initialize the input and output ports, that is, set the first level read row IN0, the second level read row IN1, the third level read row IN2 and the fourth level read row IN3, as well as the high priority response column L0, the first medium priority response column L1, the second medium priority response column L2 and the low priority response column L3 to a high level state.
[0071] Step 2: Scan the input of the high priority response column L0 once every first scanning interval, and the first scanning interval can be specifically set to 10ms. Specifically, step 2 includes:
[0072] Step 2-1, save all output signal states;
[0073] Step 2-2, initialize input and output ports;
[0074] Step 2-3, setting the level of the high priority response column L0 to a low level;
[0075] Step 2-4, sequentially read the input signals of the first level reading row IN0, the second level reading row IN1, the third level reading row IN2 and the fourth level reading row IN3, and determine the command and / or position indicating the closing and opening of the circuit breaker according to the input signals.
[0076] Step 2-5, initialize input and output ports;
[0077] Step 2-6: Restore the initial output signal state.
[0078] Step 3, scan the first medium priority response column L1 and the second medium priority response column L2 every time the second scanning interval passes. The second scanning interval can be specifically set to 200ms. In this embodiment, since the scanning intervals of the two priority response columns in this step are consistent, it is necessary to ensure that the start time of the two processes is in sequence so that the system can operate normally. In other implementations, the scanning intervals of the medium priority can also be staggered, for example, one can be set to 200ms and the other to 201ms, but the intervals with other priorities still maintain a large difference.
[0079] Specifically, step 3 includes:
[0080] Step 3-1, save all output signal states;
[0081] Step 3-2, initialize input and output ports;
[0082] Step 3-3, setting the levels of the first medium priority response column L1 and the second medium priority response column L2 to low levels;
[0083] Step 3-4, read the input signals of the first level read row IN0, the second level read row IN1, the third level read row IN2 and the fourth level read row IN3 in sequence, and determine 6 communication addresses and 2 baud rates according to the input signals.
[0084] Step 3-5, initialize input and output ports;
[0085] Step 3-6: Restore the initial output signal state.
[0086] Step 4: Scan the low priority response column L3 every time the third scanning interval passes. The second scanning interval can be specifically set to 800ms. Specifically, step 4 includes:
[0087] Step 4-1, save all output signal states;
[0088] Step 4-2, initialize input and output ports;
[0089] Step 4-3, setting the level of the low priority response column L3 to a low level;
[0090] Step 4-4: In this embodiment, since two signal indication units are connected to the low priority response column L3, only the output signals of the first level reading row IN0 and the second level reading row IN1 are read in sequence, and it is determined according to the output signals whether the circuit breaker is in the padlock prohibited operation state or in the electric prohibited and manual only allowed state.
[0091] Step 4-5, initialize input and output ports;
[0092] Step 4-6: Restore the initial output signal state.
[0093] Among them, steps 2 to 4 are performed synchronously and without interfering with each other according to the scanning time interval.
[0094] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0095] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A multi-priority time-sharing scanning system, It is characterized in that include: A plurality of sensor array unit groups; the sensor array unit group comprises a plurality of sensor array units; The sensor array unit includes a sensor signal switch and a diode connected in series; A plurality of priority response columns, respectively used for receiving signals of different priorities; A plurality of level reading rows, respectively used to read different sensor status signals; the sensor status signals are used to reflect the status of the sensor; The first end of the sensor array unit is connected to the priority response column, and the second end of the sensor array unit is connected to the level reading row, wherein the connection direction of the diode enables the signal of the level reading row to be transmitted to the priority response column through the sensor array unit; the sensor array units belonging to the same sensor array unit group are connected to the same priority response column; the sensor array units belonging to the same sensor array unit group are sequentially connected to different level reading rows.
2. The multi-priority time-sharing scanning system according to claim 1, It is characterized in that The sensor array unit group also includes a signal indication unit, which includes a current limiting resistor and a light emitting diode connected in series; a first end of the signal indication unit is connected to a priority response column, and a second end of the signal indication unit is connected to a level reading row, wherein a connection direction of the light emitting diode enables a signal of the level reading row to be transmitted to the priority response column through the signal indication unit.
3. The multi-priority time-sharing scanning system according to claim 1, Features: The time-sharing scanning system is used for the operating mechanism controller of the circuit breaker; the priority response column includes a high priority response column, a first medium priority response column, a second medium priority response column and a low priority response column; A first end of a sensor array unit of the first sensor array unit group is connected to a high priority response column, and a sensor signal switch of the first sensor array unit group is used to indicate a closing and opening command and / or position of a circuit breaker; The first end of the sensor array unit of the second sensor array unit group is connected to the first medium priority response column; the third sensor array unit group is connected to the second medium priority response column; the second sensor array unit group and the third sensor array unit group are used to reflect the communication address and baud rate; The fourth sensor array unit group is connected to the low priority response column, and the fourth sensor array unit group is used to indicate the circuit breaker state; The second ends of the sensor array units of the sensor array unit group are respectively connected to a plurality of level reading rows in sequence.
4. The multi-priority time-sharing scanning system according to claim 3, It is characterized in that It also includes a signal indication unit, which includes a current limiting resistor and a light emitting diode connected in series; a first end of the signal indication unit is connected to a low priority response column, and a second end of the signal indication unit is connected to a level reading row; wherein the connection direction of the light emitting diode enables the signal of the level reading row to be transmitted to the low priority response column through the signal indication unit.
5. The multi-priority time-sharing scanning system according to claim 3, It is characterized in that The first sensor array unit group includes an opening position sensor signal switch, a closing position sensor signal switch, an opening command sensor signal switch and a closing command sensor signal switch.
6. The multi-priority time-sharing scanning system according to claim 3, It is characterized in that The second sensor array unit group and the third sensor array unit group include a communication address setting sensor signal switch and a baud rate setting sensor signal switch.
7. The multi-priority time-sharing scanning system according to claim 3, It is characterized in that The fourth sensor array unit group includes a padlock prohibiting operation sensor signal switch and a prohibiting electric and only allowing manual sensor signal switch; the fourth sensor array unit group also includes a signal indication unit; the signal indication unit includes an opening indication light emitting diode and a closing indication light emitting diode.
8. A control method for a multi-priority time-sharing scanning system according to claim 1, It is characterized in that The following steps are involved: Initialize input and output ports; both the priority response column and level read row are set to high level; Different scanning intervals are set for response columns with different priorities; the scanning interval corresponding to a priority response column with a high priority is smaller than the scanning interval corresponding to a priority response column with a low priority; Each time a scanning interval passes, the input of the priority response column corresponding to the scanning interval is scanned; in this step, the output of the corresponding priority response column is set to a low level; the input signals of each level reading row are read, and the state of the sensor in the sensor array unit group corresponding to the scanned priority response column is determined based on the input signals.
9. A control method for a multi-priority time-sharing scanning system according to claim 3, It is characterized in that The following steps are involved: Initialize input and output ports; both the priority response column and level read row are set to high level; After each first scanning interval, scan the input of the high priority response column and set the high priority response column to a low level; read the input signal of each level reading row, and determine the command and / or position indicating the closing and opening of the circuit breaker according to the input signal; and then initialize the input and output ports; After each second scanning interval, the first medium priority response column and the second medium priority response column are scanned, and the first medium priority response column and the second medium priority response column are set to a low level; the input signal of each level reading row is read, and the communication address and the baud rate are determined according to the input signal; and then the input and output ports are initialized; After each third scanning interval, scan the low priority response column and set the low priority response column to a low level; read the input signal of each level reading row, and determine the circuit breaker status according to the input signal; The first scanning interval time is less than the second scanning interval time and less than the third scanning interval time.
Citation Information
Patent Citations
Computer keyboard key scan shared matrix with an individual LED per key
CN104919400A
Circuit and method for realizing continuous scanning of random channel
CN107452323A
Method and device for touch control scanning and touch panel
CN108228013A
Keyboard scanning method and apparatus, computer device and storage medium
CN108595018A
Aviation distribution box circuit breaker state monitoring equipment and method based on proximity switch
CN118425754A
