CN108677371A - A kind of glove knitting machine head electromagnet control method based on FPGA - Google Patents
A kind of glove knitting machine head electromagnet control method based on FPGA Download PDFInfo
- Publication number
- CN108677371A CN108677371A CN201810631780.8A CN201810631780A CN108677371A CN 108677371 A CN108677371 A CN 108677371A CN 201810631780 A CN201810631780 A CN 201810631780A CN 108677371 A CN108677371 A CN 108677371A
- Authority
- CN
- China
- Prior art keywords
- electromagnet
- state
- signal
- control
- fpga
- 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.)
- Granted
Links
Classifications
-
- D—TEXTILES; PAPER
- D04—BRAIDING; LACE-MAKING; KNITTING; TRIMMINGS; NON-WOVEN FABRICS
- D04B—KNITTING
- D04B15/00—Details of, or auxiliary devices incorporated in, weft knitting machines, restricted to machines of this kind
- D04B15/94—Driving-gear not otherwise provided for
- D04B15/99—Driving-gear not otherwise provided for electrically controlled
Abstract
The glove knitting machine head electromagnet control method based on FPGA that the invention discloses a kind of, this method includes the realization of microcontroller control method and FPGA control methods;Microcontroller sends electromagnet status signal by FSMC;And FPGA receives control signal using FSMC receiving modules, then handles signal by delay counter, and then the continuous poll of recurrent state machine treated signal, generates final magnet control output signal.The present invention has significantly simplified the complexity of glove knitting machine head magnet control algorithm, improves realtime control, and reduce the probability for burning electromagnet from the design angle of hardware.
Description
Technical field
The invention belongs to glove knitting machine field, refer in particular to be head electromagnet in gloves machine controller control method, specifically
A kind of glove knitting machine head electromagnet control method based on FPGA.
Background technology
Be using microcontroller mostly it is core the control of realizing to glove knitting machine head electromagnet in current control strategy
System.And this scheme is to realize control algolithm with the mode of software, and usually had in glove knitting machine head different types of
Electromagnet, and quantity is more.This can lead to magnet control algorithm complex, and include control in gloves machine controller
The others task such as motor, if magnet control task is not completed before the deadline, it will lead to burning for electromagnet.
Invention content
In view of the deficiencies of the prior art, the present invention proposes a kind of glove knitting machine head magnet control side based on FPGA
Method solves existing glove knitting machine head magnet control algorithm complexity, the disadvantage of realtime control difference.
The glove knitting machine head electromagnet control method based on FPGA of the present invention depends on following hardware circuit:Microcontroller
Control circuit, FPGA control circuit, decoding latch cicuit, optical coupling isolation circuit, solenoid driver circuit, single chip machine controlling circuit
By the control signal of electromagnet by the way that in FSMC bus transfers to FPGA control circuit, FPGA is completed to all electromagnet shapes parallel
The processing of state signal, and the switching signal of electromagnet is quickly transferred to decoding latch cicuit successively, decode the defeated of latch cicuit
Go out and be connected to optical coupling isolation circuit, the signal after isolation is transmitted to solenoid driver circuit by optical coupling isolation circuit again.
The control method of the present invention, including microcontroller control method and FPGA control method two parts.
Microcontroller control method specific steps include:
Step 1:Electromagnet state control signal generates
A1:Address in FSMC buses is corresponded with the electromagnet that need to be controlled and uses the lowest order of FSMC by microcontroller
Data control two different states of electromagnet;
A2:The control signal of electromagnet is sent to FPGA by microcontroller by FSMC.
FPGA control method specific steps include:
Step 2:The processing of magnet control signal
B1:The data-signal of the different address received is converted into corresponding electromagnet shape by the FSMC receiving modules of FPGA
State signal;
B2:Each electromagnet status signal is input to corresponding delay counter module.
B3:The clr signals that the judgement symbol electromagnet conducting delay of delay counter module elder generation is completed, then hold if high level
Row B5, otherwise executes B4;
B4:Ignore the variation of electromagnet status signal, delay counter not more new count value;
B5:Refresh the value for the register for preserving electromagnet status signal, and compare the value of the value after refreshing and former register,
The value of the delay counter of setting is updated to if two values are different, the value of delay counter is leading for electromagnet after update
The logical time;
B6:Delay counter is parallel always to be counted downwards, when count value is reduced to zero, stops counting;
B7:Delay counter module by after refreshing electromagnet status signal and counter current count value be input to cycle
In state machine;
B8:The original state of recurrent state machine is state A, and a marking signal flag is arranged, judges the shape of flag signals
State carries out reset clear operation, and flag is set height, if high level, then if flag is low level to decoding latch cicuit
Without any operation, state is transferred to second state later;
B9:Second state is state B, this state first judges the clr signals of all electromagnet, if all high level,
Clear operation then is executed to decoding latch cicuit, state is transferred to third state;
B10:Third state is state C, this state will traverse all electromagnet, complete the control to all electromagnet;
B11:Cycle of states returns to state A.
Step 3:The realization of electromagnet time-delay closing
This step is also the control to each electromagnet in step B10, specifically includes following step:
C1:Judge that electromagnet corresponds to the count value of time delay count module, if count value is not zero, latch cicuit will be decoded
Data Position it is high, set low if zero, meanwhile, judge electromagnet status signal the address of decoding latch cicuit is arranged;
C2:Forbid latch signal;
C3:Enabled latch signal, and judge data bit, if data bit is low, height is set by clr signals, if not it is low then
Clr signals are set low;
C4:The data bit for judging decoding latch cicuit then sets address to another state with electromagnet if low
The corresponding address of signal, if not low, then address remains unchanged;
C5:Forbid latch signal;
C6:Enabled latch signal.
Compared with prior art, the beneficial effects of the invention are as follows:Present invention reduces glove knitting machine head magnet controls
The complexity of algorithm improves the real-time of magnet control, and reduce that electromagnet burns from the design angle of hardware can
Energy.
Description of the drawings
Fig. 1 is the hardware structure diagram of the present invention;
Fig. 2 is the FPGA module structure chart of the present invention;
Fig. 3 is the specific block diagram of recurrent state machine of FPGA.
Specific implementation mode
The glove knitting machine head electromagnet control method based on FPGA of the present invention depends on following hardware circuit:Microcontroller
Control circuit, FPGA control circuit, decoding latch cicuit, optical coupling isolation circuit, solenoid driver circuit.As shown in Figure 1, monolithic
Machine control circuit is by the control signal of electromagnet by the way that in FSMC bus transfers to FPGA control circuit, FPGA is completed to institute parallel
There is the processing of electromagnet status signal, and the switching signal of electromagnet is quickly transferred to decoding latch cicuit, decoding lock successively
The output for depositing circuit is connected to optical coupling isolation circuit, and the signal after isolation is transmitted to solenoid actuated electricity by optical coupling isolation circuit again
Road.
Microcontroller control method is as follows:
Step 1:Electromagnet state control signal generates
A1:Address in FSMC buses is corresponded with the electromagnet that need to be controlled and uses the lowest order of FSMC by microcontroller
Data control two different states of electromagnet;
A2:The control signal of electromagnet is sent to FPGA by microcontroller by FSMC.
If shown in Fig. 2, FPGA control circuit includes FSMC receiving modules, delay counter module, recurrent state machine module,
The electromagnet control method specifically includes following steps:
Step 2:The processing of magnet control signal
B1:The data-signal of the different address received is converted into corresponding electromagnet shape by the FSMC receiving modules of FPGA
State signal;
B2:Each electromagnet status signal is input to corresponding delay counter module.
B3:The clr signals that the judgement symbol electromagnet conducting delay of delay counter module elder generation is completed, then hold if high level
Row B5, otherwise executes B4;
B4:Ignore the variation of electromagnet status signal, delay counter not more new count value;
B5:Refresh the value for the register for preserving electromagnet status signal, and compare the value of the value after refreshing and former register,
The value of the delay counter of setting is updated to if two values are different, the value of delay counter is leading for electromagnet after update
The logical time;
B6:Delay counter is parallel always to be counted downwards, when count value is reduced to zero, stops counting;
B7:Delay counter module by after refreshing electromagnet status signal and counter current count value be input to cycle
In state machine;
B8:As shown in figure 3, the original state of recurrent state machine is state A, a marking signal flag is set, is judged
The state of flag signals carries out reset clear operation, and flag is set height if flag is low level to decoding latch cicuit,
If high level, then without any operation, state is transferred to second state later;
B9:Second state is state B, this state first judges the clr signals of all electromagnet, if all high level,
Clear operation then is executed to decoding latch cicuit, state is transferred to third state;
B10:Third state is state C, this state will traverse all electromagnet, complete the control to all electromagnet;
B11:Cycle of states returns to state A.
Step 3:The realization of electromagnet time-delay closing
This step is also the control to each electromagnet in step B10, specifically includes following step:
C1:Judge that electromagnet corresponds to the count value of time delay count module, if count value is not zero, latch cicuit will be decoded
Data Position it is high, set low if zero, meanwhile, judge electromagnet status signal the address of decoding latch cicuit is arranged;
C2:Forbid latch signal;
C3:Enabled latch signal, and judge data bit, if data bit is low, height is set by clr signals, if not it is low then
Clr signals are set low;
C4:The data bit for judging decoding latch cicuit then sets address to another state with electromagnet if low
The corresponding address of signal, if not low, then address remains unchanged;
C5:Forbid latch signal;
C6:Enabled latch signal.
Claims (1)
1. a kind of glove knitting machine head electromagnet control method based on FPGA, it is characterised in that:
Step 1:Electromagnet state control signal generates
A1:Address in FSMC buses is corresponded with the electromagnet that need to be controlled and uses the lowest order digit evidence of FSMC by microcontroller
To control two different states of electromagnet;
A2:The control signal of electromagnet is sent to FPGA by microcontroller by FSMC;
Step 2:The processing of magnet control signal
B1:The data-signal of the different address received is converted into corresponding electromagnet state by the FSMC receiving modules of FPGA to be believed
Number;
B2:Each electromagnet status signal is input to corresponding delay counter module;
B3:The clr signals that the judgement symbol electromagnet conducting delay of delay counter module elder generation is completed, then execute if high level
Otherwise B5 executes B4;
B4:Ignore the variation of electromagnet status signal, delay counter not more new count value;
B5:Refresh the value for the register for preserving electromagnet status signal, and compares the value of the value after refreshing and former register, if
Two values are different, are updated to the value of the delay counter of setting, when the value of delay counter is the conducting of electromagnet after update
Between;
B6:Delay counter is parallel always to be counted downwards, when count value is reduced to zero, stops counting;
B7:Delay counter module by after refreshing electromagnet status signal and counter current count value be input to recurrent state
In machine;
B8:The original state of recurrent state machine is state A, and a marking signal flag is arranged, judges the state of flag signals, if
Flag is low level, then carries out reset clear operation to decoding latch cicuit, and flag is set height, if high level, then not into
Any operation of row, later state be transferred to second state;
B9:Second state is state B, this state first judges the clr signals of all electromagnet, if all high level, right
It decodes latch cicuit and executes clear operation, state is transferred to third state;
B10:Third state is state C, this state will traverse all electromagnet, complete the control to all electromagnet;
B11:Cycle of states returns to state A;
Step 3:The realization of electromagnet time-delay closing
This step is also the control to each electromagnet in step B10, specifically includes following step:
C1:Judge that electromagnet corresponds to the count value of time delay count module, if count value is not zero, the number of latch cicuit will be decoded
According to position height, set low if zero, meanwhile, electromagnet status signal is judged the address of decoding latch cicuit is arranged;
C2:Forbid latch signal;
C3:Enabled latch signal, and judge data bit, if data bit is low, clr signals are set into height, if not low then by clr
Signal is set low;
C4:The data bit for judging decoding latch cicuit then sets address to another status signal with electromagnet if low
Corresponding address, if not low, then address remains unchanged;
C5:Forbid latch signal;
C6:Enabled latch signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810631780.8A CN108677371B (en) | 2018-06-19 | 2018-06-19 | FPGA-based glove machine head electromagnet control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810631780.8A CN108677371B (en) | 2018-06-19 | 2018-06-19 | FPGA-based glove machine head electromagnet control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108677371A true CN108677371A (en) | 2018-10-19 |
CN108677371B CN108677371B (en) | 2019-12-24 |
Family
ID=63811434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810631780.8A Active CN108677371B (en) | 2018-06-19 | 2018-06-19 | FPGA-based glove machine head electromagnet control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108677371B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112947282A (en) * | 2021-03-08 | 2021-06-11 | 电子科技大学 | Design of novel isolation unit applied to power gating FPGA structure |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201429787Y (en) * | 2009-03-16 | 2010-03-24 | 常熟理工学院 | Control and detection circuit of machine head actuator of computer flat machine |
CN103499739A (en) * | 2013-09-25 | 2014-01-08 | 浪潮电子信息产业股份有限公司 | Frequency measurement method based on FPGA |
CN203397201U (en) * | 2013-09-03 | 2014-01-15 | 何勇华 | CPLD or FPGA based high-speed synchronous serial communication circuit |
CN104991513A (en) * | 2015-05-11 | 2015-10-21 | 鲍梅连 | Straight-bar machine numerical control system based on FPGA high speed communication method |
CN107022835A (en) * | 2017-03-29 | 2017-08-08 | 东华大学 | A kind of multitask real-time control system and method for being used to control computer flat-knitting machine head |
-
2018
- 2018-06-19 CN CN201810631780.8A patent/CN108677371B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201429787Y (en) * | 2009-03-16 | 2010-03-24 | 常熟理工学院 | Control and detection circuit of machine head actuator of computer flat machine |
CN203397201U (en) * | 2013-09-03 | 2014-01-15 | 何勇华 | CPLD or FPGA based high-speed synchronous serial communication circuit |
CN103499739A (en) * | 2013-09-25 | 2014-01-08 | 浪潮电子信息产业股份有限公司 | Frequency measurement method based on FPGA |
CN104991513A (en) * | 2015-05-11 | 2015-10-21 | 鲍梅连 | Straight-bar machine numerical control system based on FPGA high speed communication method |
CN107022835A (en) * | 2017-03-29 | 2017-08-08 | 东华大学 | A kind of multitask real-time control system and method for being used to control computer flat-knitting machine head |
Non-Patent Citations (2)
Title |
---|
朱昊等: "FPGA在复杂开关逻辑系统中的应用研究", 《机电产品开发与创新》 * |
汪木兰等: "CPLD/FPGA在手套机电气控制系统中的应用", 《针织工业》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112947282A (en) * | 2021-03-08 | 2021-06-11 | 电子科技大学 | Design of novel isolation unit applied to power gating FPGA structure |
Also Published As
Publication number | Publication date |
---|---|
CN108677371B (en) | 2019-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103282895B (en) | Apparatus and method with High Data Rate serially-transmitted data | |
CN105955905B (en) | A kind of interface circuit and communication protocol based on serial bus structure | |
CN105549487B (en) | A kind of data signal edge delay update the system and method | |
CN101640525B (en) | Automatically shaping method with minimal transmission delay and circuit | |
CN110083563A (en) | A kind of arbitration circuit for realizing fair arbitration based on circular priority | |
CN114809855A (en) | Vehicle window control system based on SOA framework | |
CN108677371A (en) | A kind of glove knitting machine head electromagnet control method based on FPGA | |
CN107948176A (en) | A kind of information security Enhancement Method and controller towards CAN network | |
CN102033540A (en) | System for testing automobile instrument with a controller area network (CAN) bus and testing method thereof | |
CN101977134A (en) | Method for uniformly distributing communication network bus load of automobile electronic controller | |
CN102152766A (en) | Automotive electric door/window controller and control method thereof as well as automotive electric door/window system | |
CN100553256C (en) | A kind of monobus communication means of a plurality of node equipment interconnections | |
CN105739464B (en) | Master Communications method in intelligent appliance equipment | |
CN112422373B (en) | Method for analyzing aggregated service time of domain control architecture of electric vehicle | |
CN113141288A (en) | Mailbox message receiving and sending method and device of CAN bus controller | |
CN106294227B (en) | Arbitration equipment, dynamic self-adapting referee method and system | |
CN202837963U (en) | Multi-bus architecture based control device for braiding mechanism of circular knitting machine | |
CN107301143A (en) | A kind of asynchronous arbiter based on the phase Handshake Protocol of coding and double track four | |
CN112445146A (en) | Switch control system and switch control method for smart home | |
CN103434438A (en) | Double-module automobile lamp control system based on CAN (Control Area Network) bus | |
CN106851611A (en) | A kind of data is activation and the method and device for receiving | |
CN102611684B (en) | Physical unclonable function module based on feed-forward mode and realization method thereof | |
CN105262658A (en) | Switching device, field-bus topological structure, and data transmission method | |
CN103714012B (en) | Data processing method and device | |
CN205899288U (en) | Positive system is repaiied in time delay of data signal border |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |