A Fault Detection Method for a Proximity Switch and a Computer-Readable Storage Medium

By using the moving body of the control module and the trigger, the problem of difficulty in detecting the proximity switch failure in the prior art is solved, automatic detection is realized, and manpower and time are saved.

CN115700362BActive Publication Date: 2025-06-27CHINA TOBACCO GUIZHOU IND
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110792943.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-14
Publication Date
2025-06-27
Estimated Expiration
2041-07-14

AI Technical Summary

Technical Problem

In the prior art, it is difficult to detect proximity switch failures, resulting in a waste of manpower and time.

Method used

The control module and the moving body equipped with a trigger are used to determine the fault information of the proximity switch by detecting the actual running time of the moving body during the detection time, the running time to the left and the running time to the right.

Benefits of technology

Automatic detection of proximity switch is realized, reducing the difficulty of fault detection and saving manpower and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115700362B_ABST
    Figure CN115700362B_ABST
Patent Text Reader

Abstract

The present invention discloses a fault detection method for a proximity switch, which uses a control module and a moving body equipped with a triggering member to detect the fault of the proximity switch. The proximity switch includes a first proximity switch and a second proximity switch arranged in sequence from left to right. The fault detection method includes: at the initial moment of detection, the moving body runs leftward from the starting position; obtaining the actual running time, the leftward running time, and the rightward running time of the moving body within the detection time, where the actual running time is the sum of the leftward running time and the rightward running time; determining the fault information of the proximity switch according to the actual running time, the leftward running time, and the rightward running time. The present invention can automatically detect the proximity switch through the control module and the triggering member, reduce the difficulty of fault detection of the proximity switch, and thus save manpower and time. The present invention also discloses a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of tobacco processing devices, and particularly relates to a method for detecting faults of proximity switches and a computer-readable storage medium. Background Art

[0002] As an important device for buffering materials between tobacco manufacturing processes, the storage bin in the wire-making line plays a crucial role in ensuring the continuity of materials and the stability of flow rate in each process. Materials are evenly distributed in the storage bin by a cloth-feeding vehicle. Currently, proximity switches are usually used to control the travel of the cloth-feeding vehicle when feeding materials into the storage bin, so as to ensure that the materials accurately enter the selected bin.

[0003] In actual production, proximity switches may malfunction. If not detected in time, it will directly affect the continuity of production and the uniformity of cloth-feeding. Therefore, it is necessary to manually detect proximity switches regularly to ensure that they are fault-free. However, in actual production, the number of proximity switches used and their installation positions are generally numerous. Taking our factory as an example, there are currently 27 groups of storage bins, and each group of storage bins has 6 proximity switches. Therefore, it takes a lot of time for maintenance personnel to conduct spot checks and diagnoses on proximity switches, resulting in difficulties in spot checks and diagnoses and wasting manpower and time. Summary of the Invention

[0004] The purpose of the present invention is to solve the problems of difficult fault detection of proximity switches, wasting manpower and time at present. The present invention provides a method for detecting faults of proximity switches and a computer-readable storage medium, which can effectively reduce the difficulty of fault detection of proximity switches and save manpower and time.

[0005] To solve the above technical problems, an embodiment of the present invention discloses a method for detecting faults of proximity switches. The proximity switches include a first proximity switch and a second proximity switch arranged in sequence from left to right. This fault detection method uses a control module and a moving body equipped with a triggering member to detect faults of the proximity switches. The triggering member is used to trigger the proximity switches so that the proximity switches generate corresponding signals and output them. The control module is used to control the moving body to run to the right when receiving the signal output by the first proximity switch, and to control the moving body to run to the left when receiving the signal output by the second proximity switch. The fault detection method includes:

[0006] At the initial moment of detection, the moving body runs to the left from the starting position, and the starting position is located between the first proximity switch and the second proximity switch;

[0007] Obtain the actual running time, the running time to the left, and the running time to the right of the moving body within the detection time, where the actual running time is the sum of the running time to the left and the running time to the right;

[0008] Determine the fault information of the proximity switches according to the actual running time, the running time to the left, and the running time to the right.

[0009] Optionally, the detection time is 1.5 times the theoretical operation period of the moving body, and the theoretical operation period is the time taken for the moving body to travel to and fro between the first proximity switch and the second proximity switch once.

[0010] Optionally, the fault information includes that the proximity switch still generates a signal when not sensing the triggering member. The fault information of the proximity switch is determined based on the actual operation time, the leftward running time, and the rightward running time, including:

[0011] Judge whether the actual operation time is 0;

[0012] If so, determine that both the first proximity switch and the second proximity switch still generate a signal when not sensing the triggering member;

[0013] If not, then perform the following steps:

[0014] Judge whether the leftward running time is 0 and whether the actual operation time is less than the theoretical operation period;

[0015] If the leftward running time is 0 and the actual operation time is less than the theoretical operation period, determine that the first proximity switch still generates a signal when not sensing the triggering member;

[0016] Judge whether the rightward running time is 0 and whether the actual operation time is less than the theoretical operation period;

[0017] If the rightward running time is 0 and the actual operation time is less than the theoretical operation period, determine that the second proximity switch still generates a signal when not sensing the triggering member.

[0018] Optionally, the fault information includes that the proximity switch cannot sense the triggering member. The fault information of the proximity switch is determined based on the actual operation time, the leftward running time, and the rightward running time, including:

[0019] Judge whether the leftward running time is equal to the actual operation time and whether the actual operation time is equal to 1.5 times the theoretical operation period;

[0020] If the leftward running time is equal to the actual operation time and the actual operation time is equal to 1.5 times the theoretical operation period, determine that the first proximity switch cannot sense the triggering member;

[0021] Judge whether the rightward running time is greater than 0.5 times the theoretical operation period;

[0022] If so, determine that the second proximity switch cannot sense the triggering member.

[0023] Optionally, the proximity switch further includes a third proximity switch disposed between the first proximity switch and the second proximity switch. The triggering member is further configured to trigger the third proximity switch to generate a corresponding signal, and the control module is further configured to receive the signal output by the third proximity switch and determine the fault information of the proximity switch according to the running direction and running time of the moving body, including:

[0024] Determine whether there is a fault in the first proximity switch and the second proximity switch;

[0025] If there is no fault in both the first proximity switch and the second proximity switch, determine the fault information of the third proximity switch according to the output signal of the third proximity switch.

[0026] Optionally, determining the fault information of the third proximity switch according to the output signal of the third proximity switch includes:

[0027] Determine whether the control module receives the signal sent by the third proximity switch within the detection time;

[0028] If not, determine that the third proximity switch cannot sense the triggering member.

[0029] Optionally, determining the fault information of the third proximity switch according to the output signal of the third proximity switch includes:

[0030] Determine whether the control module receives the signals sent by the third proximity switch and the first proximity switch or the second proximity switch simultaneously within the detection time;

[0031] If the signals sent by the third proximity switch and the first proximity switch are received simultaneously, or the signals sent by the third proximity switch and the second proximity switch are received simultaneously, determine that the third proximity switch generates a signal when not sensing the triggering member.

[0032] Optionally, determining whether there is a fault in the first proximity switch and the second proximity switch includes:

[0033] Determine whether the running time to the left and the running time to the right are 0;

[0034] If the running time to the left is not 0 and the running time to the right is not 0, determine whether the running time to the right is greater than 0.5 times the theoretical running period;

[0035] If not, determine that there is no fault in both the first proximity switch and the second proximity switch.

[0036] Optionally, after the detection time is reached, the control module controls the moving body to stop running.

[0037] Optionally, the moving body is driven by a motor to run. Obtaining the actual running time, the running time to the left, and the running time to the right of the moving body within the detection time includes:

[0038] Determine the time for running left and the time for running right according to the forward rotation time and reverse rotation time of the motor;

[0039] Calculate the sum of the time for running left and the time for running right, and obtain the actual running time.

[0040] Optionally, it further includes:

[0041] Use a display to show the status information of each proximity switch. The status information includes: the proximity switch still generates a signal when not detecting a triggering member, the proximity switch cannot detect the triggering member, and the proximity switch has no fault.

[0042] Optionally, it further includes:

[0043] There are multiple icons on the display, and each icon corresponds to each proximity switch respectively, for showing the status information of each proximity switch;

[0044] When the proximity switch still generates a signal when not detecting a triggering member, the icon corresponding to this proximity switch on the display is red;

[0045] When the proximity switch cannot detect the triggering member, the icon corresponding to this proximity switch on the display is yellow;

[0046] When the proximity switch has no fault, the icon corresponding to this proximity switch on the display is gray.

[0047] Optionally, it further includes:

[0048] Provide an alarm, and the alarm is used to give an audible and visual alarm when the proximity switch has a fault.

[0049] An embodiment of the present invention also discloses a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer is made to execute any one of the foregoing proximity switch fault detection methods.

[0050] Compared with the prior art, the present invention has the following beneficial effects:

[0051] The present invention determines the fault information of the proximity switch according to the actual running time, the time for running left, and the time for running right of the moving body within the detection time, and can realize the automatic detection of the proximity switch through the control module and the triggering member, enabling the operator to timely discover the proximity switch fault, thereby reducing the difficulty of proximity switch fault detection and saving manpower and time. Description of the Drawings

[0052] Figure 1 Show a schematic diagram of the installation position of the proximity switch on the wire storage cabinet provided by the embodiment of the present invention;

[0053] Figure 2 The flowchart showing the fault detection method of the proximity switch provided by the embodiment of the present invention.

[0054] Reference numerals:

[0055] 1. Cloth truck; 2. Storage cabinet; 21. Left cabinet; 22. Right cabinet; 3. Belt conveyor; 4. Metal sheet; 5. Proximity switch; 51. Proximity switch A; 52. Proximity switch a; 53. Proximity switch B; 54. Proximity switch b; 55. Proximity switch C; 56. Proximity switch c. Detailed implementation manners

[0056] The following specific embodiments illustrate the implementation manners of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. Although the description of the present invention will be introduced in conjunction with the preferred embodiments, this does not mean that the features of this invention are limited to this implementation manner. On the contrary, the purpose of introducing the invention in conjunction with the implementation manner is to cover other alternatives or modifications that may be extended based on the claims of the present invention. In order to provide a deep understanding of the present invention, many specific details will be included in the following description. The present invention can also be implemented without these details. In addition, in order to avoid confusion or obscuring the key points of the present invention, some specific details will be omitted in the description. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.

[0057] It should be noted that in this specification, similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.

[0058] In the description of this embodiment, it should be noted that the orientation or positional relationship indicated by terms such as "left" and "right" is based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the invention product is usually placed during use. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation to the present invention.

[0059] Terms such as "first", "second", and "third" are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0060] In the description of this embodiment, it should also be noted that, unless otherwise clearly specified and defined, the terms "set", "connected", and "connected to" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in this embodiment can be understood according to specific situations.

[0061] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0062] As an important device for buffering materials during the cigarette manufacturing process, the wire-making storage cabinet plays a crucial role in ensuring the continuity of materials and the stability of flow rate in each process. As Figure 1 shown, the materials are evenly distributed into the storage cabinet 2 through the cloth-feeding vehicle 1. The storage cabinet 2 includes a left cabinet 21 and a right cabinet 22 arranged in sequence along the first direction (such as the X direction shown in Figure 1 ). The cloth-feeding vehicle 1 is arranged above the left cabinet 21 and the right cabinet 22, and the cloth-feeding vehicle 1 can reciprocate along the first direction. A belt conveyor 3 is provided on the cloth-feeding vehicle 1. When the cloth-feeding vehicle 1 feeds materials into the storage cabinet 2, the materials are placed on the belt conveyor 3. The cloth-feeding vehicle 1 drives the belt conveyor 3 to reciprocate above the left cabinet 21 and the right cabinet 22, and the belt conveyor 3 transports the materials from the belt conveyor 3 into the storage cabinet 2, so as to evenly distribute the materials into the left cabinet 21 and the right cabinet 22.

[0063] To ensure that the materials accurately enter the selected cabinet, currently, multiple proximity switches 5 are usually used to control the travel of the cloth-feeding vehicle 1 when feeding materials into the storage cabinet 2. Specifically, as Figure 1 shown, proximity switches A51, B53, and C55 are arranged in sequence from left to right above the left cabinet 21, and proximity switches b54, c56, and a52 are arranged in sequence from left to right above the right cabinet 22. Among them, proximity switches A51 and a52 are respectively used to detect the left and right walking position limits of the cloth-feeding vehicle 1. A metal sheet 4 is provided at the bottom of the cloth-feeding vehicle 1. When the metal sheet 4 runs to the proximity switch 5, the proximity switch 5 can sense the metal sheet 4 and send a signal to the control system.

[0064] When feeding materials into the left cabinet 21, proximity switches B53 and b54 are the detection points for the reverse travel of the cloth-feeding vehicle 1 when selecting to feed materials into the left cabinet 21. When the metal sheet 4 reaches the proximity switch B53 point, the cloth-feeding vehicle 1 travels reversely to the right. When traveling to the right, the belt conveyor 3 does not start, and the cloth-feeding vehicle 1 does not feed materials into the storage cabinet 2. When the metal sheet 4 reaches the proximity switch b54 point, the cloth-feeding vehicle 1 travels reversely to the left. At this time, the upper surface of the belt conveyor 3 also runs to the left to drive the materials to evenly fall into the left cabinet 21 from above the belt conveyor 3.

[0065] When feeding the fabric into the right cabinet 22, the proximity switches C55 and c56 are the detection points for the reverse movement of the fabric cart 1 when selecting the fabric in the right cabinet 22. When the metal sheet 4 reaches the point of the proximity switch c56, the fabric cart 1 moves reversely to the left. When moving to the left, the belt conveyor 3 does not start, and the fabric cart 1 does not feed the fabric into the storage cabinet 2. When the metal sheet 4 reaches the point of the proximity switch C55, the fabric cart 1 moves reversely to the right. At this time, the upper surface of the belt conveyor 3 also runs to the right simultaneously to drive the material to evenly fall into the right cabinet 22 from above the belt conveyor 3.

[0066] In actual production, the proximity switch 5 may malfunction. If not detected in time, it will directly affect the continuity of production and the uniformity of fabric feeding. Therefore, it is necessary to manually detect the proximity switch 5 regularly to ensure that the proximity switch 5 is fault-free. However, in actual production, the number of proximity switches 5 used and their installation positions are generally numerous. Taking our factory as an example, there are 27 groups of storage cabinets 2, and each group of storage cabinets 2 has 6 proximity switches 5. Therefore, it takes a lot of time for maintenance personnel to conduct spot checks and diagnoses on the proximity switches 5, resulting in difficulties in spot checks and diagnoses and wasting manpower and time.

[0067] To solve the above technical problems, an embodiment of the present invention discloses a method for detecting faults of a proximity switch. The proximity switch 5 includes a first proximity switch and a second proximity switch arranged in sequence from left to right. This fault detection method uses a control module and a moving body equipped with a triggering member to detect the faults of the proximity switch 5. Among them, the triggering member is used to trigger the proximity switch 5 so that the proximity switch 5 generates a corresponding signal and outputs it. The control module is used to control the moving body to move to the right when receiving the signal output by the first proximity switch, and to control the moving body to move to the left when receiving the signal output by the second proximity switch; the fault detection method of this proximity switch is as Figure 2 shown, including:

[0068] Step S1: At the initial moment of detection, the moving body moves to the left from the starting position, and the starting position is between the first proximity switch and the second proximity switch;

[0069] Step S2: Obtain the actual running time T1, the leftward running time T2, and the rightward running time T3 of the moving body within the detection time. Among them, the detection time is the time from the initial moment of detection to the end of detection; the actual running time T1 is the sum of the leftward running time T2 and the rightward running time T3; the leftward running time T2 is the cumulative sum of all the leftward running times of the moving body within the detection time; the rightward running time T3 is the cumulative sum of all the rightward running times of the moving body within the detection time.

[0070] Step S3: Determine the fault information of the proximity switch 5 according to the actual running time T1, the leftward running time T2, and the rightward running time T3.

[0071] The present invention determines the fault information of the proximity switch 5 according to the actual running time T1, the leftward running time T2, and the rightward running time T3 of the moving body within the detection time, and can realize the automatic detection of the proximity switch 5 through the control module and the trigger, enabling the operator to timely discover the fault of the proximity switch 5, thereby reducing the difficulty of fault detection of the proximity switch 5 and saving manpower and time.

[0072] Specifically, the above-mentioned fault detection method of the proximity switch is applied to the storage cabinet of the wire manufacturing line. The fixed body is the storage cabinet 2, the moving body is the cloth cart 1, the trigger is the metal sheet 4, the first proximity switch is the proximity switch A51, and the second proximity switch is the proximity switch a52. It should be noted that when using the above-mentioned fault detection method of the proximity switch to detect whether there are faults in the proximity switch A51 and the proximity switch a52, the cloth cart 1 will inevitably pass by the proximity switch B53, the proximity switch b54, the proximity switch C55, and the proximity switch c56 during the running process, causing the metal sheet 4 to trigger the proximity switch B53, the proximity switch b54, the proximity switch C55, and the proximity switch c56 and send signals to the control module; to prevent the proximity switch B53, the proximity switch b54, the proximity switch C55, and the proximity switch c56 from affecting the running of the cloth cart 1 and resulting in inaccurate statistical time, during the detection process, it should be set that the control module cannot make the cloth cart 1 run in reverse after receiving the signals sent by the proximity switch B53, the proximity switch b54, the proximity switch C55, and the proximity switch c56, nor can it affect the running state of the cloth cart 1.

[0073] Further, the detection time is 1.5 times the theoretical running period T of the moving body, and the theoretical running period T is the time taken for the moving body to make a round trip between the first proximity switch and the second proximity switch.

[0074] Further, the fault information includes that the proximity switch 5 still generates a signal when not sensing the trigger. Determining the fault information of the proximity switch 5 according to the actual running time T1, the leftward running time T2, and the rightward running time T3 includes:

[0075] Judge whether the actual running time T1 is 0;

[0076] If so, it is determined that both the first proximity switch and the second proximity switch still generate signals when not sensing the trigger;

[0077] If not, then the following steps are carried out:

[0078] Step A1: Judge whether the leftward running time T2 is 0 and whether the actual running time T1 is less than the theoretical running period T;

[0079] If the time T2 for running leftward is 0, and the actual running time T1 is less than the theoretical running period T, determine that the first proximity switch still generates a signal when not sensing the triggering member;

[0080] Step A2: Determine whether the time T3 for running rightward is 0, and whether the actual running time T1 is less than the theoretical running period T;

[0081] If the time T3 for running rightward is 0, and the actual running time T1 is less than the theoretical running period T, determine that the second proximity switch still generates a signal when not sensing the triggering member.

[0082] Specifically, the above-mentioned Step A1 and Step A2 are both independent judgment steps, and their order can be reversed.

[0083] When the actual running time T1 of the cloth truck 1 is 0, that is, both the time T2 for the cloth truck 1 to run leftward and the time T3 for running rightward are 0, it means that the cloth truck 1 has been in a stagnant state during the detection time. That is, the proximity switch A51 and the proximity switch a52 have been sending signals to the control module. Thus, it can be determined that both the proximity switch A51 and the proximity switch a52 still generate signals when not sensing the metal sheet 4, and there are faults with the proximity switch A51 and the proximity switch a52.

[0084] When the actual running time T1 of the cloth truck 1 is not 0, but the time T2 for running leftward is 0, and the actual running time T1 is less than the theoretical running period T, it means that the cloth truck 1 has been running rightward until it stops running after the metal sheet 4 reaches the proximity switch a52. Among them, the fact that the actual running time T1 is less than the theoretical running period T indicates that the cloth truck 1 has not run past the proximity switch a52 and has been running rightward, thus ruling out the situation where the cloth truck 1 has been running rightward due to the proximity switch a52 not being able to detect the metal sheet 4, resulting in the time T2 for running leftward being 0. On this basis, the time T2 for running leftward being 0 indicates that the proximity switch A51 has been sending signals to the control module. Thus, it can be determined that the proximity switch A51 still generates a signal when not sensing the metal sheet 4, and there is a fault with the proximity switch A51.

[0085] When the actual running time T1 of the cloth truck 1 is not 0, but the running time T3 to the right is 0, and the actual running time T1 is less than the theoretical running period T, it indicates that the cloth truck 1 has been running to the left until the metal sheet 4 runs to near the proximity switch A51 and then stops running. Among them, the fact that the actual running time T1 is less than the theoretical running period T means that the cloth truck 1 has been running to the left without crossing the proximity switch A51, thus ruling out the situation where the cloth truck 1 has been running to the left due to the proximity switch A51 not being able to detect the metal sheet 4, resulting in the running time T3 to the right being 0. On this basis, the running time T3 to the right being 0 indicates that the proximity switch a52 has been sending signals to the control module all the time, so it can be judged that the proximity switch a52 still generates signals when it does not sense the metal sheet 4, and the proximity switch a52 has a fault.

[0086] Further, the fault information includes that the proximity switch 5 cannot sense the trigger. The fault information of the proximity switch 5 is determined according to the actual running time T1, the running time T2 to the left, and the running time T3 to the right, including:

[0087] Step B1: Judge whether the running time T2 to the left is equal to the actual running time T1, and whether the actual running time T1 is equal to 1.5 times the theoretical running period T;

[0088] If the running time T2 to the left is equal to the actual running time T1, and the actual running time T1 is equal to 1.5 times the theoretical running period T, it is determined that the first proximity switch cannot sense the trigger.

[0089] Step B2: Judge whether the running time T3 to the right is greater than 0.5 times the theoretical running period T;

[0090] If so, it is determined that the second proximity switch cannot sense the trigger.

[0091] Specifically, the above Step B1 and Step B2 are both independent judgment steps, and their order can be reversed.

[0092] Since the starting position of the cloth truck 1 is between the proximity switch A51 and the proximity switch a52, and at the initial moment of detection, the cloth truck 1 runs to the left from the starting position. Therefore, when the running time T2 to the left of the cloth truck 1 is equal to the actual running time T1, and the actual running time T1 is equal to 1.5 times the theoretical running period T, it indicates that the cloth truck 1 has been running to the left during the detection time, and the cloth truck 1 has crossed the position where the proximity switch A51 is located and runs to the left of the proximity switch A51. Thus, it can be judged that the proximity switch A51 cannot sense the metal sheet 4, and the proximity switch A51 has a fault.

[0093] When the running time T3 of the cloth car 1 to the right is greater than 0.5 times of the theoretical running period T, it indicates that the cloth car 1 has passed the position where the proximity switch a52 is located and runs to the right of the proximity switch a52 during the running process to the right. Thus, it can be judged that the proximity switch a52 cannot sense the metal sheet 4 and there is a fault with the proximity switch a52.

[0094] Further, the proximity switch 5 further includes a third proximity switch disposed between the first proximity switch and the second proximity switch. The triggering member is further configured to trigger the third proximity switch to generate a corresponding signal. The control module is further configured to receive the signal output by the third proximity switch and determine the fault information of the proximity switch 5 according to the running direction and running time of the moving body, including:

[0095] Determine whether there is a fault with the first proximity switch and the second proximity switch;

[0096] If there is no fault with both the first proximity switch and the second proximity switch, determine the fault information of the third proximity switch according to the output signal of the third proximity switch.

[0097] Specifically, the number of the third proximity switches can be multiple. When the above-mentioned fault detection method of the third proximity switch is applied to the storage cabinet of the wire making line, the third proximity switches include: proximity switch B53, proximity switch b54, proximity switch C55, and proximity switch d56. When using the above-mentioned fault detection method of the third proximity switch to detect whether there is a fault with the proximity switch B53, proximity switch b54, proximity switch C55, and proximity switch d56, the control module can only receive the signals sent by the proximity switch B53, proximity switch b54, proximity switch C55, and proximity switch c56, but cannot control the cloth car 1 to run in the reverse direction, nor can it have any impact on the running state of the cloth car 1.

[0098] Further, determining the fault information of the third proximity switch according to the output signal of the third proximity switch includes:

[0099] Judge whether the control module receives the signal sent by the third proximity switch within the detection time;

[0100] If not, determine that the third proximity switch cannot sense the triggering member.

[0101] Specifically, when there is no fault with both the proximity switch A51 and the proximity switch a52, if the control module does not receive the signal sent by a certain proximity switch among the proximity switch B53, proximity switch b54, proximity switch C55, and proximity switch d56 within the detection time, it indicates that the proximity switch that does not send the signal cannot sense the metal sheet 4.

[0102] Further, determining the fault information of the third proximity switch according to the output signal of the third proximity switch includes:

[0103] Determine whether the control module receives the signals sent by the third proximity switch and the first proximity switch or the second proximity switch simultaneously within the detection time;

[0104] If the processor receives the signals sent by the third proximity switch and the first proximity switch simultaneously, or receives the signals sent by the third proximity switch and the second proximity switch simultaneously, determine that the third proximity switch generates a signal when the triggering member is not sensed.

[0105] Specifically, when the proximity switches A51 and a52 are both fault-free, if the control module receives the signals sent by a certain proximity switch among the proximity switches B53, b54, C55, and d56 and the proximity switch A51 or a52 simultaneously within the detection time, it indicates that the proximity switch generates a signal when the metal sheet 4 is not sensed.

[0106] Furthermore, determining whether the first proximity switch and the second proximity switch have faults includes:

[0107] Determine whether the time T2 for running to the left and the time T3 for running to the right are 0;

[0108] If the time T2 for running to the left is not 0 and the time T3 for running to the right is not 0, determine whether the time T3 for running to the right is greater than 0.5 times the theoretical running period T;

[0109] If not, determine that neither the first proximity switch nor the second proximity switch has a fault.

[0110] Furthermore, after reaching the detection time, the control module controls the moving body to stop running. Adopting this technical solution can prevent accidents caused by the moving body running too long on one side due to the proximity switch A51 or a52 being unable to sense the metal sheet 4.

[0111] Furthermore, the moving body is driven by a motor to run. Obtaining the actual running time T1, the time T2 for running to the left, and the time T3 for running to the right of the moving body within the detection time includes:

[0112] Determine the time T2 for running to the left and the time T3 for running to the right according to the forward rotation time and reverse rotation time of the motor;

[0113] Calculate the sum of the time T2 for running to the left and the time T3 for running to the right to obtain the actual running time T1.

[0114] Further, the control module includes a detection unit and a processor. The detection unit is used to obtain the actual running time T1, the running time T2 to the left, and the running time T3 to the right. Specifically, the detection unit includes an encoder and a timer. The encoder is used to detect whether the motor is rotating forward or backward to determine the running direction of the moving body; the timer is used to count the running time of the motor rotating forward or backward. The processor is used to receive the signal output by the proximity switch 5 to control the running of the moving body; in addition, the processor is also used to receive the actual running time T1, the running time T2 to the left, and the running time T3 to the right output by the detection unit, and determine the fault information of the proximity switch 5 according to the actual running time T1, the running time T2 to the left, and the running time T3 to the right; specifically, the processor can be a PLC.

[0115] Further, the method for detecting the fault of the proximity switch according to the embodiment of the present invention further includes: using a display to display the status information of each proximity switch 5, and the status information includes: the proximity switch still generates a signal when not detecting a triggering member, the proximity switch cannot detect a triggering member, and the proximity switch has no fault.

[0116] Further, the method for detecting the fault of the proximity switch according to the embodiment of the present invention further includes:

[0117] The display is provided with a plurality of icons, and each icon corresponds to each proximity switch respectively, and is used to display the status information of each proximity switch;

[0118] When a certain proximity switch still generates a signal when not detecting a triggering member, the icon corresponding to the proximity switch on the display is red;

[0119] When a certain proximity switch cannot detect a triggering member, the icon corresponding to the proximity switch on the display is yellow;

[0120] When a certain proximity switch has no fault, the icon corresponding to the proximity switch on the display is gray.

[0121] By adopting the above technical solution, the operator can intuitively see the status information of each proximity switch through the display, so as to facilitate the operator to timely discover the faults of the proximity switches and facilitate timely maintenance of them.

[0122] Further, the method for detecting the fault of the proximity switch according to the embodiment of the present invention further includes:

[0123] An alarm is provided, and the alarm is used to give an audible and visual alarm when the proximity switch 5 has a fault.

[0124] An embodiment of the present invention further provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute any one of the foregoing fault detection methods for proximity switches.

[0125] Although the present invention has been illustrated and described with reference to certain preferred embodiments thereof, those of ordinary skill in the art should understand that the above content is a further detailed description of the present invention in combination with specific embodiments, and it cannot be determined that the specific implementation of the present invention is only limited to these descriptions. Those skilled in the art can make various changes in form and detail, including making several simple deductions or substitutions, without departing from the spirit and scope of the present invention.

Claims

1. A fault detection method for a proximity switch, the proximity switch comprising a first proximity switch and a second proximity switch arranged in sequence from left to right, characterized in that, The failure of a proximity switch is detected by using a control module and a moving body equipped with a trigger. The trigger is used to trigger the proximity switch to generate a corresponding signal and output it. The control module is used to control the moving body to run to the right when receiving the signal output by the first proximity switch, and to control the moving body to run to the left when receiving the signal output by the second proximity switch; The failure detection method includes: At the initial moment of detection, the moving body runs to the left from the starting position, and the starting position is located between the first proximity switch and the second proximity switch; Obtain the actual running time, the running time to the left, and the running time to the right of the moving body during the detection time. Wherein, the actual running time is the sum of the running time to the left and the running time to the right; Determine the failure information of the proximity switch according to the actual running time, the running time to the left, and the running time to the right; The detection time is 1.5 times the theoretical running cycle of the moving body. The theoretical running cycle is the time used for the moving body to run back and forth between the first proximity switch and the second proximity switch once. When the detection time is reached, the control module controls the moving body to stop running; The failure information includes: the proximity switch generates a signal when not sensing the trigger, and the proximity switch cannot sense the trigger; When the failure information is that the proximity switch generates a signal when not sensing the trigger, the determining the failure information of the proximity switch according to the actual running time, the running time to the left, and the running time to the right includes: Judge whether the actual running time is 0; If so, it is determined that both the first proximity switch and the second proximity switch generate signals when not sensing the trigger; If not, the following steps are carried out: Judge whether the running time to the left is 0 and whether the actual running time is less than the theoretical running cycle; If the running time to the left is 0 and the actual running time is less than the theoretical running cycle, it is determined that the first proximity switch generates a signal when not sensing the trigger; Judge whether the running time to the right is 0 and whether the actual running time is less than the theoretical running cycle; If the running time to the right is 0 and the actual running time is less than the theoretical running cycle, it is determined that the second proximity switch generates a signal when not sensing the trigger; When the failure information is that the proximity switch cannot sense the trigger, the determining the failure information of the proximity switch according to the actual running time, the running time to the left, and the running time to the right includes: Judge whether the running time to the left is equal to the actual running time and whether the actual running time is equal to 1.5 times the theoretical running cycle; If the running time to the left is equal to the actual running time and the actual running time is equal to 1.5 times the theoretical running cycle, it is determined that the first proximity switch cannot sense the trigger; Judge whether the running time to the right is greater than 0.5 times the theoretical running cycle; If so, it is determined that the second proximity switch cannot sense the triggering member.

2. The fault detection method of the proximity switch according to claim 1, characterized in that, The proximity switches further include a third proximity switch disposed between the first proximity switch and the second proximity switch. The triggering member is further configured to trigger the third proximity switch to generate a corresponding signal. The control module is further configured to receive the signal output by the third proximity switch. The fault detection method further includes: Determining whether the first proximity switch and the second proximity switch are faulty; If neither the first proximity switch nor the second proximity switch is faulty, determining the fault information of the third proximity switch according to the output signal of the third proximity switch.

3. The fault detection method of the proximity switch according to claim 2, characterized in that, The determining the fault information of the third proximity switch according to the output signal of the third proximity switch includes: Determining whether the control module receives a signal sent by the third proximity switch within the detection time; If not, it is determined that the third proximity switch cannot sense the triggering member.

4. The fault detection method of the proximity switch according to claim 2, characterized in that The determining the fault information of the third proximity switch according to the output signal of the third proximity switch includes: Determining whether the control module simultaneously receives signals sent by the third proximity switch and the first proximity switch, or simultaneously receives signals sent by the third proximity switch and the second proximity switch within the detection time; If the control module simultaneously receives signals sent by the third proximity switch and the first proximity switch, or simultaneously receives signals sent by the third proximity switch and the second proximity switch, it is determined that the third proximity switch generates a signal when it does not sense the triggering member.

5. The fault detection method of the proximity switch according to claim 1, characterized in that, The moving body is driven by a motor to operate. The obtaining of the actual running time, the leftward running time, and the rightward running time of the moving body within the detection time includes: Determining the leftward running time and the rightward running time according to the forward rotation time and the reverse rotation time of the motor; Calculating the sum of the leftward running time and the rightward running time to obtain the actual running time.

6. The fault detection method of the proximity switch according to any one of claims 1 to 5, characterized in that, It further includes: Using a display to display the status information of each proximity switch. The status information includes: the proximity switch generates a signal when it does not sense the triggering member, the proximity switch cannot sense the triggering member, and the proximity switch has no fault.

7. The fault detection method of the proximity switch according to claim 6, characterized in that, It further includes: A plurality of icons are provided on the display. Each icon corresponds to a respective proximity switch and is used to display the status information of each proximity switch; When the proximity switch generates a signal when it does not sense the triggering member, the icon corresponding to the proximity switch on the display is red; When the proximity switch cannot sense the triggering member, the icon corresponding to the proximity switch on the display is yellow; When the proximity switch has no fault, the icon corresponding to the proximity switch on the display is gray.

8. The fault detection method of the proximity switch according to claim 6, characterized in that, It further includes: Providing an alarm. The alarm is configured to give an audible and visual alarm when a proximity switch has a fault.

9. A computer-readable storage medium, characterized in that, Instructions are stored on the computer-readable storage medium. When the instructions are executed on a computer, the computer is caused to execute the fault detection method of the proximity switch according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Furnace soot blower control system's fault alarm device

    CN206805752U