CN107784782A - A kind of alarm method and system of the cigarette dust pelletizing system based on wincc - Google Patents

A kind of alarm method and system of the cigarette dust pelletizing system based on wincc Download PDF

Info

Publication number
CN107784782A
CN107784782A CN201610715241.3A CN201610715241A CN107784782A CN 107784782 A CN107784782 A CN 107784782A CN 201610715241 A CN201610715241 A CN 201610715241A CN 107784782 A CN107784782 A CN 107784782A
Authority
CN
China
Prior art keywords
built
alarm
wincc
variable value
variable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610715241.3A
Other languages
Chinese (zh)
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.)
China Tobacco Guangdong Industrial Co Ltd
Original Assignee
China Tobacco Guangdong Industrial 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 China Tobacco Guangdong Industrial Co Ltd filed Critical China Tobacco Guangdong Industrial Co Ltd
Priority to CN201610715241.3A priority Critical patent/CN107784782A/en
Publication of CN107784782A publication Critical patent/CN107784782A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Human Computer Interaction (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of alarm method of the cigarette dust pelletizing system based on wincc, alert process is carried out using PLC system for solving existing cigarette dust pelletizing system, the problem of wasting PLC resources.Present invention method includes:Pass through the picture editor structure alarm operation interface of wincc configuration softwares;Built-in variable value is established by the variable manager of wincc configuration softwares, and the built-in variable value is linked into the alarm operation interface;The device parameter of the built-in variable value and the cigarette dust pelletizing system is linked using VB scripts in global script;Judge whether the device parameter meets default alert if by the built-in variable value using VB scripts, if so, then alarming.The embodiment of the present invention also provides a kind of warning system of the cigarette dust pelletizing system based on wincc.

Description

A kind of alarm method and system of the cigarette dust pelletizing system based on wincc
Technical field
The present invention relates to cigarette industry field, more particularly to a kind of alarm method of the cigarette dust pelletizing system based on wincc And system.
Background technology
In recent years, as the fusion of computer technology and industrial technology, cigarette dust pelletizing system master system realize far The function of range monitoring, caused with its easy, real-time performance using more and more extensive.Standard is more almost in cigarette industry to match somebody with somebody Put.Development platform is relatively conventional with wincc and INTOUCH.
In order to ensure can normally running steadily in the long term for cigarette dust pelletizing system, electric control system is even more important.And Wincc configuration softwares have up to six kinds of language with powerful, simple to operate, are easy to use and are led in world community Domain, it is the most a configuration software of current category of language, it has wincc picture editor, variable manager, third party The powers such as the friendly interface of software.
Existing cigarette dust pelletizing system carries out alert process by PLC (programmable logic controller (PLC)) system mostly, but right For industrial system, PLC resources are extremely valuable, when PLC resources are occupied to full load, will greatly influence entirely to roll up The performance of dust collection system.Therefore, the PLC resource consumptions for how reducing cigarette dust pelletizing system are always those skilled in the art's Research emphasis.
The content of the invention
The embodiments of the invention provide a kind of alarm method and system of the cigarette dust pelletizing system based on wincc, can solve Certainly existing cigarette dust pelletizing system using PLC system carry out alert process, waste PLC resources the problem of.
A kind of alarm method of cigarette dust pelletizing system based on wincc provided in an embodiment of the present invention, including:
Pass through the picture editor structure alarm operation interface of wincc configuration softwares;
Built-in variable value is established by the variable manager of wincc configuration softwares, and the built-in variable value is linked to The alarm operation interface;
VB scripts are used in global script by the device parameter chain of the built-in variable value and the cigarette dust pelletizing system Connect;
Judge whether the device parameter meets default alert if by the built-in variable value using VB scripts, if It is then to alarm.
Alternatively, included by the picture editor structure alarm operation interface of wincc configuration softwares:
The technological parameter point schematic diagram of the cigarette dust pelletizing system is built by the picture compiler of wincc configuration softwares;
The transmission of the variable parameter of the alarm operation interface is realized by Ethernet, exchanger and converter.
It is alternatively, described that using VB scripts by the built-in variable value to judge whether the device parameter meets default Alert if, if so, then alarm specifically includes:
First number of the device parameter beyond preset range value is detected by the built-in variable value using VB scripts, If first number is more than the frequency threshold value of setting, alarm signal is triggered, if first number is more than 0 and less than setting Frequency threshold value, then feedback interference prompt message.
Alternatively, the wind pressure signal of the cigarette machine of the device parameter including the cigarette dust pelletizing system, flatiron signal and It is at least one in air door signal;
Only when the wind pressure signal, flatiron signal and air door signal respectively meet default entry condition, just perform It is described that the step of whether device parameter meets default alert if is judged by the built-in variable value using VB scripts.
Alternatively, the alarm method also includes:
The device parameter and outside excel files are linked using VB scripts, and using excel files to the equipment Parameter is preserved and read.
Alternatively, the alarm specifically includes:
The display alarm information in the alarm operation interface, the warning message are provided with the chain of the built-in variable value Connect.
A kind of warning system of cigarette dust pelletizing system based on wincc provided in an embodiment of the present invention, including:
Alert interface builds module, for the picture editor structure alarm operation interface by wincc configuration softwares;
Built-in variable establishes module, for establishing built-in variable value by the variable manager of wincc configuration softwares, and will The built-in variable value links to the alarm operation interface;
Parameter link module, for using VB scripts in global script by the built-in variable value and the cigarette dedusting The device parameter link of system;
Judge module, it is default for judging whether the device parameter meets by the built-in variable value using VB scripts Alert if;
Alarm module, for when the judged result of the judge module is is, alarming.
Alternatively, the judge module specifically includes:
Detection unit, exceed preset range for detecting the device parameter by the built-in variable value using VB scripts First number of value;
Frequency judging unit, for when first number is more than the frequency threshold value set, the judged result of output to be It is that, when first number is more than 0 and is less than the frequency threshold value of setting, the judged result of output is interference.
The warning system also includes:Interference feedback module, for the judged result exported when the frequency judging unit During to disturb, feedback interference prompt message.
Alternatively, the wind pressure signal of the cigarette machine of the device parameter including the cigarette dust pelletizing system, flatiron signal and It is at least one in air door signal;
Only when the wind pressure signal, flatiron signal and air door signal respectively meet default entry condition, just trigger The judge module.
Alternatively, the warning system also includes:
File link module, for being linked the device parameter and outside excel files using VB scripts, and utilize Excel files are preserved and read to the device parameter.
The alarm module is specifically used for when the judged result of the judge module is is, in the alarm operation interface Upper display alarm information, the warning message are provided with the link of the built-in variable value.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In the embodiment of the present invention, first, pass through the picture editor structure alarm operation interface of wincc configuration softwares;So Afterwards, built-in variable value is established by the variable manager of wincc configuration softwares, and the built-in variable value is linked into the report Alert operation interface;Then, in global script using VB scripts setting the built-in variable value and the cigarette dust pelletizing system Standby parameter links;Finally, judge whether the device parameter meets default report by the built-in variable value using VB scripts Alert condition, if so, then alarming.In embodiments of the present invention, the alert process of PLC system is completed by wincc configuration softwares, And the device parameter of the built-in variable value and the cigarette dust pelletizing system is linked by VB scripts, and set described in judgement Whether standby parameter meets default alert if, so as to give the groundwork of alert process to VB scripts to handle, is saving While saving PLC system resource, save network bandwidth and the number of wincc input/output variable will not be increased.
Brief description of the drawings
Fig. 1 is a kind of alarm method one embodiment stream of the cigarette dust pelletizing system based on wincc in the embodiment of the present invention Cheng Tu;
Fig. 2 is another embodiment of the alarm method of a kind of cigarette dust pelletizing system based on wincc in the embodiment of the present invention Flow chart;
Fig. 3 is a kind of one application scenarios of alarm method of cigarette dust pelletizing system based on wincc in the embodiment of the present invention Under audio alert schematic flow sheet;
Fig. 4 is a kind of warning system one embodiment knot of the cigarette dust pelletizing system based on wincc in the embodiment of the present invention Composition;
Fig. 5 is another embodiment of the warning system of a kind of cigarette dust pelletizing system based on wincc in the embodiment of the present invention Structure chart.
Embodiment
The embodiments of the invention provide a kind of alarm method and system of the cigarette dust pelletizing system based on wincc, for solving Certainly existing cigarette dust pelletizing system using PLC system carry out alert process, waste PLC resources the problem of.
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that disclosed below Embodiment be only part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in the present invention, this area All other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to protection of the present invention Scope.
Referring to Fig. 1, a kind of alarm method one of cigarette dust pelletizing system based on wincc is implemented in the embodiment of the present invention Example includes:
101st, the picture editor structure alarm operation interface of wincc configuration softwares is passed through;
Before alarm monitoring is carried out to cigarette dust pelletizing system, it can be built by the picture editor of wincc configuration softwares Alarm operation interface.
102nd, built-in variable value is established by the variable manager of wincc configuration softwares, and the built-in variable value is linked To the alarm operation interface;
Furthermore it is also possible to establish built-in variable value by the variable manager of wincc configuration softwares, and by the built-in variable Value links to the alarm operation interface, it is known that, the alarm operation interface includes the built-in variable value, and the built-in variable value can be Presented or represented in many ways in alarm operation interface.
103rd, VB scripts are used in global script by the device parameter chain of the built-in variable value and the cigarette dust pelletizing system Connect;
VB scripts can be used in global script by the device parameter chain of the built-in variable value and the cigarette dust pelletizing system Connect, so as to establish the corresponding relation between the built-in variable value and device parameter so that built-in variable value can reflect that cigarette removes The change of the device parameter of dirt system.
104th, judge whether the device parameter meets default alert if by the built-in variable value using VB scripts, if It is then to perform step 105;
After the device parameter of the built-in variable value and the cigarette dust pelletizing system is linked, it can be passed through using VB scripts The built-in variable value judges whether the device parameter meets default alert if, if so, then performing step 105.
105th, alarm.
In the present embodiment, first, pass through the picture editor structure alarm operation interface of wincc configuration softwares;Then, lead to The variable manager for crossing wincc configuration softwares establishes built-in variable value, and the built-in variable value is linked into alarm operation circle Face;Then, the device parameter of the built-in variable value and the cigarette dust pelletizing system is linked using VB scripts in global script;Most Afterwards, judge whether the device parameter meets default alert if by the built-in variable value using VB scripts, if so, then reporting It is alert.In the present embodiment, complete the alert process of PLC system by wincc configuration softwares, and by VB scripts by this The device parameter of built-in variable value and the cigarette dust pelletizing system links, and judges whether the device parameter meets default alarm bar Part, so as to give the groundwork of alert process to VB scripts to handle, while PLC system resource is saved, save Network bandwidth and the number that wincc input/output variable will not be increased.
For ease of understanding, below to a kind of alarm side of cigarette dust pelletizing system based on wincc in the embodiment of the present invention Method is described in detail, referring to Fig. 2, a kind of alarm method of the cigarette dust pelletizing system based on wincc in the embodiment of the present invention Another embodiment includes:
201st, the picture editor structure alarm operation interface of wincc configuration softwares is passed through;
Before alarm monitoring is carried out to cigarette dust pelletizing system, it can be built by the picture editor of wincc configuration softwares Alarm operation interface.It is specifically as follows:The technique that the cigarette dust pelletizing system is built by the picture compiler of wincc configuration softwares Parameter point schematic diagram, in addition, realizing the biography of the variable parameter of the alarm operation interface by Ethernet, exchanger and converter It is defeated.
It is understood that by picture editor, various objects and control can be added, a kind of monitoring cigarette is built and removes The operation interface of dirt system, main monitoring device include:Cigarette machine (cigarette pressure, cigarette pressure, flatiron signal, air door signal, Wind pressure signal, wind speed, wind pressure balancer), (blast, frequency converter temperature, blower fan machine side switch, fire resisting damper, supervisor are negative for dust pelletizing system Pressure) etc..
202nd, built-in variable value is established by the variable manager of wincc configuration softwares, and the built-in variable value is linked To the alarm operation interface;
After structure alarms operation interface, built-in variable can be established by the variable manager of wincc configuration softwares Value, and the built-in variable value is linked into the alarm operation interface.
By crossing variable manager, the parameter for managing whole cigarette dedusting phonetic warning system can be established, and by this A little parameters are linked to the alarm operation interface of step 201 structure, more vivid clearly to cigarette dust pelletizing system by picture Process point (pressure, signal etc.) is monitored in real time, and unified configuration is carried out to the device parameter with same characteristic features, only needs to edit One template pictures can be monitored to all identical equipment.
203rd, VB scripts are used in global script by the device parameter chain of the built-in variable value and the cigarette dust pelletizing system Connect;
In addition, in global script VB scripts can be used to join the equipment of the built-in variable value and the cigarette dust pelletizing system Number link, so as to establish the corresponding relation between the built-in variable value and device parameter so that built-in variable value can reflect volume The change of the device parameter of dust collection system.
If the 204th, the wind pressure signal, flatiron signal and air door signal respectively meet default entry condition, use VB scripts detect first number of the device parameter beyond preset range value by the built-in variable value;
Application of the VB scripts in cigarette dust pelletizing system is specifically described below:
By VB scripts, implement function such as:
The cigarette pressure of cigarette dust pelletizing system, cigarette pressure, supervisor's wind pressure signal, frequency converter temperature are each set respectively For the upper limit, lower limit and state variable, and carry out logical process with VB sentences, realize that function is as follows:
1st, when monitored variable (such as:Cigarette pressure) instantaneous value be in the upper limit (such as:5000MPa) and lower limit (such as: Outside scope 4000MPa) (such as:Instantaneous value is 5500MPa), corresponding alarm code will be triggered, then warning system will Its state value is changed to by exception according to alarm code, while triggers audible alarm and word warning message.
2nd, when having set arranges value (upper lower limit value) every time, " preservation " button is pressed, will be triggered by VB sentences will alarm All variate-values are stored in outside excel documents in system (the document needs to establish in outside specified path in advance);
3rd, when pressing " reading " button, will be triggered by VB sentences by all variate-values in warning system by outside excel The last setting value of document (the document needs to establish in outside specified path in advance) is covered;
4th, it is automatic to read last time setting value when warning system starts;
5th, cigarette pressure, cigarette pressure are one of conditions of work of cigarette machine, are mainly provided for cigarette machine suitable outer Table air pressure makes it obtain stable service behaviour.Currently in order to cigarette machine is set to obtain stable performance, typically by power houses Dust pelletizing system supplies.Because every machine is influenceed by site environment, its condition of work differs, typically in 8000-12000 models Enclose, beyond the job stability of the range effects cigarette machine.Pressure is detected by the pressure sensor on airduct, is changed PLC is fed back to for 4-20ma analog signals.
6th, flatiron signal, air door signal, wind pressure signal are also one of condition of work of cigarette machine, are mainly used in cigarette dedusting Whether system identification cigarette machine normally starts.At present cigarette dust pelletizing system by judge three signals whether and meanwhile meet to sentence Whether disconnected cigarette machine is normally-open.
Three signals are switching value:Flatiron signal is proximity switch, by detecting low speed flatiron position, when low speed flatiron When falling, detection signal feeds back to PLC, illustrates whether flatiron is ready to;Air door signal is that cigarette machine air door plays opening/closing letter Number, it is derived from the relay auxiliary contact for controlling cigarette machine discharger;Wind pressure signal is cigarette machine fan operation signal, is derived from cigarette The auxiliary contact of machine blower fan relay.
Flatiron signal, air door signal, wind pressure signal feed back to live IO casees, then are sent to by profibus bus protocols PLC.Then wincc reads cigarette pressure, cigarette pressure, flatiron signal, air door from PLC by Profibus bus protocols and believed Number, wind pressure signal, the value and setting value are subjected to logic comparison finally by VB scripts, judge whether to need to trigger alarm signal Number.
After alarm signal is triggered, wincc row can be triggered warning message in the form of digital code by VB scripts Table control, corresponding information is exported in list control.On the other hand, D disk assigned catalogues are stored in by the contact of VB scripts Under wav audio files, corresponding alarm voice is played out by the Windows xp player that carries.
If the 205, first number is more than the frequency threshold value of setting, alarm signal is triggered;
If first number is more than the frequency threshold value of setting, alarm signal is triggered, specifically, can be operated in the alarm Display alarm information on interface, the warning message are provided with the link of the built-in variable value, directly passed through so as to maintain easily personnel Built-in variable value is checked in position where warning message links to built-in variable value, improves search efficiency.
If the 206th, first number is more than 0 and less than the frequency threshold value of setting, feedback interference prompt message;
If first time number is more than 0 and less than the frequency threshold value of setting, illustrate flatiron signal, air door signal or blast One or more of signal exceeds the number of zone of reasonableness still in tolerance, at this point it is possible to such case is considered as dry Disturb, alarmed without triggering.
207th, the device parameter and outside excel files are linked using VB scripts, and using excel files to the equipment Parameter is preserved and read.
In addition, whenever necessary, VB scripts can be used to link the device parameter and outside excel files, and utilize Excel files are preserved and read to the device parameter.
It should be noted that the warning system way in industry is usually to be handled in PLC, then result is passed through Profibus is transferred to wincc, will necessarily so increase PLC burden plus bandwidth usage and wincc points.The present embodiment In alarm method select directly in host computer terminal by way of VB scripts are handled, because all logical process all exist Inside wincc, so can only increase the cpu loads of pc machines, but avoiding increase procedure quantity causes to increase PLC loads, increase The problem of variable causes to increase bandwidth occupancy rate and wincc points.
It can be seen that the scheme handled from VB scripts has following advantage:
1st, PLC loads are not increased.PLC is the precious resources of industrial system, and the sentence of cpu processing is more, and sweep time gets over Long, system response is slower.
2nd, it is not take up network bandwidth.Industrial bandwidth is valuable resource, and bandwidth load mutually restricts with transmission rate, because The load of this data volume is often determining the reaction speed of system.
3rd, wincc points are not increased.Wincc points refer to the number of the input and output point of automated system, that is, defeated Enter the number of output variable, it is necessary to first producer of Siemens purchase, and one of precious resources of industrial system.
A kind of alarm method of cigarette dust pelletizing system based on wincc of the present invention, it can be built by wincc automatic Warning system realizes remote operation, reduces operating personnel's workload, improves fault reaction speed, to realize that cigarette dust pelletizing system is grown Phase reliable and stable operation.
For ease of understanding, above-mentioned Fig. 2 is corresponded in embodiment by the code of VB scripts under an application scenarios below Technical scheme be described, can be understood simultaneously refering to Fig. 3:
First, the variate-value in VB scripts is explained as follows:
Here variate-value is divided into:
Wincc industrial docking variate-value, wincc built-in variable value, the built-in variable value of VB (VC) global script;
1) wincc industrial docking variate-value:Established by the corresponding communication protocol in wincc variable managers (such as tcp/ip), these variables are the variate-values for directly being contacted with PLC by communication protocol, the typically change to PLC Amount carries out direct read/write operation;
2) Wincc built-in variable value is established by the built-in variable in wincc variable managers, is for storing The important technical parameter information that system needs.Such as:
The actual value of FC1 unit blower fan main pipe pressures, higher limit, lower limit, state value (be used for represent the pressure whether In normal range (NR)), these values are corresponding each to need the parameter monitored to have one group.Following program is as space is limited, Technological parameter (fenya-FCJ) is taken dissect, remaining variable is the same processing method.
There is alarm switch state value, alarm code value etc. in addition.
3) VB (VC) built-in variable values correspond with above-mentioned value and establish connection, in VB (vc) inter-process and output To wincc needs.
Here variate-value is including but not limited to as follows:
The signal at cigarette machine scene, including cigarette tipping pressure, cigarette cigarette receiving pressure, cigarette pressure, flatiron signal, air door Signal;
The blast of dust pelletizing system, including FCJ unit blower fans main pipe pressure, FC1 unit blower fans main pipe pressure, FC2 unit wind Owner's pipe pressure, FC3 unit blower fans main pipe pressure, FS1 unit blower fans main pipe pressure, FS2 unit blower fans main pipe pressure, FG units Blower fan main pipe pressure;
Frequency converter temperature, including FCJ unit fan frequency converters temperature, FC1 unit fan frequency converters temperature, FC2 unit wind Machine frequency converter temperature, FC3 unit fan frequency converters temperature, FS1 unit fan frequency converters temperature, FS2 unit fan frequency converter temperature Degree, FG unit fan frequency converter temperature;
On off state by off state by blower fan machine, including FCJ unit blower fans machine, on off state by FC1 unit blower fans machine, On off state, FC3 unit blower fans machine side on off state, FS1 unit blower fans machine side on off state, FS2 machines by FC2 unit blower fans machine On off state, FG unit blower fans machine side on off state by group blower fan machine;
The processing procedure of signal is:
On-site signal is transported to wincc industrial docking variate-value by PLC by communication protocol, then VB (vc) script By being stored in script built-in variable after reading, to carry out the processing of next step (logic judgment etc.)., will after script is disposed Result is output to wincc built-in variable.Man-machine interface is output to finally by wincc built-in variables.
The parsing of following program segment, using the form of example, such as:
No01.JY_RUN "s && " No01.POD_OUT "s && " No01.AIR_ROOM_ON ", it is the industrial right of three wincc Connect and use variate-value, direct value is in live PLC;
SetTagBit("kj",1);Here kj is VC script built-in variables, simply participates in internal logic processing;
{if(((double)GetTagDouble"ZS_FCJ.DUCT_PRESSURE_SAMPLE")<=(double) GetTagDouble(jd))||((double)GetTagDouble(ju)<=(double) GetTagDouble (" ZS_ FCJ.DUCT_PRESSURE_SAMPLE")))
ZS_FCJ.DUCT_PRESSURE_SAMPLE is the blast actual value of fcj dust removal units, is the industrial right of wincc Connect and use variate-value;
Jd (down) is the blast lower limit of corresponding fcj dust removal units;Jd (up) is on the blast of corresponding fcj dust removal units Limit value;The two are
Wincc built-in variables;This alarm system interface is corresponding with the setting of upper and lower bound for each technological parameter, Ju and jd can be accepted in the value of man-machine interface input.
if(cj>GetTagFloat(bjsx));Here bjsx is wincc built-in variables, for being output to man-machine interface 's.System man-machine interface has individual shift knob, exactly by controlling this variable come this warning system of start and stop.
Vc scripts realize the method automatically controlled:
1st, the newly-built vc script (titles of global script are passed through in wincc:ccbj);
2nd, the built-in variable value in wincc is obtained by #define orders, and is given to vc built-in variable, the step Effect be to read corresponding variate-value to inside vc from wincc, to be handled in next step;
#define ju " fenya-FCJ-up " judge whether dust pelletizing system has been switched on;
If ((" ZS_FCJ.FAN_FREQ_RUN "==" ZS_FCJ.FAN_FREQ_SET ") && (" FC1.FAN_FREQ_ RUN "==" FC1.FAN_FREQ_SET ") && (" FC2.FAN_FREQ_RUN "==" FC2.FAN_FREQ_SET ") && (" FC3.FAN_FREQ_RUN "==" FC3.FAN_FREQ_SET ") && (" FS1.FAN_FREQ_RUN "==" FS1.FAN_ FREQ_SET ") && (" FS2.FAN_FREQ_RUN "==" FS2.FAN_FREQ_SET ") && (" FG.FAN_FREQ_RUN "= =" FG.FAN_FREQ_SET "))
Wherein, // " * .FAN_FREQ_RUN " is fan frequency converter actual motion frequency;" * .FAN_FREQ_SET " is wind Machine frequency converter setpoint frequency;
When dust pelletizing system so when the running frequency of blower fan reaches setting value, it is determined as that dust pelletizing system normally opens It is dynamic.
SetTagBit("kj",1);When //kj is 1, dust pelletizing system is normally-open;Otherwise system is also without just normally opened Open or in halted state;
elseSetTagBit("kj",0);//
4th, result is output to by wincc variable by HMIRuntime.Tags write functions and calls Windows The method output audio of function.It can be seen that output audio meets following condition:
1st, dust pelletizing system has been switched on;
2nd, three signals of No. 1 cigarette machine meet (being that No. 1 cigarette machine normally starts) simultaneously;
3rd, No. 1 cigarette machine one of parameter (such as:It is hinged with pressure) more than the duration of limits value (bound) More than the number (bjsx) of setting;(time about 1 second of the global script per run-down, therefore be exactly for 10 times 10 seconds, this setting It is jamproof effect, preventing the impulse disturbances of industrial signal causes system false alarm).
The result output statement of write functions is described in above-mentioned:
1、SetTagFloat("fenya-FCJ",1.0);This sentence changes corresponding signal colour in man-machine interface (it is normally 0, green;Abnormal is 1, red);
2、SetTagWord("bjdm",1);This sentence is by the control variable of wincc list control in man-machine interface Bjdm is changed.(when bjdm=0, system man-machine interface is shown " system is normal ";
When bjdm=1, show " FCJ wind pressure alarms ";
When bjdm=2, show " FS1 wind pressure alarms ") and so on.
4.1st, the function that following sentence is realized is:
Wind pressure signal, flatiron signal and the air door signal of cigarette machine are detected if the switch of warning system is opened, it is no Any operation is not performed then;
If (GetTagBit (kj)==1)
{if("No01.JY_RUN"&&"No01.POD_OUT"&&"No01.AIR_ROOM_ON")
Above-mentioned code interpreter is as follows:
The wind pressure signal of No01.JY_RUN cigarette machines;
The flatiron signal of No01.POD_OUT cigarette machines;
The air door signal of No01.AIR_ROOM_ON cigarette machines;
Only when three signals of cigarette machine meet that can just be considered as cigarette machine has been switched on simultaneously;
The function that less than 4.2 sentences are realized:
When system detectio to parameter actual value (such as FCJ blast actual value) is higher than setting higher limit or less than lower limit, When being continued above number (bjsx) of setting, alarm signal is triggered.If less than the number of setting, it will be regarded as disturbing, do not trigger Alarm.
{if(((double)GetTagDouble("ZS_FCJ.DUCT_PRESSURE_SAMPLE")<=(double) GetTagDouble(jd))||((double)GetTagDouble(ju)<=(double) GetTagDouble (" ZS_ FCJ.DUCT_PRESSURE_SAMPLE "))), it act as:Compare the upper lower limit value whether actual value exceedes setting.
cj++;Be delayed sentence, it is necessary to is continued above the number (bjsx) of setting
if(cj>GetTagFloat (bjsx)) if // setting number is continued above, variable fenya-FCJ is changed into 1.0.Because this variable and wincc built-in variable of the same name are attached, and the wincc built-in variable is to be used to show FCJ The state (1.0 be normal, and 0 is abnormal) of blast, therefore warning message will be caused to be shown at wincc interfaces.
{SetTagFloat("fenya-FCJ",1.0);
// alarm delay function is realized, for the stability of regulating system, equivalent to connection delay function;
ZS_FCJ.DUCT_PRESSURE_SAMPLE represents FCJ (dust collection blower fan) airduct actual pressure value, under jd is Limit value, ju are higher limit, and Bjsx is the delay value of alarm settings, and jd, ju and bjsx can be in the artificial roots in warning system interface Set according to actual conditions:When actual value exceeds bound, and the duration reaches predetermined number (bjsx), system thinks to alarm Condition is set up, otherwise it is assumed that being interference volume.
The function that less than 4.3 sentences are realized:
If alarm switch is in normal condition, alarm operation is carried out, plays corresponding audio.
The method that VB scripts call excel functions:
1st, the newly-built VB script (titles of global script are passed through in wincc:VB1);
2nd, suitable catalogue establish an excel document (such as:D:\data.xlsx);
3rd, excel documents are opened by such as issuing orders:
Dim fso,myfile
Set fso=CreateObject (" scripting.FileSystemObject ")
Set MyFile=fso.GetFile (" d:\\data.xlsx")
Dim ObjExcelApp
Set objExcelApp=CreateObject (" Excel.Application ")
objExcelApp.Workbooks.OpenMyFile
4th, the built-in variable of VB overall situation scripts is established by such as issuing orders and by the built-in variable in wincc (in example 's:" fenya-FCJ-up ") read built-in variable (ju);Relevant variable is established inside VC the difference is that above-mentioned, is here Inside VB.
Dim ju
Set ju=HMIRuntime.Tags (" fenya-FCJ-up ")
5th, built-in variable and excel tables are read or read in operation by such as issuing orders;
Ju.value=objExcelApp.worksheets (" sheet1 ") .Cells (1,1) .value//reading behaviour Make.
HMIRuntime.Tags (" fenya-FCJ-up ") .write ju.value//output operation.
6th, excel files are closed by preservation of such as issuing orders and clears up caching.
objExcelApp.Workbooks.Close
objExcelApp.Quit
Set objExcelApp=Nothing//cleaning caching.
The above under this application scene is the basic composition and principle of VB sentences, and its core concept is by sacrificing platform The cpu performances of formula machine, which go to obtain, reduces PLC, the burden of network and wincc points, and realizing to generally require by wincc makes With PLC come the part control function realized.
A kind of alarm method of the cigarette dust pelletizing system based on wincc is essentially described above, one kind will be based on below The warning system of wincc cigarette dust pelletizing system is described in detail, referring to Fig. 4, one kind is based in the embodiment of the present invention Warning system one embodiment of wincc cigarette dust pelletizing system includes:
Alert interface builds module 401, for the picture editor structure alarm operation circle by wincc configuration softwares Face;
Built-in variable establishes module 402, for establishing built-in variable value by the variable manager of wincc configuration softwares, And the built-in variable value is linked into the alarm operation interface;
Parameter link module 403, for using VB scripts in global script by the built-in variable value and the cigarette dedusting The device parameter link of system;
Judge module 404, it is default for judging whether the device parameter meets by the built-in variable value using VB scripts Alert if;
Alarm module 405, for when the judged result of the judge module 404 is is, alarming.
In the present embodiment, first, alert interface builds module 401 and built by the picture editor of wincc configuration softwares Alarm operation interface;Built-in variable establishes module 402 and establishes built-in variable value by the variable manager of wincc configuration softwares, And the built-in variable value is linked into the alarm operation interface;Then, parameter link module 403 uses VB pin in global script This links the device parameter of the built-in variable value and the cigarette dust pelletizing system;Judge module 404 is interior by this using VB scripts Portion's variate-value judges whether the device parameter meets default alert if;When the judged result of the judge module 404 is is, Alarm module 405 is alarmed.In the present embodiment, the alert process of PLC system is completed by wincc configuration softwares, and is led to Cross VB scripts to link the device parameter of the built-in variable value and the cigarette dust pelletizing system, and judge whether the device parameter accords with Default alert if is closed, so as to give the groundwork of alert process to VB scripts to handle, is saving PLC system resource While, save network bandwidth and the number of wincc input/output variable will not be increased.
For ease of understanding, below to a kind of alarm system of cigarette dust pelletizing system based on wincc in the embodiment of the present invention System is described in detail, referring to Fig. 5, a kind of warning system of the cigarette dust pelletizing system based on wincc in the embodiment of the present invention Another embodiment includes:
Alert interface builds module 501, for the picture editor structure alarm operation circle by wincc configuration softwares Face;
Built-in variable establishes module 502, for establishing built-in variable value by the variable manager of wincc configuration softwares, And the built-in variable value is linked into the alarm operation interface;
Parameter link module 503, for using VB scripts in global script by the built-in variable value and the cigarette dedusting The device parameter link of system;
Judge module 504, it is default for judging whether the device parameter meets by the built-in variable value using VB scripts Alert if;
Alarm module 505, for when the judged result of the judge module 504 is is, alarming.
In the present embodiment, the judge module 504 can specifically include:
Detection unit 5041, exceed preset range for detecting the device parameter by the built-in variable value using VB scripts First number of value;
Frequency judging unit 5042, for when first number be more than setting frequency threshold value when, the judged result of output It is yes, when first number is more than 0 and is less than the frequency threshold value of setting, the judged result of output is interference.
The warning system also includes:Interference feedback module 506, for the judgement knot exported when the frequency judging unit 5042 When fruit is disturbs, feedback interference prompt message.
In the present embodiment, the device parameter can include the wind pressure signal of the cigarette machine of the cigarette dust pelletizing system, flatiron letter Number and air door signal in it is at least one;
Only when the wind pressure signal, flatiron signal and air door signal respectively meet default entry condition, just triggering should Judge module 504.
In the present embodiment, the warning system also includes:
File link module 507, for being linked the device parameter and outside excel files using VB scripts, and utilize Excel files are preserved and read to the device parameter.
The alarm module 505 is specifically used for when the judged result of the judge module 504 is is, in the alarm operation interface Upper display alarm information, the warning message are provided with the link of the built-in variable value.
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, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention Portion or part steps.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 disc or CD etc. are various can store journey The medium of sequence code.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

  1. A kind of 1. alarm method of the cigarette dust pelletizing system based on wincc, it is characterised in that including:
    Pass through the picture editor structure alarm operation interface of wincc configuration softwares;
    Built-in variable value is established by the variable manager of wincc configuration softwares, and the built-in variable value linked to described Alarm operation interface;
    The device parameter of the built-in variable value and the cigarette dust pelletizing system is linked using VB scripts in global script;
    Judge whether the device parameter meets default alert if by the built-in variable value using VB scripts, if so, Then alarm.
  2. 2. alarm method according to claim 1, it is characterised in that pass through the picture editor structure of wincc configuration softwares Building alarm operation interface includes:
    The technological parameter point schematic diagram of the cigarette dust pelletizing system is built by the picture compiler of wincc configuration softwares;
    The transmission of the variable parameter of the alarm operation interface is realized by Ethernet, exchanger and converter.
  3. 3. alarm method according to claim 1, it is characterised in that described to pass through the built-in variable value using VB scripts Judge whether the device parameter meets default alert if, if so, then alarm specifically includes:
    First number of the device parameter beyond preset range value is detected by the built-in variable value using VB scripts, if institute The frequency threshold value that first number is more than setting is stated, then triggers alarm signal, if first number is more than 0 and less than time of setting Threshold value is counted, then feedback interference prompt message.
  4. 4. alarm method according to claim 1, it is characterised in that the device parameter includes the cigarette dust pelletizing system The wind pressure signal of cigarette machine, at least one in flatiron signal and air door signal;
    Only when the wind pressure signal, flatiron signal and air door signal respectively meet default entry condition, just described in execution The step of whether device parameter meets default alert if is judged by the built-in variable value using VB scripts.
  5. 5. alarm method according to any one of claim 1 to 4, it is characterised in that the alarm method also includes:
    The device parameter and outside excel files are linked using VB scripts, and using excel files to the device parameter Preserved and read.
  6. 6. alarm method according to any one of claim 1 to 4, it is characterised in that the alarm specifically includes:
    The display alarm information in the alarm operation interface, the warning message are provided with the link of the built-in variable value.
  7. A kind of 7. warning system of the cigarette dust pelletizing system based on wincc, it is characterised in that including:
    Alert interface builds module, for the picture editor structure alarm operation interface by wincc configuration softwares;
    Built-in variable establishes module, for establishing built-in variable value by the variable manager of wincc configuration softwares, and by described in Built-in variable value links to the alarm operation interface;
    Parameter link module, for using VB scripts in global script by the built-in variable value and the cigarette dust pelletizing system Device parameter link;
    Judge module, for judging whether the device parameter meets default report by the built-in variable value using VB scripts Alert condition;
    Alarm module, for when the judged result of the judge module is is, alarming.
  8. 8. warning system according to claim 7, it is characterised in that the judge module specifically includes:
    Detection unit, for detecting the device parameter beyond preset range value by the built-in variable value using VB scripts First number;
    Frequency judging unit, during frequency threshold value for being more than setting when first number, the judged result of output be it is yes, when When first number is more than 0 and is less than the frequency threshold value of setting, the judged result of output is interference.
    The warning system also includes:Interference feedback module, the judged result for being exported when the frequency judging unit is dry When disturbing, feedback interference prompt message.
  9. 9. warning system according to claim 7, it is characterised in that the device parameter includes the cigarette dust pelletizing system The wind pressure signal of cigarette machine, at least one in flatiron signal and air door signal;
    Only when the wind pressure signal, flatiron signal and air door signal respectively meet default entry condition, just described in triggering Judge module.
  10. 10. the warning system according to any one of claim 7 to 9, it is characterised in that the warning system also includes:
    File link module, for the device parameter and outside excel files being linked using VB scripts, and utilizes excel File is preserved and read to the device parameter.
    The alarm module is specifically used for, when the judged result of the judge module is is, in the alarm operation interface showing Show warning message, the warning message is provided with the link of the built-in variable value.
CN201610715241.3A 2016-08-24 2016-08-24 A kind of alarm method and system of the cigarette dust pelletizing system based on wincc Pending CN107784782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610715241.3A CN107784782A (en) 2016-08-24 2016-08-24 A kind of alarm method and system of the cigarette dust pelletizing system based on wincc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610715241.3A CN107784782A (en) 2016-08-24 2016-08-24 A kind of alarm method and system of the cigarette dust pelletizing system based on wincc

Publications (1)

Publication Number Publication Date
CN107784782A true CN107784782A (en) 2018-03-09

Family

ID=61388478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610715241.3A Pending CN107784782A (en) 2016-08-24 2016-08-24 A kind of alarm method and system of the cigarette dust pelletizing system based on wincc

Country Status (1)

Country Link
CN (1) CN107784782A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507858A (en) * 2020-03-24 2020-08-07 福建龙亿粉体装备制造有限公司 Ring roller mill monitoring method and system
CN111596607A (en) * 2020-04-14 2020-08-28 宝鸡石油机械有限责任公司 Upper computer general HMI interface design method capable of configuring text and operation command
CN112070997A (en) * 2020-09-07 2020-12-11 沈阳亨通光通信有限公司 Fault alarm method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303586A (en) * 2007-05-10 2008-11-12 沈阳创思达自动化系统有限公司 Electric dust removal control system and control method thereof
CN101329575A (en) * 2008-05-30 2008-12-24 华南理工大学 Computer intelligent control method of sheet bar continuous casting and rolling
CN102091731A (en) * 2010-11-30 2011-06-15 大连三高重工设备有限公司 Hole shape regulating and controlling system of steel tube empty curving forming unit and control method thereof
CN102799675A (en) * 2012-07-18 2012-11-28 天津市天锻压力机有限公司 Status data storage method for quick forging press
CN103092167A (en) * 2013-01-06 2013-05-08 蚌埠凯盛工程技术有限公司 Glass production line remote monitoring system based on web
CN103810823A (en) * 2014-02-27 2014-05-21 神华集团有限责任公司 Alarm processing method and device
CN104281068A (en) * 2014-10-22 2015-01-14 福建龙净环保股份有限公司 Method for monitoring electrostatic and fabric composite filter based on WINCC platform
CN105169828A (en) * 2015-08-26 2015-12-23 邯郸新兴特种管材有限公司 WINCC-based bag filter control system and control method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303586A (en) * 2007-05-10 2008-11-12 沈阳创思达自动化系统有限公司 Electric dust removal control system and control method thereof
CN101329575A (en) * 2008-05-30 2008-12-24 华南理工大学 Computer intelligent control method of sheet bar continuous casting and rolling
CN102091731A (en) * 2010-11-30 2011-06-15 大连三高重工设备有限公司 Hole shape regulating and controlling system of steel tube empty curving forming unit and control method thereof
CN102799675A (en) * 2012-07-18 2012-11-28 天津市天锻压力机有限公司 Status data storage method for quick forging press
CN103092167A (en) * 2013-01-06 2013-05-08 蚌埠凯盛工程技术有限公司 Glass production line remote monitoring system based on web
CN103810823A (en) * 2014-02-27 2014-05-21 神华集团有限责任公司 Alarm processing method and device
CN104281068A (en) * 2014-10-22 2015-01-14 福建龙净环保股份有限公司 Method for monitoring electrostatic and fabric composite filter based on WINCC platform
CN105169828A (en) * 2015-08-26 2015-12-23 邯郸新兴特种管材有限公司 WINCC-based bag filter control system and control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111507858A (en) * 2020-03-24 2020-08-07 福建龙亿粉体装备制造有限公司 Ring roller mill monitoring method and system
CN111596607A (en) * 2020-04-14 2020-08-28 宝鸡石油机械有限责任公司 Upper computer general HMI interface design method capable of configuring text and operation command
CN111596607B (en) * 2020-04-14 2021-07-13 宝鸡石油机械有限责任公司 Upper computer general HMI interface design method capable of configuring text and operation command
CN112070997A (en) * 2020-09-07 2020-12-11 沈阳亨通光通信有限公司 Fault alarm method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107886952A (en) A kind of method, apparatus, system and the electronic equipment of Voice command intelligent appliance
CN103064390B (en) Room environment remote monitoring system and monitoring method thereof based on Internet of Things
CN109391613A (en) A kind of intelligent substation method for auditing safely based on SCD parsing
CN107784782A (en) A kind of alarm method and system of the cigarette dust pelletizing system based on wincc
CN102819249B (en) Linkage control system and control method for power tunnel
CN102323806A (en) Inverter monitoring platform and monitoring method thereof
US20220011753A1 (en) Generating and distributing configuration data structures for control systems
CN101303586A (en) Electric dust removal control system and control method thereof
CN101335670A (en) Wireless sensor network warehouse monitoring system and method on basis of ZigBee
CN109541948A (en) A kind of smart home intelligence control system and application method
CN101562539A (en) Self-adapting network intrusion detection system
CN116980958A (en) Radio equipment electric fault monitoring method and system based on data identification
CN110266680A (en) A kind of industrial communication method for detecting abnormality based on dual similarity measurement
CN104717183A (en) Integrated monitoring system, gateway equipment and data transmission method
CN106441436A (en) Method and system applicable to culture farm environment monitoring
CN202837966U (en) Information prompting system for safety instrument storehouse
CN106526498A (en) Uninterrupted Power Supply (UPS) self-inspection method and UPS self-inspection circuit
CN110609533A (en) Safety architecture of SCADA data acquisition system
CN110113204A (en) A method of realizing application program management on intelligent gateway
CN207337179U (en) A kind of intelligent leather belt transportation communication control system
CN206515719U (en) A kind of monitoring system of cable tunnel export environment
CN109856999A (en) Determine the method and system whether status information relevant to equipment is executed is tampered
CN112510823B (en) Power supply remote control system
CN206454149U (en) A kind of Internet of Things fire-fighting early warning system
CN107247443A (en) A kind of intelligent leather belt transportation communication control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180309

RJ01 Rejection of invention patent application after publication