Method and device for synchronizing flicker of light indicator

By initializing the cycle counter and generating a reference square wave signal, the problem of inconsistent flashing frequencies of the indicator lights on the backup panel of a nuclear power plant was solved, achieving synchronous driving of the indicator lights and improving the accuracy of operator judgment.

CN119028063APending Publication Date: 2024-11-26CHINA TECHENERGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410951350.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the backup panel of a nuclear power plant, the inconsistent flashing frequency of the indicator lights makes it difficult for operators to make judgments, affects visual fatigue, and fails to meet human factors requirements.

Method used

By initializing the cycle counter, calculating the number of flashing cycles, generating a reference square wave signal, and generating a light sign control signal according to the alarm conditions, the synchronous driving of the light sign is realized.

Benefits of technology

The system achieves synchronized flashing of illuminated signs, reducing operator visual fatigue and improving the accuracy and consistency of judgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119028063A_ABST
    Figure CN119028063A_ABST
Patent Text Reader

Abstract

The invention provides a flicker synchronization method and device for a light indicator, and the method comprises the steps: initializing the count of a first cycle number counter to be 0 when a controller is started, and reading the flicker frequency of the light indicator and the operation cycle of the controller; adding 1 to the count of the first cycle number counter to obtain a current first cycle count; calculating the number of flicker cycles according to the flicker frequency of the light indicator and the operation cycle of the controller; if it is judged that the current first period count is larger than the flicker period count, a current reference square wave signal is obtained, and the count of the first period number counter is set to be 0; generating a target reference square wave signal according to the current reference square wave signal; generating a light indicator control signal according to the collected alarm condition signal and the target reference square wave signal; wherein an alarm module in the control station drives the light indicator according to the light indicator control signal. Therefore, flicker synchronous control is effectively carried out on the light indicator driven by the control station.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of synchronization control technology, and in particular to a flashing synchronization method and device for an optical sign. Background Art

[0002] At present, the instrumentation and control system in nuclear power plants mainly uses the distributed control system (DCS) digital instrumentation and control platform. The control room uses computers, displays, and network communications to control the nuclear power plant. Some important equipment uses conventional analog panels for operation and display through backup disks. The light-emitting signs in the backup disks monitor and alarm important control processes in the nuclear power plant. They are intuitive and important information for operators to judge alarm events, prompting operators to take necessary actions on events.

[0003] At present, there are many spare panels in the VVER-1200 reactor nuclear power plant, including 18 safety-level control panels and 13 non-safety-level control panels. A large number of light-emitting sign alarms are set in each panel, of which there are about 700 safety-level light-emitting sign alarms and about 1,300 non-safety-level light-emitting sign alarms. According to process requirements, these light-emitting sign alarms are driven by DO modules of different DCS control stations, involving more than 100 control stations to control the spare panel light-emitting sign alarms.

[0004] There are 4 states of the light-emitting sign of the backup panel: fast flash (2Hz), flat light, slow flash (0.5Hz), and light off, which respectively represent the alarm unconfirmed, alarm confirmed, alarm cleared, and alarm cleared confirmed. For alarm conditions that are not generated at the same time, the alarm flashing frequency in each control station is inconsistent. When an accident occurs on site, the flashing frequency of the light-emitting sign on the panel is inconsistent due to the inconsistent time of alarm triggering, confirmation or release, which seriously affects the judgment of the operator and easily causes visual fatigue of the operator, which does not meet the human factor requirements. Summary of the invention

[0005] In view of this, the present application provides a flashing synchronization method and device for an optical sign, which can effectively perform synchronization control on an optical sign driven by a control station.

[0006] The first aspect of the present application provides a flashing synchronization method of an optical sign, which is applied to a control station and includes:

[0007] When the controller is started, the count of the first cycle number counter is initialized to 0, and the flashing frequency of the light-emitting sign and the operation cycle of the controller are read;

[0008] Add 1 to the count of the first cycle number counter to obtain the current first cycle count;

[0009] According to the flashing frequency of the light-emitting sign and the operation cycle of the controller, the number of flashing cycles is calculated;

[0010] Determine whether the current first cycle count is greater than the flashing cycle count;

[0011] If it is determined that the current first cycle count is greater than the flashing cycle count, the current reference square wave signal is acquired, and the count of the first cycle number counter is set to 0;

[0012] Generating a target reference square wave signal according to the current reference square wave signal;

[0013] Collect alarm condition signals;

[0014] A light-emitting sign control signal is generated according to the alarm condition signal and the target reference square wave signal; wherein the alarm module in the control station drives the light-emitting sign according to the light-emitting sign control signal.

[0015] Optionally, after determining whether the current first cycle count is greater than the flashing cycle count, the method further includes:

[0016] If it is determined that the current first cycle count is not greater than the flashing cycle count, the current first cycle count is increased by 1 to obtain a new current first cycle count, and then the step of determining whether the current first cycle count is greater than the flashing cycle count is executed.

[0017] Optionally, generating a target reference square wave signal according to the current reference square wave signal includes:

[0018] Determine whether the current reference square wave signal is 1;

[0019] If it is determined that the current reference square wave signal is 1, the current reference square wave signal is changed to 0 as the target reference square wave signal;

[0020] If it is determined that the current reference square wave signal is not 1, the current reference square wave signal is changed to 1 as the target reference square wave signal.

[0021] Optionally, after generating a target reference square wave signal according to the current reference square wave signal, the method further includes:

[0022] The target reference square wave signal is used as a new current reference square wave signal, and the step of generating a target reference square wave signal according to the current reference square wave signal is performed.

[0023] Optionally, if applied to multiple control stations, the flashing synchronization method of the optical signboard further includes:

[0024] Among all the control stations, one control station is randomly selected as a reference control station; wherein the reference control station uses the generated target reference square wave signal as a synchronous square wave pulse signal; the reference control station sends the synchronous square wave pulse signal according to a preset synchronization period;

[0025] For each of the control stations, after receiving the synchronous square wave pulse signal, the control station corrects its own target reference signal according to the synchronous square wave pulse signal.

[0026] Optionally, after receiving the synchronous square wave pulse signal, each control station corrects its own target reference signal according to the synchronous square wave pulse signal, including:

[0027] For each of the control stations, after receiving the synchronous square wave pulse signal, the control station determines whether the synchronous square wave pulse signal changes from 0 to 1;

[0028] If it is determined that the synchronous square wave pulse signal changes from 0 to 1, the control station sets the current first cycle count to 0 and changes the current reference square wave signal to 1 as the target reference square wave signal.

[0029] Optionally, the flashing synchronization method of the optical sign further includes:

[0030] For each of the control stations, when the controller is started, the control station initializes the count of the second cycle number counter to 0, and reads the controller operation cycle and synchronization cycle;

[0031] Add 1 to the count of the second cycle number counter to obtain the current second cycle count;

[0032] According to the synchronization cycle and the controller operation cycle, the number of synchronization cycles is calculated;

[0033] Determine whether the current second cycle count is greater than the synchronization cycle number;

[0034] If it is determined that the current second cycle count is greater than the synchronization cycle number, determining whether the target reference signal is changed from 0 to 1;

[0035] If it is determined that the target reference signal changes from 0 to 1, a synchronous square wave pulse signal is output, and the count of the second period counter is set to 0.

[0036] Optionally, after determining whether the current second cycle count is greater than the synchronization cycle number, the step further includes:

[0037] If it is determined that the current second cycle count is not greater than the synchronization cycle number, the current second cycle count is increased by 1 to obtain a new current second cycle count, and then the step of determining whether the current second cycle count is greater than the synchronization cycle number is performed.

[0038] Optionally, if it is determined that the synchronous square wave pulse signal changes from 0 to 1, the control station sets the current first cycle count to 0 and changes the current reference square wave signal to 1 as the target reference square wave signal, further comprising:

[0039] Determine whether the target reference signal changes from 0 to 1;

[0040] If it is determined that the target reference signal changes from 0 to 1, a synchronous square wave pulse signal is output, and the count of the second period counter is set to 0.

[0041] The second aspect of the present application provides a flashing synchronization device for an optical sign, which is applied to a control station and includes:

[0042] The first pre-processing unit is used for initializing the count of the first cycle number counter to 0 when the controller is started, and reading the flashing frequency of the optical sign and the operation cycle of the controller;

[0043] A first cycle counting unit, used for adding 1 to the count of the first cycle number counter to obtain a current first cycle count;

[0044] The first calculation unit is used to calculate the number of flashing cycles according to the flashing frequency of the optical sign and the operation cycle of the controller;

[0045] A first judging unit, used for judging whether the current first cycle count is greater than the flashing cycle count;

[0046] a first processing unit, configured to obtain a current reference square wave signal and set the count of the first cycle number counter to 0 if the first determination unit determines that the current first cycle count is greater than the flashing cycle count;

[0047] A first generating unit, configured to generate a target reference square wave signal according to the current reference square wave signal;

[0048] A collection unit, used for collecting alarm condition signals;

[0049] The second generating unit is used to generate an optical sign control signal according to the alarm condition signal and the target reference square wave signal; wherein the alarm module in the control station drives the optical sign according to the optical sign control signal.

[0050] Optionally, the flashing synchronization device of the optical sign further includes:

[0051] The first activation unit is used to add 1 to the current first cycle count if the first judgment unit determines that the current first cycle count is not greater than the flashing cycle count, and after obtaining a new current first cycle count, activate the first judgment unit to execute the step of judging whether the current first cycle count is greater than the flashing cycle count.

[0052] Optionally, the first generating unit includes:

[0053] A second judging unit, used to judge whether the current reference square wave signal is 1;

[0054] a first changing unit, configured to change the current reference square wave signal to 0 as a target reference square wave signal if the second judging unit judges that the current reference square wave signal is 1;

[0055] The first changing unit is further configured to change the current reference square wave signal to 1 as a target reference square wave signal if the second determining unit determines that the current reference square wave signal is not 1.

[0056] Optionally, the flashing synchronization device of the light-emitting sign also includes:

[0057] The second activation unit is used to use the target reference square wave signal as a new current reference square wave signal, and activate the first generation unit to execute the step of generating a target reference square wave signal according to the current reference square wave signal.

[0058] Optionally, if applied to multiple control stations, the flashing synchronization device of the optical signboard further includes:

[0059] A reference control station determination unit is used to arbitrarily select a control station from all control stations as a reference control station; wherein the reference control station uses the generated target reference square wave signal as a synchronous square wave pulse signal; the reference control station sends the synchronous square wave pulse signal according to a preset synchronization period;

[0060] The correction unit is used for correcting its own target reference signal according to the synchronous square wave pulse signal for each control station after the control station receives the synchronous square wave pulse signal.

[0061] Optionally, the correction unit includes:

[0062] A third judgment unit is used for, for each of the control stations, after the control station receives the synchronous square wave pulse signal, to judge whether the synchronous square wave pulse signal changes from 0 to 1;

[0063] The second changing unit is used for, if the third judging unit judges that the synchronous square wave pulse signal changes from 0 to 1, the control station sets the current first cycle count to 0 and changes the current reference square wave signal to 1 as the target reference square wave signal.

[0064] Optionally, the flashing synchronization device of the light-emitting sign also includes:

[0065] A second preprocessing unit is used for initializing the count of the second cycle number counter to 0 for each of the control stations when the controller is started, and reading the controller operation cycle and synchronization cycle;

[0066] A second cycle counting unit, used for adding 1 to the count of the second cycle number counter to obtain a current second cycle count;

[0067] A second calculation unit is used to calculate the number of synchronization cycles according to the synchronization cycle and the controller operation cycle;

[0068] A fourth judgment unit, used to judge whether the current second cycle count is greater than the synchronization cycle number;

[0069] a fifth determination unit, configured to determine whether the target reference signal is changed from 0 to 1 if the fourth determination unit determines that the current second cycle count is greater than the synchronization cycle number;

[0070] The first output unit is used to output a synchronous square wave pulse signal and set the count of the second period counter to 0 if the fifth judgment unit determines that the target reference signal changes from 0 to 1.

[0071] Optionally, the flashing synchronization device of the optical sign further includes:

[0072] The third activation unit is used to add 1 to the current second cycle count if the fourth judgment unit determines that the current second cycle count is not greater than the synchronization cycle number. After obtaining a new current second cycle count, the fourth judgment unit is activated to execute the step of judging whether the current second cycle count is greater than the synchronization cycle number.

[0073] Optionally, if it is determined that the synchronous square wave pulse signal changes from 0 to 1, the control station sets the current first cycle count to 0, and changes the current reference square wave signal to 1 as the target reference square wave signal. Then, the fifth judgment unit is used to determine whether the target reference signal changes from 0 to 1. If the fifth judgment unit determines that the target reference signal changes from 0 to 1, the second output unit outputs a synchronous square wave pulse signal and sets the count of the second cycle counter to 0.

[0074] A third aspect of the present application provides an electronic device, including:

[0075] one or more processors;

[0076] a storage device having one or more programs stored thereon;

[0077] When the one or more programs are executed by the one or more processors, the one or more processors implement the flashing synchronization method of the optical signboard as described in any one of the first aspects.

[0078] A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the flashing synchronization method of an optical signboard as described in any one of the first aspects is implemented.

[0079] As can be seen from the above scheme, the present application provides a flashing synchronization method and device for an optical signboard, by initializing the count of the first cycle number counter to 0 when the controller is started, and reading the optical signboard flashing frequency and the controller operation cycle; adding 1 to the count of the first cycle number counter to obtain the current first cycle count; calculating the flashing cycle number according to the optical signboard flashing frequency and the controller operation cycle; judging whether the current first cycle count is greater than the flashing cycle count; if judging that the current first cycle count is greater than the flashing cycle count, obtaining the current reference square wave signal, and setting the count of the first cycle number counter to 0; generating a target reference square wave signal according to the current reference square wave signal; collecting an alarm condition signal; generating an optical signboard control signal according to the alarm condition signal and the target reference square wave signal; wherein the alarm module in the control station drives the optical signboard according to the optical signboard control signal. Thus, the flashing synchronization control of the optical signboard driven by the control station is effectively performed. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0081] Figure 1 This is the alarm connection schematic diagram for the control station and backup disk;

[0082] Figure 2 This is a flashing alarm sequence diagram of a single control station in the prior art;

[0083] Figure 3 A specific flow chart of a flashing synchronization method of an optical sign provided in an embodiment of the present application;

[0084] Figure 4 A flow chart of generating a target reference square wave signal provided by another embodiment of the present application;

[0085] Figure 5 An alarm synchronization timing diagram of a single control station after applying the present application is provided as another embodiment of the present application;

[0086] Figure 6 A flowchart of a flashing synchronization method of an optical sign provided by another embodiment of the present application;

[0087] Figure 7 It is a flashing timing diagram of multiple control station alarms in the prior art;

[0088] Figure 8 A flowchart of a flashing synchronization method of an optical sign in a multi-control station situation provided by another embodiment of the present application;

[0089] Fig. 9 A flowchart of a flashing synchronization method of an optical sign in a multi-control station situation provided by another embodiment of the present application;

[0090] Fig.10 Another embodiment of the present application provides an alarm synchronization timing diagram of multiple control stations after applying the present application;

[0091] Fig.11 A schematic diagram of a flashing synchronization device for an optical sign provided in another embodiment of the present application. DETAILED DESCRIPTION

[0092] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0093] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0094] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0095] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0096] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0097] First, the relationship between the optical signboard of the backup disk in the prior art and the architecture of the safety-level DCS is introduced and explained:

[0098] The current backup disk is large in scale, with about 2,000 light-emitting diode warning lights, involving many control stations, and about 100 DCS control stations drive the light-emitting diode warning lights of the backup disk. For the light-emitting diode warning lights related to the safety-level DCS, each control station controls and drives them separately, and there is no connection between the control stations. At the same time, different alarm conditions in each control station trigger different alarm lights. The alarm condition signal is triggered and output to the backup disk alarm display through hard wiring after the relevant alarm logic operation. Since the alarm triggering time is uncontrollable, it is impossible to make the light-emitting diode warning lights flash at the same time.

[0099] like Figure 1 The figure shows the alarm connection principle diagram of the control station and the backup disk in the prior art. In the case of a single control station, when the state of the process system is abnormal, the state may be one or more alarm condition trigger signals. When the DCS collects the relevant alarm condition x trigger signal, it calculates and outputs the light-emitting sign control signal y through the alarm module. n The digital signal output (DO) module drives the backup disk light sign to flash. When the y output is 1, the light sign lights up, and when the output is 0, the light sign goes out.

[0100] The output flashing frequency of y is determined by the algorithm of the alarm module. For example, if the fast flashing frequency of the light-emitting sign is f1 (2Hz), it means flashing twice per second. When the alarm condition x is triggered, y outputs 1 for 0.25 seconds and 0 for 0.25 seconds alternately. If the slow flashing frequency of the light-emitting sign is f2 (0.5Hz), it means flashing once every two seconds. When the alarm condition x is triggered, y outputs 1 for 1 second and 0 for 1 second alternately.

[0101] In a single control station, since the time when the process alarm condition x arrives at the control station is inconsistent, and the operation cycle dt of the control station is generally 50 milliseconds, which is much lower than the flashing frequency f, multiple alarm modules will output y in different flashing states (some lights are on, some lights are off, and they cannot be on and off at the same time), which will affect the operator's judgment, such as Figure 2 shown.

[0102] Therefore, the embodiment of the present application provides a flashing synchronization method for an optical sign, which synchronizes the flashing of an optical sign without a clock source, such as Figure 3 As shown, the specific steps include:

[0103] S301, when the controller is started, the count of the first cycle number counter is initialized to 0, and the flashing frequency of the light-emitting sign and the controller operation cycle are read.

[0104] S302: Add 1 to the count of the first cycle number counter to obtain the current first cycle count.

[0105] S303, calculating the number of flashing cycles according to the flashing frequency of the light-emitting sign and the operation cycle of the controller.

[0106] Specifically, the number of flashing cycles can be calculated using the following formula:

[0107] Cy=1 / (2*f*dt);

[0108] Among them, Cy is the number of flashing cycles, f is the flashing frequency of the light-emitting sign, and dt is the controller operation cycle.

[0109] S304: Determine whether the current first cycle count is greater than the flashing cycle count.

[0110] Specifically, if it is determined that the current first cycle count is greater than the flicker cycle count, step S306 is executed; if it is determined that the current first cycle count is not greater than the flicker cycle count, step S305 is executed.

[0111] S305 , adding 1 to the current first cycle count to obtain a new current first cycle count.

[0112] S306 , obtaining the current reference square wave signal, and setting the count of the first cycle number counter to 0.

[0113] The reference square wave signal is a reference square wave signal with different frequencies (such as 2Hz or 0.5Hz) generated by calculation according to the controller calculation cycle and the alarm flashing frequency. The reference square wave signal is the calculation output that starts automatically when the controller is powered on, and is not triggered by other conditions.

[0114] S307 . Generate a target reference square wave signal according to the current reference square wave signal.

[0115] Optionally, in another embodiment of the present application, an implementation of step S307 is as follows: Figure 4 As shown, including:

[0116] S401. Determine whether the current reference square wave signal is 1.

[0117] Specifically, if it is determined that the current reference square wave signal is 1, step S402 is executed; if it is determined that the current reference square wave signal is not 1, step S403 is executed.

[0118] S402: Change the current reference square wave signal to 0 as the target reference square wave signal.

[0119] S403: Change the current reference square wave signal to 1 as the target reference square wave signal.

[0120] S308: Use the target reference square wave signal as a new current reference square wave signal.

[0121] S309, collecting alarm condition signals.

[0122] S310, generating a light-emitting sign control signal according to the alarm condition signal and the target reference square wave signal.

[0123] Among them, the alarm module in the control station drives the light-emitting sign according to the light-emitting sign control signal.

[0124] In the specific implementation process of the present application, the alarm condition signal and the target reference square wave signal can be logically ANDed to obtain the light-emitting sign control signal, and the alarm module (light-emitting sign) in the control station drives the light-emitting sign according to the light-emitting sign control signal, thereby ensuring that all alarm modules in a single control station flash in unison. Figure 5 As shown, it is a single control station alarm synchronization timing diagram after improvement in this application.

[0125] like Figure 6As shown, it is a flowchart of the specific implementation process of the embodiment of the present application. After the control station starts to start, the cycle number counter t1 (first cycle number counter) is initialized to 0 to read the flashing frequency f of the light-emitting sign and the controller operation cycle dt; the first cycle number counter is increased by 1 and compared with the flashing cycle number Cy. If the current first cycle count t1 is greater than the flashing cycle number Cy, the current reference square wave signal is obtained, and the count of the first cycle number counter t1 is set to 0. If the current first cycle count t1 is not greater than the flashing cycle count Cy, the first cycle number counter is increased by 1 again, and the judgment is made again (when The first cycle count t1 is greater than the flashing cycle count Cy), after obtaining the current reference square wave signal, determine whether the current reference square wave signal is equal to 1, if it is equal to 1, change the current reference square wave signal to 0, if it is not equal to 1, change the current reference square wave signal to 1, and output the current reference square wave signal as the target reference square wave signal, and then collect the alarm condition x in the alarm module, perform a logical "AND" operation on the alarm condition signal x and the target reference square wave signal Sc to obtain the light-emitting sign control signal y, and the alarm module (light-emitting sign) in the control station drives the light-emitting sign according to the light-emitting sign control signal.

[0126] In actual application scenarios, if the light-emitting sign alarm is controlled by multiple DCS control stations, since the multiple control stations are in asynchronous operation, it is impossible to ensure the synchronization of the operation cycle of each controller. Therefore, the reference square wave signals generated by multiple systems controlling different control stations cannot be synchronized. Figure 7 shown.

[0127] Due to the asynchronous operation of multiple control stations, the startup time of their controllers cannot be guaranteed to be consistent, and due to the lack of clock synchronization, the reference square wave signals of each control station cannot be guaranteed to be consistent. In addition, due to the error of the operating cycle crystal oscillator during the operation of each control station, the timing difference of each control station may continue to increase. Therefore, in another embodiment of the present application, a flashing synchronization method of an optical sign is provided, which is applied to the scenario of multiple control stations to achieve the consistency of the output waveform of the reference square wave signal of multiple control stations, such as Figure 8 As shown, the following steps are included:

[0128] S801. Randomly select a control station from among all control stations as a reference control station.

[0129] The reference control station uses the generated target reference square wave signal as the synchronous square wave pulse signal; the reference control station sends the synchronous square wave pulse signal according to a preset synchronization period.

[0130] It should be noted that the preset synchronization period can be set, but is not limited to, according to the error of the controller crystal oscillator or the accuracy required for flashing synchronization to avoid frequent synchronization affecting the independence of each control station, which is not limited here.

[0131] In the specific implementation process of the present application, the rising edge signal of the reference square wave signal of the reference control station can be output through the DO module as the synchronous square wave pulse signal of all control stations.

[0132] S802 . For each control station, after receiving the synchronous square wave pulse signal, the control station corrects its own target reference signal according to the synchronous square wave pulse signal.

[0133] It should be noted that if the reference control station fails and cannot send the synchronous square wave pulse signal, other control stations can independently calculate the reference square wave signal according to the timing of each control station without being affected by the reference control station, thus avoiding the spread of the fault.

[0134] In the specific implementation process of the present application, an implementation method of the flashing synchronization method of the optical signboard of multiple control stations is as follows: Fig. 9 As shown, for each control station, after the control station collects the synchronous square wave pulse signal Scs of the reference control station, it determines whether the synchronous square wave pulse signal Scs changes from 0 to 1; if it is determined that the synchronous square wave pulse signal Scs changes from 0 to 1, the control station sets the current first cycle count t1 to 0, and changes the current reference square wave signal Sc to 1, which is used as the new target reference square wave signal Sc, and outputs this new target reference square wave signal, and then collects the alarm condition x in the alarm module, performs a logical "AND" operation on the alarm condition signal x and the target reference square wave signal Sc to obtain the light-emitting sign control signal y, and the alarm module (light-emitting sign) in the control station drives the light-emitting sign according to the light-emitting sign control signal.

[0135] Moreover, for each control station, after the control station starts, initialize the cycle counter t1 (first cycle counter) = 0, the cycle counter t2 (second cycle counter) = 0, read the light-emitting sign flashing frequency f, the controller operation cycle dt, and the synchronization cycle Ts; add 1 to the first cycle counter and compare it with the flashing cycle number Cy. If the current first cycle count t1 is greater than the flashing cycle number Cy, obtain the current reference square wave signal and set the count of the first cycle counter t1 to 0. If the current first cycle count t1 is not greater than the flashing cycle count Cy, add 1 to the first cycle counter again. , judge again (whether the current first cycle count t1 is greater than the flashing cycle count Cy), after obtaining the current reference square wave signal, judge whether the current reference square wave signal is equal to 1, if it is equal to 1, change the current reference square wave signal to 0, if it is not equal to 1, change the current reference square wave signal to 1, and output the current reference square wave signal as the target reference square wave signal, and then collect the alarm condition x in the alarm module, perform a logical "AND" operation on the alarm condition signal x and the target reference square wave signal Sc to obtain the light-emitting sign control signal y, and the alarm module (light-emitting sign) in the control station drives the light-emitting sign according to the light-emitting sign control signal.

[0136] After the first cycle number counter is incremented by 1 and compared with the flash cycle number Cy, the second cycle number counter t2 is incremented by 1 and compared with the synchronization cycle number Sy (Sy=Ts / dt). If the current second cycle count t2 is greater than the synchronization cycle number Sy, it is determined whether the target reference signal changes from 0 to 1; if it is determined that the target reference signal changes from 0 to 1, a synchronization square wave pulse signal is output, and the count of the second cycle counter is set to 0. Moreover, when the output target reference square wave signal changes from 0 to 1, a synchronization square wave pulse signal Scs is also output, and the cycle number counter t2 is set to 0. If the current second cycle count t2 is not greater than the synchronization cycle number Sy, the second cycle number counter is incremented by 1 again, and it is determined again (whether the current second cycle count t1 is greater than the synchronization cycle number Sy).

[0137] It should be noted that in the specific implementation process of the present application, for the reference control station, the input synchronous square wave pulse signal pin is left floating and the output synchronous square wave pulse signal pin is connected; for other control stations, the input synchronous square wave pulse signal pin is connected and the output synchronous square wave pulse signal pin is left floating.

[0138] The timing synchronization relationship between the reference square wave signal of each control station and the reference control station is shown in the figure below: Fig.10 As shown (control station 1 is used as the reference control station, and other situations are similar), the error of cycle synchronization is within one controller operation cycle.

[0139] As can be seen from the above scheme, the present application provides a flashing synchronization method for an optical sign, by initializing the count of the first cycle number counter to 0 when the controller is started, and reading the optical sign flashing frequency and the controller operation cycle; adding 1 to the count of the first cycle number counter to obtain the current first cycle count; calculating the flashing cycle number according to the optical sign flashing frequency and the controller operation cycle; judging whether the current first cycle count is greater than the flashing cycle count; if it is judged that the current first cycle count is greater than the flashing cycle count, obtaining the current reference square wave signal, and setting the count of the first cycle number counter to 0; generating a target reference square wave signal according to the current reference square wave signal; collecting an alarm condition signal; generating an optical sign control signal according to the alarm condition signal and the target reference square wave signal; wherein the alarm module in the control station drives the optical sign according to the optical sign control signal. Thus, the optical sign driven by the control station is effectively controlled to flash synchronously.

[0140] The present application embodiment provides a flashing synchronization device for an optical sign, such as Fig.11 As shown, specifically including:

[0141] The first pre-processing unit 1101 is used to initialize the count of the first cycle number counter to 0 when the controller is started, and read the flashing frequency of the optical sign and the controller operation cycle.

[0142] The first cycle counting unit 1102 is used to add 1 to the count of the first cycle number counter to obtain a current first cycle count.

[0143] The first calculation unit 1103 is used to calculate the number of flashing cycles according to the flashing frequency of the optical sign and the operation cycle of the controller.

[0144] The first judging unit 1104 is used to judge whether the current first cycle count is greater than the flashing cycle count.

[0145] The first processing unit 1105 is configured to obtain the current reference square wave signal and set the count of the first cycle number counter to 0 if the first determination unit determines that the current first cycle count is greater than the flicker cycle count.

[0146] The first generating unit 1106 is configured to generate a target reference square wave signal according to the current reference square wave signal.

[0147] The collection unit 1107 is used to collect alarm condition signals.

[0148] The second generating unit 1108 is used to generate an optical sign control signal according to the alarm condition signal and the target reference square wave signal.

[0149] Among them, the alarm module in the control station drives the light-emitting sign according to the light-emitting sign control signal.

[0150] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 3 As shown, no further description is given here.

[0151] Optionally, in another embodiment of the present application, an implementation of the flashing synchronization device of the optical signboard further includes:

[0152] The first activation unit is used to add 1 to the current first cycle count if the first judgment unit determines that the current first cycle count is not greater than the flashing cycle count, and after obtaining a new current first cycle count, activate the first judgment unit to execute the step of judging whether the current first cycle count is greater than the flashing cycle count.

[0153] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 3 As shown, no further description is given here.

[0154] Optionally, in another embodiment of the present application, an implementation of the first generating unit includes:

[0155] The second judgment unit is used to judge whether the current reference square wave signal is 1.

[0156] The first changing unit is used for changing the current reference square wave signal to 0 as the target reference square wave signal if the second judging unit judges that the current reference square wave signal is 1.

[0157] The first changing unit is further configured to change the current reference square wave signal to 1 as the target reference square wave signal if the second judging unit judges that the current reference square wave signal is not 1.

[0158] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 4 As shown, no further description is given here.

[0159] Optionally, in another embodiment of the present application, an implementation of the flashing synchronization device of the optical signboard further includes:

[0160] The second activation unit is used to use the target reference square wave signal as a new current reference square wave signal, and activate the first generation unit to execute the step of generating the target reference square wave signal according to the current reference square wave signal.

[0161] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 3 As shown, no further description is given here.

[0162] Optionally, in another embodiment of the present application, if applied to multiple control stations, an implementation of the flashing synchronization device of the optical signboard further includes:

[0163] The reference control station determination unit is used to arbitrarily select a control station from all control stations as a reference control station.

[0164] The reference control station uses the generated target reference square wave signal as the synchronous square wave pulse signal; the reference control station sends the synchronous square wave pulse signal according to a preset synchronization period.

[0165] The correction unit is used for correcting the target reference signal of each control station according to the synchronous square wave pulse signal after the control station receives the synchronous square wave pulse signal.

[0166] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 8 As shown, no further description is given here.

[0167] Optionally, in another embodiment of the present application, an implementation of the correction unit includes:

[0168] The third judgment unit is used for judging, for each control station, whether the synchronous square wave pulse signal changes from 0 to 1 after the control station receives the synchronous square wave pulse signal.

[0169] The second changing unit is used for setting the current first cycle count to 0 and changing the current reference square wave signal to 1 as the target reference square wave signal if the third judging unit judges that the synchronous square wave pulse signal changes from 0 to 1.

[0170] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Fig. 9 As shown, no further description is given here.

[0171] Optionally, in another embodiment of the present application, an implementation of the flashing synchronization device of the optical signboard further includes:

[0172] The second preprocessing unit is used for initializing the count of the second cycle number counter to 0 for each control station when the controller is started, and reading the controller operation cycle and synchronization cycle.

[0173] The second cycle counting unit is used to add 1 to the count of the second cycle number counter to obtain the current second cycle count.

[0174] The second calculation unit is used to calculate the number of synchronization cycles according to the synchronization cycle and the controller operation cycle.

[0175] The fourth judgment unit is used to judge whether the current second cycle count is greater than the synchronization cycle number.

[0176] The fifth judgment unit is used to judge whether the target reference signal is changed from 0 to 1 if the fourth judgment unit judges that the current second cycle count is greater than the synchronization cycle number.

[0177] The first output unit is used to output a synchronous square wave pulse signal and set the count of the second period counter to 0 if the fifth judgment unit judges that the target reference signal changes from 0 to 1.

[0178] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Fig. 9 As shown, no further description is given here.

[0179] Optionally, in another embodiment of the present application, an implementation of the flashing synchronization device of the optical signboard further includes:

[0180] The third activation unit is used to add 1 to the current second cycle count if the fourth judgment unit determines that the current second cycle count is not greater than the synchronization cycle number. After obtaining the new current second cycle count, the fourth judgment unit is activated to execute the step of determining whether the current second cycle count is greater than the synchronization cycle number.

[0181] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Fig. 9 As shown, no further description is given here.

[0182] Optionally, in another embodiment of the present application, if it is determined that the synchronous square wave pulse signal changes from 0 to 1, the control station sets the current first cycle count to 0, and changes the current reference square wave signal to 1 as the target reference square wave signal. Then, the fifth judgment unit is used to determine whether the target reference signal changes from 0 to 1. If the fifth judgment unit determines that the target reference signal changes from 0 to 1, the second output unit outputs the synchronous square wave pulse signal and sets the count of the second cycle counter to 0.

[0183] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Fig. 9 As shown, no further description is given here.

[0184] It can be seen from the above scheme that the present application provides a flashing synchronization device for a light-emitting sign. When the controller is started, the first preprocessing unit 1101 initializes the count of the first cycle number counter to 0, and reads the light-emitting sign flashing frequency and the controller operation cycle; the first cycle counting unit 1102 adds 1 to the count of the first cycle number counter to obtain the current first cycle count; the first calculation unit 1103 calculates the flashing cycle number according to the light-emitting sign flashing frequency and the controller operation cycle; the first judgment unit 1104 judges whether the current first cycle count is greater than the flashing cycle count; if the first judgment unit 1104 judges that the current first cycle count is greater than the flashing cycle count, the first processing unit 1105 obtains the current reference square wave signal and sets the count of the first cycle number counter to 0; the first generation unit 1106 generates a target reference square wave signal according to the current reference square wave signal; the acquisition unit 1107 acquires the alarm condition signal; the second generation unit 1108 generates a light-emitting sign control signal according to the alarm condition signal and the target reference square wave signal; wherein, the alarm module in the control station drives the light-emitting sign according to the light-emitting sign control signal. This effectively controls the flashing synchronization of the light-emitting sign driven by the control station.

[0185] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0186] Another embodiment of the present application provides an electronic device, including:

[0187] One or more processors.

[0188] A storage device having one or more programs stored thereon.

[0189] When the one or more programs are executed by the one or more processors, the one or more processors implement the flashing synchronization method of the optical signboard as described in any one of the above embodiments.

[0190] Another embodiment of the present application provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the flashing synchronization method of the optical signboard as described in any one of the above embodiments is implemented.

[0191] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0192] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0193] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0194] Another embodiment of the present application provides a computer program product. When the computer program product is executed, it is used to execute any of the above-mentioned flashing synchronization methods for optical signboards.

[0195] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0196] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0197] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0198] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above application concept. For example, the above features are replaced with (but not limited to) technical features with similar functions applied in the present application.

Claims

1. A flashing synchronization method for an optical sign, characterized in that: Applicable to control stations, including: When the controller is started, the count of the first cycle number counter is initialized to 0, and the flashing frequency of the light-emitting sign and the operation cycle of the controller are read; Add 1 to the count of the first cycle number counter to obtain the current first cycle count; According to the flashing frequency of the light-emitting sign and the operation cycle of the controller, the number of flashing cycles is calculated; Determine whether the current first cycle count is greater than the flashing cycle count; If it is determined that the current first cycle count is greater than the flashing cycle count, the current reference square wave signal is acquired, and the count of the first cycle number counter is set to 0; Generating a target reference square wave signal according to the current reference square wave signal; Collect alarm condition signals; A light-emitting sign control signal is generated according to the alarm condition signal and the target reference square wave signal; wherein the alarm module in the control station drives the light-emitting sign according to the light-emitting sign control signal.

2. The flashing synchronization method of the optical signboard according to claim 1, characterized in that: After determining whether the current first cycle count is greater than the flashing cycle count, the method further includes: If it is determined that the current first cycle count is not greater than the flashing cycle count, the current first cycle count is increased by 1 to obtain a new current first cycle count, and then the step of determining whether the current first cycle count is greater than the flashing cycle count is executed.

3. The flashing synchronization method of the optical signboard according to claim 1, characterized in that: The step of generating a target reference square wave signal according to the current reference square wave signal comprises: Determine whether the current reference square wave signal is 1; If it is determined that the current reference square wave signal is 1, the current reference square wave signal is changed to 0 as the target reference square wave signal; If it is determined that the current reference square wave signal is not 1, the current reference square wave signal is changed to 1 as the target reference square wave signal.

4. The flashing synchronization method of optical signboard according to claim 1, characterized in that: After generating a target reference square wave signal according to the current reference square wave signal, the method further includes: The target reference square wave signal is used as a new current reference square wave signal, and the step of generating a target reference square wave signal according to the current reference square wave signal is performed.

5. The flashing synchronization method of optical signboard according to claim 1, characterized in that: If applied to multiple control stations, the flashing synchronization method of the optical signboard further includes: Among all the control stations, one control station is randomly selected as a reference control station; wherein the reference control station uses the generated target reference square wave signal as a synchronous square wave pulse signal; the reference control station sends the synchronous square wave pulse signal according to a preset synchronization period; For each of the control stations, after receiving the synchronous square wave pulse signal, the control station corrects its own target reference signal according to the synchronous square wave pulse signal.

6. The flashing synchronization method of optical signboard according to claim 5, characterized in that: The method of correcting the target reference signal of each control station according to the synchronous square wave pulse signal after receiving the synchronous square wave pulse signal includes: For each of the control stations, after receiving the synchronous square wave pulse signal, the control station determines whether the synchronous square wave pulse signal changes from 0 to 1; If it is determined that the synchronous square wave pulse signal changes from 0 to 1, the control station sets the current first cycle count to 0 and changes the current reference square wave signal to 1 as the target reference square wave signal.

7. The flashing synchronization method of the optical signboard according to claim 6, characterized in that: Also includes: For each of the control stations, when the controller is started, the control station initializes the count of the second cycle number counter to 0, and reads the controller operation cycle and synchronization cycle; Add 1 to the count of the second cycle number counter to obtain the current second cycle count; According to the synchronization cycle and the controller operation cycle, the number of synchronization cycles is calculated; Determine whether the current second cycle count is greater than the synchronization cycle number; If it is determined that the current second cycle count is greater than the synchronization cycle number, determining whether the target reference signal is changed from 0 to 1; If it is determined that the target reference signal changes from 0 to 1, a synchronous square wave pulse signal is output, and the count of the second period counter is set to 0.

8. The flashing synchronization method of optical signboard according to claim 7, characterized in that: After determining whether the current second cycle count is greater than the synchronization cycle number, the method further includes: If it is determined that the current second cycle count is not greater than the synchronization cycle number, the current second cycle count is increased by 1 to obtain a new current second cycle count, and then the step of determining whether the current second cycle count is greater than the synchronization cycle number is performed.

9. The flashing synchronization method of optical signboard according to claim 6, characterized in that: If it is determined that the synchronous square wave pulse signal changes from 0 to 1, the control station sets the current first cycle count to 0 and changes the current reference square wave signal to 1 as the target reference square wave signal, and further includes: Determine whether the target reference signal changes from 0 to 1; If it is determined that the target reference signal changes from 0 to 1, a synchronous square wave pulse signal is output, and the count of the second period counter is set to 0.

10. A flashing synchronization device for an optical sign, characterized in that: Applicable to control stations, including: The first pre-processing unit is used for initializing the count of the first cycle number counter to 0 when the controller is started, and reading the flashing frequency of the optical sign and the operation cycle of the controller; A first cycle counting unit, used for adding 1 to the count of the first cycle number counter to obtain a current first cycle count; The first calculation unit is used to calculate the number of flashing cycles according to the flashing frequency of the optical sign and the operation cycle of the controller; A first judging unit, used for judging whether the current first cycle count is greater than the flashing cycle count; a first processing unit, configured to obtain a current reference square wave signal and set the count of the first cycle number counter to 0 if the first determination unit determines that the current first cycle count is greater than the flashing cycle count; A first generating unit, configured to generate a target reference square wave signal according to the current reference square wave signal; A collection unit, used for collecting alarm condition signals; The second generating unit is used to generate a light-emitting sign control signal according to the alarm condition signal and the target reference square wave signal; wherein the alarm module in the control station drives the light-emitting sign according to the light-emitting sign control signal.