One-wire three-color lamp and control method

By designing a first-line three-color lamp, the processor and input module are used to control the on-off state of the three-color lamp, the problem of many existing three-color lamp control ports is solved, and the effective working status indication is achieved when there are not many PLC output ports, reducing system costs and improving reliability.

CN110933806BActive Publication Date: 2025-04-25SUZHOU PUWANG ZHIGONG SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201911321302.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-20
Publication Date
2025-04-25
Estimated Expiration
2039-12-20

AI Technical Summary

Technical Problem

Due to the many control ports of existing multi-layer tri-color lamps, it is difficult to apply to situations where there are not many PLC output ports, making it difficult to achieve effective operating status indication on some industrial equipment.

Method used

A first-line three-color lamp is designed. Through the combination of power supply, input module, processor and three-color lamp, the processor and input module are used to control the on-off state of the three-color lamp, and the control of any combination of the three-color lamp is realized.

Benefits of technology

This design reduces the demand for controller output ports, reduces the cost of controlling signal lines, improves the reliability of the system, and is suitable for PLC environments with few output ports.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110933806B_ABST
    Figure CN110933806B_ABST
Patent Text Reader

Abstract

The present invention discloses a one-wire three-color lamp and a control method. The one-wire three-color lamp comprises a power supply; an input module for inputting an external signal; a processor, an input end of which is connected to an output end of the input module; and a three-color lamp, which comprises three indicator lights of different colors, each of which has two input ends, respectively connected to the power supply and the output end of the processor. The one-wire three-color lamp can control the on and off of any combination of the three-color lamps using one control signal, thereby reducing the demand for controller output ports in industrial product design, reducing the cost of control signal lines, and improving system reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a one-wire three-color lamp and a control method. Background Art

[0002] The three-color indicator lights that indicate the working status of industrial equipment mostly use multi-layer three-color lights, and each light uses a control signal to control the on and off of the three-color light. There are many control ports used, so the existing three-color indicator lights are not suitable for situations where there are not many PLC output ports. Summary of the invention

[0003] The object of the present invention is to provide a one-wire three-color lamp suitable for a PLC with few output ports.

[0004] To achieve the above object, the technical solution adopted by the present invention is: a one-line three-color lamp, which includes

[0005] power supply;

[0006] An input module, which is used to input external signals;

[0007] a processor, whose input end is connected to the output end of the input module;

[0008] The three-color lamp includes three indicator lights of different colors, each of which has two input ends, which are respectively connected to the power supply and the output end of the processor.

[0009] In another preferred embodiment, the power supply includes a voltage source and a step-down circuit for reducing the voltage of the voltage source to a low voltage suitable for the three-color lamp, the input end of the step-down circuit is connected to the output end of the voltage source, and the output end thereof is respectively connected to each of the indicator lights and the processor.

[0010] In another preferred embodiment, the voltage source is a 7-36V voltage source, and the voltage output by the step-down circuit is 5V.

[0011] In another preferred embodiment, the processor is a STM8S003F3P6 processor.

[0012] In another preferred embodiment, the three-color light is an LED three-color indicator light.

[0013] The present invention provides a control method for the above-mentioned one-line three-color lamp, wherein the input module uses a processor pull-up resistor, and when there is no input, the U0V level is set, and the external control signal is controlled by a collector open-drain mode. When the control signal is idle, the input end of the one-line three-color lamp is at a 0 level, and the three-color lamps are respectively a first color lamp, a second color lamp and a third color lamp. The U0V level corresponds to a number 1, and the 0V level meter is a number 0. The control timing of a cycle is divided into a t0 / starting period, a first color period, a second color period, a third color period, and an ending period, wherein the starting period and the ending period include t1, t2 and t3, t4 periods respectively, the first color period, the second color period, and the third color period all include ti and tj periods, the time length is T1-T3 milliseconds, t0 is greater than or equal to T2 milliseconds, t4 is greater than or equal to T2 milliseconds, t0+t4≥2T2 milliseconds is an idle control state, and ti+tj is equal to 2T1-2T3 milliseconds; the method comprises the following steps:

[0014] The processor input terminal is at 0 level in idle state, digital 0, and greater than 100 milliseconds. When the start control signal is detected in idle state, the high level T1 millisecond ≤ t1 ≤ T3 milliseconds and the low level T1 millisecond ≤ t2 ≤ T3 milliseconds, the on and off state of each light in the three-color light is as follows:

[0015] First color light: If the timing is within the first color period, the high level T1 ms ≤ ti ≤ T3 ms, the low level T1 ms ≤ ti ≤ T3 ms, then the red light is ready to be controlled to turn on; if the high level ti = 0 ms, the low level 2T1 ms ≤ ti ≤ 2T3 ms, then the red light is ready to be controlled to turn off. At this time, only the control mark of the red light is stored, and the corresponding light has not been actually controlled to turn on or off;

[0016] Second color light: If the timing is within the second color period, the high level T1 ms ≤ ti ≤ T3 ms, the low level T1 ms ≤ ti ≤ T3 ms, then the control is ready for the yellow light to turn on; if the high level ti = 0 ms, the low level 2T1 ms ≤ ti ≤ 2T3 ms, then the control is ready for the yellow light to turn off. At this time, it only stores the control mark of the yellow light, and has not yet actually controlled the corresponding light to turn on or off;

[0017] Third color light: If the timing is within the third color period, high level T1 ms ≤ ti ≤ T3 ms, low level T1 ms ≤ ti ≤ T3 ms, then the control ready green light is on; if high level ti = 0 ms, low level 2T1 ms ≤ ti ≤ 2T3 ms, then the control ready green light is off. At this time, it only stores the control mark of the green light, and has not really controlled the corresponding light to be on or off;

[0018] When the control signals of the three lights are ended, the "End" end control signal is detected. Only the high level T1 millisecond ≤ ti ≤ T3 milliseconds and the low level T1 millisecond ≤ ti ≤ T3 milliseconds can truly control the states of the three lights stored above, otherwise the control timing is discarded.

[0019] Another preferred mode is that U0V=5V.

[0020] In another preferred embodiment, the first color light, the second color light and the third color light are red, yellow and green respectively, T1=30, T2=50, T3=40, t1=t2=t3, and the time length is 30-40 milliseconds, t0 is greater than or equal to 50 milliseconds, t4 is greater than or equal to 50 milliseconds, t0+t4≥100 milliseconds is an idle control state, and ti+tj is equal to 60-80 milliseconds;

[0021] The processor input terminal is in an idle state at 0 level, digital 0, and greater than 100 milliseconds. When the start control signal is detected in the idle state, the high level is 30 milliseconds ≤ t1 ≤ 40 milliseconds and the low level is 30 milliseconds ≤ t2 ≤ 40 milliseconds, the on and off state of each light in the three-color light is as follows:

[0022] First color light: If in the red time period, the high level is 30 milliseconds ≤ ti ≤ 40 milliseconds, and the low level is 30 milliseconds ≤ tj ≤ 40 milliseconds, then the red light is ready to be controlled to turn on; if the high level ti = 0 milliseconds, and the low level is 60 milliseconds ≤ tj ≤ 80 milliseconds, then the red light is ready to be controlled to turn off. At this time, only the control mark of the red light is stored, and the corresponding light has not been actually controlled to turn on or off;

[0023] Second color light: If in the yellow time period, the high level is 30ms≤ti≤40ms, and the low level is 30ms≤tj≤40ms, the control is ready for the yellow light to turn on; if the high level ti=0ms, and the low level is 60ms≤tj≤80ms, the control is ready for the yellow light to turn off. At this time, it only stores the control mark of the yellow light, and has not yet actually controlled the corresponding light to turn on or off;

[0024] The third color light: If in the green time period of the timing sequence, the high level is 30 milliseconds ≤ ti ≤ 40 milliseconds, and the low level is 30 milliseconds ≤ tj ≤ 40 milliseconds, the control ready green light is on; if the high level ti = 0 milliseconds, and the low level is 60 milliseconds ≤ tj ≤ 80 milliseconds, the control ready green light is off. At this time, it only stores the control mark of the green light, and has not really controlled the corresponding light to be on or off;

[0025] When the control signals of the three lights are ended, the control signal is ended at the end of the detection period. Only the high level of 30 milliseconds ≤ t3 ≤ 40 milliseconds and the low level of 30 milliseconds ≤ t4 ≤ 40 milliseconds can truly control the states of the three lights stored above, otherwise the control timing will be discarded.

[0026] Due to the application of the above technical scheme, the present invention has the following advantages compared with the prior art: one-line three-color lights can use one control signal to control the lighting and extinguishing of any combination of the three-color lights, reducing the demand for controller output ports in industrial product design, reducing the cost of control signal lines, and improving system reliability. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Attached Figure 1 is a timing diagram of the present invention;

[0028] Attached Figure 2 It is a principle block diagram of the present invention;

[0029] Attached Figure 3 It is a circuit diagram of the present invention. DETAILED DESCRIPTION

[0030] The following will describe in detail the preferred embodiments of the present invention:

[0031] like Figure 2-3 As shown, a one-wire three-color lamp includes a power supply; an input module for inputting external signals; a processor, whose input end is connected to the output end of the input module; and a three-color lamp, which includes three indicator lights of different colors, each of which has two input ends, which are respectively connected to the output ends of the power supply and the processor. The power supply includes a voltage source and a step-down circuit for reducing the voltage of the voltage source to a low voltage suitable for the three-color lamp, the input end of the step-down circuit is connected to the output end of the voltage source, and the output end thereof is respectively connected to each of the indicator lights and the processor. The voltage source is a 7-36V voltage source, and the voltage output by the step-down circuit is 5V. The processor is an STM8S003F3P6 processor. The three-color lamp is an LED three-color indicator light.

[0032] The control method of the above-mentioned one-line three-color lamp is as follows: the input module uses a processor pull-up resistor, and when there is no input, it is at U0V level. The external control signal is controlled by collector open-drain mode. When idle, the control signal is turned on, and the input end of the one-line three-color lamp is at 0 level. The three-color lamps are the first color lamp, the second color lamp and the third color lamp. The U0V level corresponds to the number 1, and the 0V level meter is the number 0. The control timing of a cycle is divided into t0 / start period, red period, yellow period, green period, and end period, wherein the start period and the end period include t1, t2 and t3, t4 respectively. Time period, red time period, yellow time period and green time period all include ti and tj time periods, the time length is T1-T3 milliseconds, t0 is greater than or equal to T2 milliseconds, t4 is greater than or equal to T2 milliseconds, t0+t4≥2T2 milliseconds is the idle control state, ti+tj is equal to 2T1-2T3 milliseconds; T1=30, T2=50, T3=40, t1=t2=t3, and the time length is 30~40 milliseconds, t0 is greater than or equal to 50 milliseconds, t4 is greater than or equal to 50 milliseconds, t0+t4≥100 milliseconds is the idle control state, ti+tj is equal to 60~80 milliseconds;

[0033] The processor input terminal is in an idle state at 0 level, digital 0, and greater than 100 milliseconds. When the start control signal is detected in the idle state, the high level is 30 milliseconds ≤ t1 ≤ 40 milliseconds and the low level is 30 milliseconds ≤ t2 ≤ 40 milliseconds, the on and off state of each light in the three-color light is as follows:

[0034] Red light: If the high level is 30ms≤ti≤40ms and the low level is 30ms≤tj≤40ms during the red time period, the red light is ready to be turned on; if the high level ti=0ms and the low level is 60ms≤tj≤80ms, the red light is ready to be turned off. At this time, only the control mark of the red light is stored, and the corresponding light is not actually turned on or off.

[0035] Yellow light: If the high level is 30ms≤ti≤40ms and the low level is 30ms≤tj≤40ms during the yellow time period, the yellow light is ready to turn on; if the high level ti=0ms and the low level is 60ms≤tj≤80ms, the yellow light is ready to turn off. At this time, it only stores the control mark of the yellow light, and the corresponding light is not actually turned on or off.

[0036] Green light: If within the green time period, the high level is 30 milliseconds ≤ ti ≤ 40 milliseconds, and the low level is 30 milliseconds ≤ tj ≤ 40 milliseconds, the control is ready for the green light to turn on; if the high level ti = 0 milliseconds, and the low level is 60 milliseconds ≤ tj ≤ 80 milliseconds, the control is ready for the green light to turn off. At this time, it only stores the control mark of the green light, and has not yet actually controlled the corresponding light to turn on or off;

[0037] When the control signals of the three lights are finished, the control signals are finished during the detection period. Only when the high level is 30ms≤t3≤40ms and the low level is 30ms≤t4≤40ms, the states of the three lights stored above can be truly controlled. Otherwise, the control sequence is abandoned (such as Figure 1 as shown).

[0038] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with this technology to understand the contents of the present invention and implement them accordingly. They cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A one-wire three-color lamp, characterized in that: It includes power supply; An input module, which is used to input external signals; a processor, whose input end is connected to the output end of the input module; A three-color lamp, comprising three indicator lights of different colors, each of which has two input terminals, connected to the power supply and the output terminal of the processor respectively; The power supply includes a voltage source and a step-down circuit for reducing the voltage of the voltage source to a low voltage suitable for the three-color lamp, the input end of the step-down circuit is connected to the output end of the voltage source, and the output end thereof is respectively connected to each of the indicator lights and the processor; the voltage source is a 7-36V voltage source, and the voltage output by the step-down circuit is 5V; The control method of the one-line three-color lamp is as follows: the input module uses a processor pull-up resistor, the level is U0V when there is no input, the external control signal is controlled by a collector open-drain method, the control signal is turned on when idle, and the input end of the one-line three-color lamp is 0 level, the three-color lamps are respectively a first color lamp, a second color lamp and a third color lamp, the U0V level corresponds to the number 1, the 0V level corresponds to the number 0, and the control timing of a cycle is divided into t0, a start period, a first color period, a second color period, a third color period, and an end period, wherein the start period and the end period include t1, t2 and t3, t4 periods respectively, the first color period, the second color period, and the third color period all include ti and tj periods, the time length is T1-T3 milliseconds, t0 is greater than or equal to T2 milliseconds, t4 is greater than or equal to T2 milliseconds, t0+t4≥2T2 milliseconds is an idle control state, and ti+tj is equal to 2T1 to 2T3 milliseconds; It includes the following steps: The processor input terminal is at 0 level in idle state, digital 0, and greater than 100 milliseconds. When the start control signal is detected in idle state, the high level T1 millisecond ≤ t1 ≤ T3 milliseconds and the low level T1 millisecond ≤ t2 ≤ T3 milliseconds, the on and off state of each light in the three-color light is as follows: First color light: If the timing is within the first color period, the high level T1 ms ≤ ti ≤ T3 ms, the low level T1 ms ≤ tj ≤ T3 ms, then the red light is ready to be controlled to turn on; if the high level ti = 0 ms, the low level 2T1 ms ≤ tj ≤ 2T3 ms, then the red light is ready to be controlled to turn off. At this time, only the control mark of the red light is stored, and the corresponding light has not been actually controlled to turn on or off; Second color light: If the timing is within the second color period, the high level T1 ms ≤ ti ≤ T3 ms, the low level T1 ms ≤ tj ≤ T3 ms, then the yellow light is ready to be controlled to turn on; if the high level ti = 0 ms, the low level 2T1 ms ≤ tj ≤ 2T3 ms, then the yellow light is ready to be controlled to turn off. At this time, only the control mark of the yellow light is stored, and the corresponding light has not been actually controlled to turn on or off; Third color light: If the timing is within the third color period, high level T1 ms ≤ ti ≤ T3 ms, low level T1 ms ≤ tj ≤ T3 ms, then the green light is ready to be controlled to turn on; if high level ti = 0 ms, low level 2T1 ms ≤ tj ≤ 2T3 ms, then the green light is ready to be controlled to turn off. At this time, only the control mark of the green light is stored, and the corresponding light has not been actually controlled to turn on or off; When the control signals of the three lights are ended, the "End" end control signal is detected. Only when the high level T1 millisecond ≤ ti ≤ T3 milliseconds and the low level T1 millisecond ≤ tj ≤ T3 milliseconds can the states of the three lights stored above be truly controlled, otherwise the control timing is discarded.

2. The one-wire three-color lamp according to claim 1, characterized in that: The processor is a STM8S003F3P6 processor.

3. The one-wire three-color lamp according to claim 1, characterized in that: The three-color light is an LED three-color indicator light.

4. The one-wire three-color lamp according to claim 1, characterized in that: U0V=5V.

5. The one-wire three-color lamp according to claim 1, characterized in that: The first color light, the second color light and the third color light are red, yellow and green respectively, T1=30, T2=50, T3=40; t1=t2=t3, the time length is 30~40 milliseconds, t0 is greater than or equal to 50 milliseconds, t4 is greater than or equal to 50 milliseconds, t0+t4≥100 milliseconds is the idle control state, ti+tj is equal to 60~80 milliseconds; The processor input terminal is in an idle state at 0 level, digital 0, and greater than 100 milliseconds. When the start control signal is detected in the idle state, the high level is 30 milliseconds ≤ t1 ≤ 40 milliseconds and the low level is 30 milliseconds ≤ t2 ≤ 40 milliseconds, the on and off state of each light in the three-color light is as follows: First color light: If in the red time period, the high level is 30 milliseconds ≤ ti ≤ 40 milliseconds, and the low level is 30 milliseconds ≤ tj ≤ 40 milliseconds, then the red light is ready to be controlled to turn on; if the high level ti = 0 milliseconds, and the low level is 60 milliseconds ≤ tj ≤ 80 milliseconds, then the red light is ready to be controlled to turn off. At this time, only the control mark of the red light is stored, and the corresponding light has not been actually controlled to turn on or off; Second color light: If in the yellow time period, the high level is 30 milliseconds ≤ ti ≤ 40 milliseconds, and the low level is 30 milliseconds ≤ tj ≤ 40 milliseconds, then the yellow light is ready to be controlled to turn on; if the high level ti = 0 milliseconds, and the low level is 60 milliseconds ≤ tj ≤ 80 milliseconds, then the yellow light is ready to be controlled to turn off. At this time, only the control mark of the yellow light is stored, and the corresponding light has not been actually controlled to turn on or off; The third color light: If the high level is 30 milliseconds ≤ ti ≤ 40 milliseconds and the low level is 30 milliseconds ≤ tj ≤ 40 milliseconds during the green time period, the green light is ready to be controlled to turn on; if the high level ti = 0 milliseconds and the low level is 60 milliseconds ≤ tj ≤ 80 milliseconds, the green light is ready to be controlled to turn off. At this time, only the control mark of the green light is stored, and the corresponding light has not been actually controlled to turn on or off; When the control signals of the three lights are ended, the control signal is ended at the end of the detection period. Only the high level of 30 milliseconds ≤ t3 ≤ 40 milliseconds and the low level of 30 milliseconds ≤ t4 ≤ 40 milliseconds can truly control the states of the three lights stored above, otherwise the control timing will be discarded.

Citation Information

Patent Citations

  • Single line transmission LED color -changing lamp

    CN205726536U

  • One-wire system three-color lamp

    CN210986518U