Motor experiment system based on field bus control and control method thereof

The motor experiment system addresses address confusion in Profibus and Profinet networks by using a communication data component with three channels to automatically map and identify IO device addresses, improving data exchange reliability and efficiency.

CN119882583APending Publication Date: 2025-04-25梁文彬
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510001492.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-02
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

In Profibus and Profinet communication systems, the large number of IO devices can lead to confusion and address misalignment during network setup, causing data exchange failures due to the complexity of managing numerous data addresses.

Method used

A motor experiment system with a hardware and software architecture that includes a communication data component with three channels (A, B, and C) to automatically identify and map data and function addresses, ensuring unique communication between the PLC and IO devices using Profibus and Profinet protocols.

Benefits of technology

Facilitates quick and intelligent recognition of IO device addresses, even in complex network setups, enhancing data exchange reliability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119882583A_ABST
    Figure CN119882583A_ABST
Patent Text Reader

Abstract

The invention discloses a motor experiment system based on fieldbus control and a control method thereof, and relates to the technical field of fieldbus communication in the field of industrial automation control, the motor experiment system comprises a hardware part and a software part, and the hardware part and the software part are in interactive connection through a communication data component; and the communication data component comprises three processing channels, namely a channel A, a channel B and a channel C. According to the motor experiment system and the control method thereof, on the basis of a field bus communication network system applied by multiple slave stations, process address numbers of configuration slave stations are analyzed and classified; compared with a common Profibus or profinet configuration network system, processing of multi-configuration communication data is further considered, a process data address number and a process function address number can be automatically analyzed according to a configuration station number when an address number of a certain slave station is unknown, and the method is convenient to use under actual working conditions or test networking can be fast, convenient and fast. And the data address of each IO slave station can be known more intelligently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of field bus communication technology in the field of industrial automation control, in particular to a motor experiment system based on field bus control and a control method thereof. Background Art

[0002] Fieldbus technology is an industrial data bus that has developed rapidly in recent years. It mainly solves the digital communication between intelligent instruments, controllers, execution units and other field devices in the industrial field, as well as the information transmission between these field control devices and advanced control systems. Among them, Profibus and Profinet fieldbus are widely used in the field of industrial control.

[0003] In actual operation, there are often multiple IO devices (instruments / equipment based on Profibus and Profinet communication control), so it is necessary to know the data address of each IO device during programming.

[0004] However, when there are too many slave stations in the network, the slave station data addresses are too many and easy to be confused; or when a slave station is replaced, the register address will be disordered, and the original program will not be able to automatically identify the slave station address, which will cause data exchange failure.

[0005] In order to solve this problem, this set of system equipment is specially developed to facilitate the use or testing of ProfibusDp and ProfinetPN communication equipment networks to quickly and intelligently know the data address of each IO slave station. Summary of the invention

[0006] In view of the deficiencies in the prior art, the present invention provides a motor experiment system based on field bus control and a control method thereof, which solves the problems raised in the above background technology.

[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: a motor experiment system based on fieldbus control, including a hardware part and a software part, wherein the hardware part and the software part are interactively connected through a communication data component;

[0008] The communication data component includes three processing channels, namely channel A, channel B, and channel C;

[0009] The hardware part includes the main power switch, system power indicator light, DC24V power supply, HMI, switch, PLC, DP master module, PN switch, DP switch, and IO devices;

[0010] The hardware part also includes motor test bench, control cabinet, and sensor;

[0011] The motor test bench includes a mounting base mechanical platform, a torque sensor, and a magnetic powder brake load;

[0012] The control cabinet includes control circuit, industrial control computer, and frequency converter;

[0013] Sensors are used to measure various parameters of the motor, including voltage, current, torque, and speed;

[0014] The software component uses the PLC core program. When the master station PLC exchanges data with the IO device of the slave station based on the field bus of PN and Dp communication, it needs to identify the station number.

[0015] Optionally, the DC24V direct current power supply provides 24V direct current for use by HMI, PLC, and switches.

[0016] Optionally, the switch is used to connect to HMI, PLC or PC for data exchange.

[0017] Optionally, the HM I is used to display slave station (various parameters monitored by the inverter) data and parameter setting functions.

[0018] Optionally, the PLC is used to execute instructions issued by HM I and upload monitoring data from the slave station. The main program runs in the PLC, and the I point of the main body is used for input (the I 0.0 point external switch is used for PN communication calling program, and the I 0.1 point external switch is used for DP communication calling program. I 0.0 and I0.1 are interlocked inside the program, forcing the program segment to only select one of PN or Dp), and the Q point is used for output.

[0019] Optionally, the channel A is the configuration slave station number identification channel, which ensures the uniqueness between the PLC host and the slave that needs to exchange data. The channel uses the number in the system network through the communication data component to automatically identify the process data address number and process function address number available for the selected station in the current configuration system network station.

[0020] Optionally, the channel B is used to identify the function code address channel of the frequency converter, ensure the address uniqueness of the required interactive data, and map the required interactive function code address to the process function address at the end of the first channel.

[0021] Optionally, the channel C is an experimental data interaction processing channel, which maps the required interaction data to the process data address at the end of the first channel.

[0022] A control method for a motor experimental system based on fieldbus control comprises the following specific steps:

[0023] Step 1: HM I sends a request instruction, and the motor experiment data processing function block calculates the process data address number and process function address number available in the current system network configuration slave station according to the slave number (inverter) that needs to be modified;

[0024] Step 2: After receiving the inverter function code address sent by HMI, the function code identification channel analyzes the motor experimental data and stores the analysis result in the process function address number;

[0025] Step 3: After receiving the inverter parameter value or request value sent by HMI, the motor experiment data processing channel analyzes and stores the analysis result in the process data address number;

[0026] Step 4: After data verification and comparison, send to the inverter for execution.

[0027] The present invention provides a motor experiment system based on fieldbus control and a control method thereof, which has the following beneficial effects:

[0028] Compared with ordinary Profibus or Profinet configuration network systems, this motor experiment system based on fieldbus control and its control method further consider the processing of multi-configuration communication data, so that when the address number of a slave station is unknown, the process data address number and process function address number can be automatically parsed according to the configuration station number, which is convenient for use in actual working conditions or test networking to quickly and more intelligently know the data address of each IO slave station. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is the connection diagram of each unit of the control system of the invention;

[0030] Figure 2 It is a linear network topology electrical connection diagram of the PN communication method of the invention;

[0031] Figure 3 It is a star network topology electrical connection diagram in the PN communication mode of the invention;

[0032] Figure 4 It is a star network topology electrical connection diagram in the DP communication mode of the invention;

[0033] Figure 5 This is a schematic diagram of the communication data component of the invention;

[0034] Figure 6 Input interface style diagram for the HM I of the invention. DETAILED DESCRIPTION

[0035] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0036] In the description of the present invention, unless otherwise specified, "plurality" means two or more than two; the orientations or positional relationships indicated by the terms "upper", "lower", "left", "right", "inner", "outer", "front end", "rear end", "head", "tail", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

[0037] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0038] A motor experiment system based on field bus control includes a hardware part and a software part, wherein the hardware part and the software part are interactively connected via a communication data component;

[0039] The communication data component contains three processing channels, namely channel A, channel B, and channel C. Figure 5 As shown;

[0040] Channel A is the station number identification channel for the configured slave station, which ensures the uniqueness between the PLC host and the slave that needs to exchange data. This channel automatically identifies the process data address number and process function address number available for the selected station in the current configured system network station after passing through the communication data unit with the number in the system network;

[0041] Channel B is used to identify the function code address channel of the inverter, ensure the uniqueness of the address of the required interactive data, and map the required interactive function code address to the process function address at the end of the first channel;

[0042] Channel C is the experimental data interaction processing channel. On the premise of the end of the first channel, the required interaction data is mapped to the process data address;

[0043] The hardware part includes the main power switch, system power indicator, DC24V DC power supply, HMI, switch, PLC, DP master module, PN switch, DP switch, IO devices, such as Figure 1 As shown;

[0044] DC24V power supply, providing 24V DC source for HMI, PLC, and switch;

[0045] The switch is used to connect HMI, PLC or PC for data exchange;

[0046] HM I is used to display slave station (various parameters monitored by the inverter) data and parameter setting functions;

[0047] PLC is used to execute the instructions issued by HM I and upload the monitoring data of the slave station. The main program runs in the PLC. The I point of the main body is used for input (the external switch at I0.0 is used for PN communication to call the program, and the external switch at I0.1 is used for DP communication to call the program. I0.0 and I0.1 are interlocked in the program, forcing the program segment to only choose one of PN or DP). The Q point is used for output (when calling the PN program segment, the external indicator light at Q0.0 is on. When calling the DP program segment, the external indicator light at Q0.1 is on); the DP master station module is used for DP communication. When this IO device supports PN communication, the PN switch is adjusted to the closed state, and the PLC program calls the PN program segment; when this IO device supports DP communication, the DP switch is adjusted to the closed state, and the PLC program calls the DP program segment; when the master station PLC and each IO device perform PN or DP communication, such as Figure 3 and Figure 4 As shown;

[0048] The hardware part also includes motor test bench, control cabinet, and sensor;

[0049] The motor test bench includes a mounting base mechanical platform, a torque sensor, and a magnetic powder brake load;

[0050] The control cabinet includes control circuit, industrial control computer, and frequency converter;

[0051] Sensors are used to measure various parameters of the motor, including voltage, current, torque, and speed;

[0052] The software component uses the PLC core program. When the master station PLC exchanges data with the IO device of the slave station based on the field bus of PN and Dp communication, it needs to identify the station number.

[0053] Embodiment 1: A control method of a motor experiment system based on fieldbus control, comprising the following specific steps:

[0054] Step 1: HM I sends a request instruction, and the motor experiment data processing function block calculates the process data address number and process function address number available in the current system network configuration slave station according to the slave number (inverter) that needs to be modified;

[0055] Step 2: After receiving the inverter function code address sent by HMI, the function code identification channel analyzes the motor experimental data and stores the analysis result in the process function address number;

[0056] Step 3: After receiving the inverter parameter value or request value sent by HMI, the motor experiment data processing channel analyzes and stores the analysis result in the process data address number;

[0057] Step 4: After data verification and comparison, send to the inverter for execution.

[0058] Embodiment 2: A control method for a motor experimental system based on fieldbus control, comprising the following specific steps:

[0059] Step 1: First, use the network cable to connect each IO device (inverter), and then select PN in the touch screen interface and in the system operation interface;

[0060] Step 2: Enter the terminal slave station number (1, 2, ... N) that needs to be operated on the human-machine interface (HMI). This number is used as a universal station identification. Enter the function code of the terminal slave station (inverter) and the parameter value that needs to be set. The HMI input interface style is as follows: Figure 6 As shown;

[0061] Step 3: After the PLC receives the instruction from the master station HMI, the details are as follows:

[0062] (1) Analyze and calculate the numerical parameters of the station identification channel to calculate the corresponding process address range in the system network configuration (process data address number and process function address number, a total of 16 words (for example: QW2, QW4, QW6...QW32). Different station numbers have different process address numbers.

[0063] (2) Integrate and calculate the high and low bits of the received function code, and place the result in the process function address number;

[0064] example:

[0065] The function code address occupies two bytes, with the high byte in front and the low byte in the back; the range of high and low bytes are: high byte - 00 ~ ffH; low byte - 00 ~ ffH; the high byte is the group number before the function code point number, and the low byte is the number after the function code point number, but both must be converted into hexadecimal; such as P05.06, the group number before the function code point number is 05, then the high bit of the parameter address is 05, the number after the function code point number is 06, then the low bit of the parameter address is 06, and the function code address in hexadecimal is 0506H; for example, the parameter address of the function code P10.01 is 0A01H;

[0066] (4) The received setting parameters are placed in the process data address number according to the number parsed by the station identification channel; after the scanning cycle is completed, the data in ② and ③ are sent to the terminal slave station (inverter) to execute the specified function. The networking system is as follows Figure 2 As shown;

[0067] DP communication operation mode: Each IO device (here refers to the inverter) and the CM1243-5DP master communication module are connected via the DB9 bus communication interface. The transmission is carried out using shielded twisted pair copper wire (in accordance with RS-485 standard). This is the most commonly used transmission method of PROFI BUS. The cable used is shielded twisted pair copper wire.

[0068] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A motor experiment system based on fieldbus control, characterized in that: It includes a hardware part and a software part, wherein the hardware part and the software part are interactively connected via a communication data component; The communication data component includes three processing channels, namely channel A, channel B, and channel C; The hardware part includes the main power switch, system power indicator, DC24V power supply, HMI, switch, PLC, DP master module, PN switch, DP switch, and IO devices; The hardware part also includes motor test bench, control cabinet, and sensor; The motor test bench includes a mounting base mechanical platform, a torque sensor, and a magnetic powder brake load; The control cabinet includes control circuit, industrial control computer, and frequency converter; Sensors are used to measure various parameters of the motor, including voltage, current, torque, and speed; The software component uses the PLC core program. When the master station PLC exchanges data with the IO device of the slave station based on the field bus of PN and Dp communication, it needs to identify the station number.

2. The motor experiment system and control method based on fieldbus control according to claim 1, characterized in that: The DC24V direct current power supply provides 24V direct current for use by HMI, PLC, and switches.

3. The motor experiment system and control method based on fieldbus control according to claim 1, characterized in that: The switch is used to connect HMI, PLC or PC for data exchange.

4. The motor experiment system and control method based on fieldbus control according to claim 1, characterized in that: The HMI is used to display slave station data and parameter setting functions.

5. The motor experiment system and control method based on fieldbus control according to claim 1, characterized in that: The PLC is used to execute the instructions issued by the HMI and upload the monitoring data of the slave station. The main program runs in the PLC, and the I point of the main body is used for input and the Q point is used for output.

6. The motor experiment system and control method based on fieldbus control according to claim 1, characterized in that: The channel A is the configuration slave station number identification channel, which ensures the uniqueness between the PLC host and the slave that needs to exchange data. The channel uses the number in the system network through the communication data component to automatically identify the process data address number and process function address number available for the selected station in the current configuration system network station.

7. The motor experiment system and control method based on fieldbus control according to claim 1, characterized in that: The channel B is used to identify the function code address channel of the frequency converter, ensure the address uniqueness of the required interactive data, and map the required interactive function code address to the process function address at the end of the first channel.

8. The motor experiment system and control method based on fieldbus control according to claim 1, characterized in that: The channel C is an experimental data interaction processing channel, which maps the required interaction data to the process data address at the end of the first channel.

9. A control method for the motor experiment system based on fieldbus control as described in claims 1 to 8, characterized in that: The specific steps include: Step 1: The HMI sends a request instruction, and the motor experiment data processing function block calculates the available process data address number and process function address number in the current system network configuration slave station according to the slave number that needs to be modified; Step 2: After receiving the inverter function code address sent by HMI, the function code identification channel analyzes the motor experimental data and stores the analysis result in the process function address number; Step 3: After receiving the inverter parameter value or request value sent by the HMI, the motor experiment data processing channel analyzes and stores the analysis result in the process data address number; Step 4: After data verification and comparison, send to the inverter for execution.