CN117518933A - Control system and method of intelligent motor control box - Google Patents
Control system and method of intelligent motor control box Download PDFInfo
- Publication number
- CN117518933A CN117518933A CN202311616331.3A CN202311616331A CN117518933A CN 117518933 A CN117518933 A CN 117518933A CN 202311616331 A CN202311616331 A CN 202311616331A CN 117518933 A CN117518933 A CN 117518933A
- Authority
- CN
- China
- Prior art keywords
- control
- motor
- module
- communication
- communication module
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 230000006854 communication Effects 0.000 claims abstract description 84
- 238000004891 communication Methods 0.000 claims abstract description 83
- 230000008569 process Effects 0.000 claims abstract description 7
- 230000003993 interaction Effects 0.000 claims description 11
- 230000006870 function Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 6
- 230000001351 cycling effect Effects 0.000 claims description 3
- 238000012800 visualization Methods 0.000 abstract description 3
- 230000004044 response Effects 0.000 abstract description 2
- 230000005540 biological transmission Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 125000004122 cyclic group Chemical group 0.000 description 3
- 238000003745 diagnosis Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- DDOQBQRIEWHWBT-UHFFFAOYSA-N 2-azaniumyl-4-phosphonobutanoate Chemical compound OC(=O)C(N)CCP(O)(O)=O DDOQBQRIEWHWBT-UHFFFAOYSA-N 0.000 description 1
- 238000012356 Product development Methods 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 101150103565 comX gene Proteins 0.000 description 1
- 238000010835 comparative analysis Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007858 starting material Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Abstract
The invention discloses a control system of an intelligent motor control box, which comprises a communication module, a display screen, a motor driving module and a control module, wherein the communication module, the display screen, the motor driving module and the control module are connected in an electric signal mode; the invention also comprises a control method of the intelligent motor control box, which comprises the following steps: s1, initializing a communication module, a control module and an FSMC related to serial ports in a starting state; s2, creating tasks and scheduling time slices through the communication module, and determining the time allowed to operate by the process. The intelligent motor control box utilizes the communication module to complete communication with the master station, utilizes the driving module on the control module to control and detect signals of the motor driver, thereby realizing control of motor steering, realizing simple operation, running state visualization and high-speed control, and realizing quick response and accurate display of motor state under different settings.
Description
Technical Field
The invention relates to the technical field of motor control, in particular to a control system and a control method of an intelligent motor control box.
Background
The remote I/O equipment based on PROFINET has wide market prospect, and can be applied to PROFIBUS systems, and can provide interfaces to transmit data to industrial Ethernet, thereby providing a low-cost solution for equipment upgrading.
In China, the main content of research is also the use of general PROFINET equipment and a method for solving various problems encountered in practical application, including setting of various parameters in configuration, programming and the like, and the research is less in aspects of protocol, instantaneity, product development and the like.
Disclosure of Invention
The invention aims to solve the technical problems, and provides a control system and a control method of an intelligent motor control box, which utilize a communication module to complete communication with a main station, utilize a driving module on the control module to control a motor driver and detect signals, thereby realizing control on motor steering, realizing simple operation, running state visualization and high-speed control, and realizing the intelligent motor control box capable of rapidly reacting and accurately displaying motor states under different settings.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the control system of the intelligent motor control box comprises a communication module, a display screen, a motor driving module and a control module, and is characterized in that the communication module, the display screen, the motor driving module and the control module are connected in an electric signal mode;
the communication module is communicated with a PROFINETIO bus of the PLC master station through loaded firmware, and the communication rate is 100Mbit/s; the control module is connected with the FSMC and completes data exchange with the control module through the FSMC;
the motor driving module is connected with the control module, receives a control signal of the control module and feeds back motor alarm information, and adopts a motor driver which controls opening and closing through a relay;
the display screen is communicated with the control module through a 232 bus, receives and displays the current rotation information of the motor driver, displays the recorded opening and closing times of the relay, and can visualize the motor operation information by clicking the display screen and sending a motor reset signal to construct man-machine interaction;
the control module completes bus communication with the PLC master station, information interaction of the display screen and communication of the motor driver in a task automatic scheduling mode, and the tasks are mutually independent, so that the accuracy of communication and the rapidness of control are ensured.
Preferably, the communication module is a communication module COMX51-CA-RE with a Hertz communication.
Preferably, the display screen is a capacitive screen.
Preferably, the control module further comprises a processor, and the processor is connected with the communication module through the FSMC to realize PROFINETIO bus communication with the PLC master station.
Preferably, the control module uses an STM32F407 chip as a processor to carry a FREETEOS operating system.
Preferably, the communication module adopts COMX51-CA-RE, realizes PROFINETIO bus communication with the PLC master station by loading a firmware packet and constructing network configuration with the PLC, and realizes information interaction with the control module through FSMC.
Preferably, the control module virtually maps the storage area of the communication module on the processor address through the FSMC, and achieves PROFINETIO bus connection with the PLC master station.
Preferably, the control module receives a motor control command from the main station, and sends a control signal to the motor driver through a driving circuit on the control board to control the running direction of the motor.
Preferably, the control module is connected with the display screen through a 232 bus, displays current control line fault information, motor running state, motor fault information display and relay counting display, and can realize a motor reset function by clicking the touch screen.
The invention also comprises a control method of the intelligent motor control box, which comprises the following steps:
s1, initializing a communication module, a control module and an FSMC related to serial ports in a starting state;
s2, creating tasks and scheduling time slices through a communication module, and determining the time allowed to operate by a process;
s3, judging the created tasks, wherein task judgment comprises tasks I, II and III;
a1, task one: displaying input state, then displaying relay count, and displaying fault information;
a2, task two: opening a designated motor through PLC communication, and then carrying out counting zero clearing;
a3, task three: the output state display is followed by the motor running state display, and finally the motor reset signal detection is executed;
s4, displaying fault information of the first task, the second task and the third task in the S3, resetting the count, transmitting a result of executing motor reset signal detection, scheduling time slices in the S2, and sequentially cycling after task judgment.
The beneficial effects of the invention are as follows:
the intelligent motor control box utilizes the communication module to complete communication with the master station, utilizes the driving module on the control module to control and detect signals of the motor driver, thereby realizing control of motor steering, realizing simple operation, running state visualization and high-speed control, and realizing quick response and accurate display of motor state under different settings.
Drawings
FIG. 1 is a schematic diagram of a control system for a motor control box of the present invention;
FIG. 2 is a flow chart of a control system program for the motor control box of the present invention;
FIG. 3 is a schematic circuit diagram of a master control chip in the control system of the motor control box of the present invention;
FIG. 4 is a schematic circuit diagram of an input port in the control system of the motor control box of the present invention;
FIG. 5 is a schematic circuit diagram of a motor control port in the control system of the motor control box of the present invention;
fig. 6 is a schematic circuit diagram of an output port in a control system of a motor control box 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.
Referring to fig. 1, 3-6, a control system of an intelligent motor control box comprises a communication module, a display screen, a motor driving module and a control module, and is characterized in that the communication module, the display screen, the motor driving module and the control module are connected in an electric signal mode;
the communication module is communicated with a PROFINETIO bus of the PLC master station through loaded firmware, and the communication rate is 100Mbit/s; the control module is connected with the FSMC and completes data exchange with the control module through the FSMC; wherein, further explanation: and downloading a firmware packet of a PROFINETIO bus provided by an official authority into a communication module, constructing a network configuration by utilizing a PLC master station, realizing communication connection between the communication module and the PLC, and completing data interaction. The communication module is arranged on the control module, the control module realizes address mapping through the FSMC, and data sent by the PLC stored on the communication module are read;
among them, PROFINETIO is further explained: aiming at the design of PROFINETIO interface circuits, fewer chips supporting PROFINETIO protocol are available in the market, and the ERTEC series chips of Siemens company and the netX series chips of He's telecommunication company are mature. Through comparative analysis, a PROFINETIO interface circuit is designed by adopting a network controller chip NETX100 of He's telecommunication company; NETX100 is a communication protocol chip suitable for the development of an intelligent PROFINETIO slave station, and the PROFINETIOV2.3 protocol is deeply integrated, and realizes the communication function of the slave station through the cooperative work with a master control chip STM32F407ZGT 6; the physical layer of PROFINETIO adopts RJ45 transmission technology, and one NETX100 chip can expand two RJ45 interfaces;
the motor driving module is connected with the control module, receives a control signal of the control module and feeds back motor alarm information, and adopts a motor driver which controls opening and closing through a relay;
the display screen is communicated with the control module through a 232 bus, receives and displays the current rotation information of the motor driver, displays the recorded opening and closing times of the relay, and can visualize the motor operation information by clicking the display screen and sending a motor reset signal to construct man-machine interaction;
the control module completes bus communication with the PLC master station, information interaction of the display screen and communication of the motor driver in a task automatic scheduling mode, and the tasks are mutually independent, so that the accuracy of communication and the rapidness of control are ensured.
In the invention, the communication module adopts a COMX51-CA-RE communication module with a Hertz communication; the main control chip STM32F407 can exchange data with the combX 51-CA-RE module; the communication module stores and runs a PROFINETIO protocol stack, and the protocol stack automatically transmits the circulating data and the non-circulating data sent by the main control chip STM32F407 to the industrial Ethernet PROFINET; the data transmission modes comprise the following two modes:
(1) The transmission mode of the circulating data is as follows: the transmission of the cyclic data requires calling a process data image of the IO image service, the cyclic data is stored in the process data image, the maximum number of bytes can be 2048, and the input data and the output data are respectively stored in an independently operable memory;
(2) Transmission mode of non-cyclic data: the transmission of the non-circulating data between the main control chip and the combx 51CA-RE module is realized through a mailbox function and is transmitted in the form of a message. The functions of process, diagnosis, alarm and the like can be realized, and each message is 1024 bytes at maximum;
in the invention, the display screen adopts a capacitive screen, wherein the capacitive screen is a capacitive screen of Di-Wen technology;
in the invention, the control module further comprises a processor, and the processor is connected with the communication module through the FSMC to realize PROFINETIO bus communication with the PLC master station.
In the invention, the control module takes an STM32F407 chip as a processor and carries a FREETEOS operating system, so that the STM32F407 chip is selected as the processor, because the STM32F407 integrates a high-speed embedded memory, the capacities of a Flash memory and a system SRAM are respectively up to 1 Mbyte and 192 bytes, and a large number of enhanced I/O and peripherals connected to 2 APB buses, 2 AHB buses and 1 32-bit multi-AHB bus matrix are adopted; with an adaptive real-time memory accelerator (ART accelerator), the program can realize the running performance equivalent to zero waiting state when running in the Flash memory at the CPU frequency of up to 168 z. In addition, with 3 12-bit ADC modules, 2 DAC modules, 1 low power RTC, 12 general 16-bit timers (including 2 PWM timers for motor control), 2 general 32-bit timers, 1 enhanced Flexible Static Memory Control (FSMC) interface, and STM32F407 is rich in functions and peripherals and low in price;
in the invention, the communication module adopts COMX51-CA-RE, and realizes PROFINETIO bus communication with the PLC master station by loading a firmware packet and constructing network configuration with the PLC, and the communication module realizes information interaction with the control module through FSMC; the COMX51-CA-RE communication module combined with the Hertz protocol is stable in communication, high in transmission speed and high in operation reliability and functional diversity; the motor has a short-circuit protection function, and provides good protection for the controller and the motor;
wherein the comp 51-CA-RE communication module is further explained: the industrial Ethernet module comX51-CA-RE integrates a netX chip and a peripheral circuit thereof, communication between the netX chip and the main control chip is carried out by means of a double-end memory interface DPM, and at the moment, the netX can be regarded as a memory of the main control chip;
the hardware interface provided by the embedded module com X51-CA-RE to the user is a pin header of 50 pins, namely a double-end memory interface DPM, and the header comprises control lines such as read-write enabling signals, 16-bit data buses D0-D15 and 14-bit address buses A0-A13 which are necessary for communication with a main control chip; the control line includes: bhe#, res#, rd#, int#, wr#, cs#, which determine the operations of reading data, handshaking of the dual processor, and the like; the user communicates with the combx module through the access to the dual-end memory interface DPM, and the combx module is similar to an SRAM and controls the access to the dual-end memory interface DPM through the control bus write signal wr#, the read signal rd# and the chip select signal cs#; these control signals are all active low; when the comX module writes data into a special handshake unit of the DPM, an interrupt signal INT# is output to a main CPU; the handshake unit is used for synchronizing the combx module and the main control chip and is provided with handshake bits; after the master control chip reads the handshake unit, the interrupt is automatically cleared; when the main control chip accesses the comp module, the busy# signal is used to insert a wait, and when it is low, it indicates that the comp is currently BUSY, and the main system must keep the current transmission;
all accesses to the dual-end memory interface DPM are firstly synchronized with the netX clock and then converted into the internal access period; these all require time, in order to manage access timing, the BUSY signal sent to the host system is used to extend the current access period until the data can be read and written;
when the chip select signal cs# and the read signal or the write signal are low, an access period starts; the address lines must remain stable throughout the cycle; at access, switching addresses is not possible; there must be an interval between two access cycles;
in addition, a com X diagnosis circuit is designed, and through the com X diagnosis circuit, new firmware can be downloaded to a com module, file configuration can be carried out, and the operation condition of the com can be diagnosed in the communication process;
in the invention, the control module virtually maps the storage area of the communication module on the address of the processor through the FSMC, thereby realizing the PROFINETIO bus connection with the PLC master station.
In the invention, the control module receives a motor control command from the main station, and sends a control signal to the motor driver through the driving circuit on the control board to control the running direction of the motor.
In the invention, the control module is connected with the display screen through a 232 bus to display the current control line fault information, the motor running state, the motor fault information display and the relay counting display, and the motor reset function can be realized by clicking the touch screen; this is explained further: the display screen receives and analyzes the instruction from the control module, and displays information such as fault alarm, motor running state, motor fault information, relay count and the like of the control box on the screen, so that the control box is convenient for operators to operate and maintain; for the accidental motor fault condition, a worker can realize motor reset by clicking a motor reset key on a screen; when the service times of the relay reach the service life, the screen can prompt, and reset can be realized by clicking a relay time reset key;
wherein, the system is debugged before use: when the intelligent motor controller is debugged, the PROFINET master station controller PLC is connected with the intelligent motor controller through a switch; firstly, switching on a +24V power supply, observing a display screen, displaying information, and displaying all the information without errors; when the edited PLC program is imported, whether each intelligent motor starter can make correct behavior according to instructions or not is sequentially debugged, if the corresponding relation exists between the PLC variable address and the motor controlled by the controller, for example,% IB68 is the first of 8_bytes_input, the corresponding relation is a 16-system number, 8 bits are provided, and each bit corresponds to the state of one motor.
Referring to fig. 2, the present invention further includes a control method of an intelligent motor control box, including the steps of:
s1, initializing a communication module, a control module and an FSMC related to serial ports in a starting state;
s2, creating tasks and scheduling time slices through a communication module, and determining the time allowed to operate by a process;
s3, judging the created tasks, wherein task judgment comprises tasks I, II and III;
a1, task one: displaying input state, then displaying relay count, and displaying fault information;
a2, task two: opening a designated motor through PLC communication, and then carrying out counting zero clearing;
a3, task three: the output state display is followed by the motor running state display, and finally the motor reset signal detection is executed;
s4, displaying fault information of the first task, the second task and the third task in the S3, resetting the count, transmitting a result of executing motor reset signal detection, scheduling time slices in the S2, and sequentially cycling after task judgment.
The method and the method are combined with the mode of automatic task scheduling shown in fig. 2, and the bus communication with the PLC, the information interaction of the touch screen and the communication of the motor driver are completed, the tasks are mutually independent, and the accuracy of communication and the rapidness of control are ensured. The memory area of the communication module is virtually mapped on the address of the processor through the FSMC, so that the PROFINETIO bus connection with the PLC master station is realized. The control module receives a motor control command from the master station, and sends a control signal to the motor driver through a driving circuit on the control board to control the running direction of the motor.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical scheme of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.
Claims (10)
1. The control system of the intelligent motor control box comprises a communication module, a display screen, a motor driving module and a control module, and is characterized in that the communication module, the display screen, the motor driving module and the control module are connected in an electric signal mode;
the communication module is communicated with a PROFINETIO bus of the PLC master station through loaded firmware, and the communication rate is 100Mbit/s; the control module is connected with the FSMC and completes data exchange with the control module through the FSMC;
the motor driving module is connected with the control module, receives a control signal of the control module and feeds back motor alarm information, and adopts a motor driver which controls opening and closing through a relay;
the display screen is communicated with the control module through a 232 bus, receives and displays the current rotation information of the motor driver, displays the recorded opening and closing times of the relay, and can visualize the motor operation information by clicking the display screen and sending a motor reset signal to construct man-machine interaction;
the control module completes bus communication with the PLC master station, information interaction of the display screen and communication of the motor driver in a task automatic scheduling mode, and the tasks are mutually independent, so that the accuracy of communication and the rapidness of control are ensured.
2. The control system of an intelligent motor control box according to claim 1, wherein, the communication module adopts a COMX51-CA-RE communication module with a Hertz communication.
3. The control system of an intelligent motor control box according to claim 1, wherein the display screen is a capacitive screen.
4. The control system of claim 1, wherein the control module further comprises a processor, and the processor is connected with the communication module through the FSMC to realize profinet bus communication with the PLC master station.
5. The control system of claim 1, wherein the control module is configured to mount a fretos operating system by using an STM32F407 chip as a processor.
6. The control system of the intelligent motor control box according to claim 1, wherein the communication module adopts COMX51-CA-RE, and realizes PROFINETIO bus communication with a PLC master station by loading a firmware packet and constructing a network configuration with the PLC, and the communication module realizes information interaction with the control module through FSMC.
7. The control system of claim 1, wherein the control module virtually maps the memory area of the communication module to the processor address via the FSMC, thereby implementing a profinet bus connection with the PLC master station.
8. The control system of claim 7, wherein the control module receives a motor control command from the master station, and sends a control signal to the motor driver via a driving circuit on the control board to control the motor operation direction.
9. The control system of claim 4, wherein the control module is connected to the display screen via a 232 bus to display current control line fault information, motor operating status, motor fault information display and relay count display, and the motor reset function is realized by clicking the touch screen.
10. The control method of the intelligent motor control box is characterized by comprising the following steps of:
s1, initializing a communication module, a control module and an FSMC related to serial ports in a starting state;
s2, creating tasks and scheduling time slices through a communication module, and determining the time allowed to operate by a process;
s3, judging the created tasks, wherein task judgment comprises tasks I, II and III;
a1, task one: displaying input state, then displaying relay count, and displaying fault information;
a2, task two: opening a designated motor through PLC communication, and then carrying out counting zero clearing;
a3, task three: the output state display is followed by the motor running state display, and finally the motor reset signal detection is executed;
s4, displaying fault information of the first task, the second task and the third task in the S3, resetting the count, transmitting a result of executing motor reset signal detection, scheduling time slices in the S2, and sequentially cycling after task judgment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311616331.3A CN117518933A (en) | 2023-11-29 | 2023-11-29 | Control system and method of intelligent motor control box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311616331.3A CN117518933A (en) | 2023-11-29 | 2023-11-29 | Control system and method of intelligent motor control box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117518933A true CN117518933A (en) | 2024-02-06 |
Family
ID=89751174
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311616331.3A Pending CN117518933A (en) | 2023-11-29 | 2023-11-29 | Control system and method of intelligent motor control box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117518933A (en) |
-
2023
- 2023-11-29 CN CN202311616331.3A patent/CN117518933A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102546843B (en) | A kind of method by the multiple UART communication interfaces of software simulated implementation | |
CN100524122C (en) | Bus controller for numerical control system of full digital ring bus | |
CN101917320B (en) | Configuration parameter downloading device and downloading method of configurable control modules on passenger car body | |
CN101876825B (en) | Human-computer interface device of small PLC | |
CN111541595A (en) | 1553B bus data communication method and system | |
CN114039808B (en) | CAN/LIN/SENT forwarding protocol of CAN-based multichannel | |
CN111679935A (en) | Configuration monitoring fault-tolerant communication method based on DMA and interrupt fusion | |
CN117518933A (en) | Control system and method of intelligent motor control box | |
CN108345558B (en) | RS485 centralized configuration unit supporting multiple protocols | |
CN115189985B (en) | Modbus multi-master-station data planning and forwarding device | |
CN104155891B (en) | I<2>C-based networked transmitter and communication implementation method thereof | |
CN201230327Y (en) | DeviceNet field bus I/O communication apparatus based on multiple data triggering modes | |
CN115982050A (en) | Multifunctional test system and method for IO-Link master station | |
CN200997073Y (en) | Universal digital-controlled system based on digital ring bus | |
CN102508486A (en) | Method and device for diagnosing excitation fault by using controller area network (CAN) communication data protocol | |
CN201345391Y (en) | Control panel system used in electric automobile battery charger | |
CN214042097U (en) | PLC serial port communication extension module capable of customizing protocol | |
CN204992516U (en) | Computer protection device and power equipment | |
CN212183548U (en) | IEC61850 protocol and Modbus protocol keysets | |
CN201689410U (en) | Multiplex switching value bus transmission module | |
CN204423022U (en) | Can general purpose transducer opertaing device and system | |
CN201726429U (en) | Download device of parameter configuration file of configurable control module of bus body | |
CN113126551A (en) | Remote data acquisition system based on single-pair Ethernet | |
CN207867489U (en) | Hub based on field programmable gate array and industrial control configuration machine | |
CN203241752U (en) | Digital analog conversion CAN bus control transmit-receive system connected with multipath-sensor |
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 |