CN105929748B - Traditional Chinese medicine decocting room intelligence control system - Google Patents

Traditional Chinese medicine decocting room intelligence control system Download PDF

Info

Publication number
CN105929748B
CN105929748B CN201610447670.7A CN201610447670A CN105929748B CN 105929748 B CN105929748 B CN 105929748B CN 201610447670 A CN201610447670 A CN 201610447670A CN 105929748 B CN105929748 B CN 105929748B
Authority
CN
China
Prior art keywords
cycle
time
signal
voltage
true
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
Application number
CN201610447670.7A
Other languages
Chinese (zh)
Other versions
CN105929748A (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.)
Jiangsu Shengmu Business Service Co ltd
Original Assignee
Fuzhou Alignment Mdt Infotech 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 Fuzhou Alignment Mdt Infotech Ltd filed Critical Fuzhou Alignment Mdt Infotech Ltd
Priority to CN201610447670.7A priority Critical patent/CN105929748B/en
Publication of CN105929748A publication Critical patent/CN105929748A/en
Application granted granted Critical
Publication of CN105929748B publication Critical patent/CN105929748B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21055Number of halfwaves equals number of I-O, send block of halfwaves, synchro gap

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Unknown Time Intervals (AREA)
  • External Artificial Organs (AREA)

Abstract

The present invention relates to a kind of Traditional Chinese medicine decocting room intelligence control system, after each electric medicine decocting tank puts Chinese medicine and water into, attaching plug may be inserted at any time to be chosen the pattern of boiling medicine on the socket of control for decocting medicinal herbs control and starts to boil medicine.System is respectively mounted cycle discriminator circuit using half wave communication through power line and half-wave power supply in main controller and each control for decocting medicinal herbs, for the synchronization time of generation system system is kept to keep strokes.

Description

Traditional Chinese medicine decocting room intelligence control system
(1) technical field:
The present invention relates to a kind of Traditional Chinese medicine decocting room intelligence control system, after each electric medicine decocting tank puts Chinese medicine and water into, Attaching plug may be inserted on the socket of control for decocting medicinal herbs control and chooses the pattern of boiling medicine and start to boil medicine at any time.System is used through electricity Half wave communication and the half-wave power supply of the line of force, and cycle discriminator circuit is respectively mounted in main controller and each control for decocting medicinal herbs, it is used for The synchronization time of generation system keeps system to keep strokes.
(2) background technology:
The control system of power supply is provided by power network, each electronic equipment or intermodule are communicated by special circuit, The timing time of each electronic equipment or electronic module is corrected, reaches synchronous operation purpose.Due to being made using special circuit communication Wiring complicates and increases cost, if timing time is not corrected by line traffic, due to traditional timing error, runs number After hour, accumulation timing error can make system control action inconsistent, may cause system crash, and at some, often change is set Meter, its products application of the big occasion of wiring installation amount are restricted.
(3) content of the invention:
Many is arranged the present invention relates to Traditional Chinese medicine decocting room intelligence control system, on the desktop in Traditional Chinese medicine decocting room to boil medicine control Device, electric medicine decocting tank put Chinese medicine and water into, and after sticking patient's mark, attaching plug may be inserted into control for decocting medicinal herbs control at any time The pattern of boiling medicine is chosen on socket to start to boil medicine, then main controller input patient's identification code, main controller by RS232 interface with Host computer compunlcation.General boil medicine begins with half an hour more than warm water soak period, then has very hot oven, slow fire phase etc., boils medicine At the end of host computer computer pass through LED screen show patient's name.The power supply of electric medicine decocting tank is individually connected to system, and electric power is online outside, And bidirectional triode thyristor is controlled to make to load energized power and time on its socket after being isolated by control for decocting medicinal herbs by photoelectronic coupler By program operation of boiling medicine.Main controller and each control for decocting medicinal herbs are connected on same electric power cable and set master switch, in master switch Be followed by rectifier diode, system is using half wave communication through power line and half-wave power supply, and in main controller and each control of boiling medicine Cycle discriminator circuit is respectively mounted in device processed, for the synchronization time of generation system system is kept to keep strokes, while in its communication One communications electronics switch and its switch drive module are respectively installed in circuit.When system communicates, all communications electronics switches are connected, It is communicated by electric power cable, before sign off, turns off all communications electronics switches.
Communication is the master to keep main controller consistent with the communication operation long-term of each control for decocting medicinal herbs by control synchronization time The switch drive module of control device and each control for decocting medicinal herbs is to be depressured from power network through resistance, just connecing diode and further isolate cycle After negative half-wave, comparator input terminal is connected to, reference voltage is 100Mv to 200Mv, using diode drop through electric resistance partial pressure It obtains, therefore the output terminal of comparator is square-wave signal, it generates corresponding electric power net week after the diode rectification just connect again Ripple bears the positive square-wave signal of half-wave, is connected to the I/O mouths of microcontroller, traffic operation is performed when microcontroller scanning is to positive square-wave signal, The positive square-wave signal is additionally operable to driving communications electronics switch, therefore communications electronics switch is turned off in cycle positive half-wave, and cycle is born It is connected during half-wave.Communications electronics switch is connected to microcontroller corresponding port according to used communication mode, and carries out signal condition.
The present invention utilizes the positive half cycle ascent stage of power network cycle, takes three to screen point and realize and the identification of cycle signal is sentenced It is fixed, the cycle time is recycled to establish synchronization time, the synchronous operation of main controller and each control for decocting medicinal herbs in realization system.
The cycle discriminator circuit structure diagram of main controller and each control for decocting medicinal herbs by two as shown in Fig. 2, use hysteresis The voltage comparator of comparator forms, comprising filter circuit, the reference voltage of voltage comparator in each voltage comparator It is provided by regulator circuit.System sets clock timer and synchrotimer.If detect that two adjacent cycle signals are equal It is true, then takes out the clock timer timing time between this two adjacent cycle signal zero passages, is sequentially stored in the cycle time In storage unit, which can store 100 cycle times, a cycle time is often stored in when being filled with, The cycle time being stored at first is first removed, and calculates the average value Tz of the cycle time of deposit and preserves, is reflected using Tz values Cycle signal not to be identified reduces erroneous judgement possibility to reduce the influence of power network frequency fluctuation, while screen point using three.
Two comparators are respectively used to screen point 1, screen point 2, as shown in Figure 1.In the cycle of cycle positive half cycle ascent stage At zero passage, that is, screen point 0 set a voltage zero-cross detection module, it using cycle positive half-wave signal through electric resistance partial pressure, diode into The clock end CLK of d type flip flop, the Q termination microcontroller external interrupts of d type flip flop are sent into after one step isolation negative half period, signal condition Mouthful, which is arranged to level triggers, the D ends ground connection of d type flip flop, and S termination single-chip processor i/o mouths are usually put for the I/O mouthfuls 1.When cycle positive half-wave zero cross signal arrives, cycle signal rising edge immediately after makes d type flip flop Q ends be 0, outside microcontroller Fracture low level in portion is interrupted so as to generate, executed instruction in interrupt service routine:Described I/O mouthfuls set to 0, the Central Shanxi Plain is broken, is counted When, described I/O mouthfuls put 1, open interruption.Remaining two comparator is separately positioned on the cycle positive half cycle ascent stage, crest voltage The examination point 1 at 35% to 50% place and the examination point 2 at 50% to 70% place.
Cycle signal determining:After setting time opens interruption, clock timer resets and starts timing microcontroller, works as cycle During voltage zero-cross, the output voltage for being arranged on d type flip flop in the voltage zero-cross inspection survey mould block ﹙ V0 ﹚ for screen point 0 jumps vanishing, production It is raw to interrupt, record its zero crossing break period Th0;Hereafter, the output electricity of electricity pressure comparator ﹙ V1 ﹚ at point 1 is screened in microcontroller scanning Pressure, when all wave voltages are reached to the threshold voltage of ﹙ V1 ﹚, output voltage saltus step from high to low, scanning records its bound-time Th1; Similary scanning record screens electricity pressure comparator ﹙ V2 ﹚ output voltage bound-time Th2 at point 2, and Th0 and voltage zero-cross are detected mould The output voltage bound-time setting value Ts0 of Kuai ﹙ V0 ﹚ makes comparisons;The output voltage bound-time of Th1 and electricity pressure comparator ﹙ V1 ﹚ Setting value Ts1 and Th2 makes comparisons respectively with the output voltage bound-time setting value Ts2 of electricity pressure comparator ﹙ V2 ﹚, if In the range of allowable error, then the discriminator signal detected is true, is otherwise false.When above-mentioned judgement discriminator signal is true, calculate During clock timer timing between cycle signal zero passage when this cycle signal zero passage and an adjacent preceding discriminator signal are true Between Tzu, it is made comparisons with the average value Tz of cycle time, the cycle signal if no more than setting cycle time error Tzv It is true, at this moment preserves Tzu and 20ms is taken to be added with synchrotimer timing time, in the value deposit synchrotimer that will add up.
When clock timer starts timing with cycle voltage zero-cross, then timing to 16ms opens the break period between 18.5ms Open interruption during setting value Tk, clock timer timing to 25ms to Central Shanxi Plain during pass break period setting value Tn between 27ms is broken.
After system boot, clock timer starts timing, when detecting first cycle voltage zero-cross, is arranged on examination The voltage zero-cross Jian of point 0 surveys the output voltage saltus step of Mo Kuai ﹙ V0 ﹚, is interrupted so as to generate, and takes out the time of cycle voltage over zero T0 is preserved, and clock timer is reset and starts timing, and at this moment cycle time voltage crosses zero Th0 is 0, while microcontroller is by above-mentioned Method scans and judges discriminator signal.What it is due to detection is first cycle, and clock timer is opened in cycle voltage zero-cross Beginning timing, the value of Th0, Th1 and Th2 must add the difference that cycle time 20ms subtracts out break period setting value Tk, such as Three discriminator signals of fruit are true, and the time T0 of the cycle voltage over zero of taking-up is stored in as initial time in synchrotimer, I.e. opening the break period for the first time takes Tk next time.Otherwise for fictitious time, at this time the clock timer time must add T0, continue to detect.
When detecting first and second adjacent cycle voltage zero-cross, due to not preserving the cycle time of detection, Therefore the clock timer timing time twice between cycle signal zero passage is made comparisons with cycle time 20ms, judges cycle signal Then it is that the difference that 20ms is taken to subtract Th0 is added with synchrotimer timing time when being true, i.e., preserves the standard cycle time for the first time 20ms need to deduct its Th0 value, this is because when hereafter to detect cycle signal every time be true, by clock meter when opening interruption When device reset after restart timing, and be that the standard cycle time is included in synchrotimer when opening interruption, open interruption Afterwards clock timer reset, otherwise judge cycle signal be fictitious time, at this time the clock timer time must add T1=T0+Tk, after It is continuous to detect first cycle again as stated above.After it is very to detect first cycle signal, recover above-described cycle Signal determining.
If as shown in Figure 1, detecting that cycle signal is false, the break period is opened next time and opens the break period at this Afterwards, open interruptions during average value Tz through the cycle time that is delayed, and open interrupt after be delayed Tns when the Central Shanxi Plain break, when setting the Central Shanxi Plain to break Between be when cycle signal screen point 0 when do not generating interruption, at this moment must be in the setting time point more than Ts0 allowable error scopes When starting to scan and scanning examination point 1 and screen point 2, voltage comparator output voltage does not generate saltus step, all breaks in the Central Shanxi Plain Scanning is broken and is stopped in the time Tns Central Shanxi Plain, and Tns is:
Tns=Tn-Tk
If it is true to detect cycle signal, next cycle opens break period Tks and is:
Tks=Tk+Th0
I.e. from opening for the first time after the break period takes Tk, clock timer is that timing opens interruption to Tks, and weight after resetting New to start timing, timing is broken to Central Shanxi Plain during Tns, so that the synchrotimer time is corrected be subject to cycle time voltage crosses zero.
It repeats the above process.If the upper cycle signal detected is true, when this cycle judges, discriminator signal is Vacation or the cycle time detected are more than setting cycle time error Tzv or clock meter compared with the average value Tz of cycle time When device timing to close break period setting value Tns when, voltage zero-cross inspection survey the non-saltus step of mould block ﹙ V0 ﹚ output voltages, in not generating Disconnected, then when clock timer timing is to Tns, the Central Shanxi Plain is broken, and at this moment remembers that not counting cycle N is 1 and stores, when opening interruption next time Between be to open the break period in last time to open interruption after Tz, hereafter every time judge the cycle signal true and false, if false or this detection Though discriminator signal is true but last time is false, then N is taken, will be restored after N+1 in memory, clock timer is not reset after interruption is opened Continue timing, at this moment, next cycle of setting opens the break period and temporarily uses out break period interim setting value Tkz instead:
Tkz=(N+1) × Tz
Meanwhile next cycle closes break period temporary use instead and closes break period interim setting value Tnz:
Tnz=Tkz+Tns
When clock timer to after Tkz, the time that point is screened in scanning can be obtained by simple computation.If it at this moment examines It is true to measure cycle signal, then takes out in memory N and preserve, and by N zero setting in memory, makes clock timer clocking value Ts For:(Ts-Tkz) at this moment → Ts takes the value of (N+1) × 20ms to be added in synchrotimer, and recover using setting value Tks with Tns, recovered clock timer are reset after interruption is opened.
The system synchronization time be synchrotimer time, along with currently just timing clock timer time.
When judging to screen the point signal true and false, Th0, Th1, Th2 are by being set with voltage comparator output voltage bound-time Definite value Ts0, Ts1, Ts2 make comparisons see it is whether overproof, come judge screen point a signal true and false, can select:Th0, Th1, Th2 are The cycle discriminator signal is true when true or Th0 is true, while when one of Th1, Th2 are true or when Th1, Th2 are true, it should Cycle discriminator signal is true, depending on to judging the different requirements of the cycle signal true and false.
If system fault, when N is more than a setting value between 25 to 70, boil medicine due to main controller in system and respectively Controller, Tz values and the N values of detection may be different, at this moment, power network frequency accumulated error, when may cause synchrotimer Between corrected when can not be by detecting true cycle signal, when it is true to detect cycle signal, using clock timer Clocking value at Tkz is directly added in synchrotimer, to reduce the asynchronous time of system, power network normal operation situation Lower N is much smaller than 25.
The cycle time error Tzv of permission and the flip-flop transition setting value of voltage comparator output voltage, by test assessment Its average value is taken to obtain.
(4) illustrate:
Fig. 1 is that cycle screens data relationship schematic diagram;
Fig. 2 is cycle discriminator circuit structure diagram;
Fig. 3 is the circuit structure block diagram of Traditional Chinese medicine decocting room intelligence control system.
(5) specific embodiment:
Fig. 3 is that Traditional Chinese medicine decocting room intelligent control system circuit block diagram includes:10 ﹚ of Zhu Kong Qi ﹙, communications electronics are opened 11 ﹚ of Guan ﹙, 12 ﹚ of switch Qu dynamic model Kuai ﹙, 13 ﹚ of electricity Nao ﹙, cycle screen 14 ﹚, Jian medicine Kong Qi ﹙ of electricity Lu ﹙, 15 ﹚.Wherein communications electronics 11 ﹚ of Kai Guan ﹙, 12 ﹚ of switch Qu dynamic model Kuai ﹙, cycle screen Dan Pian Ji ﹙ U0 ﹚ in 14 ﹚ and Fig. 2 of electricity Lu ﹙ and are respectively included in control of boiling medicine In 15 ﹚ and Zhu Kong Qi ﹙ of Qi ﹙, 10 ﹚ processed, 11 ﹚ of communications electronics Kai Guan ﹙ use bidirectional triode thyristor as switch.
Fig. 2 is the structure diagram that cycle screens 14 ﹚ of electricity Lu ﹙, by:Shu enters electricity Lu ﹙ S0 ﹚, voltage zero-cross Jian and surveys Mo Kuai ﹙ V0 ﹚, electricity pressure comparator ﹙ V1 ﹚ and electricity pressure comparator ﹙ V2 ﹚ are formed.Dan Pian Ji ﹙ U0 ﹚ refer to 15 ﹚ and Zhu Kong Qi ﹙ of Jian medicine Kong Qi ﹙ Microcontroller in 10 ﹚.Shu enters electricity Lu ﹙ S0 ﹚ for the partial pressure by mains AC voltage by resistance and diode, is converted to electricity The input voltage for pressing comparator suitably stable.Single piece machine ﹙ U0 ﹚ use 89C55WD, electricity pressure comparator ﹙ V1 ﹚, electricity pressure comparator ﹙ For V2 ﹚ using dedicated voltage comparator LM339, reference voltage is to be compared using the regulator circuit of voltage-stabiliser tube come burning voltage The threshold voltage of device.
When mains AC voltage cycle signal zero passage, voltage zero-cross Jian surveys the output voltage saltus step of Mo Kuai ﹙ V0 ﹚, single Pian Ji ﹙ U0 ﹚ generate interruption, record the break period, while Dan Pian Ji ﹙ U0 ﹚ are additionally operable to scanning voltage Bi compare Qi ﹙ V1 ﹚ and voltage ratio The output voltage of compare Qi ﹙ V2 ﹚, bound-time is recorded when output voltage saltus step, for judging power network cycle signal so as to producing Raw synchronization time.
10 ﹚ of Zhu Kong Qi ﹙ are communicated by RS232 interface with 13 ﹚ of host computer electricity Nao ﹙.

Claims (2)

1. a kind of Traditional Chinese medicine decocting room intelligence control system, it is characterized in that, the power supply of electric medicine decocting tank is individually connect by bidirectional triode thyristor It is powered in bidirectional triode thyristor is controlled to make to load on its socket on power network, and after being isolated by control for decocting medicinal herbs by photoelectronic coupler Power and time are run by program of boiling medicine, and host computer computer shows patient's name by LED screen at the end of boiling medicine;In master switch Be followed by rectifier diode, system is using half wave communication through power line and half-wave power supply, in main controller and each control of boiling medicine Cycle discriminator circuit is respectively mounted in device, for the synchronization time of generation system, while one is respectively installed in its telecommunication circuit and leads to Believe electronic switch and its switch drive module;
The switch drive module of main controller and each control for decocting medicinal herbs be depressured from power network through resistance, cycle positive half-wave conducting just The diode connect is further isolated after cycle bears half-wave, is connected to comparator input terminal, and reference voltage is 100Mv to 200Mv, profit It is obtained with diode drop through electric resistance partial pressure, the output terminal of comparator is square-wave signal, it is turned on just again through cycle positive half-wave The positive square-wave signal that corresponding power network cycle bears half-wave is generated after the diode rectification connect, is connected to the I/O mouths of microcontroller, monolithic Traffic operation is performed when machine scanning is to positive square-wave signal, which is additionally operable to driving communications electronics switch;
Cycle discriminator circuit is the positive half cycle ascent stage using power network cycle, takes three to screen knowledge of the point realization to cycle signal Do not judge, the cycle time is recycled to establish synchronization time, and system sets clock timer and synchrotimer, if detecting phase Two adjacent cycle signals are true, then take out the clock timer timing time between this two adjacent cycle signal zero passages That is the cycle time is sequentially stored in cycle time memory cell, a cycle time is often stored in when being filled with 100 cycle time, The cycle time being stored at first is first removed, and calculates the average value Tz of the cycle time of deposit, is treated using the discriminating of Tz values Identify cycle signal;
Two comparators are respectively used to screen point 1, screen point 2, at the cycle zero passage of cycle positive half cycle ascent stage, that is, screen a little 0 set voltage zero-cross detection module, it using cycle positive half-wave signal through electric resistance partial pressure, diode further isolate negative half period, The clock end CLK of d type flip flop is sent into after signal condition, when cycle positive half-wave zero cross signal arrives, cycle letter immediately after Number rising edge makes d type flip flop Q ends, and microcontroller external interrupt mouth low level is interrupted so as to generate, and two comparators are set respectively for 0 It puts in cycle positive half cycle ascent stage, the examination point 1 at 35% to 50% place of crest voltage and the examination point 2 at 50% to 70% place;
Cycle signal determining process:After setting time opens interruption, clock timer resets and starts timing microcontroller, works as cycle During voltage zero-cross, the output voltage for being arranged on d type flip flop in the voltage zero-cross detection module for screening point 0 jumps vanishing, in generation It is disconnected, record its zero crossing break period Th0;Hereafter, the output electricity of first voltage Bi compare Qi ﹙ V1 ﹚ at point 1 is screened in microcontroller scanning Pressure, when all wave voltages reach first voltage than threshold voltage compared with device ﹙ V1 ﹚, output voltage saltus step from high to low, scanning record Its bound-time Th1;Similary scanning record screens second voltage Bi compare Qi ﹙ V2 ﹚ output voltage bound-time Th2 at point 2, described If bound-time Th1 and Th2 in the range of allowable error, detect that the discriminator signal screened and at point 1 and screened at point 2 is equal It is true, is otherwise vacation, when above-mentioned judgement discriminator signal is true, calculates this cycle signal zero passage and believe with adjacent preceding once screen The average value Tz of itself and cycle time are made ratio by the clock timer timing time Tzu between cycle signal zero passage when number being true Compared with if being no more than and setting cycle time error Tzv at this moment cycle signal preserves Tzu and take 20ms and time synchronisation to be true Device timing time is added, in the value deposit synchrotimer that will add up;
When clock timer starts timing with cycle voltage zero-cross, then timing to 16ms opens break period setting between 18.5ms Open interruption during value Tk, clock timer timing to 25ms to Central Shanxi Plain during pass break period setting value Tn between 27ms is broken;
When detecting first cycle voltage zero-cross, the output voltage for being arranged on the voltage zero-cross detection module for screening point 0 is jumped Becoming, interrupted so as to generate, the time T0 for taking out cycle voltage over zero is preserved, and clock timer is reset and starts timing, this Shi Zhoubo time voltage crosses zeros Th0 is 0, and microcontroller scans and judges discriminator signal, and the value of Th0, Th1 and Th2 must add The cycle time, 20ms subtracted out the difference of break period setting value Tk, if three discriminator signals are true, all wave voltages of taking-up The time T0 of zero crossing is stored in as initial time in synchrotimer, detects when opening interruption of cycle voltage over zero next time Between take Tk, otherwise there are one discriminator signal be fictitious time, at this time the clock timer time must add T0, continue to detect;
Then it is that 20ms is taken to subtract when it is true to detect first and second adjacent cycle voltage zero-cross, judgement cycle signal The difference of Th0 is added with synchrotimer timing time, and clock timer is reset after opening interruption, and it is false otherwise to judge cycle signal When, the clock timer time must be plus T1, T1=T0+Tk at this time, and first cycle of detection, believes when detecting first cycle again Number be very after, recover above-described cycle signal determining;
If it is false to detect cycle signal, open the break period next time after this opens the break period, through be delayed cycle when Between average value Tz when open interruption, and open interrupt after be delayed Tns when the Central Shanxi Plain break, it is when cycle signal is discriminated to set and close the break period Not Wei fictitious time, break and stop to scan closing the break period Tns Central Shanxi Plain, Tns is:
Tns=Tn-Tk
If it is true to detect cycle signal, next cycle opens break period Tks and is:
Tks=Tk+Th0
I.e. from opening for the first time after the break period takes Tk, clock timer is that timing opens interruption to Tks, and is opened again after resetting Beginning timing, timing are broken to Central Shanxi Plain during Tns;
Above-mentioned cycle signal determining process is repeated, if the upper cycle signal detected is true, when this cycle judges, is discriminated Level signal is false, then when clock timer timing is to Tns, the Central Shanxi Plain is broken, and at this moment remembers that cycle N is 1 and stores, open next time in The disconnected time is to open the break period in last time to open interruption after Tz, hereafter every time judge the cycle signal true and false, if false or this Though detection discriminator signal is true but last time is false, then stored N is taken out, and will be restored after N+1 in the memory of storage N, Clock timer open interrupt after do not reset continuation timing, at this moment, next cycle of setting is opened during the break period temporarily uses instead open The disconnected time interim setting value Tkz:
Tkz=(N+1) × Tz
Meanwhile next cycle closes break period temporary use instead and closes break period interim setting value Tnz:
Tnz=Tkz+Tns
When clock timer to after Tkz, if at this moment detecting that cycle signal is true, take out N in memory and preserve, and By N zero setting in memory, the clock timer clocking value Ts is set to be:Ts-Tkz is first calculated again with results modification Ts values are calculated, at this moment The value of (N+1) × 20ms is taken to be added in synchrotimer, and is recovered using setting value Tks and Tns, recovered clock timer is being opened It is reset after interruption;
The system synchronization time be synchrotimer time, along with currently just timing clock timer time;
And it selects:Cycle discriminator signal is true when Th0, Th1, Th2 are true or Th0 is true, while one of Th1, Th2 are When true or when Th1, Th2 are true, cycle discriminator signal is true, if N is more than a setting value between 25 to 70, is used Clocking value of the clock timer at Tkz is directly added in synchrotimer.
2. Traditional Chinese medicine decocting room according to claim 1 intelligence control system, it is characterised in that including:
10 ﹚ of Zhu Kong Qi ﹙, 11 ﹚ of communications electronics Kai Guan ﹙, 12 ﹚ of switch Qu dynamic model Kuai ﹙, 13 ﹚ of electricity Nao ﹙, cycle are screened 14 ﹚ of electricity Lu ﹙, are decocted 11 ﹚ of medicine Kong Qi ﹙ 15 ﹚, wherein Dan Pian Ji ﹙ U0 ﹚ and communications electronics Kai Guan ﹙, 12 ﹚ of switch Qu dynamic model Kuai ﹙ and cycle screen electricity Lu ﹙ 14 ﹚ are respectively included in 15 ﹚ and Zhu Kong Qi ﹙ of Jian medicine Kong Qi ﹙, 10 ﹚;
Cycle screen 14 ﹚ of electricity Lu ﹙ by:Shu enters electricity Lu ﹙ S0 ﹚, voltage zero-cross Jian and surveys Mo Kuai ﹙ V0 ﹚, screens first voltage ratio at point 1 Compare Qi ﹙ V1 ﹚ are formed with second voltage Bi compare Qi ﹙ V2 ﹚ at point 2 are screened, and Shu enters electricity Lu ﹙ S0 ﹚ for mains AC voltage to be led to The partial pressure of resistance and diode is crossed, is converted to the suitably stable input voltage of voltage comparator.
CN201610447670.7A 2016-06-20 2016-06-20 Traditional Chinese medicine decocting room intelligence control system Active CN105929748B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610447670.7A CN105929748B (en) 2016-06-20 2016-06-20 Traditional Chinese medicine decocting room intelligence control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610447670.7A CN105929748B (en) 2016-06-20 2016-06-20 Traditional Chinese medicine decocting room intelligence control system

Publications (2)

Publication Number Publication Date
CN105929748A CN105929748A (en) 2016-09-07
CN105929748B true CN105929748B (en) 2018-05-22

Family

ID=56831391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610447670.7A Active CN105929748B (en) 2016-06-20 2016-06-20 Traditional Chinese medicine decocting room intelligence control system

Country Status (1)

Country Link
CN (1) CN105929748B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4361273A (en) * 1981-02-25 1982-11-30 Levine Michael R Electronic humidity control
CN101447847A (en) * 2008-06-19 2009-06-03 张广涵 Method for time base determination of simple and convenient multi-node synchrosystem and system thereof
CN102571150A (en) * 2011-03-22 2012-07-11 张广涵 Time-sharing communication system on basis of power grid
CN102929316A (en) * 2012-11-12 2013-02-13 张金木 Measurement and control system for temperature, humidity and illuminance
CN203722894U (en) * 2014-03-10 2014-07-16 成都芯源系统有限公司 Driving circuit for lighting system and timing circuit thereof
CN104360144A (en) * 2014-12-08 2015-02-18 广东美的环境电器制造有限公司 Method for determining zero crossing point of alternating current signal and system for determining zero crossing point of alternating current signal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4361273A (en) * 1981-02-25 1982-11-30 Levine Michael R Electronic humidity control
CN101447847A (en) * 2008-06-19 2009-06-03 张广涵 Method for time base determination of simple and convenient multi-node synchrosystem and system thereof
CN102571150A (en) * 2011-03-22 2012-07-11 张广涵 Time-sharing communication system on basis of power grid
CN102929316A (en) * 2012-11-12 2013-02-13 张金木 Measurement and control system for temperature, humidity and illuminance
CN203722894U (en) * 2014-03-10 2014-07-16 成都芯源系统有限公司 Driving circuit for lighting system and timing circuit thereof
CN104360144A (en) * 2014-12-08 2015-02-18 广东美的环境电器制造有限公司 Method for determining zero crossing point of alternating current signal and system for determining zero crossing point of alternating current signal

Also Published As

Publication number Publication date
CN105929748A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN106094620B (en) Remote analog amount acquires alarm system
CN105931414B (en) A kind of Warehouse Fire alarm control system
CN105894789B (en) The Automatic meter reading system of tap water supply pipe network
CN105929748B (en) Traditional Chinese medicine decocting room intelligence control system
CN105872112B (en) A kind of Traditional Chinese medicine decocting room Telecommunications Control System
CN106054635B (en) Electrical device intelligent control system in cell home services
CN106100782B (en) A kind of signal synchronous collection system
CN106123985B (en) A kind of flow signal synchronous
CN106228730A (en) A kind of fire alarm control system
CN105867160B (en) A kind of home furnishings intelligent networked control systems
CN106023570B (en) Automatic meter reading system for tap water supply pipe network
CN105955050B (en) Home furnishings intelligent networked control systems
CN106054712B (en) Electrical device intelligent control system in community service
CN106092152B (en) A kind of warehouse humiture information acquisition system
CN106054986B (en) Crop greenhouse atmosphere control system
CN106125594B (en) Hotel intelligence control system
CN105869543B (en) The column LED Chinese character placards of both sides of the road
CN106102227B (en) Building roof control system of lamp decoration
CN106097683B (en) Distribution electric quantity parameter acquisition system
CN105955222B (en) Household remote intelligent control system
CN106101237B (en) A kind of green house of vegetables temperature and humidity control system
CN106100946B (en) A kind of household electric appliances remote control system
CN105869538B (en) Road roadside LED Chinese character advertisement placards
CN105911927B (en) Dormitory intelligent control system
CN105847100B (en) Mobile phone household intelligent 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180411

Address after: 350208 Shop No. 4, building materials market, building materials market, Fuzhou, Changle District, Changle District, Changle District

Applicant after: FUZHOU ZHUNDIAN INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 350004 Taijiang, Fujian District, Riverside Road, No., No. 180

Applicant before: FUZHOU TAIJIANG DISTRICT SUPERMAN ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201124

Address after: 221000 No.6 Xingye Road, Ningjiang Industrial Park, Suining County, Xuzhou City, Jiangsu Province

Patentee after: Jiangsu chuangyoujia New Energy Technology Co.,Ltd.

Address before: Shop 906, building 4, hardware, furniture and building materials market, Heshang Town, Changle District, Fuzhou City

Patentee before: FUZHOU ZHUNDIAN INFORMATION TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240816

Address after: 221200 No. 58, Huanyu West Road, Suihe street, Suining County, Xuzhou City, Jiangsu Province

Patentee after: Jiangsu Shengmu Business Service Co.,Ltd.

Country or region after: China

Address before: 221000 No.6 Xingye Road, Ningjiang Industrial Park, Suining County, Xuzhou City, Jiangsu Province

Patentee before: Jiangsu chuangyoujia New Energy Technology Co.,Ltd.

Country or region before: China