Data communication system, method, terminal device and medium of integrated drive and control controller

The data communication between industrial computers and multiple integrated drive and control controllers is realized through the CAN bus protocol, which solves the high cost and complexity problems of existing multi-axis control methods and achieves efficient multi-axis collaborative control.

CN114500145BActive Publication Date: 2024-08-23SHENZHEN YAKO AUTOMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111631117.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-08-23
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The existing multi-axis control method has the problems of high control cost and complex control process, resulting in low control efficiency.

Method used

The CAN bus protocol is used to realize data communication between the industrial computer and multiple drive and control integrated controllers. Through the connection between the main control subsystem and the slave control subsystem, the preset CAN bus protocol is used to trigger the status query command, configure the data frame and Perform message analysis to achieve multi-axis coordinated control.

Benefits of technology

It reduces the cost of the equipment motion control unit and improves the control efficiency of multi-axis control and the stability of the control process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114500145B
    Figure CN114500145B
Patent Text Reader

Abstract

The present invention discloses a data communication system, method, terminal device and computer-readable storage medium of a drive-control integrated controller, wherein the data communication system of the drive-control integrated controller comprises: a master control subsystem, the master control subsystem is used to trigger a status query instruction according to a preset CAN bus protocol; a slave control subsystem, the slave control subsystem is connected to the master control subsystem via a CAN bus, the slave control subsystem is used to query the status of the drive-control integrated controller through the status query instruction to obtain a query result, and transmit the query result to the master control subsystem based on the CAN bus protocol, wherein the slave control subsystem includes a plurality of the drive-control integrated controllers. The present invention can improve the multi-axis control efficiency of the drive-control integrated controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic control, and in particular to a data communication system, method, terminal equipment and computer-readable storage medium of a drive-control integrated controller. Background Art

[0002] In current industrial control systems, it is generally necessary to control multiple devices, that is, multi-axis control. In the prior art, a bus controller based on the Ethcat (Ether Control Automation Technology) protocol is generally used to implement multi-axis control, or a PLC (Programmable Logic Controller) is used to implement multi-axis control.

[0003] However, the existing multi-axis control methods have the problems of high control cost and complex control process, which greatly reduces the control efficiency of the multi-axis control. Summary of the invention

[0004] The main purpose of the present invention is to provide a data communication system, method, terminal device and computer-readable storage medium for a drive-control integrated controller, aiming to improve the control efficiency of multi-axis control of multiple drive-control integrated controllers based on the CAN protocol.

[0005] To achieve the above object, the present invention provides a data communication system of a drive-control integrated controller, the data communication system of the drive-control integrated controller comprising:

[0006] A main control subsystem, the main control subsystem is used to trigger a status query instruction according to a preset CAN bus protocol;

[0007] A slave control subsystem, wherein the slave control subsystem is connected to the master control subsystem via a CAN bus, and the slave control subsystem is used to query the status of the integrated drive and control controller through the status query instruction to obtain a query result, and transmit the query result to the master control subsystem based on the CAN bus protocol, wherein the slave control subsystem includes a plurality of the integrated drive and control controllers.

[0008] To achieve the above object, the present invention further provides a data communication method of a drive-control integrated controller, the data communication method of the drive-control integrated controller is applied to a data communication system of the drive-control integrated controller, and the data communication method of the drive-control integrated controller includes:

[0009] The main control subsystem triggers a status query instruction according to a preset CAN bus protocol;

[0010] The slave control subsystem performs a status query on the integrated drive and control controller according to the status query instruction to obtain a query result, and transmits the query result to the master control subsystem based on the CAN bus protocol.

[0011] Optionally, before the step of triggering the status query instruction by the main control subsystem according to the preset CAN bus protocol, the method further includes:

[0012] Configure the data frame in the CAN bus protocol.

[0013] Optionally, the data frame includes: an arbitration area, and the arbitration area includes: an extension area;

[0014] The step of configuring the data frame in the CAN bus protocol comprises:

[0015] Configure the ID17 bit to the ID0 bit in the arbitration area as the extension area;

[0016] The ID7 bit to the ID0 bit in the extended area are configured as operation instruction bits, the ID8 bit in the extended area is configured as a read / write control bit, the ID9 bit in the extended area is configured as a flag bit, and the ID11 bit to the ID10 bit in the EID are configured as axis ID bits.

[0017] Optionally, the arbitration area further includes: a standard area;

[0018] The step of configuring the data frame in the CAN bus protocol also includes:

[0019] Configure bits ID28 to ID18 in the arbitration area as the standard area;

[0020] The ID24 to ID18 bits in the standard area are configured as device ID bits, and the ID27 bit in the standard area is configured as a master / slave data frame distinction bit.

[0021] Optionally, the data frame further includes: a control area, the control area includes: a valid data area;

[0022] The step of configuring the data frame in the CAN bus protocol also includes:

[0023] The valid data area is configured as a loading valid data byte area.

[0024] Optionally, the data frame further includes: a data area;

[0025] The step of configuring the data frame in the CAN bus protocol also includes:

[0026] The data area is configured as a valid data loading area.

[0027] Optionally, the step of performing a status query on the integrated drive-control controller according to the status query instruction triggered by the main control subsystem to obtain a query result includes:

[0028] The status query instruction is parsed based on the configuration mode of the data frame in the CAN bus protocol, and the status query of the integrated drive and control controller is performed according to the status query instruction after the message parsing to obtain the query result.

[0029] To achieve the above-mentioned purpose, the present invention also provides a terminal device, which includes: a memory, a processor, and a data communication program of the integrated drive and control controller stored in the memory and executable on the processor, and the data communication program of the integrated drive and control controller, when executed by the processor, implements the steps of the data communication method of the integrated drive and control controller as described above.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which a data communication program of the integrated drive and control controller is stored. When the data communication program of the integrated drive and control controller is executed by a processor, the steps of the data communication method of the integrated drive and control controller as described above are implemented.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the data communication method of the integrated drive and control controller as described above are implemented.

[0032] The present invention provides a data communication system, method, terminal equipment, computer-readable storage medium and computer program product of a drive-control integrated controller. The data communication system of the drive-control integrated controller comprises: a master control subsystem, the master control subsystem is used to trigger a status query instruction according to a preset CAN bus protocol; a slave control subsystem, the slave control subsystem is connected to the master control subsystem via a CAN bus, the slave control subsystem is used to perform a status query on the drive-control integrated controller through the status query instruction to obtain a query result, and transmit the query result to the master control subsystem based on the CAN bus protocol, wherein the slave control subsystem comprises a plurality of the drive-control integrated controllers.

[0033] Compared with the existing technology that generally implements multi-axis control systems based on the Ethcat protocol bus controller (control card) or PLC, the CAN bus protocol is used to realize data communication between the industrial computer and the integrated drive and control controller, and then the industrial computer controls the related motion control and logic control functions of multiple integrated drive and control controllers in the automatic control equipment system, thereby realizing complex multi-axis collaborative control and reducing the cost of the equipment motion control unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A schematic diagram of functional modules of an embodiment of a data communication system of a drive-control integrated controller of the present invention;

[0035] Figure 2 A schematic diagram of a plurality of integrated drive-control control networks involved in an embodiment of a data communication system of an integrated drive-control controller of the present invention;

[0036] Figure 3 A schematic diagram of CAN bus interface signals involved in an embodiment of a data communication system of a drive-control integrated controller of the present invention;

[0037] Figure 4 A schematic diagram of a flow chart related to an embodiment of a data communication method for a drive-control integrated controller of the present invention;

[0038] Figure 5 A schematic diagram of a master-slave communication mode involved in an embodiment of a data communication method for a drive-control integrated controller of the present invention;

[0039] Figure 6 A schematic diagram of a CAN data frame involved in an embodiment of a data communication method for a drive-control integrated controller of the present invention;

[0040] Figure 7 A schematic diagram of a CAN configuration method involved in an embodiment of a data communication method for a drive-control integrated controller of the present invention;

[0041] Figure 8 It is a schematic diagram of the structure of the hardware operating environment involved in the embodiment of the present invention.

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] like Figure 1 The functional module diagram of an embodiment of the data communication system of the integrated drive-control controller of the present invention is shown in FIG. 1 . In an embodiment of the data communication system of the integrated drive-control controller of the present invention, the data communication system of the integrated drive-control controller of the present invention includes:

[0045] A main control subsystem, the main control subsystem is used to trigger a status query instruction according to a preset CAN bus protocol;

[0046] A slave control subsystem, wherein the slave control subsystem is connected to the master control subsystem via a CAN bus, and the slave control subsystem is used to query the status of the integrated drive and control controller through the status query instruction to obtain a query result, and transmit the query result to the master control subsystem based on the CAN bus protocol, wherein the slave control subsystem includes a plurality of the integrated drive and control controllers.

[0047] It should be noted that, in this embodiment, the integrated drive-control controller integrates the functions of the drive controller and the controller to realize the drive and control of the motor. Figure 2 The schematic diagram of multiple integrated drive-control network shown in the figure shows that the master control subsystem includes an industrial computer, and the slave control subsystem includes multiple integrated drive-control controllers, namely Figure 2 The multiple control boards in the industrial computer are connected to multiple drive-control integrated controllers through the CAN bus. Figure 3 As shown in the CAN bus interface signal diagram, the CAN bus interface of the drive controller adopts a plug-in European terminal. The CAN bus interface signals in the integrated drive controller include: CAN low potential, CAN-L signal, CAN shielding line, CAN-H signal and CAN high level. The industrial computer in the main control subsystem is connected to the CAN-L signal interface and CAN-H signal interface of the integrated drive controller through the CAN bus, thereby realizing data communication between the industrial computer and multiple integrated drive controllers. In a control network, the industrial computer can be connected to up to 64 sets of integrated drive controllers.

[0048] The industrial computer in the master control subsystem sends a status query instruction to the integrated drive and control controller in the slave control subsystem using the CAN bus protocol. After receiving the status query instruction, the integrated drive and control controller will query the current status of the current integrated drive and control controller based on the status query instruction.

[0049] In this embodiment, the CAN bus protocol is used to realize data communication between the industrial computer and the integrated drive and control controller, and then the industrial computer controls the related motion control and logic control functions of multiple integrated drive and control controllers in the automatic control equipment system, thereby realizing complex multi-axis collaborative control processing and reducing the cost of the equipment motion control unit.

[0050] Further, based on the various embodiments of the data communication system of the integrated drive and control controller, various embodiments of the data communication method of the integrated drive and control controller of the present invention are proposed. The data communication method of the integrated drive and control controller of the present invention is applied to the data communication system of the integrated drive and control controller as described above.

[0051] Please refer to Figure 4 , Figure 4 It is a flow chart of a first embodiment of a data communication method for a drive-control integrated controller of the present invention.

[0052] In this embodiment, an embodiment of a data communication method for a drive-control integrated controller is provided. It should be noted that although a logical sequence is shown in the flow chart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0053] Step S10, triggering a status query instruction through the main control subsystem according to a preset CAN bus protocol;

[0054] The terminal device triggers the CAN bus protocol through the industrial computer to query the status of the integrated drive and control controller. The current motion status of the integrated drive and control controller is queried through the status query instruction to perform the next step of motion control and logic control according to the current motion status of the integrated drive and control controller.

[0055] It should be noted that, in this embodiment, Figure 5 In the master-slave communication mode schematic diagram shown, the industrial computer and the integrated drive-control controller use the "command-response" mode for data communication, that is, the industrial computer sends a status query instruction to the integrated drive-control controller, and the integrated drive-control controller performs a status query operation after receiving the status query instruction to obtain the query result, and returns the query result to the industrial computer, and the industrial computer will obtain the query result. In this embodiment, the CAN bus protocol is used to realize the data interaction between the industrial computer and multiple integrated drive-control controllers, thereby realizing multi-axis control for multiple integrated drive-control controllers. This multi-axis control method has low control cost and high control efficiency.

[0056] Step S20, performing a status query on the integrated drive and control controller through the status query instruction to obtain a query result, and transmitting the query result to the main control subsystem based on the CAN bus protocol.

[0057] The terminal device receives the status query instruction triggered by the main control subsystem through the integrated drive-control controller, and queries the current status of the integrated drive-control controller according to the status query instruction, where the current status may include: network communication rate and actual motor speed, etc. Then the query result is also transmitted back to the industrial computer based on the CAN bus protocol, so that the technicians can obtain the control information of the integrated drive-control controller through the industrial computer.

[0058] It should be noted that, in this embodiment, the industrial computer and multiple integrated drive and control controllers use a pre-configured CAN bus protocol to transmit communication data. This data communication method has low control cost, stable control process and high control efficiency.

[0059] Furthermore, before the above step S10, "triggering a status query instruction according to a preset CAN bus protocol", it also includes:

[0060] Step S30, configuring the data frame in the CAN bus protocol.

[0061] Before the terminal device uses the CAN bus protocol to trigger the status query instruction to query the status of multiple integrated drive and control controllers, it needs to pre-configure the data frame in the CAN bus protocol to achieve the corresponding function.

[0062] It should be noted that, in this embodiment, Figure 6 The CAN data frame schematic diagram shown in the figure shows that the CAN frame message format adopts the CAN2.0B (29-bit ID with extended bit) data format. The data frame consists of three areas: arbitration area, control area and data area. In addition, it also includes SOF, SRR, IDE, RTR, r1 and r0, among which SOF (start of frame) is composed of only one explicit bit (0), and all industrial computers and integrated drive and control controllers must be synchronized with the starting leading edge of the frame sent first; SRR is a recessive bit (1), which is used to replace the RTR bit of the standard format; IDE is a recessive bit (1), representing the extended format (29-bit ID); RTR is 0 when it represents a non-remote frame, and RTR is 1 when it represents a remote frame. Generally, RTR is 0 by default; r1 and r0 are reserved bits, and r1 and r0 must be 0. In this embodiment, the data frame in the CAN bus protocol can be configured accordingly according to the status information of the integrated drive and control controller that the industrial computer wants to query, so as to realize flexible communication between the industrial computer and the integrated drive and control controller, and further realize flexible multi-axis control for multiple integrated drive and control controllers.

[0063] Furthermore, in the above step S30, “configuring the data frame in the CAN bus protocol” may include:

[0064] Step S301, configuring the ID17 bit to the ID0 bit in the arbitration area as the extension area;

[0065] Step S302, configure the ID7 bit to the ID0 bit in the EID as the operation instruction bit, configure the ID8 bit in the extension area as the read / write control bit, configure the ID9 bit in the extension area as the flag bit, and configure the ID11 bit to the ID10 bit in the extension area as the axis ID bit.

[0066] It should be noted that, in this embodiment, each bit of the arbitration area in the CAN bus protocol data frame is configured.

[0067] Specifically, for example, the CAN bus protocol data frame mainly includes an arbitration area, a control area, and a data area, and the arbitration area includes an extended area (EID) and a standard area (SID). Figure 7As shown in the schematic diagram of CAN configuration, bits ID17 to ID0 in the arbitration area are configured as EID, wherein bits ID7 to ID0 in the EID are configured as operation instruction bits, and the industrial computer can command the drive-control integrated controller to perform corresponding operations based on bits ID7 to ID0; bits ID8 in the EID are configured as read / write control bits, "1" indicates reading data, and "0" indicates writing data; bits ID9 in the EID are configured as flag bits, and bits ID9 being 0 indicates that there is no subsequent data frame for this data frame; bits ID9 being 1 indicates that the current data frame does not contain all the data to be transmitted, and subsequent data frames will continue to be transmitted; bits ID11 to ID10 in the EID are configured as axis ID bits, wherein 0x0 indicates that the operation on the drive-control integrated controller is not related to the axis or indicates the setting for all axes of the drive-control integrated controller, 0x1 represents the operation on the x-axis of the drive-control integrated controller, 0x2 represents the operation on the y-axis of the drive-control integrated controller; and 0x3 represents the operation on the z-axis of the drive-control integrated controller.

[0068] It should be noted that in this embodiment, the corresponding command format of the EID in the CAN data frame is customized to achieve flexible communication between the industrial computer and the multi-drive-control integrated controller, thereby enabling multi-axis control of multiple drive-control integrated controllers based on the industrial computer.

[0069] Furthermore, in the above step S30, "configuring the data frame in the CAN bus protocol" also includes:

[0070] Step S303, configuring bits ID28 to ID18 in the arbitration area as the standard area;

[0071] Step S304, configuring bits ID24 to ID18 in the standard area as device ID bits, and configuring bit ID27 in the standard area as a master / slave data frame distinction bit.

[0072] It should be noted that, in this embodiment, the SID (standard area) in the CAN bus protocol arbitration area is configured. Figure 7As shown in the CAN configuration diagram, the ID28 to ID18 bits in the arbitration area are configured as SID. Among them, the ID24 to ID18 bits in the SID are configured as the device ID bits. Before the integrated drive and control controller is powered on, the ID of the device needs to be set in advance through the DIP switch. It should be noted that two integrated drive and control controllers on the same network cannot be set to the same ID. The global instruction address for all integrated drive and control controllers in the network uses 0x7F; the ID27 bit in the SID is configured as the master / slave data frame distinction bit. In the data frame sent by the industrial computer to the integrated drive and control controller, the ID25 bit is 0, and in the data frame that the integrated drive and control controller responds to the industrial computer, the ID25 bit is 1, to distinguish the master and slave data frames. Among them, the industrial computer can be represented as the master station, and the integrated drive and control controller can be represented as the slave station.

[0073] It should be noted that, in this embodiment, the ID28, ID26, ID25, and ID17 to ID12 bits in the arbitration area are 0, that is, they are left vacant and not specifically configured, and can be specifically configured according to the actual control situation. In this embodiment and the previous embodiment, flexible communication between the industrial computer and multiple drive-control integrated controllers is realized, thereby realizing multi-axis control of multiple drive-control integrated controllers based on the industrial computer, with low control cost and high control efficiency.

[0074] Furthermore, in the above step S30, "configuring the data frame in the CAN bus protocol" also includes:

[0075] Step S305, configuring the valid data area as a valid data byte loading area.

[0076] Step S306, configuring the data area as a valid data loading area.

[0077] In addition to the arbitration area, the CAN bus protocol data frame also includes a control area and a data area. The valid data area is configured to load the valid data byte area (DLC). A CAN data frame can load up to 8 bytes of valid data. The DLC is different in different status query instructions and can be configured according to actual conditions. The data area is configured to load the valid data area to load the valid data in the data frame.

[0078] Furthermore, in the above step S20, "querying the status of the integrated drive-control controller to obtain a query result according to the status query instruction triggered by the main control subsystem" may include:

[0079] Step S201, performing message parsing on the status query instruction based on the configuration mode of the data frame in the CAN bus protocol, and performing status query on the integrated drive and control controller according to the status query instruction after message parsing to obtain a query result.

[0080] The terminal device triggers the status query instruction through the industrial computer based on the configured CAN bus protocol, and after receiving the status query instruction, the integrated drive and control controller will further parse the status query instruction to perform corresponding status query on the integrated drive and control controller according to the pre-configured data frame and obtain the query result.

[0081] It should be noted that in this embodiment, the operator can pre-configure the CAN data frame based on the industrial computer, and then trigger the status query instruction through the configured CAN bus protocol to perform a corresponding status query on any integrated drive and control controller, thereby realizing flexible configuration of the CAN data frame and flexible control of multiple integrated drive and control controllers.

[0082] In this embodiment, before the terminal device uses the CAN bus protocol to trigger the status query instruction to query the status of multiple integrated drive and control controllers, it is necessary to pre-configure the data frame in the CAN bus protocol to realize the corresponding function. The terminal device uses the industrial computer to trigger the CAN bus protocol to query the status query instruction for the integrated drive and control controller, and queries the current motion state of the integrated drive and control controller through the status query instruction, so as to perform the next step of motion control and logic control according to the current motion state of the integrated drive and control controller. The terminal device receives the status query instruction triggered by the main control subsystem through the integrated drive and control controller, and queries the current state of the integrated drive and control controller according to the status query instruction, wherein the current state may include: network communication rate and actual motor speed, etc. Then, the query result is also transmitted back to the industrial computer using the CAN bus protocol, so that the technician can obtain the control information of the integrated drive and control controller through the industrial computer.

[0083] Compared with the prior art that generally implements a multi-axis control system by using a bus controller (control card) or PLC based on the Ethcat protocol, the present invention configures the data frame ID28 to ID0 bits in the CAN bus protocol accordingly. According to the configured CAN bus protocol, data communication can be performed with any integrated drive and control controller, thereby realizing multi-axis control of multiple integrated drive and control controllers, with low control cost, stable control process and high control efficiency.

[0084] Furthermore, based on the first embodiment of the data communication method of the integrated drive and control controller of the present invention, a second embodiment of the data communication method of the integrated drive and control controller of the present invention is proposed.

[0085] The main difference between this embodiment and the first embodiment is that this embodiment performs data communication between an industrial computer and any integrated drive-control controller based on the data communication method of the integrated drive-control controller proposed in the first embodiment.

[0086] If the SID sent by the industrial computer (master station) to the integrated drive and control controller (slave station) is: 00000000011 (binary), EID = 0x0103, DLC = 0, then:

[0087] In the SID, bits ID24 to ID16 are 0000011, indicating that the site ID of the slave station accessed by the master station is 3, and bit ID27 is 0, indicating that this data frame is the master station data;

[0088] The ID8 bit in EID is 1, which indicates reading data. The 03 in EID is the function code, which indicates the network communication rate.

[0089] DLC is 0, which means there is no valid data in the data frame.

[0090] If the SID that the slave responds to the master at this time is: 01000000011 (binary), EID = 0x0003, DLC = 1, DATA = 4, then:

[0091] The ID24 to ID16 bits in the SID are 0000011, indicating that the site ID of the slave station accessed by the master station is 3, and the ID27 bit is 1, indicating that this data frame is slave station data;

[0092] The ID8 bit in EID is 1, which means writing data to the master station. The 03 in EID is the function code, which indicates the network communication rate.

[0093] DLC is 1, indicating there is one byte of valid data;

[0094] DATA is 4, which means the communication rate is level 4.

[0095] If the SID sent by the master to the slave is: 00000001011 (binary), EID = 0x0542, DLC = 0, then:

[0096] SID describes the slave station ID being accessed as 0001011 (binary), i.e., station 11. Bit 0 in ID27 indicates that this data frame is sent from the master station to the slave station.

[0097] ID11 to ID10 in the EID are 0x01, indicating the X axis of the slave, ID8 is 1, indicating reading data, and 42 is the function code, indicating the actual running speed of the motor;

[0098] DLC is 0, which means there is no valid data in the data frame.

[0099] If the SID that the slave responds to the master at this time is: 01000001011 (binary), EID = 0x0442, DLC = 2, DATA = 0x20011031, then:

[0100] SID describes that the visited site ID is 0001011 (binary), i.e., slave site No. 11. Bit 1 in ID27 indicates that this data frame is written back from the slave to the master.

[0101] The ID11 to ID10 bits in the EID are 0x01, representing the X axis of the slave station; the ID8 bit is 0, indicating write data, and 42 is the operation instruction code, i.e., the function code, indicating "network communication rate";

[0102] DLC is 2, which means there are two bytes of valid data in the data frame;

[0103] DATA is 0x20011031, which means the actual running speed is 0x20011031 pulses / second.

[0104] Furthermore, if Figure 8 As shown, Figure 8 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.

[0105] It should be noted that the terminal device in the embodiment of the present invention may be a terminal device for realizing real-time and efficient data communication of the integrated drive and control controller, and the terminal device may specifically be an industrial computer or the like.

[0106] like Figure 8 As shown, the device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0107] Those skilled in the art will understand that Figure 8 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0108] like Figure 8As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a data communication program of the integrated drive and control controller. The operating system is a program that manages and controls the hardware and software resources of the device, and supports the operation of the data communication program of the integrated drive and control controller and other software or programs. Figure 8 In the device shown, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing a communication connection with the server; and the processor 1001 can be used to call the data communication program of the integrated drive and control controller stored in the memory 1005, and perform the following operations:

[0109] The main control subsystem triggers a status query instruction according to a preset CAN bus protocol;

[0110] The slave control subsystem performs a status query on the integrated drive and control controller according to the status query instruction to obtain a query result, and transmits the query result to the master control subsystem based on the CAN bus protocol.

[0111] Furthermore, before the step of triggering the status query instruction according to the preset CAN bus protocol by the main control subsystem, the processor 1001 can also be used to call the data communication program of the drive-control integrated controller stored in the memory 1005, and perform the following operations:

[0112] Configure the data frame in the CAN bus protocol.

[0113] Furthermore, the data frame includes: an arbitration area, and the arbitration area includes: an extension area. The processor 1001 can also be used to call the data communication program of the integrated drive and control controller stored in the memory 1005, and perform the following operations:

[0114] Configure the ID17 bit to the ID0 bit in the arbitration area as the extension area;

[0115] The ID7 bit to the ID0 bit in the extended area are configured as operation instruction bits, the ID8 bit in the extended area is configured as a read / write control bit, the ID9 bit in the extended area is configured as a flag bit, and the ID11 bit to the ID10 bit in the extended area are configured as axis ID bits.

[0116] Furthermore, the arbitration area also includes: a standard area, the processor 1001 can also be used to call the data communication program of the integrated drive and control controller stored in the memory 1005, and perform the following operations:

[0117] Configure bits ID28 to ID18 in the arbitration area as the standard area;

[0118] The ID24 to ID18 bits in the standard area are configured as device ID bits, and the ID27 bit in the standard area is configured as a master / slave data frame distinction bit.

[0119] Furthermore, the data frame further includes: a control area, the processor 1001 can also be used to call the data communication program of the integrated drive and control controller stored in the memory 1005, and perform the following operations:

[0120] The valid data area is configured as a loading valid data byte area.

[0121] Furthermore, the data frame further includes: a data area, and the processor 1001 can also be used to call the data communication program of the integrated drive and control controller stored in the memory 1005, and perform the following operations:

[0122] The data area is configured as a valid data loading area.

[0123] Furthermore, the processor 1001 may also be used to call the data communication program of the integrated drive and control controller stored in the memory 1005, and perform the following operations:

[0124] The status query instruction is parsed based on the configuration mode of the data frame in the CAN bus protocol, and the status query of the integrated drive and control controller is performed according to the status query instruction after the message parsing to obtain the query result.

[0125] In addition, an embodiment of the present invention also proposes a computer-readable storage medium, on which a data communication program of the integrated drive and control controller is stored. When the data communication program of the integrated drive and control controller is executed by a processor, the steps of the data communication method of the integrated drive and control controller as described above are implemented.

[0126] The various embodiments of the computer-readable storage medium of the present invention may refer to the various embodiments of the data communication method of the drive-control integrated controller of the present invention, and will not be described in detail here.

[0127] In addition, an embodiment of the present invention also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the steps of the data communication method of the integrated drive and control controller as described in any embodiment of the data communication method of the integrated drive and control controller.

[0128] The specific embodiments of the computer program product of the present invention are substantially the same as the embodiments of the data communication method of the above-mentioned integrated drive and control controller, and are not described in detail herein.

[0129] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0130] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be an industrial computer, etc.) to execute the methods described in each embodiment of the present invention.

[0132] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A data communication system for a drive-control integrated controller, characterized in that: The data communication system of the drive-control integrated controller comprises: A main control subsystem, the main control subsystem is used to trigger a status query instruction according to a preset CAN bus protocol; A slave control subsystem, wherein the slave control subsystem is connected to the master control subsystem via a CAN bus, and the slave control subsystem is used to query the status of the integrated drive-control controller through the status query instruction to obtain a query result, and transmit the query result to the master control subsystem based on the CAN bus protocol, wherein the slave control subsystem includes a plurality of the integrated drive-control controllers; The slave control subsystem is further used to configure a data frame in the CAN bus protocol; the data frame includes: an arbitration area, and the arbitration area includes: an extension area; The slave control subsystem is also used to configure the ID17 bit to the ID0 bit in the arbitration area as the extension area; configure the ID7 bit to the ID0 bit in the extension area as the operation instruction bit, configure the ID8 bit in the extension area as the read / write control bit, configure the ID9 bit in the extension area as the flag bit, and configure the ID11 bit to the ID10 bit in the extension area as the axis ID bit.

2. A data communication method for a drive-control integrated controller, characterized in that: The data communication method of the integrated drive and control controller is applied to the data communication system of the integrated drive and control controller according to claim 1, and the data communication method of the integrated drive and control controller comprises the following steps: The main control subsystem triggers a status query instruction according to a preset CAN bus protocol; The slave control subsystem performs a status query on the integrated drive and control controller according to the status query instruction to obtain a query result, and transmits the query result to the master control subsystem based on the CAN bus protocol; Before the step of triggering the status query instruction according to the preset CAN bus protocol by the main control subsystem, the method further includes: Configuring a data frame in the CAN bus protocol; the data frame includes: an arbitration area, and the arbitration area includes: an extension area; The step of configuring the data frame in the CAN bus protocol comprises: Configure the ID17 bit to the ID0 bit in the arbitration area as the extension area; The ID7 bit to the ID0 bit in the extended area are configured as operation instruction bits, the ID8 bit in the extended area is configured as a read / write control bit, the ID9 bit in the extended area is configured as a flag bit, and the ID11 bit to the ID10 bit in the extended area are configured as axis ID bits.

3. The data communication method of the drive-control integrated controller according to claim 2, characterized in that: The arbitration area also includes: a standard area; The step of configuring the data frame in the CAN bus protocol also includes: Configure bits ID28 to ID18 in the arbitration area as the standard area; The ID24 to ID18 bits in the standard area are configured as device ID bits, and the ID27 bit in the standard area is configured as a master / slave data frame distinction bit.

4. The data communication method of the drive-control integrated controller according to claim 2, characterized in that: The data frame further includes: a control area, the control area including: a valid data area; The step of configuring the data frame in the CAN bus protocol also includes: The valid data area is configured as a loading valid data byte area.

5. The data communication method of the drive-control integrated controller according to claim 2, characterized in that: The data frame also includes: a data area; The step of configuring the data frame in the CAN bus protocol also includes: The data area is configured as a valid data loading area.

6. The data communication method of the drive-control integrated controller according to any one of claims 2 to 5, characterized in that: The step of querying the status of the integrated drive and control controller according to the status query instruction triggered by the main control subsystem to obtain the query result includes: The status query instruction is parsed based on the configuration mode of the data frame in the CAN bus protocol, and the status query of the integrated drive and control controller is performed according to the status query instruction after the message parsing to obtain the query result.

7. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a communication program of the integrated drive and control controller stored in the memory and executable on the processor. When the communication program of the integrated drive and control controller is executed by the processor, the steps of the data communication method of the integrated drive and control controller as described in any one of claims 2 to 5 are implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a communication program of the integrated drive and control controller, and when the communication program of the integrated drive and control controller is executed by the processor, the steps of the data communication method of the integrated drive and control controller as described in any one of claims 2 to 5 are implemented.