CN108614458B - Trigger, and method and device for determining output state of trigger - Google Patents
Trigger, and method and device for determining output state of trigger Download PDFInfo
- Publication number
- CN108614458B CN108614458B CN201810541121.5A CN201810541121A CN108614458B CN 108614458 B CN108614458 B CN 108614458B CN 201810541121 A CN201810541121 A CN 201810541121A CN 108614458 B CN108614458 B CN 108614458B
- Authority
- CN
- China
- Prior art keywords
- output
- module
- flip
- flop
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 14
- 230000008569 process Effects 0.000 description 8
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 4
- 235000008247 Echinochloa frumentacea Nutrition 0.000 description 4
- 240000004072 Panicum sumatrense Species 0.000 description 4
- 229940122605 Short-acting muscarinic antagonist Drugs 0.000 description 4
- 229910052802 copper Inorganic materials 0.000 description 3
- 239000010949 copper Substances 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 208000032368 Device malfunction Diseases 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012512 characterization method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003137 locomotive effect Effects 0.000 description 1
- 230000007257 malfunction Effects 0.000 description 1
- 238000005065 mining Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 238000004148 unit process Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Abstract
The invention discloses a trigger, and a method and a device for determining the output state of the trigger. Wherein, the method comprises the following steps: receiving a switching value signal transmitted by a set input end of a trigger; processing the received switching value signal according to preset logic to obtain an output signal; transmitting the output signal to a current value port, wherein the current value port is used for outputting a numerical value corresponding to the output signal, and the output signal is output through a first output end; the output state of the flip-flop is determined according to the value. The invention solves the technical problem that the trigger in the related technology has potential safety hazard in interlocking protection.
Description
Technical Field
The invention relates to the field of triggers, in particular to a trigger, and a method and a device for determining an output state of the trigger.
Background
At present, thermal power generating units are continuously developed towards the directions of high capacity, high parameter and complexity, distributed control system DCS hardware configuration is required to be continuously improved, and the reliability requirement on a matched DCS software platform is higher and higher. The DCS logic configuration of the current thermal power plant is carried out at an engineer station. And (3) calling a logic module in the DCS database at the site by an engineer according to the control requirement of the field system, performing soft connection on the module to complete a configuration scheme, and finally downloading the logic into each DCS controller. A conventional RS flip-flop module is in the DCS database at the present stage, fig. 1 is a schematic diagram of a flip-flop module according to the prior art, and as shown in fig. 1, the conventional reset-set flip-flop module has two input terminals: a set input, a reset input, and an output, the truth table of which is shown in table 1:
TABLE 1
S | R | OUT |
0 | O | Is not changed |
1 | 0 | 1 |
0 | 1 | 0 |
1 | 1 | 0 |
The above-described conventional reset-set flip-flop modules are widely used in various logic schemes, such as: equipment trip first-out logic, MFT protection logic, boiler ignition memory logic, and the like.
The reset set trigger module is used in important interlocking protection, and particularly has great potential safety hazard under the condition that the module is placed at the tail end of a certain protection logic, and the output end of the module is directly used as protection output to link other equipment. Fig. 2 is a SAMA diagram of protection logic of a trigger module according to the prior art, and as shown in fig. 2, when a unit is operating normally, there are a plurality of protection conditions, for example, protection condition 1, protection condition 2, protection condition 3 … …, protection condition n, and reset condition, where the protection conditions except the reset condition are all connected to an or module, and when a field device triggering protection condition 1 fails, a thermal operator may force an output port OUT (at this time, the value is "0") of the RS trigger module in the protection logic to be "0" in order to prevent protection signal false triggering during device failure processing when the protection condition 1 is mistakenly operated by the thermal operator. When the thermal staff really triggers the protection condition 1 in the field fault processing process, namely the protection signal sends a pulse to the set end of the RS trigger module once, the RS has the latching characteristic, and the value of the reset end of the module is 0, the actual value of the output port OUT of the RS trigger module is 1. And because the port is in a forced state, if the logic is checked on line, a thermal operator cannot check the actual value of the port. After the work is finished, the thermal staff can forcibly restore the output OUT, namely the output OUT is restored to an actual value from a forced value of '0', the output port is changed to 1 at the moment, and the protection signal can be output to cause misoperation.
Aiming at the problem that the trigger in the related technology has potential safety hazard in interlocking protection, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a trigger, and a method and a device for determining an output state of the trigger, so as to at least solve the technical problem that potential safety hazards exist in interlocking protection of the trigger in the related art.
According to an aspect of an embodiment of the present invention, there is provided a flip-flop including: the device comprises a logic module, a first input end and a current value port; the first input end is connected with the logic module and used for transmitting the received switching value signal to the logic module; the logic module is used for processing the received switching value signal according to preset logic to obtain an output signal; and the current value port is connected with the logic module and used for outputting a numerical value corresponding to the output signal, wherein the output signal is output through a first output end.
Optionally, the flip-flop further includes: and the display module is connected with the current value port and used for displaying the numerical value corresponding to the output signal.
Optionally, the flip-flop further includes: and the voice module is connected with the current value port and used for playing the numerical value corresponding to the output signal.
Optionally, the first input includes: the device comprises a set input end and a reset input end, wherein the set input end is connected with at least one set switch and used for receiving at least one switching value signal transmitted by the at least one set switch, and the reset input end is connected with a reset switch and used for receiving the reset switching value signal transmitted by the reset switch.
Optionally, the flip-flop further includes: a first or module and a second or module, wherein the first or module and the second or module are both connected with the first output terminal.
Optionally, the first or module comprises: the first input end and the first second input end are both connected with the first output end; the second or module comprises: the first input end and the second input end are connected with the first output end.
Optionally, the output of the first or module is the current value port; and the output end of the second OR module is used for outputting the current state of the trigger.
According to another aspect of the embodiments of the present invention, there is also provided a method for determining an output state of a flip-flop, including: receiving a switching value signal transmitted by a set input end of a trigger; processing the received switching value signal according to preset logic to obtain an output signal; transmitting the output signal to a current value port, wherein the current value port is used for outputting a numerical value corresponding to the output signal, and the output signal is output through a first output end; and determining the output state of the trigger according to the numerical value.
Optionally, before determining the output state of the flip-flop according to the value, the method for determining the output state of the flip-flop further includes: a value corresponding to the output signal is obtained.
Optionally, obtaining a value corresponding to the output signal comprises at least one of: acquiring the numerical value through a display module, wherein the display module is used for displaying the numerical value corresponding to the output signal; and acquiring the numerical value through a voice module, wherein the voice module is used for playing the numerical value corresponding to the output signal.
Optionally, after determining the output state of the flip-flop according to the value, the method for determining the output state of the flip-flop further includes: and determining whether to recover a forcing signal according to the output state, wherein the forcing signal is used for changing the input value of the reset input end of the trigger.
According to another aspect of the embodiments of the present invention, there is provided a device for determining an output state of a flip-flop, including: the receiving unit is used for receiving the switching value signal transmitted by the setting input end of the trigger; the first acquisition unit is used for processing the received switching value signal according to preset logic to obtain an output signal; the transmission unit is used for transmitting the output signal to a current value port, wherein the current value port is used for outputting a numerical value corresponding to the output signal, and the output signal is output through a first output end; and the first determining unit is used for determining the output state of the trigger according to the numerical value.
Optionally, the flip-flop further includes: and the second acquisition unit is used for acquiring a numerical value corresponding to the output signal before determining the output state of the trigger according to the numerical value.
Optionally, the second obtaining unit includes at least one of: the first acquisition module is used for acquiring the numerical value through a display module, wherein the display module is used for displaying the numerical value corresponding to the output signal; and the second acquisition module is used for acquiring the numerical value through a voice module, wherein the voice module is used for playing the numerical value corresponding to the output signal.
Optionally, the flip-flop further includes: and the second determination unit is used for determining whether to recover a forcing signal according to the output state after determining the output state of the flip-flop according to the value, wherein the forcing signal is used for changing the input value of the reset input end of the flip-flop.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program executes the method for determining the output state of the flip-flop according to any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes a method for determining an output state of a flip-flop according to any one of the above methods.
In the embodiment of the invention, the method comprises the steps of receiving a switching value signal transmitted by a set input end of a trigger; processing the received switching value signal according to preset logic to obtain an output signal; transmitting the output signal to a current value port, wherein the current value port is used for outputting a numerical value corresponding to the output signal, and the output signal is output through a first output end; according to the method for determining the output state of the trigger, provided by the embodiment of the invention, the purpose of checking the actual value of the first output through the added current value port can be realized, the technical effect of improving the safety of the distributed control system of the thermal power plant is achieved, and the technical problem that the trigger has potential safety hazard in interlocking protection in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a reset-set flip-flop module according to the prior art;
FIG. 2 is a SAMA diagram of protection logic for a reset set flip-flop module according to the prior art;
FIG. 3 is a block diagram of a flip-flop according to an embodiment of the present invention;
FIG. 4 is a block diagram of an alternative flip-flop according to an embodiment of the present invention;
FIG. 5 is a SAMA diagram of protection logic for flip-flops according to an embodiment of the present invention;
FIG. 6 is a logical block diagram of a flip-flop according to an embodiment of the present invention;
FIG. 7 is a flow chart of a method of determining the output state of a flip-flop according to an embodiment of the present invention; and
fig. 8 is a schematic diagram of a determination device of the output state of a flip-flop according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some nouns or terms appearing in the embodiments of the present invention will be described in detail below.
Resetting a Set Trigger (Reset-Set Trigger, RS Trigger for short): also called basic RS trigger, is the basic component forming other various functional triggers.
Soft connection: the copper bar flexible connection tinned copper braided wire flexible connection is suitable for various high-voltage electrical appliances, vacuum electrical appliances, mining explosion-proof switches, automobiles, locomotives and other related products to be used for flexible connection, and is made by adopting a bare copper wire or a tinned copper braided wire and a cold pressing method.
A trigger: SQL server provides programmers and data analysts with a method for ensuring data integrity, which is a special stored procedure associated with a characterization event, whose execution is triggered by an event, such as an operation on a table that activates its execution, often to enforce data integrity constraints and business rules, and so on, rather than being invoked by the programmer or initiated manually.
Switching value: the digital circuit is characterized in that the acquisition and output of discontinuous signals, including remote signal acquisition and remote control output, have two states of 1 and 0, which are the switch properties in the digital circuit, and the power refers to the opening and closing of the circuit or the opening and the breaking of contacts.
A reset switch: the computer is one of the plugging objects of the differential connection wires on the mainboard, the short circuit occurs when the hand is pressed down, the open circuit is recovered after the short circuit is released, and the computer can be restarted by instant restart.
Example 1
According to an aspect of an embodiment of the present invention, there is provided a flip-flop, and fig. 3 is a structural diagram of the flip-flop according to the embodiment of the present invention, as shown in fig. 3, the flip-flop including: a logic module 31, a first input 33 and a current value port 35; a first input terminal 33 connected to the logic module 31, for transmitting the received switching value signal to the logic module 31; the logic module 31 is configured to process the received switching value signal according to a preset logic to obtain an output signal; a current value port 35 is connected to the logic module 31 for outputting a value corresponding to an output signal, wherein the output signal is output via a first output terminal 37.
The trigger provided by the embodiment of the invention is added with a current value port on the basis of the traditional trigger, the current value port is used for indicating a value corresponding to the output signal of the first output end, and the current output state of the trigger can be known by a worker through the value, it is thus possible to determine whether or not to restore the forcing signal, with respect to the state of forcing of the first output terminal in the related art, because the output state of the first output terminal cannot be known, the working personnel cannot know the actual value of the first output terminal, which is easy to cause the defect of malfunction, the trigger provided by the embodiment of the invention can realize the purpose of checking the actual value of the first output through the added current value port, achieves the technical effect of improving the safety of the distributed control system of the thermal power plant, and further the technical problem that potential safety hazards exist in the interlocking protection of the trigger in the related technology is solved.
In order to enable the operator to intuitively know the value corresponding to the current output state of the first output terminal, as an optional embodiment of the present invention, the flip-flop may further include: and the display module is connected with the current value port and used for displaying the numerical value corresponding to the output signal.
In addition, as an optional embodiment of the present invention, the flip-flop may further include: and the voice module is connected with the current value port and used for playing the numerical value corresponding to the output signal.
As an alternative embodiment of the present invention, the first input terminal may include: the device comprises a set input end and a reset input end, wherein the set input end is connected with at least one set switch and used for receiving at least one switching value signal transmitted by at least one set switch, and the reset input end is connected with a reset switch and used for receiving the reset switching value signal transmitted by the reset switch.
For example, fig. 4 is a structural diagram of an alternative flip-flop according to an embodiment of the present invention, and as shown in fig. 4, the flip-flop process includes, in addition to the logic module 31, the current value port 35, and the first output terminal 37 shown in fig. 3, the following steps: a set input terminal 41 and a reset input terminal 45, wherein the set input terminal 41 and the reset input terminal 45 belong to the first input terminal 33 shown in fig. 3. The flip-flop provided in the embodiment of the present invention is obtained by transforming and packaging a conventional flip-flop, that is, the flip-flop includes a logical relationship among a set input terminal, a reset input terminal, and an output terminal in the conventional flip-flop, and an output port, that is, a current value port (that is, a PV output port in a context) is added to the conventional flip-flop, and a value of the PV output port is equal to an actual value of an original output terminal (that is, a first output terminal in the context) of the flip-flop in real time. The PV output port is operative to indicate a current value of the original output of the flip-flop. After the worker forces the original output end of the trigger on line, when the recovery is needed, the worker can directly check the PV output port to confirm the corresponding numerical value of the original output end of the trigger. For example, when PV is equal to 1, OUT (that is, the actual output value of the original output end of the flip-flop) is equal to 1, in order to prevent the device malfunction caused by the command error that the output end of the flip-flop suddenly changes to "1" after being released, an operator can force the reset input end from "0" to "1" and then restore to "0", at this time, the actual value of OUT will change to "0", and the operator can safely restore and force the original output end of the flip-flop after seeing that PV is equal to 0, thereby reducing the occurrence of the situation that the unit safety is threatened due to the error in operation.
The above embodiments will be described in detail with reference to the accompanying drawings.
FIG. 5 is a SAMA diagram of protection logic for flip-flops according to an embodiment of the present invention including a plurality of protection conditions, e.g., protection condition 1, protection condition 2, protection condition 3 … … protection condition n, and a reset condition. When a unit of a thermal power plant normally operates, when a field device triggering protection condition 1 sends a fault, in order to prevent the device from being operated by mistake due to the false sending of a protection signal in the device fault processing process, a worker forces the original output end of a trigger in the protection logic to be 0. When a worker really triggers the protection condition 1 in the process of processing the fault on site, namely a protection signal sends a pulse to the set input end of the trigger once, the value of the reset input end is 0 again due to the characteristic of latching of the trigger, and the actual value of the original output end of the trigger is 1. And because the original trigger output end is in a forced state, a worker can directly judge the actual value of the original trigger output end by looking up the numerical value of the current value output end (namely, a PV end), directly reset the output value of the current value output end and the output value of the output end to be 0 through the reset input end, and then release the original trigger output end, so that the protection instruction is prevented from being sent by mistake.
As an optional embodiment of the present invention, the trigger may further include: the first or module and the second or module are both connected with the first output end.
Specifically, the first or module includes: the first input end and the first second input end are both connected with the first output end; the second or module comprises: the first input end and the second input end are both connected with the first output end.
Wherein, the output end of the first OR module is a current value port; the output of the second or module is used to output the current state of the flip-flop.
For example, fig. 6 is a logical structure diagram of a flip-flop according to an embodiment of the present invention, and as shown in fig. 6, the flip-flop further includes: a first or module 61 and a second or module 63, the first or module 61 and the second or module 63 each being connected to the first output 37. The first or module 61 described above comprises: a first input end 611 and a first second input end 613, wherein the first input end 611 and the first second input end 613 are respectively connected with the first output end 37; the second or module 63 includes: a second first input 631 and a second input 633, wherein the second first input 631 and the second input 633 are connected to the first output 37, respectively. In addition, the output of the first or module 61 is the current value port 35, and the output of the second or module is used to output the current state of the flip-flop, i.e., the second output 65 shown in fig. 6.
Specifically, the trigger module is called from the software database, while two conventional or gate modules, i.e., the first or module 61 and the second or module 63 described above, are called; the first output terminal 37 is soft-connected to the first primary input terminal 611 and the first secondary input terminal 613 of the first or module 61, and the first output terminal 37 is soft-connected to the second primary input terminal 631 and the second secondary input terminal 633 of the second or module 63. The above modules are packaged, and the packaged module has two input ports, that is, the current value port 35 and the second output port 65.
As an optional embodiment of the present invention, the current value port may also be a small alarm popup window, that is, once the output of the trigger is forced, the original output end of the trigger will become 1, and the logic interface will automatically pop up the small alarm popup window to perform an alarm prompt.
It should be noted that the flip-flop provided in the embodiment of the present invention is an RS flip-flop.
Example 2
In accordance with an embodiment of the present invention, there is provided a method embodiment of a method for determining an output state of a flip-flop, it should be noted that the steps illustrated in the flowchart of the accompanying drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 7 is a flowchart of a method for determining an output state of a flip-flop according to an embodiment of the present invention, and as shown in fig. 7, the method for determining an output state of a flip-flop includes the following steps:
step S702 receives the switching value signal transmitted from the set input terminal of the flip-flop.
The switching value signal may be a corresponding signal generated when a pressure switch, a temperature switch, a flow switch, or the like is triggered. For example, in the event that the pressure at a unit of a thermal power plant is greater than a predetermined condition, a pressure switch may be triggered to generate a pressure-responsive switching value signal.
Step S704, the received switching value signal is processed according to a preset logic, so as to obtain an output signal.
Step S706, transmitting the output signal to a current value port, where the current value port is used to output a value corresponding to the output signal, and the output signal is output through the first output end.
In step S708, the output state of the flip-flop is determined according to the value.
Through the steps, the output state of the trigger can be determined according to the numerical value indicated by the current port of the trigger, so that whether the forced signal is recovered or not can be determined, and compared with the defect that the first output end in the related art is in the forced state, the output state of the first output end cannot be known, and a worker cannot know the actual value of the first output end, so that misoperation is easily caused.
As an alternative embodiment of the present invention, before determining the output state of the flip-flop according to the value, the method for determining the output state of the flip-flop may further include: a value corresponding to the output signal is obtained.
As an alternative embodiment of the present invention, obtaining the value corresponding to the output signal may include at least one of: acquiring a numerical value through a display module, wherein the display module is used for displaying the numerical value corresponding to the output signal; and obtaining the numerical value through a voice module, wherein the voice module is used for playing the numerical value corresponding to the output signal.
As an alternative embodiment of the present invention, after determining the output state of the flip-flop according to the value, the method for determining the output state of the flip-flop may further include: whether to recover a forcing signal for changing an input value of a reset input terminal of the flip-flop is determined according to the output state.
By the method for determining the output state of the trigger, provided by the embodiment of the invention, the rigor and the reliability of the logic configuration of the thermal power plant can be improved. The output state of the current trigger of the worker is accurately prompted, and the phenomenon that after the worker forces the output of the trigger to be 1 on a distributed control system software platform, the worker recovers forced signals under the condition that the output state of the trigger cannot be confirmed to cause signal instruction missending and further interlock protection misaction is caused is prevented.
Example 3
The embodiment of the present invention further provides a device for determining an output state of a flip-flop, and it should be noted that the device for determining an output state of a flip-flop according to the embodiment of the present invention may be used to execute the method for determining an output state of a flip-flop provided by the embodiment of the present invention. The following describes a determination device for determining an output state of a flip-flop according to an embodiment of the present invention.
Fig. 8 is a schematic diagram of a determination device of an output state of a flip-flop according to an embodiment of the present invention, and as shown in fig. 8, the determination device of the output state of the flip-flop includes: a receiving unit 81, a first acquiring unit 83, a transmitting unit 85 and a first determining unit 87. The determination means of the output state of the flip-flop will be described in detail below.
And the receiving unit 81 is used for receiving the switching value signal transmitted by the set input end of the trigger.
And a first obtaining unit 83 connected to the receiving unit 81, configured to process the received switching value signal according to a preset logic to obtain an output signal.
And a transmission unit 85, connected to the first obtaining unit 83, configured to transmit the output signal to a current value port, where the current value port is used to output a value corresponding to the output signal, and the output signal is output through a first output end.
The first determining unit 87 is connected to the transmitting unit 85, and is configured to determine the output state of the flip-flop according to the value.
In the above embodiment, the receiving unit may be adapted to receive the switching value signal transmitted by the set input terminal of the flip-flop; the first acquisition unit processes the received switching value signal according to preset logic to obtain an output signal; the transmission unit transmits the output signal to a current value port, wherein the current value port is used for outputting a numerical value corresponding to the output signal, and the output signal is output through a first output end; and the first determining unit determines the output state of the flip-flop according to the value. Compared with the prior art that when the first output end is in a forced state, the output state of the first output end cannot be known, and a worker cannot know the actual value of the first output end, so that misoperation is easily caused.
As an optional embodiment of the present invention, the trigger may further include: and a second obtaining unit for obtaining a value corresponding to the output signal before determining the output state of the flip-flop according to the value.
As an alternative embodiment of the present invention, the second obtaining unit may include at least one of: the first acquisition module is used for acquiring numerical values through the display module, wherein the display module is used for displaying the numerical values corresponding to the output signals; and the second acquisition module is used for acquiring the numerical value through the voice module, wherein the voice module is used for playing the numerical value corresponding to the output signal.
As an optional embodiment of the present invention, the trigger may further include: and a second determination unit for determining whether to restore a forcing signal for changing an input value of the reset input terminal of the flip-flop according to the output state after determining the output state of the flip-flop according to the value.
The determination device for the output state of the trigger includes a processor and a memory, and the receiving unit 81, the first obtaining unit 83, the transmitting unit 85, the first determining unit 87, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more, and the output state of the trigger is determined according to the value by adjusting the kernel parameter.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium including a stored program, wherein the program performs the method of determining the output state of the flip-flop of any one of the above.
According to another aspect of the embodiments of the present invention, there is provided a processor, configured to execute a program, where the program executes a method for determining an output state of a flip-flop according to any one of the above methods.
The embodiment of the present invention further provides an apparatus, which includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, the following steps are implemented: receiving a switching value signal transmitted by a set input end of a trigger; processing the received switching value signal according to preset logic to obtain an output signal; transmitting the output signal to a current value port, wherein the current value port is used for outputting a numerical value corresponding to the output signal, and the output signal is output through a first output end; the output state of the flip-flop is determined according to the value.
There is also provided in an embodiment of the invention a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: receiving a switching value signal transmitted by a set input end of a trigger; processing the received switching value signal according to preset logic to obtain an output signal; transmitting the output signal to a current value port, wherein the current value port is used for outputting a numerical value corresponding to the output signal, and the output signal is output through a first output end; the output state of the flip-flop is determined according to the value.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (16)
1. A flip-flop, comprising: the device comprises a logic module, a first input end and a current value port;
the first input end is connected with the logic module and used for transmitting the received switching value signal to the logic module;
the logic module is used for processing the received switching value signal according to preset logic to obtain an output signal;
the current value port is connected with the logic module and is used for outputting a numerical value corresponding to the output signal, wherein the output signal is output through a first output end;
wherein, still include: a first or module and a second or module, wherein the first or module and the second or module are both connected with the first output terminal.
2. The flip-flop according to claim 1, further comprising: and the display module is connected with the current value port and used for displaying the numerical value corresponding to the output signal.
3. The flip-flop according to claim 1, further comprising: and the voice module is connected with the current value port and used for playing the numerical value corresponding to the output signal.
4. The flip-flop of claim 1, wherein said first input comprises: the device comprises a set input end and a reset input end, wherein the set input end is connected with at least one set switch and used for receiving at least one switching value signal transmitted by the at least one set switch, and the reset input end is connected with a reset switch and used for receiving the reset switching value signal transmitted by the reset switch.
5. The flip-flop according to claim 1, wherein said first or module comprises: the first input end and the first second input end are both connected with the first output end; the second or module comprises: the first input end and the second input end are connected with the first output end.
6. The flip-flop according to claim 1, wherein an output of said first or module is said current value port; and the output end of the second OR module is used for outputting the current state of the trigger.
7. A method for determining an output state of a flip-flop, comprising:
receiving a switching value signal transmitted by a set input end of a trigger;
processing the received switching value signal according to preset logic to obtain an output signal;
transmitting the output signal to a current value port, wherein the current value port is used for outputting a numerical value corresponding to the output signal, the output signal is output through a first output end, and the flip-flop further includes: a first or module and a second or module, wherein the first or module and the second or module are both connected with the first output terminal;
and determining the output state of the trigger according to the numerical value.
8. The method of claim 7, further comprising, prior to determining the output state of the flip-flop from the value:
a value corresponding to the output signal is obtained.
9. The method of claim 8, wherein obtaining a value corresponding to the output signal comprises at least one of:
acquiring the numerical value through a display module, wherein the display module is used for displaying the numerical value corresponding to the output signal;
and acquiring the numerical value through a voice module, wherein the voice module is used for playing the numerical value corresponding to the output signal.
10. The method of claim 7, after determining the output state of the flip-flop according to the value, further comprising:
and determining whether to recover a forcing signal according to the output state, wherein the forcing signal is used for changing the input value of the reset input end of the trigger.
11. An apparatus for determining an output state of a flip-flop, comprising:
the receiving unit is used for receiving the switching value signal transmitted by the setting input end of the trigger;
the first acquisition unit is used for processing the received switching value signal according to preset logic to obtain an output signal;
a transmission unit, configured to transmit the output signal to a current value port, where the current value port is configured to output a numerical value corresponding to the output signal, and the output signal is output through a first output end, and the flip-flop further includes: a first or module and a second or module, wherein the first or module and the second or module are both connected with the first output terminal;
and the first determining unit is used for determining the output state of the trigger according to the numerical value.
12. The apparatus of claim 11, further comprising:
and the second acquisition unit is used for acquiring a numerical value corresponding to the output signal before determining the output state of the trigger according to the numerical value.
13. The apparatus of claim 12, wherein the second obtaining unit comprises at least one of:
the first acquisition module is used for acquiring the numerical value through a display module, wherein the display module is used for displaying the numerical value corresponding to the output signal;
and the second acquisition module is used for acquiring the numerical value through a voice module, wherein the voice module is used for playing the numerical value corresponding to the output signal.
14. The apparatus of claim 11, further comprising:
and the second determination unit is used for determining whether to recover a forcing signal according to the output state after determining the output state of the flip-flop according to the value, wherein the forcing signal is used for changing the input value of the reset input end of the flip-flop.
15. A storage medium characterized by comprising a stored program, wherein the program executes the method of determining the output state of a flip-flop according to any one of claims 7 to 10.
16. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to perform the method for determining the output state of a flip-flop according to any one of claims 7 to 10 when running.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810541121.5A CN108614458B (en) | 2018-05-30 | 2018-05-30 | Trigger, and method and device for determining output state of trigger |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810541121.5A CN108614458B (en) | 2018-05-30 | 2018-05-30 | Trigger, and method and device for determining output state of trigger |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108614458A CN108614458A (en) | 2018-10-02 |
CN108614458B true CN108614458B (en) | 2020-10-02 |
Family
ID=63664585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810541121.5A Active CN108614458B (en) | 2018-05-30 | 2018-05-30 | Trigger, and method and device for determining output state of trigger |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108614458B (en) |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1028740C (en) * | 1991-12-26 | 1995-06-07 | 中国石油化工总公司安庆石油化工总厂 | Method for controlling conveying and collecting of packing material and controller circuit thereof |
CN1155785A (en) * | 1995-11-07 | 1997-07-30 | Sgs-汤姆森微电子有限公司 | Flip-flop circuit |
CN105788192A (en) * | 2014-12-18 | 2016-07-20 | 重庆宁来科贸有限公司 | Household early warning security door with automatic monitoring function |
CN104835443B (en) * | 2015-06-03 | 2017-09-26 | 京东方科技集团股份有限公司 | A kind of shifting deposit unit, gate driving circuit and display device |
CN205105095U (en) * | 2015-11-05 | 2016-03-23 | 成都芯源***有限公司 | Two-phase DC-DC converter and phase-locked loop thereof |
-
2018
- 2018-05-30 CN CN201810541121.5A patent/CN108614458B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN108614458A (en) | 2018-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111002327B (en) | Pulling-out and inserting control system and method of demonstrator and robot | |
CN107483262A (en) | Fault handling method and equipment | |
CN105388416B (en) | The distant check system of having a try of intelligent substation relay protection | |
US10852355B2 (en) | Electrical protection apparatus with test button | |
EP3806257B1 (en) | Single phase fault isolation and restoration for loss of voltage fault in power distribution network | |
CN109428315A (en) | Self-adaptive protection method, device and system | |
EP1746848A1 (en) | A method and a means for switching circuits of mems matrixes and of an automated main distribution frame | |
CN111276951B (en) | Direct current protection method, system and equipment based on superconducting current limiter | |
CN109976926A (en) | Method, circuit, terminal and the storage medium of protection BMC renewal process are restarted in a kind of shielding | |
CN106443439B (en) | A kind of pilot protection channel switching validity check method and device | |
CN108614458B (en) | Trigger, and method and device for determining output state of trigger | |
CN111263892B (en) | Method, device and equipment for detecting functions of adapter and storage medium | |
CN105094010A (en) | Relay protection device plug-and-play management method and system | |
CN108427044B (en) | Method, device, equipment and storage medium for testing fault protection function | |
CN113104061B (en) | Rail vehicle fault processing method and system and rail vehicle | |
EP3806256B1 (en) | Single phase fault isolation and restoration for power distribution network | |
JPH0773409B2 (en) | Power system accident determination device | |
CN108418699B (en) | Communication point-to-point system and method for substation automation equipment | |
CN106200544B (en) | A kind of protection system and method for preventing PLC controller from crashing | |
CN108683163A (en) | Line protective devices method of calibration and calibration equipment | |
JP2005065424A (en) | Automatic monitoring circuit for protective relay system | |
CN115654651B (en) | Fault detection method, device and system of pressure switch and air conditioning equipment | |
CN116311197A (en) | Fault diagnosis method, device and equipment for power distribution network protection device | |
CN114336500B (en) | Fault diagnosis and power restoration method, device and equipment for regional power grid | |
CN107834501A (en) | For monitoring the movable apparatus and method of the processing unit in electronic trip unit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |