Voice broadcasting method and system of industrial control system

文档序号:907590 发布日期:2021-02-26 浏览:8次 中文

阅读说明:本技术 工控系统的语音播报方法及播报系统 (Voice broadcasting method and system of industrial control system ) 是由 刘艳丽 孙军 肖海健 于 2020-11-20 设计创作,主要内容包括:本发明提供一种工控系统的语音播报方法及播报系统,其方法包括:根据播报申请指令,获取工控系统当前的报警信息;从报警信息中获取报警变量信息,报警变量信息至少包括报警类型和报警变量值;根据报警变量信息及与报警变量信息相对应的预设信息文字转化规则,将报警信息转化为文字文本,并将文字文本作为新增的文字文本储存至预设文件库;根据预设文件库的更新信息,从预设文件库获取新增的文字文本;将新增的文字文本中的文字转化为语音,并进行语音播报。利用本发明能够解决目前工控系统的报警系统根据预先录制好的音频文件进行播报,形式单一,如果某一个报警文字发生改变,需要重新录制,同时,模拟量的实时报警无法实现等问题。(The invention provides a voice broadcasting method and a voice broadcasting system of an industrial control system, wherein the method comprises the following steps: acquiring current alarm information of the industrial control system according to the broadcast application instruction; acquiring alarm variable information from alarm information, wherein the alarm variable information at least comprises an alarm type and an alarm variable value; converting the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and storing the text as a newly added text in a preset file library; acquiring a newly added text from a preset document library according to the updating information of the preset document library; and converting the characters in the newly added character text into voice, and broadcasting the voice. The invention can solve the problems that the existing alarm system of the industrial control system broadcasts according to the pre-recorded audio file, the form is single, if a certain alarm character is changed, the alarm needs to be recorded again, and meanwhile, the real-time alarm of the analog quantity can not be realized.)

1. A voice broadcasting method of an industrial control system is characterized by comprising the following steps:

acquiring current alarm information of the industrial control system according to the broadcast application instruction;

acquiring alarm variable information from the alarm information, wherein the alarm variable information at least comprises an alarm type and an alarm variable value;

converting the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and storing the text as a newly added text to a preset file library; wherein, the preset file library generates updating information every time when a new text is stored;

acquiring the newly added text from the preset document library according to the updating information of the preset document library;

and converting the characters in the newly added character text into voice, and performing voice broadcasting.

2. The voice broadcasting method of the industrial control system according to claim 1, wherein the alarm information includes: switching value alarm information and analog value alarm information; wherein the content of the first and second substances,

the switching value alarm information includes: a switching value alarm signal;

the analog quantity alarm information comprises: the analog quantity alarm signal and the analog quantity value corresponding to the analog quantity alarm signal.

3. The voice broadcast method of the industrial control system according to claim 2, wherein before the obtaining of the current alarm information of the industrial control system according to the broadcast application instruction, the method further comprises:

when a switching value alarm signal or an analog value alarm signal is generated in the industrial control system, a broadcast application instruction is generated.

4. The voice broadcast method of the industrial control system according to claim 1, wherein the converting the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and storing the text as a new text in a preset file library comprises:

acquiring a preset information character conversion rule corresponding to the alarm variable information according to the alarm type and the alarm variable value of the alarm variable information; the preset information character conversion rule comprises an alarm type of alarm variable information, an alarm variable value and characters matched with the alarm type and the alarm variable value;

and converting the alarm information into a text according to the preset information text conversion rule, and storing the text as a newly added text to a preset file library.

5. The voice broadcasting method of industrial control system according to claim 1, wherein after obtaining the newly added text from the preset document library according to the update information of the preset document library, the method further comprises:

and loading the newly added text in the preset file library to a broadcast list according to the generated time sequence according to the updating information of the preset file library to obtain a list to be broadcasted.

6. The voice broadcasting method of industrial control system according to claim 5, wherein after obtaining the newly added text from the preset document library according to the update information of the preset document library, the method further comprises:

and when the broadcasting queue of the list to be broadcasted is full, starting countdown of preset waiting loading time, and loading the newly added text to the broadcasting list after the countdown of the preset waiting loading time is finished.

7. The voice broadcasting method of the industrial control system according to claim 6, wherein the converting the characters in the newly added character text into voice and performing voice broadcasting includes:

converting the text in the list to be broadcasted into broadcasting voice according to the loading sequence;

and carrying out voice broadcast through the broadcast voice.

8. The voice broadcasting method of an industrial control system according to claim 7, after said voice broadcasting by said broadcast voice, further comprising:

and deleting the broadcasted text from the list to be broadcasted.

9. The utility model provides an industrial control system's voice broadcast system which characterized in that, the system includes:

the alarm information acquisition unit is used for acquiring the current alarm information of the industrial control system according to the broadcast application instruction;

the alarm variable information acquisition unit is used for acquiring alarm variable information from the alarm information, wherein the alarm variable information at least comprises an alarm type and an alarm variable value;

the information character conversion unit is used for converting the alarm information into a character text according to the alarm variable information and a preset information character conversion rule corresponding to the alarm variable information, and storing the character text serving as a newly added character text into a preset file library; wherein, the preset file library generates updating information every time when a new text is stored;

a newly added text acquiring unit, configured to acquire the newly added text from the preset document library according to the update information of the preset document library;

and the voice broadcasting unit is used for converting the characters in the newly added character text into voice and carrying out voice broadcasting.

10. The voice broadcast system of the industrial control system according to claim 9, wherein the alarm information acquiring unit includes:

the switching value alarm information acquisition module is used for acquiring a switching value alarm signal;

and the analog quantity alarm information acquisition module is used for acquiring an analog quantity alarm signal and an analog quantity value corresponding to the analog quantity alarm signal.

Technical Field

The invention belongs to the technical field of industrial control alarm, and particularly relates to a voice broadcasting method and a voice broadcasting system of an industrial control system.

Background

In the industrial control field, WinCC (window control center) is a man-machine interface component, and has been widely used in industrial fields simultaneously with PLC control systems. And the field data is displayed through a WinCC upper computer, and the important data is alarmed at the same time.

The voice alarm system of the present WinCC system has several implementation modes, one is that the self-alarm is used for configuration, and when the alarm enters, a sound file in mav format selected in advance is played; one is to use a script calling API function PlaySoundA to play a sound file in mav format. In both modes, only fixed voice can be played, and the voice can be a sound file recorded in advance or a single alarm sound. The method has the defects that an audio file needs to be recorded in advance, the form is single, if a certain alarm character is changed, the audio file needs to be recorded again, and meanwhile, real-time alarm of analog quantity cannot be achieved.

Disclosure of Invention

In view of the above problems, an object of the present invention is to provide a voice broadcasting method and a broadcasting system for an industrial control system, so as to solve the problems that the existing alarm system of the industrial control system broadcasts according to a pre-recorded audio file, the form is single, if a certain alarm text changes, re-recording is required, and meanwhile, real-time alarm of analog quantity cannot be realized.

The invention provides a voice broadcasting method of an industrial control system, which comprises the following steps:

acquiring current alarm information of the industrial control system according to the broadcast application instruction;

acquiring alarm variable information from the alarm information, wherein the alarm variable information at least comprises an alarm type and an alarm variable value;

converting the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and storing the text as a newly added text to a preset file library; wherein, the preset file library generates updating information every time when a new text is stored;

acquiring the newly added text from the preset document library according to the updating information of the preset document library;

and converting the characters in the newly added character text into voice, and performing voice broadcasting.

Furthermore, it is preferable that the alarm information includes: switching value alarm information and analog value alarm information; wherein the content of the first and second substances,

the switching value alarm information includes: a switching value alarm signal;

the analog quantity alarm information comprises: the analog quantity alarm signal and the analog quantity value corresponding to the analog quantity alarm signal.

In addition, a preferred scheme is that before the obtaining of the current alarm information of the industrial control system according to the broadcast application instruction, the method further includes:

when a switching value alarm signal or an analog value alarm signal is generated in the industrial control system, a broadcast application instruction is generated.

In addition, preferably, the converting the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and storing the text as a newly added text to a preset file library includes:

acquiring a preset information character conversion rule corresponding to the alarm variable information according to the alarm type and the alarm variable value of the alarm variable information; the preset information character conversion rule comprises an alarm type of alarm variable information, an alarm variable value and characters matched with the alarm type and the alarm variable value;

and converting the alarm information into a text according to the preset information text conversion rule, and storing the text as a newly added text to a preset file library.

In addition, preferably, after the obtaining the newly added text from the preset document library according to the update information of the preset document library, the method further includes:

and loading the newly added text in the preset file library to a broadcast list according to the generated time sequence according to the updating information of the preset file library to obtain a list to be broadcasted.

In addition, it is preferable that, after the acquiring the newly added text from the preset document library according to the acquired update information of the preset document library, the method further includes:

and when the broadcasting queue of the list to be broadcasted is full, starting countdown of preset waiting loading time, and loading the newly added text to the broadcasting list after the countdown of the preset waiting loading time is finished.

In addition, the preferable scheme is that the converting the characters in the newly added character text into voice and the voice broadcasting include:

converting the text in the list to be broadcasted into broadcasting voice according to the loading sequence;

and carrying out voice broadcast through the broadcast voice.

In addition, it is preferable that, after the voice broadcast is performed by the broadcast voice, the method further includes:

and deleting the broadcasted text from the list to be broadcasted.

The invention also provides a voice broadcasting system of the industrial control system, which comprises:

the alarm information acquisition unit is used for acquiring the current alarm information of the industrial control system according to the broadcast application instruction;

the alarm variable information acquisition unit is used for acquiring alarm variable information from the alarm information, wherein the alarm variable information at least comprises an alarm type and an alarm variable value, and the alarm variable information is acquired from the alarm information;

the information character conversion unit is used for converting the alarm information into a character text according to the alarm variable information and a preset information character conversion rule corresponding to the alarm variable information, and storing the character text serving as a newly added character text into a preset file library; wherein, the preset file library generates updating information every time when a new text is stored;

a newly added text acquiring unit, configured to acquire the newly added text from the preset document library according to the acquired update information of the preset document library;

and the voice broadcasting unit is used for converting the characters in the newly added character text into voice and carrying out voice broadcasting.

Furthermore, it is preferable that the alarm information acquiring unit includes:

the switching value alarm information acquisition module is used for acquiring a switching value alarm signal;

and the analog quantity alarm information acquisition module is used for acquiring an analog quantity alarm signal and an analog quantity value corresponding to the analog quantity alarm signal.

According to the technical scheme, the voice broadcasting method and the broadcasting system of the industrial control system generate the broadcasting application instruction through the condition that the industrial control system needs to give an alarm, acquire alarm information according to the generated broadcasting application instruction, convert the alarm information into text according to the alarm variable information acquired from the alarm information and the preset information text conversion rule, store the text in the preset file library, convert the characters in the newly-added text into voice according to the updating of the preset file library, and broadcast the voice; the real-time voice broadcasting can be efficiently realized; according to alarm variable information in different alarm information, corresponding voice is broadcasted, a preset information character conversion rule corresponding to the alarm variable information can be defined according to actual requirements, and the method is more convenient and practical; the invention solves the problems that the broadcasting form is single and a certain alarm character needs to be recorded again when changed in the prior art; meanwhile, the invention can realize real-time alarm of analog quantity at the same time.

To the accomplishment of the foregoing and related ends, one or more aspects of the invention comprise the features hereinafter fully described. The following description and the annexed drawings set forth in detail certain illustrative aspects of the invention. These aspects are indicative, however, of but a few of the various ways in which the principles of the invention may be employed. Further, the present invention is intended to include all such aspects and their equivalents.

Drawings

Other objects and results of the present invention will become more apparent and more readily appreciated as the same becomes better understood by reference to the following description taken in conjunction with the accompanying drawings. In the drawings:

fig. 1 is a flow chart of a voice broadcasting method of an industrial control system according to an embodiment of the present invention;

fig. 2 is a schematic module diagram of a voice broadcast system of an industrial control system according to an embodiment of the present invention;

fig. 3 is a broadcasting schematic diagram of a voice broadcasting system of an industrial control system according to an embodiment of the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

The invention provides a voice broadcasting method of an industrial control system, and relates to a flow diagram of the voice broadcasting method of the industrial control system provided by an embodiment of the invention, which is shown in fig. 1. The method may be performed by a set of systems, which may be implemented by software and/or hardware.

In this embodiment, the voice broadcast method of the industrial control system includes:

and S110, acquiring current alarm information of the industrial control system according to the broadcast application instruction.

Specifically, in the industrial control field, a PLC monitoring process can be selected to detect an alarm signal in an industrial control system, and when the industrial control system generates an alarm signal, for example, in a process from closing to opening of a switch, the generated alarm signal changes from 0 to 1; and generating a broadcast application instruction according to the change, and then acquiring the current alarm information of the industrial control system through the PLC monitoring process.

As an alternative embodiment of the present invention, the alarm information includes: switching value alarm information and analog value alarm information; wherein the content of the first and second substances,

the switching value alarm information includes: a switching value alarm signal;

the analog quantity alarm information comprises: the analog quantity alarm signal and the analog quantity value corresponding to the analog quantity alarm signal.

Specifically, two alarms are generally needed to be reported in the industrial control field, one is a switching value alarm, and the other is an analog quantity alarm. The switching value alarm is an alarm for switching change, and an alarm signal which is changed from 0 to 1 or from 1 to 0 is generated every time the switching is changed, so that the switching value alarm information at least comprises a switching value alarm signal; the analog quantity alarm is an alarm for the change of some parameter values in industrial control, such as temperature change, pressure change and the like, when the parameters such as temperature or pressure change compared with the analog value, an alarm signal representing the change is generated, and the value is output. Examples are as follows: switching value alarm signals a1, a2, … …, An; analog quantity alarm signals B1, B2, … … and Bn; the value when the analog quantity alarm signal is generated, namely the analog quantity value, is as follows: c1, C2, … …, Cn.

As an optional embodiment of the present invention, before obtaining the current alarm information of the industrial control system according to the broadcast application instruction, the method further includes:

when a switching value alarm signal or an analog value alarm signal is generated in the industrial control system, a broadcast application instruction is generated.

Specifically, as long as switching value alarm signals or analog quantity alarm signals are generated in the industrial control system, broadcast application instructions can be generated and sent to the PLC monitoring process, and after the PLC monitoring process receives the broadcast application instructions, all alarm information is obtained from the industrial control system.

And S120, acquiring alarm variable information from the alarm information, wherein the alarm variable information at least comprises an alarm type and an alarm variable value.

Specifically, the PLC monitoring process can be connected with a WinCC detection process, the WinCC is a window control center, the WinCC detection process is commonly used for detecting the industrial control process in an industrial control system, the WinCC detection process is preferably controlled by a global script, alarm variable information in alarm information received from the PLC monitoring process is extracted and put into a system database arranged in the WinCC, and the subsequent use of the alarm variable information is facilitated.

S130, converting the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and storing the text as a newly added text to a preset file library; and the preset file library generates updating information every time when a new text is stored.

Specifically, when the WinCC detection process receives the alarm information, the global script is triggered, and the alarm information is converted into a text according to the alarm variable information and the preset information text conversion rule, for example, the text obtained by converting the alarm variable information and the preset information text conversion rule is too large in hydraulic amplitude, and the like.

As an optional embodiment of the present invention, converting the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and storing the text as a newly added text to a preset file library includes:

acquiring a preset information character conversion rule corresponding to alarm variable information according to the alarm type and the alarm variable value of the alarm variable information; the preset information character conversion rule comprises an alarm type of alarm variable information, an alarm variable value and characters matched with the alarm type and the alarm variable value;

and converting the alarm information into a text according to a preset information text conversion rule, and storing the text serving as a newly added text into a preset file library.

Specifically, for example, the alarm variable information is analog alarm information, the alarm variable information obtained from the analog alarm information is hydraulic amplitude and a corresponding variable value, and a matched word is obtained from a preset information word conversion rule according to the hydraulic amplitude and the corresponding variable value, if the hydraulic amplitude is too large, a word text is obtained and stored in a preset file library of a WinCC detection process. Wherein, the format of the text can be Ti; … …, respectively; tj … …; tk; xi + Ci; … … Xj + Cj; … …, respectively; xk + Ck ", where" + "is a connection symbol.

And S140, acquiring the newly added text from the preset document library according to the updating information of the preset document library.

Specifically, each time a new text is stored in the preset file library, the updating information of the preset file library is generated, and the background monitoring and broadcasting system connected with the WinCC detection process signal acquires the newly added text from the preset file library according to the monitored updating information.

As an optional embodiment of the present invention, after acquiring the newly added text from the preset document library according to the update information of the preset document library, the method further includes:

and loading the newly added text in the preset file library to a broadcast list according to the generated time sequence according to the updating information of the preset file library to obtain a list to be broadcasted.

Specifically, a broadcast list is preset in the background monitoring and broadcasting system, newly-added text in a preset file library is loaded to the broadcast list according to the time sequence generated by the text, and the background monitoring and broadcasting system carries out voice broadcasting according to the list to be broadcasted.

As an optional embodiment of the present invention, after acquiring a newly added text from a preset document library according to update information of the preset document library, the method further includes:

when the broadcasting queue of the list to be broadcasted is full, starting countdown of the preset waiting loading time, and after the countdown of the preset waiting loading time is finished, loading the newly added text to the broadcasting list.

Specifically, when the broadcast queue of the to-be-broadcast list is full, waiting for a period of time is needed, and when the broadcast queue of the to-be-broadcast list is empty, the newly-added text is obtained from the preset file library and loaded to the broadcast list, wherein the preset waiting loading time is set according to actual needs, for example, 5 seconds.

And S150, converting the characters in the newly added character text into voice, and broadcasting the voice.

Specifically, the background monitoring and broadcasting system converts characters in the newly added character text into voice, outputs the voice and completes voice broadcasting.

As an optional embodiment of the present invention, converting the characters in the newly added character text into voice, and performing voice broadcast includes:

converting text in a list to be broadcasted into broadcasting voice according to a loading sequence;

and carrying out voice broadcast through broadcast voice.

Specifically, characters in the newly-added character text are loaded in a broadcasting queue in a list to be broadcasted, the broadcasting queue has a certain time sequence, namely the character loading sequence, the characters in the broadcasting queue are converted into voice according to the character loading sequence, and the voice is broadcasted in a broadcasting mode.

As an optional embodiment of the present invention, after the voice broadcast is performed by the broadcast voice, the method further includes:

and deleting the broadcasted text from the list to be broadcasted.

Specifically, in order to not occupy the broadcast queue in the list to be broadcast, one broadcast queue is deleted every time, so that the circular voice broadcast is realized.

Fig. 2 is a functional block diagram of a voice broadcast system of an industrial control system according to an embodiment of the present invention.

The voice broadcasting system 200 of the industrial control system of the present invention may be installed in an electronic device. According to the realized function, the voice broadcast system of the industrial control system may include an alarm information obtaining unit 210, an alarm variable information obtaining unit 220, an information character converting unit 230, a newly added character text obtaining unit 240, and a voice broadcast unit 250. The units of the invention, which may also be referred to as modules, are a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function and that are stored in a memory of the electronic device.

In the present embodiment, the functions regarding the respective modules/units are as follows:

the alarm information acquisition unit 210 is configured to acquire current alarm information of the industrial control system according to the broadcast application instruction;

an alarm variable information obtaining unit 220, configured to obtain alarm variable information from the alarm information, where the alarm variable information at least includes an alarm type and an alarm variable value, and the alarm variable information is obtained from the alarm information;

an information text conversion unit 230, configured to convert the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and store the text as a newly added text in a preset file library; the method comprises the steps that a preset file library generates updating information every time when a new text is stored;

a newly added text acquiring unit 240, configured to acquire a newly added text from the preset document library according to the acquired update information of the preset document library;

and the voice broadcasting unit 250 is configured to convert the characters in the newly added character text into voice and perform voice broadcasting.

As an alternative embodiment of the present invention, the alarm information acquiring unit includes:

the switching value alarm information acquisition module is used for acquiring a switching value alarm signal;

and the analog quantity alarm information acquisition module is used for acquiring an analog quantity alarm signal and an analog quantity value corresponding to the analog quantity alarm signal.

Fig. 3 is a schematic broadcast diagram of a voice broadcast system of an industrial control system according to an embodiment of the present invention.

Through the PLC monitoring process, the WinCC detection process connected with the PLC monitoring process and the background monitoring and broadcasting system connected with the WinCC detection process, and through arranging the functional units in the PLC monitoring process, the WinCC detection process and the background monitoring and broadcasting system, the related steps in the voice broadcasting method of the industrial control system provided by the invention are executed, and the method specifically comprises the following steps:

wherein, PLC monitoring process includes:

and the alarm information acquisition unit 210 is used for acquiring the current alarm information of the industrial control system according to the broadcast application instruction.

The WinCC detection process comprises the following steps:

an alarm variable information obtaining unit 220, configured to obtain alarm variable information from the alarm information, where the alarm variable information at least includes an alarm type and an alarm variable value, and the alarm variable information is obtained from the alarm information;

an information text conversion unit 230, configured to convert the alarm information into a text according to the alarm variable information and a preset information text conversion rule corresponding to the alarm variable information, and store the text as a newly added text in a preset file library; and the preset file library generates updating information every time when a new text is stored.

The backstage monitoring broadcast system includes:

a newly added text acquiring unit 240, configured to acquire a newly added text from the preset document library according to the acquired update information of the preset document library;

and the voice broadcasting unit 250 is configured to convert the characters in the newly added character text into voice and perform voice broadcasting.

Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.

Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:地址标准化方法、系统及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!