CN104331017B - A kind of frequency converter Programmable logical controller function realizing method, device and frequency converter - Google Patents

A kind of frequency converter Programmable logical controller function realizing method, device and frequency converter Download PDF

Info

Publication number
CN104331017B
CN104331017B CN201410635551.5A CN201410635551A CN104331017B CN 104331017 B CN104331017 B CN 104331017B CN 201410635551 A CN201410635551 A CN 201410635551A CN 104331017 B CN104331017 B CN 104331017B
Authority
CN
China
Prior art keywords
plc
logic control
frequency converter
dsp
files
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.)
Active
Application number
CN201410635551.5A
Other languages
Chinese (zh)
Other versions
CN104331017A (en
Inventor
许晋宁
刘全丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
INVT POWRE ELECTRONICS (SUZHOU) CO., LTD.
Original Assignee
Shenzhen Invt Electric Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Invt Electric Co Ltd filed Critical Shenzhen Invt Electric Co Ltd
Priority to CN201410635551.5A priority Critical patent/CN104331017B/en
Publication of CN104331017A publication Critical patent/CN104331017A/en
Application granted granted Critical
Publication of CN104331017B publication Critical patent/CN104331017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/058Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/16Plc to applications
    • G05B2219/163Domotique, domestic, home control, automation, smart, intelligent house

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 kind of frequency converter Programmable logical controller function realizing method, device and frequency converter, for realizing software logic control in frequency converter, the cost of frequency converter is reduced.Present invention method includes:Logic control region is marked off in the digital signal processor DSP of frequency converter, PLC program parsing module is provided with the DSP;Download instruction is received, the download instruction includes PLC files, and the PLC files carry out development process in host computer and obtain;The PLC files are loaded into the logic control region, so that the DSP parses the PLC files by the PLC program parsing module obtains analysis result, the analysis result is used to carry out logic control to the frequency converter and/or external equipment.

Description

A kind of frequency converter Programmable logical controller function realizing method, device and frequency converter
Technical field
The present invention relates to technical field of automation, and in particular to a kind of frequency converter Programmable logical controller function realization side Method, device and frequency converter.
Background technology
Programmable logic controller (PLC) (PLC, Programmable Logic Controller) and frequency converter are that automation is set Standby common component.It is typically inside PLC hardware module or to be filled the external PLC of frequency converter in frequency converter in the prior art Put to realize PLC control functions, as shown in Figure 1, the inside PLC hardware module in frequency converter at present, integrates joint control operation, to becoming Frequency device and all kinds of external equipments carry out logic control.However, the price of PLC hardware modules is higher, can increase frequency converter into This.And the inside PLC hardware module in frequency converter, it can also increase frequency converter volume so that the frequency converter of inside PLC hardware module Extensive use be limited.
The content of the invention
An embodiment of the present invention provides a kind of frequency converter Programmable logical controller function realizing method, device and frequency converter, For realizing software logic control in frequency converter, remove the PLC hardware modules in frequency converter.
First aspect present invention provides a kind of frequency converter Programmable logical controller function realizing method, it may include:
Logic control is marked off in the digital signal processor (DSP, Digital Signal Processor) of frequency converter Region processed, is provided with PLC program parsing module in the DSP;
Download instruction is received, the download instruction includes PLC files, and the PLC files are carried out at exploitation in host computer Reason obtains;
The PLC files are loaded into the logic control region, so that the DSP is parsed by the PLC program Module parses the PLC files and obtains analysis result, and the analysis result is used to carry out the frequency converter and/or external equipment Logic control.
Second aspect of the present invention provides a kind of frequency converter Programmable logical controller function realization device, it may include:
Division unit, for marking off logic control region, the DSP in the digital signal processor DSP of frequency converter In be provided with PLC program parsing;
Receiving unit, for receiving download instruction, the download instruction includes PLC files, and the PLC files are in host computer Middle progress development process obtains;
Loading unit, for the PLC files to be loaded into the logic control region, so as to the DSP pass through it is described PLC program parsing module parses the PLC files and obtains analysis result, the analysis result be used for the frequency converter and/or External equipment carries out logic control.
Third aspect present invention provides a kind of frequency converter, it may include:The frequency converter that above-mentioned second aspect provides may be programmed Logic control function realization device, and digital signal processor DSP;
Wherein, the DSP includes:
Acquiring unit, for obtaining logic control input signal;
Resolution unit, for reading the PLC files from the logic control region, and inputs according to the logic control Signal, parses the PLC files by the PLC program parsing module, obtains analysis result;
Processing unit, for carrying out logic control to the frequency converter and/or external equipment according to the analysis result.
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 the DSP of frequency converter, afterwards, by dsp Mark off a logic control region, by host computer the PLC files of development process be loaded into the logic control region, into And after DSP gets logic control input signal, according to logic control input signal, by PLC program parsing module to PLC File is parsed, and obtains analysis result, and logic control is carried out to frequency converter and/or external equipment further according to analysis result. PLC files are loaded by marking off logic control region in dsp in the embodiment of the present invention, realize software logic control, The PLC hardware modules in frequency converter are eliminated, reduce the cost of frequency converter.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, it will make below to required in the embodiment of the present invention Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without creative efforts, other can also be obtained according to these attached drawings Attached drawing.
Fig. 1 is the structure diagram of the frequency converter of the prior art;
Fig. 2 is application of frequency converter schematic diagram provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of frequency converter Programmable logical controller function realizing method provided in an embodiment of the present invention;
Fig. 4 is the flow signal for the frequency converter Programmable logical controller function realizing method that another embodiment of the present invention provides Figure;
Fig. 5 is the flow diagram of the Programmadle logic control process method of frequency converter provided in an embodiment of the present invention;
Fig. 6 is the flow signal of the Programmadle logic control process method for the frequency converter that another embodiment of the present invention provides Figure;
Fig. 7 is the flow signal of the Programmadle logic control process method for the frequency converter that another embodiment of the present invention provides Figure;
Fig. 8 is the structure chart of frequency converter Programmable logical controller function realization device provided in an embodiment of the present invention;
Fig. 9 is the structure chart of digital signal processor provided in an embodiment of the present invention;
Figure 10 is the structure diagram of frequency converter provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing of the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained without creative efforts Example is applied, belongs to the scope of protection of the invention.
An embodiment of the present invention provides a kind of frequency converter Programmable logical controller function realizing method, device and frequency converter, For realizing software logic control in frequency converter, frequency converter cost is reduced.Meanwhile the embodiment of the present invention additionally provides a kind of change The Programmadle logic control process method of frequency device, digital signal processor DSP.
The PLC files provided in the embodiment of the present invention are in host computer, such as PC (PC, Personal Computer) developed in development platform.In the process of development, first PLC program, then compiles PLC program life again Into file destination, file destination is PLC files provided in an embodiment of the present invention.Specifically, the function ladder of PLC program simplicity Shape figure represents, including elementary instruction and function command, and tens of kinds of functions as shown in Table 1 are mainly realized in frequency converter.
Wherein, PLC program generation .cmf files are compiled, then by .dat files and .cmf file generated .gsf files, .gsf file is PLC files provided in an embodiment of the present invention, and suffix .gsf is the form of PLC files.
By taking above-mentioned function ladder diagram represents PLC program as an example, above-mentioned compiling PLC program generation PLC files specifically include:
A11, read in the ladder diagram for representing PLC program;
A12, carry out syntactic analysis to ladder diagram;
A13, according to syntactic analysis as a result, ladder diagram is converted into vertex activity net (AOV, Activity On Vertex Network) digraph;
A14, by AOV digraphs be converted into binary tree;
A15, by binary tree be converted into instruction catalogue;
A16, by instruction catalogue generate .gsf files;
A17, to .gsf file encryptions.
Wherein, above-mentioned is compilation process, can also carry out decompiling to above-mentioned .gsf files as needed, including:
A21, to .gsf file decryptions;
A22, by .gsf files be converted into instruction catalogue;
A23, by instruction catalogue be converted into binary tree;
A24, by binary tree be converted into ladder diagram.
It is understood that PLC files can be made of some instruction codes.
Table 1
Frequency changer provided in an embodiment of the present invention is provided with as shown in Fig. 2, mainly include DSP control panels in dsp PLC program parsing module, is provided with PLC program analysis program.The DSP further includes communication interface, by the communication interface with it is upper Position machine connection.And be attached with external equipment, and a logic control region is marked off in dsp.
Above-mentioned communication interface can be specifically RS485 interfaces.
Based on above-mentioned introduction, an embodiment of the present invention provides a kind of frequency converter Programmable logical controller function realizing method, Including step as shown in Figure 3:
S301, mark off logic control region in the digital signal processor DSP of frequency converter;
A logic control region is marked off in the DSP of frequency converter.
S302, receive download instruction;
Download instruction provided in an embodiment of the present invention includes PLC files.
It is understood that in the embodiment of the present invention, download instruction can be received in two ways, it is specific as follows:
Mode one, when frequency converter powers on or resets, start DSP, exploitation PLC files host computer connection frequency converter, When communication is established, down operation is triggered, download command is received from host computer.
Mode two, by PLC file downloads to mobile memory, when frequency converter powers on or resets, start DSP, connection Mobile memory and frequency converter, are triggered to down operation, and download command is received from mobile memory.
S303, by the PLC files be loaded into the logic control region, so that the DSP passes through the PLC program Parsing module parses the PLC files and obtains analysis result, and the analysis result is used for the frequency converter and/or external equipment Carry out logic control.
By the way that PLC files are loaded into logic control region, then DSP is by the PLC program parsing module of installation to PLC File is parsed, and obtains analysis result, so as to carry out logic control to frequency converter and/or external equipment.
In embodiments of the present invention, by marking off a logic control region in the DSP of frequency converter, then in logic PLC files are loaded in control area, PLC files are parsed using the PLC program parsing module in DSP, obtain parsing knot Fruit, realizes the logic control to frequency converter and/or external equipment, and therefore, the embodiment of the present invention in frequency converter DSP by loading PLC files, Programmable logical controller is realized by software, reduces the cost of frequency converter.
It is understood that in above-mentioned steps S302 especially by frequency converter communication interface connection frequency converter with it is upper Machine or mobile memory.
Substantially it is first by PLC it is understood that PLC files are loaded into logic control region in the embodiment of the present invention Then file download reads the storage of PLC files to logic control region from caching again into the caching of DSP.And the present invention is real It is specifically TMS320F28335 chips to apply the DSP used in the frequency converter of example offer, it is, of course, also possible to be other chips, herein It is not construed as limiting.Wherein, the program in one region of operation is not supported to go to load the journey in another region in TMS320F28335 chips Sequence, therefore, in embodiments of the present invention, it is necessary to carry out loading transition by RAM.As shown in figure 4, above-mentioned steps S303 is included such as Step shown in Fig. 4:
S401, by the communication interface from the host computer by the buffer area of the PLC file downloads to the DSP;
It is understood that have in PLC files start mark and end of identification, start mark be used for represent PLC files from Some byte starts, and end of identification is used to represent that PLC files terminate from some byte.
It will also be appreciated that reading PLC files from PC machine or mobile memory, first the PLC file storages of reading are arrived Buffer area.Since cache bank memories are limited, it is therefore desirable to it is repeated multiple times that PLC files are read into buffer area, by buffer area plus It is downloaded to logic control region.
When reading PLC files, read since being started the byte of mark expression, the byte represented to end of identification terminates Read.Therefore, the embodiment of the present invention in PLC files are read, it is necessary to be identified to last byte of reading, so as under Read operation next byte of the secondary byte since mark, avoids repeating reading or skip, and represents to read most every time Mark is different from starting mark and end of identification used by postbyte, can be different from embodiments of the present invention using one Start the mark of mark and end of identification, be referred to as middle mark in embodiments of the present invention.
In the multiple reading times of PLC files, read is read since being started the byte of mark for the first time, afterwards , it is necessary to be read since next byte of the byte of centre mark in reading times.
If S402, buffer area are full or have downloaded PLC files, loaded in the random access memory ram of the DSP it is soft in Disconnected program;
It is understood that in step S402, determine whether to have downloaded PLC files by end of identification.
It is full or when having downloaded PLC files in buffer area, stop reading, the last character feast-brand mark of reading is marked with centre Know.
Specifically, FLASH_API functions are loaded into RAM as RAM traps programs.
S403, start the traps program, reads PLC files from the buffer area and stores to logic control region.
Realize that buffer area PLC files are loaded into logic control region by RAM traps program.
It is understood that need repeatedly to read the byte of PLC files in RAM cachings, equally, also repeatedly from RAM The byte that PLC files are read in caching is stored into logic control region, according to the middle mark used when reading PLC files Purpose is identical, in embodiments of the present invention the PLC file storage address in logic control region is also required to identify, and the present invention is real Apply the storage address for identifying and being identified in logic control region using address in example.
For example, when first time loading PLC files in logic control region, first from the first address in logic control region Start to store, after the byte for the PLC files for caching RAM has stored, to next utilizable storage address into rower Know, that is, address mark indicates an address that can start storage, then in the PLC files for caching RAM next time Byte when storing to logic control region, will be stored since address identifies the address of instruction, so that will then last stored Address start.
In order to ensure that the PLC files for being loaded into logic control region are errorless, byte can be read being cached each time from RAM After storing logic control region, the byte of byte and RAM cachings to the storage of logic control region verifies, in order to avoid go out Difference.
After whole PLC files are loaded into logic control region, it will realize that the programmable of frequency converter is patrolled according to PLC files Control process is collected, as shown in figure 5, a kind of Programmable logical controller processing method of frequency converter, it may include:
S501, DSP obtain logic control input signal;
The embodiment of the present invention, which is accomplished that, carries out frequency converter logic control, and the external equipment of connection frequency converter carries out Logic control, therefore, it is defeated that logic control input signal provided in an embodiment of the present invention can include virtual analog input quantity, switch Enter amount, digital input amount or simulation input amount etc., wherein, virtual analog input quantity refers to the inner parameter of frequency converter, and switch is defeated Enter amount and digital input amount can be that the inner parameter of frequency converter can also be the parameter that external equipment is given, simulation input amount is The parameter that external equipment is given.
S502, DSP read the PLC files from the logic control region, and according to the logic control input signal, The PLC files are parsed by the PLC program parsing module, obtain analysis result;
DSP have read PLC files from logic control region, and PLC files are parsed using PLC program parsing module, Obtain to carry out the analysis result of logic control to frequency converter or external equipment.
S503, DSP carry out logic control according to the analysis result to the frequency converter and/or external equipment.
According to the content of above-mentioned logic control input signal, it is known that analysis result includes virtual analog output quantity, opens Output quantity, digital output, imitated output quantity are closed, wherein, virtual analog output quantity is mainly used for using inside frequency converter, switch Output quantity and digital output can be used to inside frequency converter use using or for external equipment, simulation output Amount is used for external equipment and uses.
In embodiments of the present invention, DSP gets logic control input signal, is then read from logic control region PLC files, according to logic control input signal, parse PLC files using the PLC program parsing module in DSP, obtain Analysis result, and then logic control is carried out to frequency converter and/or external equipment, software logic control is realized in whole process, Traditional PLC hardware modules are eliminated the reliance on, frequency converter cost can be reduced.
It is understood that virtual analog amount input terminal, On-off signal terminal, digital quantity are additionally provided with frequency converter Input terminal, analog input terminal and other terminals, therefore, in the embodiment of the present invention, can pass through the communication of above-mentioned offer Interface, or pass through virtual analog amount input terminal, On-off signal terminal, digital-quantity input terminal, analog input terminal Deng reception logic control input signal.
Equally, virtual analog amount lead-out terminal, output switch parameter terminal, digital output end are additionally provided with frequency converter Son, simulation output terminal and other terminals, therefore, in the embodiment of the present invention, can by the communication interface of above-mentioned offer or Virtual analog amount lead-out terminal, output switch parameter terminal, digital output terminal, simulation output terminal etc. export analysis result, Logic control is carried out to frequency converter or external equipment.
As shown in fig. 6, a kind of Programmable logical controller processing method of frequency converter provided in an embodiment of the present invention may include:
S601, DSP determine that Programmable logical controller function enables;
S602-S604;
S602~S604 is identical with above-mentioned steps S501~S503, and details are not described herein.
Wherein, PLC files include some instruction codes, read the PLC files parsed when, mainly one by one Instruction code is read, is then parsed, until being parsed.
As shown in fig. 7, above-mentioned steps S502 or S603 are specifically included:
The PLC files are read and stored into random access memory ram by S701, DSP from the FLASH;
It is understood that PLC program parsing module provided in an embodiment of the present invention can not be directly from logic control area Read PLC files in domain to be parsed, equally, it is necessary to be cached by RAM.
Therefore, need first to read PLC files in RAM in the embodiment of the present invention.
S702, DSP read the instruction code of the PLC files one by one from the RAM;
It is understood that code parses one by one in order, therefore, in the embodiment of the present invention, DSP is also to be cached from RAM In read the instruction code in PLC files one by one to parse.
S703, according to the logic control input signal, DSP parse the instruction code of reading, obtains parsing knot Fruit, the analysis result include virtual analog output quantity, output switch parameter amount, digital output or imitated output quantity.
As shown in table 2 below, table 2 is virtual analog input quantity provided in an embodiment of the present invention, On-off signal amount and simulation Input quantity, and corresponding virtual analog output quantity, output switch parameter amount, imitated output quantity, and some intermediate quantities.
Table 2
Digital input amount has 9 tunnels in frequency converter provided in an embodiment of the present invention, and digital output has 3 tunnels, simulation input amount There are 3 tunnels, imitated output quantity there are 2 tunnels, further includes 8 road internal virtual simulation inputs/output quantity.By loading PLC in frequency converter File so that frequency converter has the function of Programmable logical controller and CANopen functions.
As shown in figure 8, an embodiment of the present invention provides a kind of frequency converter Programmable logical controller function realizing method correspondence Device 800, it may include:
Division unit 810, for marking off logic control region in dsp, is provided with programmable logic control in the DSP Device PLC program parsing processed;:
Receiving unit 820, for receiving download instruction, the download instruction includes PLC files, and the PLC files are upper Development process is carried out in the machine of position to obtain;
Loading unit 830, for the PLC files to be loaded into the logic control region, so that the DSP passes through institute State the PLC program parsing module parsing PLC files and obtain analysis result, the analysis result is to the frequency converter and/or outside Portion's equipment carries out logic control.
PLC program parsing module is installed, DSP is marked off one by division unit 810 in DSP provided in an embodiment of the present invention A logic control region, receiving unit 820 receive download instruction, and loading unit 830 adds the PLC files that download instruction includes Logic control region is downloaded to, the PLC files are then parsed by PLC program parsing module, obtain analysis result, and then according to solution Analyse result and logic control is carried out to frequency converter and/or external equipment.
Further, above-mentioned division unit is specifically used for, and logic control area is marked off in the flash memory FLASH of the DSP Domain.
Communication interface is provided with frequency converter, further, above-mentioned loading unit 830 is specifically used for, by described logical Communication interface is from the host computer by the buffer area of the PLC file downloads to the DSP;If buffer area is full or has downloaded PLC File, then load traps program in the random access memory ram of the DSP;Start the traps program, by the caching PLC files in area are stored to the logic control region.
As shown in figure 9, the Programmable logical controller processing method that the embodiment of the present invention additionally provides a kind of frequency converter corresponds to Digital signal processor DSP -900, wherein, programmable logic controller (PLC) PLC program parsing module is provided with the DSP, and Division has logic control region in the DSP, is stored with PLC files in the logic control region, which may include:
Acquiring unit 910, for obtaining logic control input signal;
Resolution unit 920, for reading the PLC files from the logic control region, and according to the logic control Input signal, parses the PLC files by the PLC program parsing module, obtains analysis result;
Processing unit 930, for carrying out logic control to the frequency converter and/or external equipment according to the analysis result System.
PLC program parsing module is installed, the acquiring unit 910 in DSP is obtained and patrolled in DSP provided in an embodiment of the present invention Control input signal is collected, resolution unit 920 reads PLC files from logic control region, and then processing unit 930 is according to logic control Input signal processed, parses PLC files by PLC program parsing module, obtains analysis result, to frequency converter and/or outside Portion's equipment carries out logic control, realizes software logic control in frequency converter provided in an embodiment of the present invention, can reduce frequency conversion PLC hardware modules in device, reduce frequency converter cost.
Further, above-mentioned DSP-900 further includes determination unit, for determining that Programmable logical controller function enables.
Further, above-mentioned logic control input signal includes virtual analog input quantity, switch input quantity, digital input amount Or simulation input amount, above-mentioned acquiring unit 910 are specifically used for, and pass through virtual analog input terminal, On-off signal terminal, numeral Measure input terminal, analog input terminal or communication interface and obtain the logic control input signal.
Specifically the logic control region is divided in the FLASH of DSP, and above-mentioned resolution unit 920 is specifically used In, the PLC files are read from the logic control region and are stored into random access memory ram, wherein, the PLC File includes some instruction codes;Read the instruction code of the PLC files one by one from the RAM;According to the logic Control input signal, parses the instruction code of reading, obtains analysis result, it is defeated that the analysis result includes virtual analog Output, output switch parameter amount, digital output or imitated output quantity.
Further, above-mentioned processing unit 930 is specifically used for, and when determining to meet schedulable condition, passes through corresponding output end Son exports the analysis result, carries out logic control to the frequency converter and/or external equipment, the schedulable condition includes the time Time limit.
As shown in Figure 10, the embodiment of the present invention additionally provides a kind of frequency converter, specifically includes frequency converter as shown in Figure 8 Programmable logical controller function realization device, and DSP as of fig. 9 shown.
Wherein, the above-mentioned introduction to frequency converter Programmable logical controller function realization device and DSP is referred to, herein no longer Repeat.
In embodiments of the present invention, PLC program parsing module is provided with the DSP of frequency converter, afterwards, by dsp Mark off a logic control region, by host computer the PLC files of development process be loaded into the logic control region, into And after DSP gets logic control input signal, according to logic control input signal, by PLC program parsing module to PLC File is parsed, and obtains analysis result, and logic control is carried out to frequency converter and/or external equipment further according to analysis result. PLC files are loaded by marking off logic control region in dsp in the embodiment of the present invention, realize software logic control, The hardware logic module in frequency converter is reduced, reduces the cost of frequency converter.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, details are not described herein.
Part that technical scheme substantially in other words contributes the prior art or the technical solution It can completely or partially be embodied in the form of software product, which is stored in a storage medium, Used including some instructions so that a computer equipment (can be personal computer, server, or network equipment etc.) is held The all or part of step of each embodiment the method for the row present invention.And foregoing storage medium includes:USB flash disk, mobile hard disk, Read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic Dish or CD etc. are various can be with the medium of store program codes.
Above to a kind of frequency converter Programmable logical controller function realizing method, device and frequency conversion provided by the present invention Device, and the Programmadle logic control process method and DSP of frequency converter are described in detail, for the general technology of this area Personnel, according to the thought of the embodiment of the present invention, there will be changes in specific embodiments and applications, to sum up institute State, this specification content should not be construed as limiting the invention.

Claims (14)

  1. A kind of 1. frequency converter Programmable logical controller function realizing method, it is characterised in that including:
    Logic control region is marked off in the digital signal processor DSP of frequency converter, PLC program solution is provided with the DSP Analyse module;
    Download instruction is received, the download instruction includes PLC files, and the PLC files carry out development process in host computer and obtain Arrive, the reception download instruction is specially:When the frequency converter is powered on or resetted, start the digital signal processor DSP, The host computer for developing PLC files connects the frequency converter, when communication is established, triggers down operation;
    The PLC files are loaded into the logic control region, so that the DSP passes through the PLC program parsing module Parse the PLC files and obtain analysis result, the analysis result is used to carry out logic to the frequency converter and/or external equipment Control;
    The DSP parses the PLC files by the PLC program parsing module and obtains analysis result, specifically includes:
    The DSP obtains logic control input signal;
    The DSP reads the PLC files from the logic control region, and according to the logic control input signal, passes through The PLC program parsing module parses the PLC files, obtains analysis result.
  2. 2. according to the method described in claim 1, it is characterized in that,
    The PLC files carry out development process in host computer to be included:
    The PLC program in host computer;
    Compile the PLC program and generate the PLC files.
  3. 3. according to the method described in claim 1, it is characterized in that,
    Logic control region is marked off in the flash memory FLASH of the DSP.
  4. 4. according to the method described in claim 1, it is characterized in that,
    The frequency converter is provided with communication interface, and the frequency converter is connected by the communication interface with the host computer;
    And then the PLC files are loaded into the logic control region include:
    By the communication interface from the host computer by the buffer area of the PLC file downloads to the DSP;
    If buffer area is full or has downloaded PLC files, traps program is loaded in the random access memory ram of the DSP;
    Start the traps program, by the PLC files storage in the buffer area to the logic control region.
  5. 5. according to the method described in claim 1, it is characterized in that,
    The logic control input signal includes virtual analog input quantity, switch input quantity, digital input amount or simulation input amount;
    The digital signal processor DSP of the frequency converter, which obtains logic control input signal, to be included:
    The DSP passes through the virtual analog input terminal of frequency converter, On-off signal terminal, digital-quantity input terminal, analog quantity Input terminal or communication interface obtain the logic control input signal.
  6. 6. according to the method described in claim 1, it is characterized in that,
    The DSP reads the PLC files from the logic control region, and according to the logic control input signal, passes through The PLC analysis programs parse the PLC files, and obtaining analysis result includes:
    The PLC files are read and stored into random access memory ram by the DSP from the logic control region;It is described PLC files include some instruction codes;
    The DSP reads the instruction code of the PLC files one by one from the RAM;
    According to the logic control input signal, the DSP parses the instruction code of reading, obtains analysis result, institute Stating analysis result includes virtual analog output quantity, output switch parameter amount, digital output or imitated output quantity.
  7. A kind of 7. frequency converter Programmable logical controller function realization device, it is characterised in that including:
    Division unit, for marking off logic control region in the digital signal processor DSP of frequency converter, sets in the DSP It is equipped with PLC program parsing;
    Receiving unit, for receiving download instruction, the download instruction includes PLC files, the PLC files in host computer into Row development process obtains, and the reception download instruction is specially:When the frequency converter is powered on or resetted, start the numeral letter Number processor DSP, the host computer of exploitation PLC files connects the frequency converter, when communication is established, triggers down operation;
    Loading unit, for the PLC files to be loaded into the logic control region, so that the DSP passes through the PLC journeys Sequence parsing module parses the PLC files and obtains analysis result, and the analysis result is used to set the frequency converter and/or outside It is standby to carry out logic control;
    The DSP parses the PLC files by the PLC program parsing module and obtains analysis result, specifically includes:
    The DSP obtains logic control input signal;
    The DSP reads the PLC files from the logic control region, and according to the logic control input signal, passes through The PLC program parsing module parses the PLC files, obtains analysis result.
  8. 8. device according to claim 7, it is characterised in that
    The division unit is specifically used for, and logic control region is marked off in the flash memory FLASH of the DSP.
  9. 9. device according to claim 7, it is characterised in that
    The frequency converter is provided with communication interface, and the frequency converter is connected by the communication interface with the host computer;
    The loading unit is specifically used for, by the communication interface from the host computer by the PLC file downloads to described The buffer area of DSP;If buffer area is full or has downloaded PLC files, loaded in the random access memory ram of the DSP it is soft in Disconnected program;Start the traps program, by the PLC files storage in the buffer area to the logic control region.
  10. 10. a kind of frequency converter, it is characterised in that including such as claim 7~9 any one of them frequency converter programmable logic control Function realization device processed, and digital signal processor DSP;
    Wherein, the DSP includes:
    Acquiring unit, for obtaining logic control input signal;
    Resolution unit, for reading the PLC files from the logic control region, and inputs according to the logic control and believes Number, the PLC files are parsed by the PLC program parsing module, obtain analysis result, the DSP passes through described PLC program parsing module parses the PLC files and obtains analysis result, specifically includes:
    The DSP obtains logic control input signal;
    The DSP reads the PLC files from the logic control region, and according to the logic control input signal, passes through The PLC program parsing module parses the PLC files, obtains analysis result;
    Processing unit, for carrying out logic control to the frequency converter and/or external equipment according to the analysis result.
  11. 11. frequency converter according to claim 10, it is characterised in that the DSP is further included:
    Determination unit, for determining that Programmable logical controller function enables.
  12. 12. frequency converter according to claim 10, it is characterised in that
    The logic control input signal includes virtual analog input quantity, switch input quantity, digital input amount or simulation input amount;
    The acquiring unit especially by frequency converter virtual analog input terminal, On-off signal terminal, digital quantity input terminal Son, analog input terminal or communication interface obtain the logic control input signal.
  13. 13. according to claim 10~12 any one of them frequency converter, it is characterised in that
    The resolution unit is specifically used for, and reads the PLC files from the logic control region and stores to depositing at random In reservoir RAM, wherein, the PLC files include some instruction codes;Read the PLC files one by one from the RAM Instruction code;According to the logic control input signal, the instruction code of reading is parsed, obtains analysis result, it is described Analysis result includes virtual analog output quantity, output switch parameter amount, digital output or imitated output quantity.
  14. 14. frequency converter according to claim 10, it is characterised in that
    The frequency converter is defeated by communication interface, On-off signal/lead-out terminal, digital quantity input/output terminal, analog quantity Enter/lead-out terminal is connected with the external equipment.
CN201410635551.5A 2014-11-12 2014-11-12 A kind of frequency converter Programmable logical controller function realizing method, device and frequency converter Active CN104331017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410635551.5A CN104331017B (en) 2014-11-12 2014-11-12 A kind of frequency converter Programmable logical controller function realizing method, device and frequency converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410635551.5A CN104331017B (en) 2014-11-12 2014-11-12 A kind of frequency converter Programmable logical controller function realizing method, device and frequency converter

Publications (2)

Publication Number Publication Date
CN104331017A CN104331017A (en) 2015-02-04
CN104331017B true CN104331017B (en) 2018-04-20

Family

ID=52405764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410635551.5A Active CN104331017B (en) 2014-11-12 2014-11-12 A kind of frequency converter Programmable logical controller function realizing method, device and frequency converter

Country Status (1)

Country Link
CN (1) CN104331017B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112180817B (en) * 2019-07-02 2021-11-16 北京东土科技股份有限公司 Method, device, equipment and storage medium for transforming ladder diagram into binary tree
CN111337765A (en) * 2020-02-19 2020-06-26 上海辛格林纳新时达电机有限公司 Frequency converter parameter testing system and testing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1264256A (en) * 1999-02-15 2000-08-23 上海贝尔电话设备制造有限公司 Digital signalling processor device for program-controlled exchanger
CN101576744A (en) * 2008-05-08 2009-11-11 宝元数控精密股份有限公司 Method for executing programmable logic controller (PLC) code
CN101673097A (en) * 2009-09-27 2010-03-17 电子科技大学 Comprehensive control device of digitizer
CN101697070A (en) * 2009-10-22 2010-04-21 成都华夏通联微控技术有限公司 Online network programming method of PLC
CN103123598A (en) * 2011-11-18 2013-05-29 中国科学院沈阳计算技术研究所有限公司 Online debugging implementation method of compiling soft programmable logic controller (PLC)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070013357A1 (en) * 2005-07-12 2007-01-18 Delta Electronics, Inc. Inverter apparatus with built-in programmable logic-controller

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1264256A (en) * 1999-02-15 2000-08-23 上海贝尔电话设备制造有限公司 Digital signalling processor device for program-controlled exchanger
CN101576744A (en) * 2008-05-08 2009-11-11 宝元数控精密股份有限公司 Method for executing programmable logic controller (PLC) code
CN101673097A (en) * 2009-09-27 2010-03-17 电子科技大学 Comprehensive control device of digitizer
CN101697070A (en) * 2009-10-22 2010-04-21 成都华夏通联微控技术有限公司 Online network programming method of PLC
CN103123598A (en) * 2011-11-18 2013-05-29 中国科学院沈阳计算技术研究所有限公司 Online debugging implementation method of compiling soft programmable logic controller (PLC)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于PC104和DSP的PLC系统自主研发》;曹霖,游有鹏;《可编程控制器与工厂自动化》;20100331(第3期);第40页,42页2.3节,48页4.2节,图1,图2 *

Also Published As

Publication number Publication date
CN104331017A (en) 2015-02-04

Similar Documents

Publication Publication Date Title
CN108197114B (en) Method and device for detecting table data, storage medium and electronic device
CN105068818B (en) Generate the method, apparatus of channel packet and method, the system of Mass production channel packet
CN107491329A (en) Docker mirror images construction method, equipment, storage medium and electronic installation
CN107370804B (en) Software application processing method and device
CN106707848A (en) Control program organization structure of control system and download method
CN104978258A (en) Software automation test method and system
CN109766099A (en) Front end source code Compilation Method, device, storage medium and computer equipment
CN106681903B (en) Method and device for generating test case
CN103902305A (en) Software long-distance loading and solidifying method based on TI DSP
CN107832059A (en) Code static analysis method and device based on Makefile
CN111459506B (en) Deep learning platform cluster deployment method and device, medium and electronic equipment
CN108471401A (en) A kind of encapsulation of CAN signal, analysis method and device
CN110989487B (en) PLC initialization method and device for industrial server and readable storage medium
CN108563579A (en) White-box testing method, apparatus, system and storage medium
CN104346146A (en) Method and device for cross-platform conversion of application codes
CN114217886A (en) Function calling method, computing device and storage medium
CN105556505A (en) Legacy system
CN107239309A (en) Patch generation method and device, update method, electronic equipment, storage medium
CN104516809A (en) Automated testing system and method
CN103595770A (en) Method and device for achieving file downloading through SDK
CN110825386A (en) Code compiling method and device and storage medium
CN106326749A (en) File repairing method and device
CN108804120A (en) A kind of page makeup method, apparatus, equipment and storage medium
CN104331017B (en) A kind of frequency converter Programmable logical controller function realizing method, device and frequency converter
CN105204964A (en) Data backup method and device based on cloud disk

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190328

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.