Light synchronization method, device, equipment and storage medium for safety light grid
By determining and calibrating the shading scanning cycle in the safety grating and using timer reset to maintain synchronization, the problem of synchronization head signal interference when the gratings are installed close to each other is solved, and stable and accurate shading detection of the grating system is achieved.
Patent Information
- Application Number
- CN202410958192.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-07-16
AI Technical Summary
When existing safety light gratings are installed close to each other, the synchronization head signals of the transmitting and receiving ends are easily interfered with, resulting in synchronization loss or misjudgment, affecting the stability and accuracy of the light blocking detection function.
By determining the light-shielding scanning cycle at the transmitting and receiving ends of the safety light grid, the transmitting end triggers the synchronization head signal, and the receiving end determines the light source type and calibrates the scanning cycle to ensure that the scan is carried out according to the calibration cycle when the synchronization head signal is lost. The timer is reset to maintain synchronization, and the number of lamp beads and execution time are set to reduce interference, so as to achieve synchronization between the transmitting and receiving ends.
It effectively reduces the failure of shading detection caused by synchronization head signal interference, ensures the continuity and stability of the communication system of the grating system, and improves the synchronization and anti-interference ability of the shading timing.
Smart Images

Figure CN118915179B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial safety technology, and in particular to an optical synchronization method, device, equipment and storage medium for a safety grating. Background Art
[0002] Safety light barriers, also known as photoelectric safety devices (also known as safety protectors, punch protectors, and infrared safety devices), emit infrared light to create a protective light curtain. When the light curtain is blocked, the device sends a blackout signal, halting potentially hazardous machinery. Therefore, safety light barriers are commonly used in modern factories, where humans and machines collaborate on potentially dangerous machinery or in hazardous areas, effectively preventing accidents and reducing overall costs. Existing safety light barriers can also be installed on both sides of elevator and subway doors to prevent personal injury.
[0003] According to various assembly scenarios of safety light barriers, a light barrier includes a transmitter and a receiver. If two light barriers are installed very close to each other, there will be two transmitters and two receivers. Since the safety light barrier is installed on the door, for example, when the door is opened and it overlaps or approaches the light barrier next door, the light emitted by the transmitter may be received by the receiver of the same light barrier. Understandably, the synchronization head of light barrier A may be interfered with by the light from light barrier B, causing the synchronization head signal of light barrier A to be lost or misjudged, resulting in the receiver of light barrier A being unable to synchronize with the lighting timing of the transmitter, causing the receiver to mistakenly detect the light blocking state, or the response time to be prolonged, which in turn causes the light blocking detection function of the light barrier to fail at random periods of time. Summary of the Invention
[0004] The present invention provides a method, device, equipment and storage medium for optical synchronization of a safety grating, aiming to solve at least one of the above technical problems.
[0005] The present invention provides a light synchronization method for a safety grating, comprising:
[0006] The transmitting end and the receiving end of the safety light barrier determine the light-shielding scanning cycle of the timer;
[0007] The transmitting end triggers the transmission of a synchronization header signal according to the light shielding scanning cycle;
[0008] The receiving end determines the light source type based on the pulse cycle time of the synchronization header signal, and judges whether the light source type of the synchronization header signal belongs to a preset light source type;
[0009] If so, the receiving end performs shading detection and calibrates the shading scanning period of the timer so that when the receiving end cannot detect the synchronization head signal of the preset light source type, it scans according to the calibrated shading scanning period to achieve synchronization between the transmitting end and the receiving end.
[0010] According to the present invention, a light synchronization method for a safety grating is provided, wherein when the receiving end fails to detect a synchronization header signal of a preset light source type, scanning is performed according to a calibrated light shielding scanning cycle, comprising:
[0011] Determining the number of consecutive signal losses of the synchronization header signal;
[0012] If the number of consecutive signal losses is less than a preset number, scanning is performed according to the calibrated light-shielding scanning cycle;
[0013] If the number of times the signal is lost continuously is not less than a preset number, the scanning is stopped to perform light blocking detection and a light blocking state signal is output.
[0014] According to a light synchronization method for a safety light grating provided by the present invention, if the above is the case, the receiving end performs light shielding detection, and further includes:
[0015] The receiving end turns off recognition of the synchronization header signal;
[0016] When the light shielding detection cycle ends, the receiving end restarts the recognition of the synchronization header signal.
[0017] According to a light synchronization method for a safety light grating provided by the present invention, calibrating the light shielding scanning period of the timer includes:
[0018] After each successful detection of the synchronization header signal, the timer is reset to restart counting.
[0019] According to a light synchronization method for a safety light grating provided by the present invention, determining the light shielding scanning period of the timer includes:
[0020] Determine the number of lamp beads and the execution time of each lamp;
[0021] Determine the cycle time corresponding to light A and light B in the safety light grid, wherein light A and light B are lights of different pulses;
[0022] Based on the number of lamp beads, the execution time, the preset task detection time, and the cycle times corresponding to light A and light B respectively, the shading scanning period corresponding to light A and the shading scanning period corresponding to light B are determined.
[0023] According to a light synchronization method for a safety light barrier provided by the present invention, performing light shading detection includes:
[0024] The receiving end analyzes the detected light intensity data to determine whether a light blocking event occurs based on the analysis result, wherein the light blocking event refers to an event in which an object blocks light.
[0025] If a light blocking event occurs, the receiving end outputs a light blocking state signal.
[0026] According to the optical synchronization method of a safety grating provided by the present invention, the duration of the first cycle of the A optical synchronization head signal pulse in the safety grating is 220us;
[0027] The duration of the second cycle of the synchronization head signal pulse of light A is 280u;
[0028] The duration of the first cycle of the B optical synchronization head signal pulse is 180us;
[0029] The duration of the second cycle of the B optical synchronization head signal pulse is 320us.
[0030] The present invention also provides an optical synchronization device for a safety grating, comprising:
[0031] A first determining module is used for the transmitting end and the receiving end of the safety grating to determine the light shielding scanning period of the timer;
[0032] A transmitting module, configured to trigger the transmitting end to transmit a synchronization header signal according to the light shielding scanning cycle;
[0033] a second determining module, configured to determine, at the receiving end, a light source type based on a pulse period of the synchronization header signal, and determine whether the light source type determined by the receiving end to be the synchronization header signal belongs to a preset light source type;
[0034] The detection module is used to, if so, the receiving end performs shading detection and calibrates the shading scanning period of the timer, so that when the receiving end cannot detect the synchronization head signal of the preset light source type, it scans according to the calibrated shading scanning period to achieve synchronization between the transmitting end and the receiving end.
[0035] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the optical synchronization method for the safety light grid as described above is implemented.
[0036] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the optical synchronization method of the safety light grid as described above is implemented.
[0037] The present invention provides a method, device, equipment, and storage medium for optical synchronization of a safety light grating, comprising: a transmitter and a receiver of the safety light grating determining a timer's light-shielding scanning period; the transmitter triggering transmission of a synchronization header signal according to the light-shielding scanning period; the receiver determining the light source type based on the pulse period of the synchronization header signal, and judging whether the light source type of the synchronization header signal belongs to a preset light source type; if so, the receiver performing light-shielding detection and calibrating the timer's light-shielding scanning period, so that when the receiver fails to detect the synchronization header signal of the preset light source type, it scans according to the calibrated light-shielding scanning period to achieve synchronization between the transmitter and the receiver. By calibrating the timer's light-shielding scanning period after each successful optical synchronization header recognition, it ensures that the timing is consistent with the last synchronization header signal synchronization time after the synchronization header signal is lost due to interference, thereby enabling the timer to serve as a backup transmitter and receiver light-shielding timing synchronization function, thereby achieving synchronization of the light-shielding timing of the transmitter and receiver. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced one by one below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 It is a schematic flow chart of the optical synchronization method of the safety grating provided by the present invention;
[0040] Figure 2 1 is a flow chart of a transmitting end according to an embodiment of the present invention;
[0041] Figure 3 1 is a flow chart of a receiving end according to an embodiment of the present invention;
[0042] Figure 4 It is a structural schematic diagram of the optical synchronization device of the safety grating provided by the present invention;
[0043] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0044] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0045] The terms used in one or more embodiments of the present invention are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of the present invention. The singular forms "a", "the" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.
[0046] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of the present invention, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, first may also be referred to as second, and similarly, second may be referred to as first, without departing from the scope of one or more embodiments of the present invention. Depending on the context, the term "if" as used herein may be interpreted as "when" or "when."
[0047] Figure 1 FIG. 1 is a flow chart of the optical synchronization method of the safety grating provided by the present invention. Figure 1 As shown, the optical synchronization method of the safety light grid includes:
[0048] Step S11, the transmitting end and the receiving end of the safety grating determine the light shielding scanning cycle of the timer;
[0049] Step S12, the transmitting end triggers the transmission of a synchronization header signal according to the light shielding scanning cycle;
[0050] It should be noted that after the initialization scan reaches the number of lamp beads, the light-shielding scanning cycle of the timer is determined according to the number of lamp beads.
[0051] Specifically, when the timer's light-blocking scan period is reached, the transmitter begins executing the light-on timing of optical synchronization to trigger the transmitter to transmit the synchronization header signal. For example, the timer's light-blocking scan period is 7.2ms. When 7.2ms is reached, the synchronization header signal is triggered. Optionally, a set of synchronization header timings are sent during the optical synchronization process. The synchronization functions are: (1) to distinguish whether the optical synchronization type is A light or B light. (2) to serve as the light-blocking scan synchronization timing between the transmitter and the receiver.
[0052] In addition, after the synchronization header signal of the transmitter is sent, the transmitter lights will light up from the first one and one by one to the last transmitter light. Optionally, the execution time of each light is pre-set to 200us (30us on, 170us off). After all the lights are lit one by one, the fault detection of the transmitter will be performed, such as power supply detection and driver chip select detection.
[0053] Step S13, the receiving end determines the light source type based on the pulse cycle time of the synchronization header signal, and judges whether the light source type of the synchronization header signal belongs to a preset light source type;
[0054] Specifically, the optical synchronization sequence is initiated by the transmitter. If the receiver does not receive the synchronization header signal, it does not perform the light shielding detection function and directly enters the light shielding state. Furthermore, when the receiver recognizes the synchronization header signal, the safety light barrier's receiver determines the light source type based on the synchronization header signal's pulse cycle time, and then determines whether the synchronization header signal's light source type falls within a preset light source type. For example, the synchronization header pulse cycle time determines whether it is light A or light B. This allows the receiver to filter out different light types using the synchronization header sequence for AB light. If light A is transmitted and light B is received, the receiver does not perform the light shielding detection sequence. The light shielding sequence is not executed until light A is recognized.
[0055] It should be noted that light A and light B are lights with different pulses. In a specific embodiment, the duration of the synchronization header signal pulses of light A and light B is determined by the execution time of each light. The execution time of each light is 200us. The duration of the first cycle of the synchronization header signal pulse of light A in the safety light barrier is 220us; the duration of the second cycle of the synchronization header signal pulse of light A is 280us; and the duration of the first cycle of the synchronization header signal pulse of light B is 180us. The duration of the second cycle of the synchronization header signal pulse of light B is 320us. Optionally, since the execution time of each light is 200us, the recognition accuracy error is ±5us, and the cycle time is staggered as much as possible from the execution time of a single light, but it cannot be too short. For example, if it is less than 180us, it is easy for the entire cycle to be in a full high-level state, resulting in inability to correctly identify the complete cycle and causing the synchronization header signal recognition to fail. However, the time cannot be set too long, as setting it too long will affect the response speed of the light shielding.
[0056] Step S14, if yes, the receiving end performs shading detection and calibrates the shading scanning period of the timer, so that when the receiving end cannot detect the synchronization head signal of the preset light source type, it scans according to the calibrated shading scanning period to achieve synchronization between the transmitting end and the receiving end.
[0057] Specifically, if the light source type is a preset one, the receiving end performs a light-blocking detection function to detect whether an object is blocking the light. Furthermore, after successfully identifying the synchronization header signal, the light-blocking scanning period of the corresponding timer on the receiving end needs to be calibrated. More specifically, after each successful synchronization header signal detection, the timer is reset to 0, restarting the count. It should be noted that due to the periodicity of the light signal, the timer will reach 0 again at the same time in the next cycle. If the transmitting end transmits data according to the same periodicity, the timer should be able to accurately indicate the reception time when the next optical synchronization header appears. Therefore, even if the optical synchronization header is lost within a cycle, since the timer has been calibrated, its count value will remain consistent with the count value at the previous synchronization header appearance. Therefore, the timer can serve as a backup light-blocking timing synchronization function between the transmitting and receiving ends, ensuring the continuity and stability of the communication system. If the receiving end fails to detect the synchronization header signal of the preset light source type, it scans according to the calibrated light-blocking scanning period to achieve synchronization between the transmitting and receiving ends.
[0058] For example, assume the optical signal has a period of T, and the position of the sync header signal within each period is t. When the sync header signal is detected at time t, the timer is reset to 0. Then, at the same time t+T in the next period, the timer again points to 0. If the transmitter sends data at the beginning of each period, t, then the next time the sync header signal appears at time t+2T, the timer again points to 0. This maintains synchronization. Even if the sync header is lost within a period, the timer is calibrated, ensuring accurate data transmission.
[0059] In addition, after the synchronization header signal is successfully recognized, the receiving end turns off the recognition of the synchronization header signal to prevent receiving the light-shielding lighting data, which would cause frequent interruptions and affect the timing accuracy of the light-shielding. When the light-shielding detection cycle ends, the receiving end turns on the synchronization header signal recognition again.
[0060] The embodiment of the present invention calibrates the light-shielding scanning period of the timer after each successful identification of the optical synchronization head, ensuring that after the synchronization head signal is lost due to interference, the timing time is consistent with the time of the last synchronization of the synchronization head signal, so that the timer can serve as a backup light-shielding timing synchronization function between the transmitter and the receiver, thereby achieving synchronization of the light-shielding timing of the transmitter and the receiver.
[0061] In one embodiment of the present invention, when the receiving end fails to detect the synchronization header signal of the preset light source type, scanning according to the calibrated light shielding scanning period includes:
[0062] Determine the number of consecutive signal losses of the synchronization head signal; if the number of consecutive signal losses is less than the preset number, scan according to the calibrated light-shielding scanning cycle; if the number of consecutive signal losses is not less than the preset number, stop scanning, perform light-shielding detection, and output a light-shielding status signal.
[0063] It should be noted that the number of consecutive signal losses refers to the number of consecutive synchronization header signal losses, wherein, when the synchronization header signal is successfully identified, the number of consecutive signal losses will be reset to 0. The preset number can be set according to actual conditions, for example, set to 100 times.
[0064] It should be noted that when the synchronization head of device A of the safety light barrier is interfered with by the optical signal of device B, the optical synchronization head of device A will be lost due to the interference. At this time, a backup timer will be used to perform periodic synchronous light blocking. Specifically, when the receiving end fails to detect the synchronization head signal of the preset light source type, it determines the number of consecutive signal losses of the synchronization head signal and then compares this number with the preset number. If the number of consecutive signal losses is less than the preset number, scanning is performed according to the calibrated light blocking scanning period. Optionally, since the timer has been recently calibrated and the light blocking scanning period is fixed, as long as the timer maintains the light blocking scanning period, the light blocking timing of the transmitting and receiving ends will be synchronized. At this time, as long as there are no obstacles blocking the light, the light barrier can remain in the light-transmitting state. Furthermore, if the number of consecutive signal losses is not less than the preset number, scanning is stopped and light blocking detection is performed. It should be noted that as the number of consecutive signal losses increases, the light blocking timing error between the transmitting and receiving ends will increase. At this point, the timer will no longer perform light blocking detection and output a light blocking status signal, and the safety light barrier enters the safe output state.
[0065] Through the above-mentioned scheme, the embodiment of the present invention realizes that after the synchronization head of the receiving end is lost due to interference, the number of consecutive signal losses of the lost synchronization head signal is counted. If the number of consecutive signal losses is less than the preset number, scanning is performed according to the calibrated light-shielding scanning cycle. At this time, the light-shielding timing of the transmitting end and the receiving end is also synchronized, so that the safety grating works normally.
[0066] In one embodiment of the present invention, determining the light shielding scanning period of the timer includes:
[0067] Determine the number of lamp beads and the execution time of each lamp; determine the cycle time corresponding to light A and light B in the safety light grid, where light A and light B are lights with different pulses; based on the number of lamp beads, the execution time, the preset task detection time, and the cycle time corresponding to light A and light B, determine the shading scanning period corresponding to light A and the shading scanning period corresponding to light B.
[0068] It should be noted that in order to reduce the problem of continuous long-term interference of light interference, for example, if the cycle time of light A and light B is the same (for example, the light-shielding scanning cycle of light A and light B is 7.1ms), as time deviates, when the two cycle times collide, the synchronization head signal will interfere continuously for many times, and it may take more than ten seconds to stagger the interference. In this way, the receiving end is likely to be in a light-shielding state for more than ten seconds, and the above-mentioned timer backup execution multiple times cannot solve this problem.
[0069] Therefore, in order to reduce the problem of continuous loss of synchronization signals caused by the same-frequency interference of the synchronization pulses of the two sets of gratings (the two sets of gratings are superimposed on each other), a time difference can be made in the execution cycles of light A and light B. When the synchronization heads of the two sets of gratings collide with each other over time, the timing of the next two cycles can be easily staggered, making it more stable against interference.
[0070] Specifically, the number of lamp beads and the execution time of each lamp are determined. For example, if there are 20 lamp beads, the execution time of each lamp is 200us. Furthermore, the cycle times corresponding to light A and light B in the safety light barrier are determined. For example, light A is set to 100us and light B is set to 200us. A preset task detection time is determined, for example, set to 3ms, including time for light synchronization and fault detection. Furthermore, based on the number of lamp beads, the execution time, the preset task detection time, and the cycle times corresponding to light A and light B, the light blocking scanning period corresponding to light A and the light blocking scanning period corresponding to light B are calculated.
[0071] For example, in a specific example, the formula for the shading period is:
[0072] 3ms+100us+(20*200us)=7.1ms
[0073] 3ms+200us+(20*200us)=7.2ms
[0074] Parameter Description: 7.1ms represents the light-blocking scanning period for light A; 7.2ms represents the light-blocking scanning period for light B, which is 100µs longer than the light-blocking period for light A; 3ms represents the preset task detection time; 100µs and 200µs represent the cycle times for light A and light B, respectively. 20*200µs: 20 represents 20 lights, and 200µs represents the execution time for one light.
[0075] The embodiment of the present invention sets a time difference between the execution cycles of light A and light B, so that when the two sets of grating synchronization heads collide with each other over time, the subsequent execution cycles can be staggered faster, making the anti-interference more stable, thereby reducing the situation where light interference is continuously interfered with for a long time when multiple sets of gratings are superimposed and used.
[0076] In one embodiment of the present invention, performing light shading detection includes:
[0077] The receiving end analyzes the detected light intensity data to determine whether a light-blocking event occurs based on the analysis results, wherein the light-blocking event refers to an event in which an object blocks light. If a light-blocking event occurs, the receiving end outputs a light-blocking status signal.
[0078] Specifically, the receiving end collects light intensity data through light sensors or other optical devices, and continuously analyzes the light intensity data. These data reflect whether the light beam is blocked or otherwise affected. In one embodiment, a light intensity threshold can be set. When the light intensity data is lower than the light intensity threshold, it is determined that a light blocking event has occurred, wherein a light blocking event refers to the time when an object or obstacle blocks the light, which may mean that the safety of the grating system is threatened or a safety response needs to be triggered. If the analysis of the receiving end confirms the existence of a light blocking event, the receiving end will output a light blocking status signal to notify other systems or controllers that the current light beam is blocked. Optionally, after the receiving end outputs the light blocking status signal, the system can take corresponding measures according to the preset safety policy. This may include shutdown, alarm, or other necessary safety responses to ensure the safety of the operating environment and the continuity of the work process.
[0079] Reference Figure 2 , Figure 2 The figure is a flow chart of the transmitter in an embodiment of the present invention. The transmitter specifically executes the following process: a timer determines the light-blocking scan period. Upon reaching the light-blocking scan period, the transmitter sends a synchronization header signal. After the synchronization header signal is transmitted, the transmitter lights illuminate, starting with the first light and progressing to the last light. After all lights have been illuminated, the transmitter performs fault detection, such as power supply detection and chip select detection.
[0080] Reference Figure 3 , Figure 3 The figure is a flowchart of the receiving end of an embodiment of the present invention; the specific execution process of the receiving end is as follows: the optical synchronization timing is initiated by the transmitting end. When the receiving end recognizes the synchronization header signal, the receiving end begins to perform light blocking detection to detect whether a light blocking event exists. After detecting light blocking, the receiving end outputs a light blocking status signal, and the OSSD output signal switching device enters a safe state. In addition, after the receiving end recognizes the synchronization header signal, it is necessary to reset the light blocking scan cycle of the timer and disable the synchronization header signal detection. After the light blocking detection cycle ends, the receiving end re-enables the synchronization header signal recognition.
[0081] Furthermore, when the receiving end fails to recognize the synchronization header signal, it counts the number of consecutive signal losses. If this number is less than a preset number, it continues scanning according to the calibrated light-blocking scanning cycle to achieve synchronization between the transmitting and receiving ends. If this number is not less than the preset number, the light-blocking timing error between the transmitting and receiving ends will become increasingly larger, and the timer will no longer perform light-blocking detection and output a light-blocking status signal, causing the safety light barrier to enter a safe output state.
[0082] The optical synchronization device of the safety grating provided by the present invention is described below. The optical synchronization device of the safety grating described below and the optical synchronization method of the safety grating described above can be referred to each other.
[0083] Figure 4 Schematic diagram of the structure of the light synchronization device of the safety grating provided by the present invention, such as Figure 4 As shown, an optical synchronization device for a safety light grid according to an embodiment of the present invention includes:
[0084] A first determining module 21 is used for the transmitting end and the receiving end of the safety grating to determine the light shielding scanning period of the timer;
[0085] The transmitting module 22 is used for the transmitting end to trigger the transmission of the synchronization header signal according to the light shielding scanning cycle;
[0086] A second determining module 23 is configured to determine, at the receiving end, the light source type based on the pulse period of the synchronization header signal, and determine whether the light source type determined by the receiving end to be the synchronization header signal belongs to a preset light source type;
[0087] The detection module 24 is used to, if so, the receiving end performs shading detection and calibrates the shading scanning period of the timer, so that when the receiving end cannot detect the synchronization head signal of the preset light source type, it scans according to the calibrated shading scanning period to achieve synchronization between the transmitting end and the receiving end.
[0088] The detection module 24 is further configured to:
[0089] Determining the number of consecutive signal losses of the synchronization header signal;
[0090] If the number of consecutive signal losses is less than a preset number, scanning is performed according to the calibrated light-shielding scanning cycle;
[0091] If the number of times the signal is lost continuously is not less than a preset number, the scanning is stopped to perform light blocking detection and a light blocking state signal is output.
[0092] The detection module 24 is further configured to:
[0093] The receiving end turns off recognition of the synchronization header signal;
[0094] When the light shielding detection cycle ends, the receiving end restarts the recognition of the synchronization header signal.
[0095] The detection module 24 is further configured to:
[0096] After each successful detection of the synchronization header signal, the timer is reset to restart counting.
[0097] The first determining module 21 is further configured to:
[0098] Determine the number of lamp beads and the execution time of each lamp;
[0099] Determine the cycle time corresponding to light A and light B in the safety light grid, wherein light A and light B are lights of different pulses;
[0100] Based on the number of lamp beads, the execution time, the preset task detection time, and the cycle times corresponding to light A and light B respectively, the shading scanning period corresponding to light A and the shading scanning period corresponding to light B are determined.
[0101] The detection module 24 is further configured to:
[0102] The receiving end analyzes the detected light intensity data to determine whether a light blocking event occurs based on the analysis result, wherein the light blocking event refers to an event in which an object blocks light.
[0103] If a light blocking event occurs, the receiving end outputs a light blocking state signal.
[0104] The light synchronization device of the safety light grid also includes:
[0105] The duration of the first cycle of the A light synchronization head signal pulse in the safety grating is 220us;
[0106] The duration of the second cycle of the synchronization head signal pulse of light A is 280u;
[0107] The duration of the first cycle of the B optical synchronization head signal pulse is 180us;
[0108] The duration of the second cycle of the B optical synchronization head signal pulse is 320us.
[0109] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment and can achieve the same technical effect. The parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0110] Figure 5 Schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 5 As shown, the electronic device may include: a processor 310, a memory 320, a communication interface 330, and a communication bus 340, wherein the processor 310, the memory 320, and the communication interface 330 communicate with each other via the communication bus 340. The processor 310 may call the logic instructions in the memory 320 to execute the optical synchronization method of the safety light barrier.
[0111] In addition, the logic instructions in the above-mentioned memory 320 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0112] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is configured to execute the optical synchronization method for the security light grid provided by the above methods when the computer program is executed by a processor.
[0113] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0114] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for optical synchronization of a safety light barrier, characterized in that: include: The transmitting end and the receiving end of the safety light barrier determine the light-shielding scanning cycle of the timer; The transmitting end triggers the transmission of a synchronization header signal according to the light shielding scanning cycle; The receiving end determines the light source type based on the pulse cycle time of the synchronization header signal, and judges whether the light source type of the synchronization header signal belongs to a preset light source type; If so, the receiving end performs shading detection and calibrates the shading scanning period of the timer so that when the receiving end cannot detect the synchronization head signal of the preset light source type, it scans according to the calibrated shading scanning period to achieve synchronization between the transmitting end and the receiving end.
2. The optical synchronization method of the safety light grid according to claim 1, characterized in that: When the receiving end fails to detect the synchronization header signal of the preset light source type, scanning is performed according to the calibrated light blocking scanning period, including: Determining the number of consecutive signal losses of the synchronization header signal; If the number of consecutive signal losses is less than a preset number, scanning is performed according to the calibrated light-shielding scanning cycle; If the number of times the signal is lost continuously is not less than a preset number, the scanning is stopped to perform light blocking detection and a light blocking state signal is output.
3. The optical synchronization method of the safety light grid according to claim 2, characterized in that: If so, after the receiving end performs light shielding detection, the further step includes: The receiving end turns off recognition of the synchronization header signal; When the light shielding detection cycle ends, the receiving end restarts the recognition of the synchronization header signal.
4. The optical synchronization method of the safety light grid according to claim 1, characterized in that: The calibrating the light shielding scanning period of the timer includes: After each successful detection of the synchronization header signal, the timer is reset to restart counting.
5. The optical synchronization method of the safety light grid according to claim 1, characterized in that: The step of determining the light shielding scanning period of the timer includes: Determine the number of lamp beads and the execution time of each lamp; Determine the cycle time corresponding to light A and light B in the safety light grid, wherein light A and light B are lights of different pulses; Based on the number of lamp beads, the execution time, the preset task detection time, and the cycle times corresponding to light A and light B respectively, the shading scanning period corresponding to light A and the shading scanning period corresponding to light B are determined.
6. The optical synchronization method of a safety light grid according to claim 1, characterized in that: The performing of light shading detection includes: The receiving end analyzes the detected light intensity data to determine whether a light blocking event occurs based on the analysis result, wherein the light blocking event refers to an event in which an object blocks light. If a light blocking event occurs, the receiving end outputs a light blocking state signal.
7. The optical synchronization method of the safety light grid according to claim 5, characterized in that: The duration of the first cycle of the A light synchronization head signal pulse in the safety grating is 220us; The duration of the second cycle of the synchronization head signal pulse of light A is 280u; The duration of the first cycle of the B optical synchronization head signal pulse is 180us; The duration of the second cycle of the B optical synchronization head signal pulse is 320us.
8. An optical synchronization device for a safety light barrier, characterized in that: include: A first determining module is used for the transmitting end and the receiving end of the safety grating to determine the light shielding scanning period of the timer; A transmitting module, configured to trigger the transmitting end to transmit a synchronization header signal according to the light shielding scanning cycle; a second determining module, configured to determine, at the receiving end, a light source type based on a pulse period of the synchronization header signal, and determine whether the light source type determined by the receiving end to be the synchronization header signal belongs to a preset light source type; The detection module is used to, if so, the receiving end performs shading detection and calibrates the shading scanning period of the timer, so that when the receiving end cannot detect the synchronization head signal of the preset light source type, it scans according to the calibrated shading scanning period to achieve synchronization between the transmitting end and the receiving end.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the optical synchronization method of the safety light grid according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the optical synchronization method of the safety light grid according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Active balance training device
CN110180135A
Light curtain detection method and equipment without special synchronous lines
CN111829564A