Method for realizing compatible current input and output through single port
By using an isolated CNC constant current source module in the current control module, the single-port current input and output function is realized, which solves the problem of the increase in the size of the equipment and the increase in the number of ports caused by the unidirectional function of the traditional module, and improves the utilization rate of the module and the applicability of the equipment.
Patent Information
- Application Number
- CN202510040962.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-04-18
AI Technical Summary
Traditional current control modules usually only have one-way functions, resulting in an increase in the size of the equipment and an increase in the number of ports, making it difficult to meet the complex and changing industrial field needs.
By using the isolated CNC constant current source module based on patent CN2019109522226, the single-port current input and output function is realized, the current port connection device type is judged, and instructions to set and read current values are sent through the digital communication port to realize the compatible input and output of the current.
This improves the utilization of modules and reduces the number of ports required by the device, thereby reducing the volume of the device and making it more suitable for industrial field environments with limited space.
Smart Images

Figure CN119847048A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of signal transmission, and in particular to a method for realizing compatible current input and output through a single port. Background Art
[0002] With the development of the Internet of Things and artificial intelligence, the demand for data collection and control in industrial sites is increasing. This requires the installation of a variety of equipment to meet different needs. However, the on-site environment is often limited in space, which imposes strict restrictions on the size of the equipment. In addition, how to use limited equipment to cope with diverse on-site needs has also become a challenge. Traditional current control modules usually only have one-way functions, that is, current input or current output, and need to occupy different ports. This leads to an increase in the size of the equipment and the number of ports, making it difficult to meet the complex and changing needs of industrial sites. Summary of the invention
[0003] The present invention provides a method for realizing compatible current input and output with a single port, and realizes the current input and output function of a single port by utilizing the isolated CNC constant current source module described in patent CN2019109522226, thereby improving the utilization rate of the module and reducing the size of the equipment.
[0004] The following steps are involved: (1) Determine whether the current output device or the current input device is connected to the current port of the isolated digital control constant current source module; (2) Assuming that the output current value of the isolated digital control constant current source module is to be set to IdataS, then, if it is a current input device, the current value IdataS is assigned to the current value actually required to be output; if it is a current output device, the current value IdataS is assigned to IdataMax, and IdataMax should not be less than the maximum output current of the current output device; (3) sending information M1 including a set current value IdataS to the digital communication port of the isolated digital controlled constant current source module; (4) sending a message M2 including a command for reading an internal monitoring current value Idataf to a digital communication port of the isolated digital control constant current source module; (5) parsing the information M3 containing the internal monitoring current value Idataf returned by the isolated digital control constant current source module, where Idataf is the actual current value flowing through the current port of the isolated digital control constant current source module; (6) Return to step (1).
[0005] The present invention utilizes the characteristics of the isolated digital controlled constant current source module to achieve single-port current input and output compatibility, and has the following advantages: The utilization rate of the module is improved, and a single port can realize the input and output functions of current.
[0006] The number of ports required for the device is reduced, thereby reducing the size of the device, making it more suitable for industrial field environments with limited space.
[0007] The system design is simplified and the system complexity is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0009] Figure 1 : is a schematic diagram of connecting the isolated digital controlled constant current source module and a current input device in the method described in the present invention; Figure 2 : A schematic diagram of connecting an isolated digitally controlled constant current source module and a current output device in the method described in the present invention. DETAILED DESCRIPTION
[0010] The detailed contents and technical description of the present invention are further described with reference to embodiments. However, it should be understood that these embodiments are only used for illustrative purposes and should not be construed as limitations on the implementation of the present invention.
[0011] The following embodiments all use the isolated digital controlled constant current source module described in patent CN2019109522226, which has the function of reading the internal monitoring current value Idataf through the digital communication port, assuming that its minimum normal operating current is 2.5mA.
[0012] Example 1: Connecting current input device refer to Figure 1 The method of the present invention is applied to a scenario connected to a 4-20mA current input device. The main device controls the isolated digital control constant current source module through a digital communication interface to output 4~20mA current to the current input device for collection.
[0013] During the business operation, assuming that the isolated CNC constant current source module needs to output a current of 10mA, IdataS is set to 10mA, information M1 is set to {command: set current, value: 10mA}, and information M2 is set to {command: read current}. The module returns information M3 as {command: current value, value: 10mA}. The current value output to the current input device is successfully read. At this time, the current input device should be able to collect a current of 10mA.
[0014] Example 2: Connecting a current output device The method of the present invention is applied to a scenario connected to a 4-20mA current output device. The main device controls the isolated digital control constant current source module through a digital communication interface to collect the current value output by the current output device.
[0015] First, IdataS is set to 25mA, and information M1 is set to {command: set current, value: 25mA}. Assuming that the current output value of the current output device is 5mA, information M2 is set to {command: read current}. The module returns information M3 as {command: respond to current value, value: 5mA}. The current value of the current output device is successfully read.
[0016] According to the description of patent CN2019109522226, the isolated CNC constant current source module can monitor the current value flowing through its current port. When the current value is less than the set output current value but not less than the minimum normal working current, it can still work normally. Therefore, this feature of the module can be used. When docking with a current output device, as long as the output of the isolated CNC constant current source module is set to the maximum value (at least greater than the maximum output current of the current output device), the current output by the current output device can be monitored.
Claims
1. A method for achieving compatible current input and output with a single port, characterized in that: The following steps are involved: (1) Determine whether the current output device or the current input device is connected to the current port of the isolated digital control constant current source module; (2) Assuming that the output current value of the isolated digital control constant current source module is to be set to IdataS, then, if it is a current input device, the current value IdataS is assigned to the current value actually required to be output; If it is a current output device, the current value IdataS is assigned to IdataMax, and IdataMax should not be less than the maximum output current of the current output device; (3) sending information M1 including a set current value IdataS to the digital communication port of the isolated digital controlled constant current source module; (4) sending a message M2 including a command for reading an internal monitoring current value Idataf to a digital communication port of the isolated digital control constant current source module; (5) parsing the information M3 containing the internal monitoring current value Idataf returned by the isolated digital control constant current source module, where Idataf is the actual current value flowing through the current port of the isolated digital control constant current source module; (6) Return to step (1).
2. The method according to claim 1, characterized in that: The isolated CNC constant current source module is the isolated CNC constant current source module described in patent CN2019109522226.
3. The method according to claim 2, characterized in that The isolated digitally controlled constant current source module should allow its internal monitoring current value Idataf to be read through its digital communication port.