CN104460490A - Programmable logic control processing method of frequency converter, digital processor and frequency converter - Google Patents
Programmable logic control processing method of frequency converter, digital processor and frequency converter Download PDFInfo
- Publication number
- CN104460490A CN104460490A CN201410637885.6A CN201410637885A CN104460490A CN 104460490 A CN104460490 A CN 104460490A CN 201410637885 A CN201410637885 A CN 201410637885A CN 104460490 A CN104460490 A CN 104460490A
- Authority
- CN
- China
- Prior art keywords
- logic control
- dsp
- frequency converter
- plc
- file
- 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/056—Programming the PLC
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Abstract
The embodiment of the invention discloses a programmable logic control processing method of a frequency converter, a digital signal processor and the frequency converter to achieve software logic control in the frequency converter and frequency converter cost reduction. The method comprises the steps that a digital signal processor (DSP) of the frequency converter obtains a logic control input signal, a PLC program analysis module is arranged in the DSP, a logic control area is divided in the DSP, and a PLC file is stored in the logic control area; the DSP reads the PLC file from the logic control area, the PLC file is analyzed through the PLC program analysis module according to the logic control input signal, and an analysis result is obtained; the DSP carries out logic control on the frequency converter and/or an external device according to the analysis result.
Description
Technical field
The present invention relates to technical field of automation, be specifically related to a kind of Programmable logical controller disposal route of frequency converter, digital signal processor (DSP, Digital Signal Processor) and frequency converter.
Background technology
Programmable logic controller (PLC) (PLC, Programmable Logic Controller) and frequency converter are parts common in automation equipment.Normally inside PLC hardware module or external for frequency converter PLC device is realized PLC controlling functions in frequency converter in prior art, as shown in Figure 1, inside PLC hardware module in frequency converter at present, integrated joint control is run, and carries out logic control to frequency converter and all kinds of external unit.But the price comparison of PLC hardware module is high, the cost of frequency converter can be increased.And in frequency converter inside PLC hardware module, also can strengthen frequency converter volume, make the widespread use of the frequency converter of inside PLC hardware module limited.
Summary of the invention
Embodiments provide a kind of Programmable logical controller disposal route of frequency converter, DSP and frequency converter, controlling for realizing software logic in frequency converter, reducing frequency converter cost.
First aspect present invention provides a kind of Programmable logical controller disposal route of frequency converter, comprising:
The digital signal processor DSP of frequency converter obtains logic control input signal, is provided with PLC program parsing module in described DSP, and in described DSP, division has logic control region, stores PLC file in described logic control region;
Described DSP reads described PLC file from described logic control region, and according to described logic control input signal, is resolved, obtain analysis result by described PLC program parsing module to described PLC file;
Described DSP carries out logic control according to described analysis result to described frequency converter and/or external unit.
Second aspect present invention provides a kind of digital signal processor DSP, is provided with PLC program parsing module in described DSP, and in described DSP, division has logic control region, and store PLC file in described logic control region, described DSP comprises:
Acquiring unit, for obtaining logic control input signal;
Resolution unit, for reading described PLC file from described logic control region, and according to described logic control input signal, being resolved described PLC file by described PLC program parsing module, obtaining analysis result;
Processing unit, for carrying out logic control according to described analysis result to described frequency converter and/or external unit.
Third aspect present invention provides a kind of frequency converter, comprises the DSP that above-mentioned second aspect provides, and frequency converter Programmable logical controller functional realiey device;
Wherein, described frequency converter Programmable logical controller functional realiey device comprises:
Division unit, for marking off logic control region in the digital signal processor DSP of frequency converter, being provided with PLC program and resolving in described DSP;
Receiving element, for receiving download instruction, described download instruction comprises PLC file, and described PLC file is developed process and obtained in host computer;
Loading unit, for by described PLC files loading to described logic control region.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages:
In embodiments of the present invention, PLC program parsing module is provided with in the DSP of frequency converter, afterwards, by marking off a logic control region in dsp, by the PLC files loading of development process in host computer in this logic control region, and then after DSP gets logic control input signal, according to logic control input signal, by PLC program parsing module, PLC file is resolved, obtain analysis result, then according to analysis result, logic control is carried out to frequency converter and/or external unit.Loading PLC file by marking off logic control region in dsp in embodiments of the present invention, achieving software logic and controlling, eliminating the PLC hardware module in frequency converter, reducing the cost of frequency converter.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in the embodiment of the present invention below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of the frequency converter of prior art;
The application of frequency converter schematic diagram that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the frequency converter Programmable logical controller function realizing method that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the frequency converter Programmable logical controller function realizing method that Fig. 4 provides for another embodiment of the present invention;
The schematic flow sheet of the Programmadle logic control treatment method of the frequency converter that Fig. 5 provides for the embodiment of the present invention;
The schematic flow sheet of the Programmadle logic control treatment method of the frequency converter that Fig. 6 provides for another embodiment of the present invention;
The schematic flow sheet of the Programmadle logic control treatment method of the frequency converter that Fig. 7 provides for another embodiment of the present invention;
The structural drawing of the frequency converter Programmable logical controller functional realiey device that Fig. 8 provides for the embodiment of the present invention;
The structural drawing of the digital signal processor that Fig. 9 provides for the embodiment of the present invention;
The structural representation of the frequency converter that Figure 10 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing of the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of Programmadle logic control treatment method of frequency converter, DSP and frequency converter, controlling for realizing software logic in frequency converter, reducing frequency converter cost.Meanwhile, the embodiment of the present invention additionally provides a kind of frequency converter Programmable logical controller function realizing method and device.
The PLC file provided in the embodiment of the present invention, at host computer, PC (PC, PersonalComputer) development platform such as, is developed.On stream, first PLC program, and then compile this PLC Program Generating file destination, file destination is the PLC file that the embodiment of the present invention provides.Particularly, the simple and clear function ladder diagram of PLC program represents, comprises elementary instruction and function command, mainly realizes tens of kinds of functions as shown in table 1 in frequency converter.
Wherein, compiling PLC Program Generating .cmf file, then by .dat file and .cmf file generated .gsf file, the PLC file that .gsf file provides for the embodiment of the present invention, suffix .gsf is the form of PLC file.
Represent PLC program for above-mentioned functions ladder diagram, above-mentioned compiling PLC Program Generating PLC file specifically comprises:
A11, read in the ladder diagram representing PLC program;
A12, grammatical analysis is carried out to ladder diagram;
A13, according to grammatical analysis result, ladder diagram is converted to movable net (AOV, the Activity OnVertex Network) digraph in summit;
A14, convert AOV digraph to binary tree;
A15, convert binary tree to instruction list;
A16, instruction list is generated .gsf file;
A17, to .gsf file encryption.
Wherein, above-mentioned is compilation process, can also carry out decompiling as required, comprising above-mentioned .gsf file:
A21, to .gsf file decryption;
A22 .gsf file transform is become instruction list;
A23, convert instruction list to binary tree;
A24, convert binary tree to ladder diagram.
Be understandable that, PLC file can be made up of some instruction codes.
Table 1
The frequency changer that the embodiment of the present invention provides as shown in Figure 2, mainly comprises DSP control panel, is provided with PLC program parsing module in dsp, is provided with PLC program analysis program.This DSP also comprises communication interface, is connected with host computer by this communication interface.And be connected with external unit, and mark off a logic control region in dsp.
Above-mentioned communication interface can be specifically RS485 interface.
Based on above-mentioned introduction, embodiments provide a kind of frequency converter Programmable logical controller function realizing method, comprise step as shown in Figure 3:
S301, in the digital signal processor DSP of frequency converter, mark off logic control region;
A logic control region is marked off in the DSP of frequency converter.
S302, reception download instruction;
The download instruction that the embodiment of the present invention provides comprises PLC file.
Be understandable that, in the embodiment of the present invention, download instruction can be received in two ways, specific as follows:
Mode one, when frequency converter powers on or reset, start DSP, the host computer of exploitation PLC file connects frequency converter, when communication is set up, triggers down operation, from host computer, receives download command.
Mode two, by PLC file download on mobile memory, when frequency converter powers on or reset, start DSP, connect mobile memory and frequency converter, be triggered to down operation, receive download command from mobile memory.
S303, by described PLC files loading to described logic control region, resolve described PLC file to make described DSP by described PLC program parsing module and obtain analysis result, described analysis result is used for carrying out logic control to described frequency converter and/or external unit.
By by PLC files loading to logic control region, so DSP by install PLC program parsing module PLC file is resolved, obtain analysis result, thus logic control can be carried out to frequency converter and/or external unit.
In embodiments of the present invention, by marking off a logic control region in the DSP of frequency converter, then in logic control region, PLC file is loaded, utilize the PLC program parsing module in DSP to resolve PLC file, obtain analysis result, realize the logic control to frequency converter and/or external unit, therefore, the embodiment of the present invention, by loading PLC file in frequency converter DSP, by software simulating Programmable logical controller, reduces the cost of frequency converter.
Be understandable that, in above-mentioned steps S302, connect frequency converter and host computer or mobile memory especially by the communication interface on frequency converter.
Be understandable that, in the embodiment of the present invention by PLC files loading to logic control region, essence be first by PLC file download in the buffer memory of DSP, and then from buffer memory, read PLC file be stored into logic control region.And the DSP used in the frequency converter that the embodiment of the present invention provides specifically TMS320F28335 chip, certainly, can also be other chip, in this no limit.Wherein, in TMS320F28335 chip, do not support that the program in an operation region goes to load the program in another region, therefore, in embodiments of the present invention, need to carry out loading transition by RAM.As shown in Figure 4, above-mentioned steps S303 comprises step as shown in Figure 4:
S401, by described communication interface from described host computer by the buffer area of described PLC file download to described DSP;
Being understandable that have in PLC file and start mark and terminate mark, starting mark for representing that PLC file is from some bytes, terminating mark for representing that PLC file terminates from some bytes.
Will also be appreciated that from PC or mobile memory and read PLC file, first the PLC file of reading is stored into buffer area.Because cache bank memories is limited, therefore need repeated multiple times PLC file to be read buffer area, be loaded into logic control region through buffer area.
Read PLC file time, from mark represent byte start read, to terminate mark represent byte terminate reading.Therefore, the embodiment of the present invention is in reading PLC file, last byte to reading is needed to identify, so that next time is read operation from the next byte of the byte of mark, avoid repeating to read or skip, and each represent mark that the last byte read adopts and start identify and terminates identify different, one can be adopted to be different from start the mark identified and end identifies in embodiments of the present invention, be referred to as centre in embodiments of the present invention and identify.
In the repeatedly reading times of PLC file, first time read from mark byte start read, in reading times afterwards, need from centre mark byte next byte read.
If S402 buffer area is full or downloaded PLC file, then in the random access memory ram of described DSP, load weaken rock program;
Being understandable that, in step S402, determining whether to have downloaded PLC file by terminating mark.
Expire at buffer area or when having downloaded PLC file, stop reading, the last character feast-brand mark of reading is identified with centre.
Particularly, FLASH_API function is loaded in RAM as RAM weaken rock program.
S403, start described weaken rock program, read PLC file from described buffer area and be stored into logic control region.
Buffer area PLC files loading is realized to logic control region by RAM weaken rock program.
Be understandable that, need repeatedly the byte of PLC file to be read in RAM buffer memory, equally, also from RAM buffer memory, the bytes store of PLC file is repeatedly read in logic control region, identical according to the middle recognition purpose adopted when reading PLC file, in embodiments of the present invention mark is also needed to the PLC file memory address in logic control region, in the embodiment of the present invention, adopt the memory address that address designation carries out in tagging logic control area.
Such as, when first time loads PLC file in logic control region, first store from the first address in logic control region, after the bytes store of the PLC file by RAM buffer memory is complete, the utilizable memory address of the next one is identified, namely address designation indicates an address that can start to store, so when the bytes store of the PLC file by upper once RAM buffer memory is to logic control region, store the address that indicates from address designation, thus the address of then last stored is started.
Errorless in order to ensure the PLC file being loaded into logic control region, after reading bytes store to logic control region from RAM buffer memory each time, the byte of logic control area stores and the byte of RAM buffer memory can be verified, in order to avoid go on business.
After by whole PLC files loading to logic control region, will realize the Programmable logical controller process of frequency converter according to PLC file, as shown in Figure 5, a kind of Programmable logical controller disposal route of frequency converter, can comprise:
S501, DSP obtain logic control input signal;
What the embodiment of the present invention realized is carry out logic control to frequency converter, and the external unit connecting frequency converter carries out logic control, therefore, the logic control input signal that the embodiment of the present invention provides can comprise virtual analog input quantity, switch input quantity, digital input amount or analog input amount etc., wherein, virtual analog input quantity refers to the inner parameter of frequency converter, switch input quantity and digital input amount can be the inner parameters of frequency converter can also be the parameter that external unit is given, and analog input amount is the parameter that external unit is given.
S502, DSP read described PLC file from described logic control region, and according to described logic control input signal, are resolved, obtain analysis result by described PLC program parsing module to described PLC file;
DSP have read PLC file from logic control region, utilizes PLC program parsing module to resolve PLC file, obtains the analysis result in order to carry out logic control to frequency converter or external unit.
S503, DSP carry out logic control according to described analysis result to described frequency converter and/or external unit.
According to the content of above-mentioned logic control input signal, can learn, analysis result comprises virtual analog output quantity, switch output quantity, digital output, imitated output quantity, wherein, virtual analog output quantity is mainly used in frequency converter inside and uses, switch output quantity and digital output can be use for frequency converter inside, and also can be use for external unit, imitated output quantity be used for external unit and uses.
In embodiments of the present invention, DSP gets logic control input signal, then from logic control region, PLC file is read, according to logic control input signal, utilize the PLC program parsing module in DSP to resolve PLC file, obtain analysis result, and then logic control is carried out to frequency converter and/or external unit, in whole process, realize software logic control, no longer rely on traditional PLC hardware module, frequency converter cost can be reduced.
Be understandable that, virtual analog amount input terminal, On-off signal terminal, digital-quantity input terminal, analog input terminal and other terminal is also provided with in frequency converter, therefore, in the embodiment of the present invention, can by the above-mentioned communication interface provided, or by receive logic control inputs signals such as virtual analog amount input terminal, On-off signal terminal, digital-quantity input terminal, analog input terminals.
Equally, virtual analog amount lead-out terminal, output switch parameter terminal, digital output terminal, modulating output terminal and other terminal is also provided with in frequency converter, therefore, in the embodiment of the present invention, analysis result can be exported by the above-mentioned communication interface that provides or virtual analog amount lead-out terminal, output switch parameter terminal, digital output terminal, modulating output terminal etc., logic control is carried out to frequency converter or external unit.
As shown in Figure 6, a kind of Programmable logical controller disposal route of frequency converter that the embodiment of the present invention provides can comprise:
S601, DSP determine that Programmable logical controller function is enable;
S602-S604;
S602 ~ S604 is identical with above-mentioned steps S501 ~ S503, does not repeat them here.
Wherein, PLC file comprises some instruction codes, and when reading this PLC file and resolving, mainly reading command code one by one, then resolves, until be parsed.
As shown in Figure 7, above-mentioned steps S502 or S603 specifically comprises:
Described PLC file reads and is stored in random access memory ram by S701, DSP from described FLASH;
Be understandable that, the PLC program parsing module that the embodiment of the present invention provides directly can not read PLC file and resolve from logic control region, equally, needs to carry out buffer memory by RAM.
Therefore, need in the embodiment of the present invention first PLC file to be read in RAM.
S702, DSP read the instruction code of described PLC file one by one from described RAM;
Be understandable that, code is resolved in order one by one, and therefore, in the embodiment of the present invention, DSP is also that the instruction code read one by one from RAM buffer memory in PLC file is resolved.
S703, according to described logic control input signal, DSP to read instruction code resolve, obtain analysis result, described analysis result comprises virtual analog output quantity, output switch parameter amount, digital output or imitated output quantity.
As shown in table 2 below, the virtual analog input quantity that table 2 provides for the embodiment of the present invention, On-off signal amount and analog input amount, and the virtual analog output quantity of correspondence, output switch parameter amount, imitated output quantity, and some intermediate quantities.
Table 2
In the frequency converter that the embodiment of the present invention provides, digital input amount has 9 tunnels, and digital output has 3 tunnels, and analog input amount has 3 tunnels, and imitated output quantity has 2 tunnels, also comprises 8 road internal virtual analog input/output quantities.By loading PLC file in frequency converter, frequency converter is made to have Programmable logical controller function.
As shown in Figure 8, embodiments provide the device 800 that a kind of frequency converter Programmable logical controller function realizing method is corresponding, can comprise:
Division unit 810, for marking off logic control region in dsp, being provided with programmable logic controller (PLC) PLC program and resolving in described DSP; :
Receiving element 820, for receiving download instruction, described download instruction comprises PLC file, and described PLC file is developed process and obtained in host computer;
Loading unit 830, for by described PLC files loading to described logic control region, so that described DSP resolves described PLC file by described PLC program parsing module and obtains analysis result, described analysis result carries out logic control to described frequency converter and/or external unit.
PLC program parsing module is installed in the DSP that the embodiment of the present invention provides, DSP is marked off a logic control region by division unit 810, receiving element 820 receives download instruction, the PLC files loading that download instruction comprises by loading unit 830 is to logic control region, then this PLC file is resolved by PLC program parsing module, obtain analysis result, and then according to analysis result, logic control is carried out to frequency converter and/or external unit.
Further, above-mentioned division unit specifically for, in the flash memory FLASH of described DSP, mark off logic control region.
In frequency converter, be provided with communication interface, further, above-mentioned loading unit 830 specifically for, by described communication interface from described host computer by the buffer area of described PLC file download to described DSP; If buffer area is full or downloaded PLC file, then in the random access memory ram of described DSP, load weaken rock program; Start described weaken rock program, the PLC file in described buffer area is stored into described logic control region.
As shown in Figure 9, the embodiment of the present invention additionally provides digital signal processor DSP-900 corresponding to a kind of Programmable logical controller disposal route of frequency converter, wherein, programmable logic controller (PLC) PLC program parsing module is provided with in this DSP, and division has logic control region in described DSP, store PLC file in described logic control region, this DSP can comprise:
Acquiring unit 910, for obtaining logic control input signal;
Resolution unit 920, for reading described PLC file from described logic control region, and according to described logic control input signal, being resolved described PLC file by described PLC program parsing module, obtaining analysis result;
Processing unit 930, for carrying out logic control according to described analysis result to described frequency converter and/or external unit.
PLC program parsing module is installed in the DSP that the embodiment of the present invention provides, acquiring unit 910 in DSP obtains logic control input signal, resolution unit 920 reads PLC file from logic control region, then processing unit 930 is according to logic control input signal, by PLC program parsing module, PLC file is resolved, obtain analysis result, logic control is carried out to frequency converter and/or external unit, achieve software logic in the frequency converter that the embodiment of the present invention provides to control, the PLC hardware module in frequency converter can be reduced, reduce frequency converter cost.
Further, above-mentioned DSP-900 also comprises determining unit, enable for determining Programmable logical controller function.
Further, above-mentioned logic control input signal comprises virtual analog input quantity, switch input quantity, digital input amount or analog input amount, above-mentioned acquiring unit 910 specifically for, obtain described logic control input signal by virtual analog input terminal, On-off signal terminal, digital-quantity input terminal, analog input terminal or communication interface.
Particularly, in the FLASH of DSP, divide described logic control region, and above-mentioned resolution unit 920 specifically for, from described logic control region, described PLC file read and be stored in random access memory ram, wherein, described PLC file comprises some instruction codes; The instruction code of described PLC file is read one by one from described RAM; According to described logic control input signal, resolve the instruction code read, obtain analysis result, described analysis result comprises virtual analog output quantity, output switch parameter amount, digital output or imitated output quantity.
Further, above-mentioned processing unit 930 specifically for, when determining to meet schedulable condition, export described analysis result by corresponding output terminals, carry out logic control to described frequency converter and/or external unit, described schedulable condition comprises time limit.
As shown in Figure 10, the embodiment of the present invention additionally provides a kind of frequency converter, specifically comprises frequency converter Programmable logical controller functional realiey device as shown in Figure 8, and DSP as of fig. 9 shown.
Wherein, refer to the above-mentioned introduction to frequency converter Programmable logical controller functional realiey device and DSP, do not repeat them here.
In embodiments of the present invention, PLC program parsing module is provided with in the DSP of frequency converter, afterwards, by marking off a logic control region in dsp, by the PLC files loading of development process in host computer in this logic control region, and then after DSP gets logic control input signal, according to logic control input signal, by PLC program parsing module, PLC file is resolved, obtain analysis result, then according to analysis result, logic control is carried out to frequency converter and/or external unit.Loading PLC file by marking off logic control region in dsp in embodiments of the present invention, achieving software logic and controlling, reducing the hardware logic module in frequency converter, reducing the cost of frequency converter.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part described in detail, can see the associated description of other embodiments.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
The part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
Above the Programmadle logic control treatment method of a kind of frequency converter Programmable logical controller function realizing method provided by the present invention and device, frequency converter, DSP and frequency converter are described in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.
Claims (15)
1. a Programmable logical controller disposal route for frequency converter, is characterized in that, comprising:
The digital signal processor DSP of frequency converter obtains logic control input signal, is provided with PLC program parsing module in described DSP, and in described DSP, division has logic control region, stores PLC file in described logic control region;
Described DSP reads described PLC file from described logic control region, and according to described logic control input signal, is resolved, obtain analysis result by described PLC program parsing module to described PLC file;
Described DSP carries out logic control according to described analysis result to described frequency converter and/or external unit.
2. method according to claim 1, is characterized in that, comprises before the digital signal processor DSP acquisition logic control input signal of described frequency converter:
Determine that Programmable logical controller function is enable.
3. method according to claim 1 and 2, is characterized in that,
Described logic control input signal comprises virtual analog input quantity, switch input quantity, digital input amount or analog input amount;
The digital signal processor DSP of described frequency converter obtains logic control input signal and comprises:
Described DSP obtains described logic control input signal by the virtual analog input terminal of frequency converter, On-off signal terminal, digital-quantity input terminal, analog input terminal or communication interface.
4. method according to claim 1, is characterized in that,
Described logic control region is divided in the flash memory FLASH of described DSP.
5. method according to claim 4, is characterized in that,
Described DSP reads described PLC file from described logic control region, and according to described logic control input signal, is resolved, obtain analysis result and comprise by described PLC analysis program to described PLC file:
Described PLC file reads and is stored in random access memory ram by described DSP from described FLASH; Described PLC file comprises some instruction codes;
Described DSP reads the instruction code of described PLC file one by one from described RAM;
According to described logic control input signal, described DSP resolves the instruction code read, and obtain analysis result, described analysis result comprises virtual analog output quantity, output switch parameter amount, digital output or imitated output quantity.
6. the method according to any one of Claims 1 to 5, is characterized in that,
Described DSP carries out logic control according to described analysis result to described frequency converter and/or external unit and comprises:
Described DSP determines to meet schedulable condition, exports described analysis result by corresponding output terminals, and carry out logic control to described frequency converter and/or external unit, described schedulable condition comprises time limit.
7. method according to claim 1, is characterized in that,
Described PLC file development process in host computer obtains, and is loaded in described logic control region.
8. a digital signal processor DSP, is characterized in that, is provided with PLC program parsing module in described DSP, and in described DSP, division has logic control region, and store PLC file in described logic control region, described DSP comprises:
Acquiring unit, for obtaining logic control input signal;
Resolution unit, for reading described PLC file from described logic control region, and according to described logic control input signal, being resolved described PLC file by described PLC program parsing module, obtaining analysis result;
Processing unit, for carrying out logic control according to described analysis result to described frequency converter and/or external unit.
9. DSP according to claim 8, is characterized in that, described DSP also comprises determining unit;
Described determining unit, enable for determining Programmable logical controller function.
10. DSP according to claim 8, is characterized in that,
Described logic control input signal comprises virtual analog input quantity, switch input quantity, digital input amount or analog input amount;
Described acquiring unit specifically for, obtain described logic control input signal by the virtual analog input terminal of frequency converter, On-off signal terminal, digital-quantity input terminal, analog input terminal or communication interface.
11. DSP according to claim 8, is characterized in that,
Described logic control region is divided in the FLASH of described DSP.
DSP described in 12. according to Claim 8 ~ 11 any one, is characterized in that,
Described resolution unit specifically for, read by described PLC file from described FLASH and be stored in random access memory ram, wherein, described PLC file comprises some instruction codes; The instruction code of described PLC file is read one by one from described RAM; According to described logic control input signal, resolve the instruction code read, obtain analysis result, described analysis result comprises virtual analog output quantity, output switch parameter amount, digital output or imitated output quantity.
13. DSP according to claim 12, is characterized in that,
Described processing unit specifically for, when determining to meet schedulable condition, export described analysis result by corresponding output terminals, carry out logic control to described frequency converter and/or external unit, described schedulable condition comprises time limit.
14. 1 kinds of frequency converters, is characterized in that, comprising: the DSP as described in any one of claim 8 ~ 13, and frequency converter Programmable logical controller functional realiey device;
Wherein, described frequency converter Programmable logical controller functional realiey device comprises:
Division unit, for marking off logic control region in the digital signal processor DSP of frequency converter, being provided with PLC program and resolving in described DSP;
Receiving element, for receiving download instruction, described download instruction comprises PLC file, and described PLC file is developed process and obtained in host computer;
Loading unit, for by described PLC files loading to described logic control region.
15. frequency converters according to claim 14, is characterized in that,
Described frequency converter is connected with described external unit by communication interface, On-off signal/lead-out terminal, digital quantity input/output terminal, analog input/lead-out terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410637885.6A CN104460490B (en) | 2014-11-12 | 2014-11-12 | Programmable logical controller processing method, digital processing unit and the frequency converter of frequency converter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410637885.6A CN104460490B (en) | 2014-11-12 | 2014-11-12 | Programmable logical controller processing method, digital processing unit and the frequency converter of frequency converter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104460490A true CN104460490A (en) | 2015-03-25 |
CN104460490B CN104460490B (en) | 2018-11-20 |
Family
ID=52906725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410637885.6A Active CN104460490B (en) | 2014-11-12 | 2014-11-12 | Programmable logical controller processing method, digital processing unit and the frequency converter of frequency converter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104460490B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991503A (en) * | 2015-05-18 | 2015-10-21 | 广州市天誉创高电子科技有限公司 | Control method and system applied to programmable control host |
CN113342738A (en) * | 2021-06-23 | 2021-09-03 | 蘑菇物联技术(深圳)有限公司 | Method, apparatus, computer program product and medium for modifying controller algorithm |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1545197A (en) * | 2003-07-29 | 2004-11-10 | 北京利德华福电气技术有限公司 | Full digitalized vector control type high-voltage large-power frequency converter based on DSP chip |
US20070013357A1 (en) * | 2005-07-12 | 2007-01-18 | Delta Electronics, Inc. | Inverter apparatus with built-in programmable logic-controller |
CN101576744A (en) * | 2008-05-08 | 2009-11-11 | 宝元数控精密股份有限公司 | Method for executing programmable logic controller (PLC) code |
CN201421670Y (en) * | 2009-04-01 | 2010-03-10 | 苏州市职业大学 | Soft programmable controller |
CN104007333A (en) * | 2013-02-25 | 2014-08-27 | 陈国祥 | High-voltage frequency converter power unit monitoring apparatus |
-
2014
- 2014-11-12 CN CN201410637885.6A patent/CN104460490B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1545197A (en) * | 2003-07-29 | 2004-11-10 | 北京利德华福电气技术有限公司 | Full digitalized vector control type high-voltage large-power frequency converter based on DSP chip |
US20070013357A1 (en) * | 2005-07-12 | 2007-01-18 | Delta Electronics, Inc. | Inverter apparatus with built-in programmable logic-controller |
CN101576744A (en) * | 2008-05-08 | 2009-11-11 | 宝元数控精密股份有限公司 | Method for executing programmable logic controller (PLC) code |
CN201421670Y (en) * | 2009-04-01 | 2010-03-10 | 苏州市职业大学 | Soft programmable controller |
CN104007333A (en) * | 2013-02-25 | 2014-08-27 | 陈国祥 | High-voltage frequency converter power unit monitoring apparatus |
Non-Patent Citations (1)
Title |
---|
曹霖等: "基于PC104和DSP的PLC系统自主研发", 《可编程控制器与工厂自动化》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104991503A (en) * | 2015-05-18 | 2015-10-21 | 广州市天誉创高电子科技有限公司 | Control method and system applied to programmable control host |
CN113342738A (en) * | 2021-06-23 | 2021-09-03 | 蘑菇物联技术(深圳)有限公司 | Method, apparatus, computer program product and medium for modifying controller algorithm |
Also Published As
Publication number | Publication date |
---|---|
CN104460490B (en) | 2018-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200278875A1 (en) | Dynamic loading method, and target file creation method and apparatus | |
CN106126290B (en) | Application program optimization method, apparatus and system | |
CN108647010B (en) | Project engineering initialization method, terminal equipment and storage medium | |
CN108121565B (en) | Method, device and system for generating instruction set code | |
CN103838573A (en) | Application program generation method and device | |
CN110989487B (en) | PLC initialization method and device for industrial server and readable storage medium | |
CN102495797A (en) | Smart card testing device and method | |
CN106502715A (en) | A kind of application program collocation method and device by all kinds of means | |
CN112445729B (en) | Operation address determination method, PCIe system, electronic device and storage medium | |
CN111399840A (en) | Module development method and device | |
CN104090946A (en) | Method and device for adding information to application installation package | |
CN105446975A (en) | File packing method and device | |
CN111209001A (en) | Method, system, equipment and medium for batch generation of APKs of android channels | |
CN107729040A (en) | A kind of IAP method and system of single-chip microcomputer | |
CN105677348A (en) | BOOT program storing method and device and BOOT program starting method and device | |
CN112732321A (en) | Firmware modification method and device, computer readable storage medium and equipment | |
CN112367234A (en) | Simulation data generation method, terminal device and computer-readable storage medium | |
CN104460490A (en) | Programmable logic control processing method of frequency converter, digital processor and frequency converter | |
CN104331017A (en) | Method and device for realizing programmable logic control function of frequency converter as well as frequency converter | |
CN107368557B (en) | Page editing method and device | |
CN102164102A (en) | Embedded type home gateway web server system | |
CN104063306A (en) | Automatic login method, device and system in intelligent terminal software testing | |
CN102566481B (en) | C language-based PLC (Programmable Logic Controller) control system and realization method thereof | |
CN104570913B (en) | A kind of PLC control process methods of frequency converter | |
CN116049293A (en) | Method, device, equipment and medium for realizing analysis of CSV file based on database configuration |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190326 Address after: 215163 No. 1 Kunlunshan Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province Patentee after: INVT POWRE ELECTRONICS (SUZHOU) CO., LTD. Address before: 518055 Guangdong Shenzhen Nanshan District Longjing high tech Industrial Park 4 factory building Patentee before: Shenzhen Yingweiteng Electric Co., Ltd. |
|
TR01 | Transfer of patent right |