CN117851299B - Multi-channel digital module type electronic load sharing operation panel and communication method - Google Patents

Multi-channel digital module type electronic load sharing operation panel and communication method Download PDF

Info

Publication number
CN117851299B
CN117851299B CN202410256794.1A CN202410256794A CN117851299B CN 117851299 B CN117851299 B CN 117851299B CN 202410256794 A CN202410256794 A CN 202410256794A CN 117851299 B CN117851299 B CN 117851299B
Authority
CN
China
Prior art keywords
electronic load
address
channel
instruction
bit
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.)
Active
Application number
CN202410256794.1A
Other languages
Chinese (zh)
Other versions
CN117851299A (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.)
Qingdao Ainuo Instrument Co ltd
Original Assignee
Qingdao Ainuo Instrument 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 Qingdao Ainuo Instrument Co ltd filed Critical Qingdao Ainuo Instrument Co ltd
Priority to CN202410256794.1A priority Critical patent/CN117851299B/en
Publication of CN117851299A publication Critical patent/CN117851299A/en
Application granted granted Critical
Publication of CN117851299B publication Critical patent/CN117851299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a multi-channel digital module type electronic load sharing an operation panel and a communication method, wherein a dual-channel electronic load unit comprises a CAN bus interface, a plurality of addressing interfaces and two single-channel electronic load units, and the lowest-order address lines of the addressing interfaces of the two single-channel electronic load units are respectively connected to a low level and a high level; the whole machine switching unit comprises a plurality of address interfaces; the address interface of the two-channel electronic load unit is connected with the address interface of the whole machine switching unit except the other address lines of the lowest bit address line, and the level information of the lowest bit address line of each single-channel electronic load unit is combined with the level information of the address interface of the connected whole machine switching unit to obtain the unique address. The electronic load of the invention shares one operation panel, can reduce the cost, and adopts a large-area whole operation panel, is convenient for operation and observation, can form a unique address through the high and low levels set by the address line, and automatically obtains the unique address after being electrified.

Description

Multi-channel digital module type electronic load sharing operation panel and communication method
Technical Field
The invention belongs to the technical field of electronic loads, and particularly relates to a multichannel digital module type electronic load sharing an operation panel and a communication method.
Background
In the production of a low-and-medium-power direct-current power supply, the speed requirement for detection is extremely high because of low unit price and large number of direct-current power supplies. The current better way is to use a multi-channel module type electronic load to rapidly detect the electronic load; meanwhile, in order to be suitable for more kinds of tested power supplies, a digital module type electronic load is the best choice. However, because of the high requirements on the dynamic characteristics of the electronic load, the main control MCU, the digital-to-analog converter and the analog-to-digital converter as core devices are required to have high rate requirements, and particularly, the operation capability of the main control MCU and the communication rate with the peripheral devices are high, in this case, it is difficult for the MCU to be able to control the external devices such as the keyboard and the display screen of the module at the same time. Therefore, the existing module load mostly adopts a multi-core strategy, namely, the high-speed MCU is only responsible for controlling and measuring the power unit, and a single set of operation panel control unit is selected for parameter setting and displaying of the module.
The existing module type electronic load adopts a mode that each module is independently controlled, namely each module is provided with a set of display screen and keyboard, and the module can be controlled and displayed; meanwhile, a set of control unit is also arranged in the whole machine frame and is used for realizing the scheduling of action time sequences of different modules when a plurality of modules are required to work cooperatively. The prior art has the following disadvantages:
Firstly, the cost of the whole machine is increased by a plurality of sets of operation panels;
Secondly, the existing modules are arranged left and right in the whole machine frame, and the width of each module is narrower due to the limitation of the structure, so that a display screen and a key board can only be of small types, and the operation difficulty is high;
Finally, as the power unit of each module is scheduled by the control panel of the module, for the collaborative scheduling work of multiple modules, the operation instruction of the frame 'host' to each module needs to pass through one transfer of the own control panel of the module, and the action delay of the power unit can be correspondingly increased; moreover, the existing multimode interconnection adopts half-duplex communication buses such as RS485 and the like, and generally only can support a one-to-one or one-to-all broadcasting communication mode, so that delay is necessarily existed in the occasion that partial modules are required to work cooperatively, and the accuracy of cooperation of each module is affected. For example: if the 1-9 channels of the 10 channels are started simultaneously, the control panel is required to send starting instructions to the channels with addresses 1-9 in sequence in the prior mode, the baud rate in the industrial bus is generally not higher than 1Mbps, so that the time delay between the 1-channel start and the 9-channel start is quite large, and is quite likely to reach a plurality of milliseconds, and the time delay is quite large disadvantage for the multi-channel electronic load.
The above information disclosed in this background section is only for enhancement of understanding of the background section of the application and therefore it may not form the prior art that is already known to those of ordinary skill in the art.
Disclosure of Invention
The invention provides a multi-channel digital module type electronic load sharing an operation panel, which aims to solve the technical problems of high cost, high operation difficulty and high communication delay of the existing multi-channel digital module type electronic load.
In order to achieve the above-mentioned invention/design purpose, the invention adopts the following technical scheme to realize:
a multi-channel digital modular electronic load sharing an operating panel, a plurality of electronic loads sharing an operating panel, the electronic load comprising:
the operation panel control unit comprises a CAN bus interface;
The two-channel electronic load units comprise CAN bus interfaces and addressing interfaces; the dual-channel electronic load unit comprises two single-channel electronic load units, wherein the lowest bit address line of an addressing interface of one single-channel electronic load unit is connected to a low level, and the lowest bit address line of an addressing interface of the other single-channel electronic load unit is connected to a high level;
the whole machine switching unit comprises a CAN bus termination resistor and a plurality of address interfaces; the CAN bus interfaces of the operation panel control unit and the two-channel electronic load unit are connected with the CAN bus termination resistor; each address interface comprises a plurality of address lines, each address line is connected to a high level or a low level, and the addresses formed by the address interfaces based on the high level and the low level are different; the addressing interface of the two-channel electronic load unit is connected to the address interface of the whole machine switching unit, other address lines except the lowest address line of the addressing interface of the two-channel electronic load unit are connected with the address interface of the whole machine switching unit, and the level information of the lowest address line of each single-channel electronic load unit is combined with the level information of the address interface of the connected whole machine switching unit to obtain a unique address of the single-channel electronic load unit.
The multi-channel digital module type electronic load sharing the operation panel comprises the single-channel electronic load unit, wherein the single-channel electronic load unit comprises an n-bit addressing interface and a CAN bus interface, the dual-channel electronic load unit comprises a module switching unit, the module switching unit comprises the CAN bus interface and an n-1-bit addressing interface, the CAN bus interface of the module switching unit is connected with the CAN bus interface of the single-channel electronic load unit, the n-1-bit addressing interface of the module switching unit is connected with other address lines except the lowest address line of the single-channel electronic load unit, and the low level and the high level of the module switching unit are respectively connected to the lowest address lines of the addressing interfaces of the two single-channel electronic load units.
The multi-channel digital module type electronic load sharing the operation panel comprises the single-channel electronic load unit and the module switching unit, wherein the single-channel electronic load unit comprises a four-bit addressing interface, and the module switching unit comprises a three-bit addressing interface.
The whole machine switching unit is provided with five address interfaces, and each address interface is connected with one double-channel module electronic load unit.
The multichannel digital module type electronic load sharing the operation panel comprises the main control unit, the load unit and the load connecting terminal group.
The multi-channel digital module type electronic load sharing the operation panel is characterized in that the operation panel control unit is connected with at least one of a touch screen, a keyboard, a screen and a communication interface.
A communication method of a multi-channel digital module type electronic load based on the shared operation panel,
The communication instruction comprises a host bit and an address bit of each single-channel electronic load unit;
When the operation panel control unit sends an instruction to the single-channel electronic load unit to be communicated, the host position and the address position 1 and the rest positions 0 corresponding to the single-channel electronic load unit to be communicated are set;
After all the single-channel electronic load units receive the instruction, when the host bit is 1 and the address bit corresponding to the single-channel electronic load units is 1, the instruction is processed, otherwise, the instruction is not processed;
when the single-channel electronic load unit sends an instruction to the operation panel control unit, the operation panel control unit obtains the address of the single-channel electronic load unit for sending information according to the information of which the address bit is 1, wherein the address position is 1 and the other address positions are 0.
According to the communication method of the multichannel digital module type electronic loads sharing the operation panel, each single-channel electronic load is provided with the receiving instruction identification code and the sending instruction identification code, the receiving instruction identification code and the sending instruction identification code are the same as the communication instruction bit, the bit corresponding to the host bit of the receiving instruction identification code and the address bit corresponding to the host bit are 1, and the rest bits are 0; the address bit corresponding to the identification code of the sending instruction and the sending instruction is 1, and the rest bits are 0;
And after the single-channel electronic load receives the communication instruction, carrying out logical AND operation on the receiving instruction identification code and the communication instruction, wherein when the result corresponds to the receiving instruction identification code, the single-channel electronic load is a local communication instruction and processes the communication instruction, otherwise, the single-channel electronic load is a non-local communication instruction and does not process the communication instruction.
According to the communication method of the multi-channel digital module type electronic load sharing the operation panel, after the communication instruction is processed, whether the feedback is needed or not is judged, and if yes, the sending instruction identification code is edited into the instruction ID.
The communication method of the multi-channel digital module type electronic load sharing the operation panel is characterized in that the communication instruction comprises 10-bit address bits and 1-bit host bits.
Compared with the prior art, the invention has the advantages and positive effects that:
The invention discloses a multi-channel digital module type electronic load sharing an operation panel, which comprises an operation panel control unit, a complete machine switching unit and a plurality of double-channel electronic load units; the operation panel control unit comprises a CAN bus interface; the double-channel electronic load unit comprises a CAN bus interface and a plurality of addressing interfaces; the dual-channel electronic load unit comprises two single-channel electronic load units, wherein the lowest bit address line of the addressing interface of one single-channel electronic load unit is connected to a low level, and the lowest bit address line of the addressing interface of the other single-channel electronic load unit is connected to a high level; the whole machine switching unit comprises a CAN bus termination resistor and a plurality of address interfaces; the CAN bus interfaces of the operation panel control unit and the double-channel electronic load unit are connected with a CAN bus termination resistor; each address interface comprises a plurality of address lines, each address line is connected to a high level or a low level, and the addresses formed by the address interfaces based on the high level and the low level are different; the addressing interface of the two-channel electronic load unit is connected to the address interface of the whole machine switching unit, other address lines except the lowest bit address line of the addressing interface of the two-channel electronic load unit are connected with the address interface of the whole machine switching unit, and the level information of the lowest bit address line of each single-channel electronic load unit is combined with the level information of the address interface of the connected whole machine switching unit to obtain the unique address of the single-channel electronic load unit. The electronic load of the invention shares one operation panel, which can greatly reduce the cost, and can adopt a large-area whole operation panel, thereby being convenient for operation and observation. The invention can form a unique address through the high and low levels set by the address line, and automatically acquire the unique address after power-on, the address is not required to be set in a hardware dialing mode, and the production and the use of the electronic load are very convenient.
The invention discloses a communication method of a multichannel digital module type electronic load sharing an operation panel, which comprises an operation panel control unit, wherein a communication instruction comprises a host bit and address bits of each single-channel electronic load unit; when the operation panel control unit sends an instruction to the single-channel electronic load unit to be communicated, the host position and the address position 1 and the rest positions 0 corresponding to the single-channel electronic load unit to be communicated are set; after all the single-channel electronic load units receive the instruction, when the host bit is 1 and the address bit corresponding to the single-channel electronic load units is 1, the instruction is processed, otherwise, the instruction is not processed; when the single-channel electronic load unit sends an instruction to the operation panel control unit, the operation panel control unit obtains the address of the single-channel electronic load unit for sending information according to the information of which the address bit is 1, wherein the address position is 1 and the other address positions are 0. The invention designs a communication protocol of the multi-channel digital module type electronic load based on the CAN bus, optimizes a scheduling mechanism among multi-module groups, almost eliminates communication delay when the multi-module groups work cooperatively and ensures the accuracy of time sequence control.
Other features and advantages of the present invention will become apparent upon review of the detailed description of the invention in conjunction with the drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments 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 may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a multi-channel digital modular electronic load sharing an operation panel according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a dual channel electronic load unit in accordance with an embodiment of the present invention.
FIG. 3 is a flowchart of initializing an address of an electronic load module according to an embodiment of the invention.
Fig. 4 is a flowchart of an instruction transmission by the operation panel control unit according to an embodiment of the present invention.
Fig. 5 is a flow chart of the command of the control unit of the single-channel electronic load response operation panel according to the embodiment of the present invention.
FIG. 6 is a flow chart of the operation panel control unit receiving instructions according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, merely to facilitate describing the present invention and simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In the description of the present invention, it should be noted that the terms "mounted," "connected," and "coupled" are to be construed broadly, as well as, for example, fixedly coupled, detachably coupled, or integrally coupled, unless otherwise specifically indicated and defined. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art. In the description of the embodiments, a particular feature, structure, material, or characteristic may be combined in any suitable manner in one or more embodiments or examples.
The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature.
In the description of the present invention, unless otherwise indicated, the meaning of "a plurality" is two or more.
A modular electronic load is a small multi-channel electronic load device, and generally divided into a module portion and a frame portion. The two parts are relatively independent, and the module has various types and corresponds to different voltages, powers, channel numbers and the like; the frame is general, and various modules can be flexibly inserted and used. When in use, the working time sequence of the multiple channels can be uniformly scheduled, realizing some combined functions.
The control of the power unit by the master of a traditional electronic load is based on an analog feedback loop. Firstly, an MCU outputs a base signal through a digital-to-analog converter, the base signal and a conditioning signal of the current or the voltage finally output by pulling are conditioned into a final power device control signal through an error amplifier built by hardware, and the power output unit is controlled. The control mode has lower requirements on the speed of the master controller and the digital-to-analog converter thereof, and is simpler to realize; however, the analog feedback controller has single index and cannot adapt to more and more switch power supply types at present; meanwhile, the low-speed master controller cannot realize some new functions requiring high-speed adjustment of output values, so that the novel electronic load in recent years adopts a digital master controller, namely a digital electronic load.
The control signal of the power unit of the digital electronic load is directly output by the main controller. Firstly, a main MCU measures current actual voltage and current conditioning signals through a high-speed analog-to-digital converter, and after digital PID adjustment is performed according to the difference between the measurement result and a set value, a control signal is output by the high-speed digital-to-analog converter to control a load power unit.
The invention changes the existing plug-in structure and internal communication mode through the new module and the whole machine frame form, realizes the unified dispatching of the multi-channel electronic load by the shared control panel with the large-size touch screen, and simultaneously, CAN realize the real-time dispatching control of the control panel to a plurality of modules based on the communication mechanism designed by the existing CAN communication protocol, and eliminates the communication delay.
In the example of fig. 1, a multi-channel digital modular electronic load sharing an operation panel, a plurality of electronic loads sharing an operation panel, the electronic load comprising:
The operation panel control unit comprises a CAN bus interface.
The two-channel electronic load units comprise CAN bus interfaces and addressing interfaces.
In the example of fig. 2, the two-channel electronic load unit includes two identical single-channel electronic load units and one modular switching unit.
The lowest bit address line of the addressing interface of one single-channel electronic load unit is connected to a low level, and the lowest bit address line of the addressing interface of the other single-channel electronic load unit is connected to a high level.
The single-channel electronic load unit comprises an n-bit addressing interface and a CAN bus interface.
The dual-channel electronic load unit comprises a module switching unit, wherein the module switching unit comprises a CAN bus interface and an n-1 bit addressing interface. The CAN bus interface of the module switching unit is connected with the CAN bus interface of the single-channel electronic load unit, the n-1 bit addressing interface of the module switching unit is connected with other address lines except the lowest address line of the single-channel electronic load unit, and the low level and the high level of the module switching unit are respectively connected to the lowest address lines of the addressing interfaces of the two single-channel electronic load units.
The high level and the low level are generated by a circuit of the module switching unit. The module switching unit works by giving the lowest-order address to the single-channel electronic load unit and simultaneously summarizing and outputting the high-order address line and the CAN bus to the whole machine switching unit.
In the example of fig. 2, the single channel electronic load unit includes a four-bit addressing interface and the module switching unit includes a three-bit addressing interface.
The single-channel electronic load units comprise a main control unit, a load unit and a load connecting terminal group.
The main control unit controls the whole output and measurement work of the electronic load.
The single-channel electronic load unit is externally provided with a group of CAN bus interfaces with 4-bit address inquiry ports.
The whole machine switching unit comprises a CAN bus termination resistor and a plurality of address interfaces; the CAN bus interfaces of the operation panel control unit and the double-channel electronic load unit are connected with a CAN bus termination resistor; each address interface comprises a plurality of address lines, each address line is connected to a high level or a low level, and the addresses formed by the address interfaces based on the high level and the low level are different; the addressing interface of the two-channel electronic load unit is connected to the address interface of the whole machine switching unit, other address lines except the lowest bit address line of the addressing interface of the two-channel electronic load unit are connected with the address interface of the whole machine switching unit, and the level information of the lowest bit address line of each single-channel electronic load unit is combined with the level information of the address interface of the connected whole machine switching unit to obtain the unique address of the single-channel electronic load unit.
The complete machine switching unit is provided with five address interfaces, and each address interface is connected with a two-channel module electronic load unit.
The operation panel control unit is connected with at least one of a touch screen, a keyboard, a screen and a communication interface.
In the example of fig. 1, the whole machine frame includes an operation panel control unit and a whole machine switching unit.
The main control chip in the control unit of the operation panel manages input/output functions such as a large-size touch screen, a keyboard, various external communication interfaces and the like, but the whole switching unit is only connected with one group of CAN buses.
The CAN bus transmits signals through two differential lines CANH and CANL, and has high electromagnetic interference resistance and error detection capability.
The complete machine switching unit comprises five address interfaces with three-bit address lines, a group of module interfaces of a CAN bus and a control panel interface containing the CAN bus.
Wherein three bit address lines in the five address interfaces are respectively configured as "000", "001", "010", "011", "100" from high to low. After five identical two-channel module electronic loads are inserted into the interfaces, the high three-bit addressing line of each single-channel electronic load unit obtains a corresponding high three-bit address, and then the low-bit addresses '0', '1' output by the module switching unit in fig. 2 are combined. At this time, the four-bit address lines can be combined into ten addresses of "0000", "0001", "0010" … … "1001", which are respectively "0" to "9" in decimal. That is, after the five two-channel module electronic load units are connected to the complete machine switching unit, ten digital main control units in the modules can immediately obtain unique addresses of 0-9.
In addition, two CAN bus termination resistors necessary for CAN communication are also integrated in the whole machine switching unit, so that the reliability of CAN communication CAN be ensured.
A communication method of multi-channel digital module type electronic load sharing an operation panel includes that a communication instruction includes a host bit and address bits of each single-channel electronic load unit;
When the operation panel control unit sends an instruction to the single-channel electronic load unit to be communicated, the host position and the address position 1 and the rest positions 0 corresponding to the single-channel electronic load unit to be communicated are set;
After receiving the instruction, the single-channel electronic load unit processes the instruction when the host bit is 1 and the address bit corresponding to the single-channel electronic load unit is 1, otherwise, the single-channel electronic load unit does not process the instruction;
When the single-channel electronic load unit sends an instruction to the operation panel control unit, the operation panel control unit obtains the address of the single-channel electronic load unit for sending information according to the information of which the address bit is 1, wherein the address position is 1 and the other address positions are 0.
Each single-channel electronic load is provided with an acceptance instruction identification code and a transmission instruction identification code, the acceptance instruction identification code and the transmission instruction identification code are the same as the communication instruction bit, the bit corresponding to the acceptance instruction identification code and the host bit and the address bit corresponding to the acceptance instruction identification code are 1, and the rest bits are 0; the address bit corresponding to the identification code of the sending instruction and the sending instruction is 1, and the rest bits are 0.
As shown in fig. 3, initialization begins.
The 3-0 pin levels of the address lines are read respectively and form a 4-bit address code.
When the address code=0000B, the native address=0, and the accept instruction identification code=100 0000 0001B; send instruction identification number=00000000000 0001b.
When the address code=0001B, the native address=1, the accept instruction identification code=100 00000010b; send instruction identification number=00000000010b.
When address code=0010b, native address=2, accept instruction identification code=100 00000100b; send instruction identification number=00000000100b.
When address code=1001B, the native address=9, and the accept instruction identification code=110 00000000B; send instruction identification code=010 000000000000b.
Otherwise, an illegal address processing program is entered.
The initialization is completed. After the single-channel electronic load receives the communication instruction, the receiving instruction identification code and the communication instruction are subjected to logical AND operation, and when the result corresponds to the receiving instruction identification code, the single-channel electronic load is a local communication instruction, processes the communication instruction, otherwise, the single-channel electronic load is a non-local communication instruction, and does not process the communication instruction.
And after processing the communication instruction, judging whether the communication instruction needs to be returned, if so, editing the identification code of the sending instruction into an instruction ID.
The communication instruction includes 10 address bits and 1 host bit.
The electronic load generates an acceptance instruction identification code and a sending instruction identification code according to the address of the electronic load for subsequent communication.
After the electronic load is started, the operation panel queries the modules of addresses ' 0 ' -9 ' through the CAN bus by using the broadcasting mode address, and each module replies information such as own address, model, product code and the like, and the control unit of the operation panel CAN acquire the module information of the electronic load in real time and is used for guiding, setting and using an operator.
For the situation that the cooperation of multiple modules is needed, the dispatching work of each module is uniformly performed by the control unit of the operation panel.
In the standard CAN communication protocol, one standard frame consists of 11-bit ID information and 64-bit data information. In the design, the control unit of the operation panel is mapped to the highest bit (10 th bit) in the 11-bit ID, and the 10 module controllers are respectively mapped to the rest 10 bits (9 th bit to 0 th bit) according to the self address, so that extremely efficient and flexible communication can be realized under the mechanism.
In the example of fig. 4, the procedure of the operation panel control unit transmitting the instruction is:
Waiting.
And receiving instructions input by a user through a front panel and the like.
Editing the command ID according to the need, and editing the command content according to the need;
The above instructions are sent through the CAN transceiver.
Waiting.
For example, the control unit of the operation panel requires the modules 0, 3, and 9 to start the pulling load at the same time, and the other modules 1, 2, 4, 5, 6, 7, and 8 maintain the standby state.
The communication instruction includes: a main control instruction: ID (110 0000 1001) instruction (initiate pull).
The operation panel control unit broadcasts instructions through the CAN transceiver.
In the example of fig. 5, the process of all single channel electronic loads in response to the operator panel control unit instructions is:
Waiting.
The CAN transceiver receives an instruction.
The native accept instruction identification code and the instruction ID are logically anded.
And judging whether the AND result is equal to the native acceptance instruction identification code.
If not, the instruction is a non-native instruction and waits.
If yes, the instruction is a native instruction, and the instruction is analyzed and executed.
And judging whether the feedback is needed.
If not, waiting.
If yes, the local 'sending instruction identification code' is edited into the instruction ID, and the instruction content is edited according to the requirement.
The above instructions are sent through the CAN transceiver.
Waiting. The control unit of the operation panel requests that the communication instructions of the modules 0, 3 and 9 for starting the pulling load simultaneously are received by all 10 module controllers, the addresses are analyzed, each module firstly confirms the operation panel instruction according to the highest bit, then searches whether the corresponding bit is 1 or not, and then continues to analyze and respond to the subsequent instructions; "0" is no longer resolved.
The end result of the instruction is that modules 0, 3, and 9 will perform "start pull load" at almost the same time point, and the relative time error can be less than 1us.
Specifically, the modules 0-9 all receive an instruction, and the modules 0-9 all perform operation:
calculation result number 0: 100 0000 0001b;
calculation result No. 3: 100 0000 0100B;
calculation result 9: 110 0000B;
Other operation results: 100 0000b.
Judging result: 0. the acknowledgement numbers 3 and 9 are native instructions; other numbers acknowledge non-native instructions.
0. And 3, analyzing the instruction and executing the starting operation.
0. And 3, 9 judges that the instruction does not need to be returned, and returns directly.
When the module sends back information, as shown in fig. 6, the procedure of receiving the instruction by the control unit of the operation panel is as follows:
Waiting.
The CAN transceiver receives an instruction.
Judging a sender according to the instruction ID;
and analyzing the instruction content and performing corresponding operation.
Waiting.
For example, after the operation panel starts the modules 0, 3, and 9, the current pulling state of all the modules is to be queried.
Communication instruction: ID (111 1111 1111) instruction (current pull status query).
The operation panel control unit broadcasts instructions through the CAN transceiver.
The communication command is also received by all 10 module controllers, and each module analyzes the same query command.
And the number 0-9 modules all perform operation:
calculation result number 0: 100 0000 0001b;
Calculation result number 1: 100 00000010B;
Calculation result 9: 110 0000b.
Judging result: and numbers 0-9 are all confirmed to be native instructions.
Each module analyzes the instruction and forms the latest state of each module into a reply data packet to be returned.
0. And the numbers 3 and 9 are ready to upload in the pulling process, and the other numbers are ready to upload in the standby process.
And the numbers 0-9 all judge that the instruction needs to be sent back and turn into a data sending program. 0 number module communication instruction: ID (000 0000 0001B) instruction (current state: in pull).
The command is also received by the panel control unit and the remaining 9 module controllers, but the remaining 9 module controllers confirm that the command is not received because the highest ID bit is "0".
Only the control unit of the operation panel receives the instruction and stores the received state to the memory corresponding to the No. 0 module for display on the front panel.
Similarly, the modules 1-9 CAN generate their own ID and instruction in a similar manner and upload them to the CAN bus respectively.
Communication instruction of No.1 module: ID (000 0000 0010B) instruction (current state: standby).
Communication instruction of No.2 module: ID (000 0000 0100B) instruction (current state: standby).
Communication instruction of No. 3 module: ID (000 0000 1000B) instruction (current state: in pull).
And a No. 4 module communication instruction: ID (000 0001 0000B) instruction (current state: standby).
And 5, a communication instruction of a No. 5 module: ID (000 0010 0000B) instruction (current state: standby).
And 6, a communication instruction of a No. 6 module: ID (000 0100 0000B) instruction (current state: standby).
And 7, a communication instruction of a No. 7 module: ID (000 1000 0000B) instruction (current state: standby).
And 8, a communication instruction of a number 8 module: ID (001 0000 0000B) instruction (current state: standby).
And 9, a communication instruction of a number 9 module: ID (010 0000 0000B) instruction (current state: in pull load).
Because of the existence of the CAN bus communication hardware arbitration function, a total of 10 pieces of information from 10 module controllers CAN be sequentially received by the operation panel control unit, and the data are not confused for the operation panel because each piece of information has an ID number corresponding to the own address although the receiving sequence is not fixed. The control unit of the operation panel can receive the uploading information of the No. 0-No. 9 modules respectively in an indefinite sequence, and perform operations such as analysis, processing and the like to finish the whole communication process.
In summary, the communication method provided in the embodiment can solve the problems of timing control synchronicity between multimode groups and high efficiency of real-time data query.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that modifications may be made to the technical solutions described in the foregoing embodiments, or equivalents may be substituted for some of the technical features thereof; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. A multi-channel digital modular electronic load sharing an operating panel, a plurality of electronic loads sharing an operating panel, the electronic load comprising:
the operation panel control unit comprises a CAN bus interface;
The two-channel electronic load units comprise CAN bus interfaces and addressing interfaces; the dual-channel electronic load unit comprises two single-channel electronic load units, wherein the lowest bit address line of an addressing interface of one single-channel electronic load unit is connected to a low level, and the lowest bit address line of an addressing interface of the other single-channel electronic load unit is connected to a high level;
the whole machine switching unit comprises a CAN bus termination resistor and a plurality of address interfaces; the CAN bus interfaces of the operation panel control unit and the two-channel electronic load unit are connected with the CAN bus termination resistor; each address interface comprises a plurality of address lines, each address line is connected to a high level or a low level, and the addresses formed by the address interfaces based on the high level and the low level are different; the addressing interface of the two-channel electronic load unit is connected to the address interface of the whole machine switching unit, other address lines except the lowest address line of the addressing interface of the two-channel electronic load unit are connected with the address interface of the whole machine switching unit, and the level information of the lowest address line of each single-channel electronic load unit is combined with the level information of the address interface of the connected whole machine switching unit to obtain a unique address of the single-channel electronic load unit.
2. The multi-channel digital modular electronic load sharing an operation panel according to claim 1, wherein the single-channel electronic load unit comprises an n-bit addressing interface and a CAN bus interface, the dual-channel electronic load unit comprises a module switching unit, the module switching unit comprises a CAN bus interface and an n-1-bit addressing interface, the CAN bus interface of the module switching unit is connected with the CAN bus interface of the single-channel electronic load unit, the n-1-bit addressing interface of the module switching unit is connected with other address lines except the lowest address line of the single-channel electronic load unit, and the low level and the high level of the module switching unit are respectively connected to the lowest address lines of the addressing interfaces of the two single-channel electronic load units.
3. The multi-channel digital modular electronic load sharing an operator panel according to claim 2, wherein the single channel electronic load unit comprises a four-bit addressing interface and the modular switching unit comprises a three-bit addressing interface.
4. The multi-channel digital modular electronic load sharing an operation panel according to claim 1, wherein the complete machine switching unit has five address interfaces, and each address interface is connected with a two-channel modular electronic load unit.
5. The multi-channel digital modular electronic load sharing an operation panel according to claim 1, wherein the single-channel electronic load units each comprise a main control unit, a load unit and a load connection terminal group.
6. The multi-channel digital modular electronic load sharing an operation panel according to claim 1, wherein the operation panel control unit is connected with at least one of a touch screen, a keyboard, a screen, and a communication interface.
7. A communication method of a multi-channel digital modular electronic load based on the common operation panel as claimed in claim 1, characterized in that,
The communication instruction comprises a host bit and an address bit of each single-channel electronic load unit;
When the operation panel control unit sends an instruction to the single-channel electronic load unit to be communicated, the host position and the address position 1 and the rest positions 0 corresponding to the single-channel electronic load unit to be communicated are set;
After all the single-channel electronic load units receive the instruction, when the host bit is 1 and the address bit corresponding to the single-channel electronic load units is 1, the instruction is processed, otherwise, the instruction is not processed;
when the single-channel electronic load unit sends an instruction to the operation panel control unit, the operation panel control unit obtains the address of the single-channel electronic load unit for sending information according to the information of which the address bit is 1, wherein the address position is 1 and the other address positions are 0.
8. The communication method according to claim 7, wherein,
Each single-channel electronic load is provided with an acceptance instruction identification code and a transmission instruction identification code, the acceptance instruction identification code and the transmission instruction identification code are the same as the communication instruction bit, the bit corresponding to the host bit of the acceptance instruction identification code and the address bit corresponding to the host bit are 1, and the rest bits are 0; the address bit corresponding to the identification code of the sending instruction and the sending instruction is 1, and the rest bits are 0;
And after the single-channel electronic load receives the communication instruction, carrying out logical AND operation on the receiving instruction identification code and the communication instruction, wherein when the result corresponds to the receiving instruction identification code, the single-channel electronic load is a local communication instruction and processes the communication instruction, otherwise, the single-channel electronic load is a non-local communication instruction and does not process the communication instruction.
9. The communication method according to claim 8, wherein the communication command is processed to determine whether a return is required, and if so, the transmission command identification code is edited as a command ID.
10. The communication method of claim 7, wherein the communication instruction comprises 10-bit address bits and 1-bit host bits.
CN202410256794.1A 2024-03-07 2024-03-07 Multi-channel digital module type electronic load sharing operation panel and communication method Active CN117851299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410256794.1A CN117851299B (en) 2024-03-07 2024-03-07 Multi-channel digital module type electronic load sharing operation panel and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410256794.1A CN117851299B (en) 2024-03-07 2024-03-07 Multi-channel digital module type electronic load sharing operation panel and communication method

Publications (2)

Publication Number Publication Date
CN117851299A CN117851299A (en) 2024-04-09
CN117851299B true CN117851299B (en) 2024-05-10

Family

ID=90529443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410256794.1A Active CN117851299B (en) 2024-03-07 2024-03-07 Multi-channel digital module type electronic load sharing operation panel and communication method

Country Status (1)

Country Link
CN (1) CN117851299B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202216989U (en) * 2011-08-24 2012-05-09 山东艾诺仪器有限公司 Direct current electronic load based on FIFO architecture bus control mode
CN208297690U (en) * 2018-05-31 2018-12-28 常州同惠电子股份有限公司 Modularized dc electronic load device based on RS485
CN109374935A (en) * 2018-11-28 2019-02-22 武汉精能电子技术有限公司 A kind of electronic load parallel operation method and system
CN208937625U (en) * 2018-08-29 2019-06-04 深圳市鼎阳科技有限公司 A kind of electronic load circuit
CN109975586A (en) * 2019-04-12 2019-07-05 西安太乙电子有限公司 A kind of constant current electronic load circuit and its working method
CN219957623U (en) * 2023-04-17 2023-11-03 珠海市运泰利自动化设备有限公司 Constant-current electronic load multichannel switching module

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3529297A (en) * 1967-12-06 1970-09-15 Electronic Associates Hybrid interface having repetitious channel addressing
US8242629B2 (en) * 2009-02-03 2012-08-14 Transistor Devices, Inc. Hybrid load systems including a dynamic electronic load and passive resistive load modules

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202216989U (en) * 2011-08-24 2012-05-09 山东艾诺仪器有限公司 Direct current electronic load based on FIFO architecture bus control mode
CN208297690U (en) * 2018-05-31 2018-12-28 常州同惠电子股份有限公司 Modularized dc electronic load device based on RS485
CN208937625U (en) * 2018-08-29 2019-06-04 深圳市鼎阳科技有限公司 A kind of electronic load circuit
CN109374935A (en) * 2018-11-28 2019-02-22 武汉精能电子技术有限公司 A kind of electronic load parallel operation method and system
CN109975586A (en) * 2019-04-12 2019-07-05 西安太乙电子有限公司 A kind of constant current electronic load circuit and its working method
CN219957623U (en) * 2023-04-17 2023-11-03 珠海市运泰利自动化设备有限公司 Constant-current electronic load multichannel switching module

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
High level mixed load balancing algorithm in P2P real-time distributed data exchange system;Xu Hong;Mini-Micro Systems;20240411;第27卷(第4期);全文 *
基于CAN总线和LabVIEW的能馈电子负载监控系统;陈雪冰;郭倩;马皓;;机电工程;20110820(第08期);全文 *
移动电站测试用电子负载的发展与关键技术;刘威;朱长青;谷志锋;;国外电子测量技术;20200115(第01期);全文 *

Also Published As

Publication number Publication date
CN117851299A (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN109307833A (en) Apparatus for testing chip and chip detecting method
CN117851299B (en) Multi-channel digital module type electronic load sharing operation panel and communication method
CN208905026U (en) Versatile interface protocol conversion module based on LORA network
CN111384876A (en) Dual-axis motor driving system and method based on dual-core processing
CN110794808A (en) Matrix driving device and multi-channel signal switching method thereof
CN110224911B (en) Rapid communication method based on MODBUS-RS485 multi-path integrated system
WO2023125108A1 (en) Controller, control system, and communication method for controller
CN114879634A (en) Automatic calibration method and system for PLC analog quantity
CN210924279U (en) Matrix driving device
CN210867732U (en) SPI changes ethernet interface circuit and frequency conversion controller
CN110781103B (en) PXI bus switch module control system and method
CN220340342U (en) Test system for console circuit board
CN201773394U (en) Bus interface device of PROFIBUS
CN210514977U (en) Encoder group control board based on printed board
CN212569761U (en) Multi-interface conversion equipment based on network
CN211264137U (en) Modularization air conditioner electrical system
CN216915765U (en) Vehicle information interaction control system
JPS6028024B2 (en) Input/output interface device
CN111638804A (en) Wireless keyboard mouse device capable of switching and controlling multiple computers
CN215679353U (en) IT asset accurate positioning node data exchange circuit
CN214895656U (en) Display chip test equipment
CN218768136U (en) Device for switching I2C bus by using programmable logic device
CN220871091U (en) Multi-group communication shared circuit and air conditioner
CN204229184U (en) A kind of high precision four axle scanning support controller
CN110099124B (en) Universal building automation assembly type network communication system and method

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