CN101964645A - Safety pulse generating device and generating method thereof - Google Patents

Safety pulse generating device and generating method thereof Download PDF

Info

Publication number
CN101964645A
CN101964645A CN 201010261269 CN201010261269A CN101964645A CN 101964645 A CN101964645 A CN 101964645A CN 201010261269 CN201010261269 CN 201010261269 CN 201010261269 A CN201010261269 A CN 201010261269A CN 101964645 A CN101964645 A CN 101964645A
Authority
CN
China
Prior art keywords
pulse
circuit
rectangular pulse
safe
generating device
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.)
Granted
Application number
CN 201010261269
Other languages
Chinese (zh)
Other versions
CN101964645B (en
Inventor
赵海东
谭鹏超
程建兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Henan Splendor Science and Technology Co Ltd
Original Assignee
Henan Splendor Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Henan Splendor Science and Technology Co Ltd filed Critical Henan Splendor Science and Technology Co Ltd
Priority to CN 201010261269 priority Critical patent/CN101964645B/en
Publication of CN101964645A publication Critical patent/CN101964645A/en
Application granted granted Critical
Publication of CN101964645B publication Critical patent/CN101964645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a safety pulse generating device and a generating method thereof. The safety pulse generating device comprises two host machines provided with multi-task operating systems, and an AND gate circuit, wherein the two host machines are communicated with each other by an Ethernet communication network and are respectively connected with the AND gate circuit. The generating method comprises the following steps of: time base synchronization: respectively generating a time mark and timing by the two host machines, and keeping timing between the the two host machines; pulse phase synchronization: simultaneously outputting rectangular pulses with synchronous phases by the two host machines; and pulse synthesis: synthesizing the two rectangular pulses with synchronous phase by the AND gate circuit, and outputting safety pulses by the AND gate circuit. The safety pulse generating device and the generating method thereof ensure phase synchronization of multi-path rectangular pulses by cooperation of software and hardware, and have the advantages of low cost and easy realization.

Description

Safe pulse generating device and production method thereof
Technical field
The present invention relates to a kind of safe pulse generating device and production method thereof, belong to the railway signal control field.
Background technology
In railway signal control field and industrial control system, for relating to safe equipment, usually take to produce safe pulse with the rectangular pulse of two-way or multichannel certain frequency, then with safe pulsed drive dynamic driver circuit to produce safe DC operation signal; When dynamic driver circuit only receives lasting rectangular pulse, just export the DC operation signal, do not receive rectangular pulse or rectangular pulse frequency when being lower than certain frequency, just do not have the output of DC operation signal; Drive related objective device or equipment with this DC operation signal, guarantee with this no matter related objective device or equipment under any circumstance can both reach safety requirements;
The two-way of input dynamic driver circuit or phase place, frequency and the amplitude of multichannel rectangular pulse must satisfy certain synchronized relation, wherein, most crucial problem is to guarantee the Phase synchronization of multichannel rectangular pulse, so just can reach the purpose of control related objective device or equipment; If multichannel rectangular pulse phase place has big difference, can cause target devices or the equipment state disorder controlled, reduce the safety and reliability of control system.
As shown in Figure 1, at present, the mode that produces safe pulse mainly is based on hard-wired safe pulse generating device, it includes host A, host B, single-chip microcomputer 1, single-chip microcomputer 2, AND circuit, dynamic driver circuit, the dynamic driving power module, dynamic pulse phase-detection protective circuit and protective tube, wherein, two single-chip microcomputers by two host computer control provide two-way 200~400Hz, the dynamic driving power module is given in the pulse of phase phasic difference 180 degree, when pulse just often, dynamic driving power module output DC source, during no pulse, dynamic driving power module no-output, the two-way pulse must guarantee phase phasic difference 180 degree, otherwise, dynamic pulse phase-detection protective circuit is understood the output short-circuit signal, and blows the protective tube of input, to guarantee safety, after the described DC power supply output, power supply is provided for all dynamic driver circuits;
Two driving orders that single-chip microcomputer is sent here according to two main frames, by timer output phase, amplitude, two-way rectangular pulse signal that frequency is identical, after AND circuit, give dynamic driver circuit and produce output, when dynamic driver circuit has the pulse input, the output high level, during the no pulse input, output low level;
When two single-chip microcomputers carried out once the school in about 10 minutes by the serial ports interruption, eliminate the time error that two single-chip microcomputer oscillating circuits produce;
Export in the two-way pulse of AND circuit in order to prevent single-chip microcomputer 1 and single-chip microcomputer 2, one road pulse persistance is a high level, pulse is normally exported on another road, AND circuit is still exported the dangerous situation of normal safe pulse, single-chip microcomputer 1 and single-chip microcomputer 2 carry out back production to the two-way pulse of input AND circuit respectively, when back production state and output pulse condition are inconsistent, notify another single-chip microcomputer by the UART serial communication, stop to export pulse, make dynamic driver circuit can not get pulse and stop output, failure to the safe side.
By above analysis as can be known: the power supply based on hard-wired safe pulse generating device is controlled by the opposite pulse of phase place of two single-chip microcomputer outputs, drive circuit is controlled by the identical two-way pulse of phase place simultaneously, in addition, single-chip microcomputer carries out time synchronized by serial ports interrupt communication mode; This device has very high fail safe and reliability, and still, it needs hardware cost higher.
For this reason, people are seeking a kind of desirable technical solution always.
Summary of the invention
The present invention is directed to the deficiencies in the prior art, provide a kind of working in coordination with to guarantee that phase locked safe pulse generating device of multichannel rectangular pulse and safe method for generating pulse, these apparatus and method have cost advantage low and that easily realize by software and hardware.
The technical solution adopted in the present invention is as follows: a kind of safe pulse generating device, it includes two main frame and AND circuit that multiple task operating system is installed, two main frames produce a time tag respectively and carry out timing by the hardware timer of host computer system inside, when carrying out the school by the mutual communication of ethernet communication network so that by the hardware interrupts mechanism of ethernet communication network between two main frames, two main frames connect described AND circuit respectively so that respectively to the synchronous rectangular pulse of described AND circuit while input phase, described AND circuit is synthetic and output safety pulse with the phase locked rectangular pulse of two-way.
A kind of safe method for generating pulse, this production method may further comprise the steps:
Step 1, time base be synchronously: the time tag that it is 1ms that two main frames that multiple task operating system is installed hardware timer by host computer system inside produces a precision respectively, and carry out timing, simultaneously, when 8~12 minutes carry out once the school by the hardware interrupts mechanism of ethernet communication network, make two time errors between the main frame between two main frames less than 1ms;
Step 2, impulse phase are synchronous: two main frames are exported rectangular pulse simultaneously in the moment that is accumulated to the output rectangular pulse, and it is synchronous to carry out the rectangular pulse edge, make the phase place of two-way rectangular pulse identical, make time difference between the two-way rectangular pulse rising edge less than 1ms;
Step 3, pulse are synthesized: the phase locked rectangular pulse of two-way synthesizes by AND circuit, the pulse of described AND circuit output safety.
Based on above-mentioned, in step 3, when having arbitrary road rectangular pulse undesired in the input of AND circuit, export the main frame of this rectangular pulse and judge that according to back production stopping this rectangular pulse exports the no longer output safety pulse of described AND circuit.
The relative prior art of the present invention has outstanding substantive distinguishing features and marked improvement, specifically, this safe pulse generating device has been simplified safe pulse generating device of the prior art, hardware such as the power supply of dynamic pulse control and single-chip microcomputer are promptly simplified, it is collaborative by software and hardware, guaranteed multichannel rectangular pulse Phase synchronization, promptly provided cost savings, be easy to again realize; Though this safe pulse generating device precision does not reach the phase accuracy of existing safe pulse generating device, but the time difference between the rising edge of two-way pulse is less than 1ms, be far smaller than the work period 10ms~100ms of dynamic driver circuit, therefore, the safe pulse that this device produces also has very high fail safe and reliability when reducing cost;
This safe method for generating pulse is simple and easy to realize, and the precision height, safe, reliability is high, it has application and practical outstanding advantage.
Description of drawings
Fig. 1 is based on the structural representation of hard-wired safe pulse generating device in the prior art;
Fig. 2 is the structural representation of safe pulse generating device of the present invention.
Embodiment
Below by embodiment, technical scheme of the present invention is described in further detail.
As shown in Figure 2, a kind of when soft the safe pulse generating device of base, it includes host A, host B and AND circuit; Host A and host B are that to adopt version be the embedded host of the linux kernel of 2.6.19, the time tag that it is 1ms that host A and the host B hardware timer by host computer system inside produces a precision respectively, and carry out timing;
When carrying out the school by the mutual communication of ethernet communication network so that by the hardware interrupts mechanism of ethernet communication network between host A and the host B;
Host A, host B connect described AND circuit respectively so that respectively to the synchronous rectangular pulse of described AND circuit while input phase, described AND circuit is used for the synthetic and output safety pulse with the phase locked rectangular pulse of the two-way that receives.
When the hardware interrupts mechanism that this device is provided by ethernet communication network by two main frames is carried out the school, guarantee that two main frame time errors are less than 1ms, and directly by the bus output two-way phase place of two main frames, the rectangular pulse that frequency is identical with amplitude, this two-way rectangular pulse is after AND circuit is synthetic, and the safe pulse of generation is given dynamic driver circuit and produced output; When dynamic driver circuit has the pulse input, the output high level, during the no pulse input, output low level;
This shows that this device has saved the power supply and the single-chip microcomputer interlock circuit of the dynamic pulse control in the existing safe pulse generating device, provide cost savings, and be easy to realize; Though this device precision does not reach the phase accuracy of existing safe pulse generating device, but the time difference between the rising edge of two-way pulse is less than 1ms, be far smaller than the work period 10ms~100ms of dynamic driver circuit, therefore, the safe pulse that this device produces also has very high fail safe and reliability when reducing cost.
A kind of safe method for generating pulse, this production method may further comprise the steps:
Step 1, time base be synchronously: the time tag that it is 1ms that two main frames that multiple task operating system is installed hardware timer by host computer system inside produces a precision respectively, and carry out timing, simultaneously, when 8~12 minutes carry out once the school by the hardware interrupts mechanism of ethernet communication network, make two time errors between the main frame between two main frames less than 1ms;
Step 2, impulse phase are synchronous: two main frames are exported rectangular pulse simultaneously in the moment that is accumulated to the output rectangular pulse, and it is synchronous to carry out the rectangular pulse edge, make the phase place of two-way rectangular pulse identical, make time difference between the two-way rectangular pulse rising edge less than 1ms;
Step 3, pulse are synthesized: the phase locked rectangular pulse of two-way synthesizes by AND circuit, and described AND circuit is to the pulse of dynamic driver circuit output safety;
Dynamic driver circuit receives lasting safe pulse, and dynamic driver circuit is just exported the DC operation signal, otherwise dynamic driver circuit is not exported the DC operation signal.
Based on above-mentioned, in step 3, when having arbitrary road rectangular pulse undesired in the input of AND circuit, export the main frame of this rectangular pulse and judge according to back production, stop this rectangular pulse output, the no longer output safety pulse of described AND circuit;
Promptly, behind host A and the host B output rectangular pulse, carrying out back production voluntarily judges, if host A back production input and host A input are inconsistent, or the input of host B back production input and host B is inconsistent, then host A or host B stop rectangular pulse output, the no longer output safety pulse of promptly described AND circuit immediately;
Furtherly, export in the two-way rectangular pulse of AND circuit in order to prevent host A and host B, one road pulse persistance is a high level, another road pulse is normal output pulse, and AND circuit is still exported the dangerous situation of normal safe pulse, host A and host B carry out back production to the input and the two-way pulse of door respectively, when back production state and output pulse condition are inconsistent, notify another main frame to stop to export rectangular pulse by ethernet communication network, make no longer output safety pulse of AND circuit, then dynamic driver circuit stops to export DC operation signal, failure to the safe side because of can not get safe pulse.
Should be noted that at last: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit; Although with reference to preferred embodiment the present invention is had been described in detail, those of ordinary skill in the field are to be understood that: still can make amendment or the part technical characterictic is equal to replacement the specific embodiment of the present invention; And not breaking away from the spirit of technical solution of the present invention, it all should be encompassed in the middle of the technical scheme scope that the present invention asks for protection.

Claims (3)

1. safe pulse generating device, it is characterized in that: this safe pulse generating device includes two main frame and AND circuit that multiple task operating system is installed, two main frames produce a time tag respectively and carry out timing by the hardware timer of host computer system inside, when carrying out the school by the mutual communication of ethernet communication network so that by the hardware interrupts mechanism of ethernet communication network between two main frames, two main frames connect described AND circuit respectively so that respectively to the synchronous rectangular pulse of described AND circuit while input phase, described AND circuit is synthetic and output safety pulse with the phase locked rectangular pulse of two-way.
2. the safe method for generating pulse of the described safe pulse generating device of claim 1 is characterized in that, this production method may further comprise the steps:
Step 1, time base be synchronously: the time tag that it is 1ms that two main frames that multiple task operating system is installed hardware timer by host computer system inside produces a precision respectively, and carry out timing, simultaneously, when 8~12 minutes carry out once the school by the hardware interrupts mechanism of ethernet communication network, make two time errors between the main frame between two main frames less than 1ms;
Step 2, impulse phase are synchronous: two main frames are exported rectangular pulse simultaneously in the moment that is accumulated to the output rectangular pulse, and it is synchronous to carry out the rectangular pulse edge, make the phase place of two-way rectangular pulse identical, make time difference between the two-way rectangular pulse rising edge less than 1ms;
Step 3, pulse are synthesized: the phase locked rectangular pulse of two-way synthesizes by AND circuit, the pulse of described AND circuit output safety.
3. safe method for generating pulse according to claim 2, it is characterized in that: in step 3, when having arbitrary road rectangular pulse undesired in the input of AND circuit, export the main frame of this rectangular pulse and judge that according to back production stopping this rectangular pulse exports the no longer output safety pulse of described AND circuit.
CN 201010261269 2010-08-24 2010-08-24 Safety pulse generating device and generating method thereof Active CN101964645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010261269 CN101964645B (en) 2010-08-24 2010-08-24 Safety pulse generating device and generating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010261269 CN101964645B (en) 2010-08-24 2010-08-24 Safety pulse generating device and generating method thereof

Publications (2)

Publication Number Publication Date
CN101964645A true CN101964645A (en) 2011-02-02
CN101964645B CN101964645B (en) 2012-08-22

Family

ID=43517407

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010261269 Active CN101964645B (en) 2010-08-24 2010-08-24 Safety pulse generating device and generating method thereof

Country Status (1)

Country Link
CN (1) CN101964645B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114880086A (en) * 2022-04-02 2022-08-09 沈阳飞机设计研究所扬州协同创新研究院有限公司 Global task synchronization method of avionics system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040076187A1 (en) * 2002-10-16 2004-04-22 Eran Peled System and method for synchronizing between communication terminals of asynchronous packets networks
CN1584757A (en) * 2004-05-21 2005-02-23 杨桂臣 Self-calibrating synchronous timing timer
CN201789475U (en) * 2010-08-24 2011-04-06 河南辉煌科技股份有限公司 Safety pulse generating device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040076187A1 (en) * 2002-10-16 2004-04-22 Eran Peled System and method for synchronizing between communication terminals of asynchronous packets networks
CN1584757A (en) * 2004-05-21 2005-02-23 杨桂臣 Self-calibrating synchronous timing timer
CN201789475U (en) * 2010-08-24 2011-04-06 河南辉煌科技股份有限公司 Safety pulse generating device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114880086A (en) * 2022-04-02 2022-08-09 沈阳飞机设计研究所扬州协同创新研究院有限公司 Global task synchronization method of avionics system

Also Published As

Publication number Publication date
CN101964645B (en) 2012-08-22

Similar Documents

Publication Publication Date Title
US20140292232A1 (en) Motor controller for synchronously controlling multiple motors
CN204131435U (en) A kind of servomotor controller controlled based on double-core
JP2015100262A (en) Apparatus for controlling paralleled inverter
JP2002345252A (en) Method and apparatus for operating a plurality of power converters
CN103792419A (en) Synchronous sampling method achieving hybrid access of analog quantity and digital quantity
CN201789475U (en) Safety pulse generating device
CN102624075A (en) Multimachine parallel connection method and scheme of modular UPS (uninterrupted power supply) system
CN104767443A (en) Servo motor control system
CN101964645B (en) Safety pulse generating device and generating method thereof
CN102063055B (en) Redundant UTC (universal coordinated time) time synchronization server
CN103015831A (en) Integrated rail transit screen door machine controller
CN103777607A (en) Door operator controller of platform screen door
CN103269263B (en) Based on clock expansion output device and the method for the RS422/485 timing code agreement of self-defining expanding clock and communication bus
CN108983036B (en) Traveling wave distance measurement system based on electronic transformer
CN203097556U (en) Door controller beside platform
CN104993862A (en) C/KU band switching control system and communication method thereof
CN107465337B (en) Driving synchronous control protection method and device applied to IGBT series power module
CN104810841B (en) PCS energy accumulation current converters V/F and P/Q pattern seamless switching control devices
CN207652302U (en) A kind of master & slave control system of subway energy back feed device
CN203027176U (en) Mobile integrated emergency excitation device
CN103049038B (en) The hardware clock synchronizing circuit of two security systems is got for three
CN110979406A (en) Cross multiplexing signal system safety computing platform
CN106301091B (en) Battery panel tracking system, motor power supply method thereof and tracking control box
RU2327590C1 (en) Signal conditioner of continuous-amplitude channel in multi-digit automatic cab signalling system (фс-ен)
CN204795038U (en) CKU wave band conversion control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant