An adaptive device and system for proximity switches
Patent Information
- Application Number
- CN202311531738.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-11-16
AI Technical Summary
当接近开关传感器或者智能控制设备出现故障时,客户只能找售后服务寻求接近开关传感器或者智能控制设备的具体型号来进行相关设备的匹配,无法进行更多的选择,影响产品的更换效率,增加产品的维护成本,降低客户的使用感受
[0019]本发明的接近开关的自适应设备包括信息交互模块、处理器、接近开关传感器、信息采集模块和自适应电路模块,其中,处理器分别连接信息交互模块、信息采集模块和自适应电路模块,接近开关传感器连接信息采集模块或者自适应电路模块;信息交互模块用于基于用户输入的控制信息生成自检指令、向处理器发送自检指令、展示第一提示信息和第二提示信息;处理器用于根据自检指令确定第一提示信息、向信息交互模块发送第一提示信息以及基于预设时间调整处理器的目标参数,其中,第一提示信息用于指示用户将障碍物接近或者远离接近开关传感器,以调整接近开关传感器的出口电压信息;信息采集模块用于在调整处理器的目标参数后,确定接近开关传感器的出口电压信息,并基于出口电压信息确定目标电压信息;处理器还用于根据目标电压信息确定自适应电路模块的工作电路或者第二提示信息,其中,第二提示信息用于提示用户更改控制信息,以便调整自检指令。本发明设置了自适应电路模块,信息采集模块可根据接近开关传感器的出口电压信息确定目标电压信息,以使处理器根据信息采集模块的目标电压信息确定和调整自适应电路模块的工作电路,使其适用于接近开关传感器,接近开关的自适应设备适用于不同类型的接近开关传感器,用户不需要根据智能控制设备的型号更换接近开关传感器或者根据接近开关传感器的型号更换智能控制设备,方便用户更换和维护接近开关传感器与智能控制设备,使用成本低且实用性高,有效提升了用户的使用感受。解决了当接近开关传感器或者智能控制设备出现故障时,客户只能找售后服务寻求接近开关传感器或者智能控制设备的具体型号来进行相关设备的匹配,无法进行更多的选择,影响产品的更换效率,增加产品的维护成本,降低客户的使用感受的问题。
Smart Images

Figure CN117471916B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic circuit technology, and more particularly to an adaptive device and system for a proximity switch. Background Technology
[0002] With the rapid development of industrial intelligence, the application of industrial intelligent control equipment in industrial manufacturing is becoming increasingly widespread. In industrial intelligent control equipment, proximity switch sensors are often used to detect external conditions, thereby achieving certain control functions.
[0003] Commonly used proximity switch sensors include four types: normally closed common cathode (Positive-Negative-Positive, PNP) proximity switch sensors, normally closed common anode (Negative-Positive-Negative, NPN) proximity switch sensors, normally open common cathode (Positive-Negative-Positive, PNP) proximity switch sensors, and normally open common anode (Negative-Positive-Negative, NPN) proximity switch sensors. Currently, in practical applications, proximity switch sensors and intelligent control devices are paired one-to-one; different types of proximity switch sensors require different intelligent control devices, meaning that proximity switch sensors must be used in conjunction with intelligent control devices of the same type. When a proximity switch sensor or intelligent control device malfunctions, customers can only contact after-sales service to obtain the specific model of the proximity switch sensor or intelligent control device for matching, limiting their options and impacting product replacement efficiency, increasing maintenance costs, and reducing customer experience. Summary of the Invention
[0004] This invention provides an adaptive device and system for proximity switches, aiming to provide an adaptive device for proximity switches applicable to different types of proximity switch sensors, facilitating users in replacing and maintaining proximity switch sensors and intelligent control devices, and improving the user experience.
[0005] According to one aspect of the present invention, an adaptive device for a proximity switch is provided, the adaptive device comprising: an information interaction module, a processor, a proximity switch sensor, an information acquisition module, and an adaptive circuit module, wherein the processor is connected to the information interaction module, the information acquisition module, and the adaptive circuit module respectively, and the proximity switch sensor is connected to the information acquisition module or the adaptive circuit module.
[0006] The information interaction module is used to generate self-test commands based on user-input control information, send self-test commands to the processor, and display first and second prompt messages.
[0007] The processor is used to determine the first prompt information according to the self-test instruction, send the first prompt information to the information interaction module, and adjust the target parameters of the processor based on a preset time. The first prompt information is used to instruct the user to move the obstacle closer to or away from the proximity switch sensor in order to adjust the output voltage information of the proximity switch sensor.
[0008] The information acquisition module is used to determine the output voltage information of the proximity switch sensor after adjusting the target parameters of the processor, and to determine the target voltage information based on the output voltage information.
[0009] The processor is also used to determine the operating circuit of the adaptive circuit module or the second prompt information based on the target voltage information. The second prompt information is used to prompt the user to change the control information so as to adjust the self-test command.
[0010] Optionally, the processor is specifically configured to: determine whether the target voltage information is equal to the first reference voltage; if the target voltage information is not equal to the first reference voltage, determine the type of the proximity switch sensor and the working circuit of the adaptive circuit module based on the target voltage information, the second reference voltage, and the third reference voltage; if the target voltage information is equal to the first reference voltage, generate a second prompt message and send the second prompt message to the information interaction module so that the information interaction module can display the second prompt message.
[0011] Optionally, the first reference voltage is the output voltage of the information acquisition module when the proximity switch sensor has no output, the second reference voltage is the output voltage of the information acquisition module when the proximity switch sensor outputs a low level, and the third reference voltage is the output voltage of the information acquisition module when the proximity switch sensor outputs a high level.
[0012] Optionally, the control information includes first control information and second control information. The first control information corresponds to the obstacle-free command, and the second control information corresponds to the obstacle-present command. When the self-test command is an obstacle-free command, the first prompt information is used to instruct the user to move the obstacle away from the proximity switch sensor, and the second prompt information is used to instruct the user to change the first control information to the second control information so that the information interaction module can adjust the obstacle-free command to an obstacle-present command. When the self-test command is an obstacle-present command, the first prompt information is used to instruct the user to move the obstacle closer to the proximity switch sensor, and the second prompt information is used to instruct the user to change the second control information to the first control information so that the information interaction module can adjust the obstacle-present command to an obstacle-free command.
[0013] Optionally, before determining the type of proximity switch sensor, the proximity switch sensor is connected to the information acquisition module so that the information acquisition module can acquire the output voltage information of the proximity switch sensor; after determining the type of proximity switch sensor, the proximity switch sensor is connected to the adaptive circuit module so that the adaptive circuit module can transmit the control signal of the proximity switch sensor.
[0014] Optionally, the proximity switch sensor includes a normally closed common cathode proximity switch sensor, a normally closed common anode proximity switch sensor, a normally open common cathode proximity switch sensor, and a normally open common anode proximity switch sensor.
[0015] Optionally, when the self-test command is an obstacle-free command, the processor is specifically used to: determine whether the target voltage information is equal to the second reference voltage or the third reference voltage; if the target voltage information is equal to the second reference voltage, then determine that the proximity switch sensor is a normally closed common anode proximity switch sensor, and the working circuit of the adaptive circuit module is the first working circuit; if the target voltage information is equal to the third reference voltage, then determine that the proximity switch sensor is a normally closed common cathode proximity switch sensor, and the working circuit of the adaptive circuit module is the second working circuit.
[0016] Optionally, when the self-test command is an obstacle-prone command, the processor is specifically used to: determine whether the target voltage information is equal to the second reference voltage or the third reference voltage; if the target voltage information is equal to the second reference voltage, then determine that the proximity switch sensor is a normally open common anode proximity switch sensor, and the working circuit of the adaptive circuit module is the first working circuit; if the target voltage information is equal to the third reference voltage, then determine that the proximity switch sensor is a normally open common cathode proximity switch sensor, and the working circuit of the adaptive circuit module is the second working circuit.
[0017] Optionally, the adaptive device of the proximity switch also includes a power filtering module; the power filtering module is connected to the information interaction module, the processor, the proximity switch sensor, the information acquisition module and the adaptive circuit module respectively.
[0018] According to another aspect of the present invention, an adaptive system for a proximity switch is provided, the adaptive system comprising: an obstacle and an adaptive device for the proximity switch as described in any of the present invention.
[0019] The adaptive device for the proximity switch of the present invention includes an information interaction module, a processor, a proximity switch sensor, an information acquisition module, and an adaptive circuit module. The processor is connected to the information interaction module, the information acquisition module, and the adaptive circuit module, respectively. The proximity switch sensor is connected to either the information acquisition module or the adaptive circuit module. The information interaction module generates a self-test command based on user-input control information, sends the self-test command to the processor, and displays a first prompt and a second prompt. The processor determines the first prompt based on the self-test command, sends the first prompt to the information interaction module, and adjusts the processor's target parameters based on a preset time. The first prompt instructs the user to move an obstacle closer to or further away from the proximity switch sensor to adjust the sensor's output voltage information. The information acquisition module determines the proximity switch sensor's output voltage information after adjusting the processor's target parameters and determines a target voltage based on the output voltage information. The processor also determines the operating circuit of the adaptive circuit module or the second prompt based on the target voltage information. The second prompt prompt prompts the user to change the control information to adjust the self-test command. This invention incorporates an adaptive circuit module. The information acquisition module determines the target voltage information based on the output voltage information of the proximity switch sensor. This allows the processor to determine and adjust the operating circuit of the adaptive circuit module according to the target voltage information from the information acquisition module, making it suitable for the proximity switch sensor. This adaptive device is compatible with different types of proximity switch sensors. Users do not need to replace the proximity switch sensor or the intelligent control device based on the model of the proximity switch sensor. This simplifies the replacement and maintenance of proximity switch sensors and intelligent control devices, resulting in low operating costs and high practicality, effectively improving the user experience. It also solves the problem that when a proximity switch sensor or intelligent control device malfunctions, customers can only seek after-sales service for the specific model of the proximity switch sensor or intelligent control device for matching, limiting their options, affecting replacement efficiency, increasing maintenance costs, and reducing customer experience.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a schematic diagram of the structure of an adaptive device for a proximity switch provided in Embodiment 1 of the present invention;
[0023] Figure 2 This is a schematic diagram of the structure of an adaptive device for a proximity switch provided in Embodiment 2 of the present invention;
[0024] Figure 3 This is a schematic diagram of the structure of another adaptive device for proximity switches provided in Embodiment 2 of the present invention;
[0025] Figure 4 This is a schematic diagram of the structure of an adaptive system for a proximity switch provided in Embodiment 3 of the present invention.
[0026] Figure label:
[0027] 10-Adaptive device for proximity switch, 101-Information interaction module, 102-Processor, 103-Proximity switch sensor, 104-Information acquisition module, 105-Adaptive circuit module, 106-Power supply filtering module, 20-Adaptive system for proximity switch. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] Example 1
[0031] Figure 1This is a schematic diagram of the structure of an adaptive device for a proximity switch according to Embodiment 1 of the present invention. This embodiment is applicable to the use, replacement, and maintenance of industrial intelligent control equipment. Figure 1 As shown, the adaptive device includes: an information interaction module 101, a processor 102, a proximity switch sensor 103, an information acquisition module 104, and an adaptive circuit module 105. The processor 102 is connected to the information interaction module 101, the information acquisition module 104, and the adaptive circuit module 105, respectively. The proximity switch sensor 103 is connected to either the information acquisition module 104 or the adaptive circuit module 105.
[0032] The information interaction module generates self-test commands based on user-input control information, sends self-test commands to the processor, and displays first and second prompt messages. The processor determines the first prompt message based on the self-test command, sends the first prompt message to the information interaction module, and adjusts the processor's target parameters based on a preset time. The first prompt message instructs the user to move the obstacle closer to or further away from the proximity switch sensor to adjust the proximity switch sensor's output voltage information. The information acquisition module determines the proximity switch sensor's output voltage information after adjusting the processor's target parameters and determines the target voltage information based on the output voltage information. The processor also determines the operating circuit of the adaptive circuit module or the second prompt message based on the target voltage information. The second prompt message prompts the user to change the control information to adjust the self-test command.
[0033] The information interaction module can be understood as the component in the proximity switch's adaptive device that interacts with the user, such as a touchscreen. Control information can be understood as the user-input information. The self-test command can be understood as the command generated by the information interaction module based on the control information to determine the model of the proximity switch sensor. The processor can be understood as the component that collects voltage information and determines the model of the proximity switch sensor and the working circuit of the adaptive circuit module; for example, a microcontroller unit (MCU) or a microprocessor (Central Processing Unit). Unit (CPU), programmable logic controller, etc. The first prompt information can be understood as an instruction for the user to move the obstacle closer to or away from the proximity switch sensor, such as approaching the obstacle or moving away from the obstacle. The second prompt information can be understood as a prompt for the user to change the control information. The preset time can be understood as a pre-set time during which the user can move the obstacle closer to or away from the proximity switch sensor. The target parameter can be understood as the voltage information of some input and output ports of the processor in order to adjust the output signal of the proximity switch sensor. The proximity switch sensor can be understood as a switch-type sensor (i.e., a contactless switch), which has both travel / micro-switch characteristics and sensing performance. It is reliable in operation, stable in performance, fast in frequency response, long in service life, waterproof, shockproof, corrosion resistant and strong in anti-interference ability. The output voltage information can be understood as the voltage value of the output port of the proximity switch sensor. The information acquisition module can be understood as the component that collects the output voltage information. The target voltage information can be understood as the voltage value of the output port of the information acquisition module or the voltage value of the analog-to-digital information acquisition port of the processor (the analog-to-digital information acquisition port of the processor and the output port of the information acquisition module are connected). The working circuit of the adaptive circuit module can be understood as the information transmission circuit corresponding to the model of the proximity switch sensor.
[0034] Specifically, control information can include proximity information and distance information. Proximity information and distance information are presented differently on the information interaction module. For example, arrows pointing towards each other indicate proximity information, while arrows pointing away from each other indicate distance information. Users input different control information into the information interaction module by triggering different icons. Self-test commands can include obstacle-present commands and obstacle-free commands. When the control information is proximity information, the processor generates an obstacle-present command as the first prompt, which instructs the user to bring the obstacle closer to the proximity switch sensor. When the control information is distance information, the processor generates an obstacle-free command as the first prompt, which instructs the user to move the obstacle away from the proximity switch sensor. Adjusting the processor's target parameters is to activate the proximity switch sensor. The output voltage of the proximity switch sensor varies depending on the connection between the obstacle and the sensor. The information acquisition module collects the output voltage of the proximity switch sensor. Based on the output voltage of the information acquisition module, the processor can determine the operating circuit of the adaptive circuit module or the second prompt message. There is a correspondence between the type of proximity switch sensor and the operating circuit of the adaptive circuit module. If the processor can determine the type of proximity switch sensor based on the output voltage of the information acquisition module, it determines the operating circuit of the adaptive circuit module based on that type. If the processor cannot determine the type of proximity switch sensor based on the output voltage of the information acquisition module, it generates a second prompt message to prompt the user to change the control information. This prompts the user that the current self-test command cannot determine the type of proximity switch sensor and the operating circuit of the adaptive circuit module, and that the self-test command needs to be changed to determine the type of proximity switch sensor and the operating circuit of the adaptive circuit module (adjusting the self-test command only requires adjusting the self-test command once to determine the type of proximity switch sensor and the operating circuit of the adaptive circuit module).
[0035] Proximity switch sensors include normally closed common cathode proximity switch sensors, normally closed common anode proximity switch sensors, normally open common cathode proximity switch sensors, and normally open common anode proximity switch sensors.
[0036] It is worth noting Figure 1 The dashed lines in the diagram indicate possible connections or non-connections. The connection relationship between the components at both ends of the dashed lines needs to be determined based on the specific situation. Specifically, when the first prompt message is an obstacle command, the obstacle is connected to the proximity switch sensor; when the first prompt message is an obstacle-free command, the obstacle is not connected to the proximity switch sensor. When it is necessary to collect the voltage information of the proximity switch sensor, the proximity switch sensor is connected to the information acquisition module. When the type of the proximity switch sensor and the working circuit of the adaptive circuit module that matches its type are determined, and it is necessary to collect the working signal of the proximity switch sensor, the proximity switch sensor is connected to the adaptive circuit module.
[0037] Before determining the type of proximity switch sensor, the proximity switch sensor is connected to the information acquisition module so that the information acquisition module can collect the output voltage information of the proximity switch sensor; after determining the type of proximity switch sensor, the proximity switch sensor is connected to the adaptive circuit module so that the adaptive circuit module can transmit the control signal of the proximity switch sensor.
[0038] Typically, proximity switch sensors with a fixed state are provided to customers along with intelligent control equipment. If the proximity switch sensor malfunctions, customers can only contact after-sales service for a specific model to match, limiting their options and making maintenance and replacement cumbersome. Furthermore, to save costs and improve replacement efficiency, customers sometimes prefer to purchase a separate proximity switch sensor or choose from four different states, rather than buying the original one. This invention addresses this issue by detecting the proximity switch sensor model and determining its matching circuit, enabling automatic matching of proximity switches with different states in industrial intelligent control equipment. This satisfies customers' personalized and diverse choices, improves the convenience of equipment maintenance and replacement, and offers advantages such as low cost, ease of application, and automatic adaptation.
[0039] The adaptive device of the proximity switch in this embodiment includes an information interaction module, a processor, a proximity switch sensor, an information acquisition module, and an adaptive circuit module. The processor is connected to the information interaction module, the information acquisition module, and the adaptive circuit module, respectively. The proximity switch sensor is connected to either the information acquisition module or the adaptive circuit module. The information interaction module generates a self-test command based on user-input control information, sends the self-test command to the processor, and displays a first prompt and a second prompt. The processor determines the first prompt based on the self-test command, sends the first prompt to the information interaction module, and adjusts the processor's target parameters based on a preset time. The first prompt instructs the user to move an obstacle closer to or further away from the proximity switch sensor to adjust the sensor's output voltage information. The information acquisition module determines the proximity switch sensor's output voltage information after adjusting the processor's target parameters and determines a target voltage based on the output voltage information. The processor also determines the operating circuit of the adaptive circuit module or the second prompt based on the target voltage information. The second prompt prompt prompts the user to change the control information to adjust the self-test command. This invention incorporates an adaptive circuit module. The information acquisition module determines the target voltage information based on the output voltage information of the proximity switch sensor. This allows the processor to determine and adjust the operating circuit of the adaptive circuit module according to the target voltage information from the information acquisition module, making it suitable for the proximity switch sensor. This adaptive device is compatible with different types of proximity switch sensors. Users do not need to replace the proximity switch sensor or the intelligent control device based on the model of the proximity switch sensor. This simplifies the replacement and maintenance of proximity switch sensors and intelligent control devices, resulting in low operating costs and high practicality, effectively improving the user experience. It also solves the problem that when a proximity switch sensor or intelligent control device malfunctions, customers can only seek after-sales service for the specific model of the proximity switch sensor or intelligent control device for matching, limiting their options, affecting replacement efficiency, increasing maintenance costs, and reducing customer experience.
[0040] Example 2
[0041] Figure 2 This is a schematic diagram of the structure of an adaptive device for a proximity switch according to Embodiment 2 of the present invention. This embodiment is applicable to the use, replacement, and maintenance of industrial intelligent control equipment. Figure 2As shown, the adaptive device includes: an information interaction module 101, a processor 102, a proximity switch sensor 103, an information acquisition module 104, an adaptive circuit module 105, and a power filtering module 106. The processor 102 is connected to the information interaction module 101, the information acquisition module 104, and the adaptive circuit module 105. The proximity switch sensor 103 is connected to either the information acquisition module 104 or the adaptive circuit module 105. The power filtering module 106 is connected to the information interaction module 101, the processor 102, the proximity switch sensor 103, the information acquisition module 104, and the adaptive circuit module 105.
[0042] The information interaction module generates self-test commands based on user-input control information, sends self-test commands to the processor, and displays first and second prompt messages. The processor determines the first prompt message based on the self-test command, sends the first prompt message to the information interaction module, and adjusts the processor's target parameters based on a preset time. The first prompt message instructs the user to move the obstacle closer to or further away from the proximity switch sensor to adjust the proximity switch sensor's output voltage information. The information acquisition module determines the proximity switch sensor's output voltage information after adjusting the processor's target parameters and determines the target voltage information based on the output voltage information. The processor also determines the operating circuit of the adaptive circuit module or the second prompt message based on the target voltage information. The second prompt message prompts the user to change the control information to adjust the self-test command.
[0043] The information interaction module can be understood as the component in the proximity switch's adaptive device that interacts with the user, such as a touchscreen. Control information can be understood as user-inputted information. The self-test command can be understood as a command generated by the information interaction module based on the control information to determine the model of the proximity switch sensor. The processor can be understood as the component that collects voltage information and determines the model of the proximity switch sensor and the working circuit of the adaptive circuit module, such as a microcontroller unit (MCU), a central processing unit (CPU), or a programmable logic controller. The first prompt information can be understood as an instruction for the user to move the obstacle closer to or away from the proximity switch sensor, such as "approach obstacle" or "move away from obstacle." The second prompt information can be understood as a prompt for the user to change the control information. The preset time can be understood as a pre-set time during which the user can move the obstacle closer to or away from the proximity switch sensor. The target parameter can be understood as the voltage information of some of the processor's input / output ports to adjust the output signal of the proximity switch sensor. The proximity switch sensor can be understood as a switch-type sensor that simultaneously possesses travel / micro-switch characteristics and sensing performance. Reliable, stable performance, fast frequency response, long service life, waterproof, shockproof, corrosion resistant, and strong anti-interference ability. The output voltage information can be understood as the voltage value of the output port of the proximity switch sensor. The information acquisition module can be understood as the acquisition component of the output voltage information. The target voltage information can be understood as the voltage value of the output port of the information acquisition module or the voltage value of the analog-to-digital information acquisition port of the processor. The working circuit of the adaptive circuit module can be understood as the information transmission circuit corresponding to the model of the proximity switch sensor. The power supply filtering module is used to filter out interference signals in the adaptive device of the proximity switch, and generally includes surge protection circuit and common mode filter circuit. This embodiment does not limit this.
[0044] Specifically, control information can include proximity information and distance information. Proximity information and distance information are presented differently on the information interaction module. For example, arrows that are approaching each other indicate proximity information, while arrows that are moving away from each other indicate distance information. Users input different control information into the information interaction module by triggering different icons. Self-test commands can include obstacle-present commands and obstacle-free commands. When the control information is proximity information, the processor generates an obstacle-present command as the first prompt, which instructs the user to bring the obstacle closer to the proximity switch sensor. When the control information is distance information, the processor generates an obstacle-free command as the first prompt, which instructs the user to move the obstacle away from the proximity switch sensor. Adjusting the processor's target parameters is to activate the proximity switch sensor. The output voltage of the proximity switch sensor varies depending on the connection between the obstacle and the sensor. The information acquisition module collects the output voltage of the proximity switch sensor. Based on the output voltage of the information acquisition module, the processor can determine the operating circuit of the adaptive circuit module or the second prompt message. There is a correspondence between the type of proximity switch sensor and the operating circuit of the adaptive circuit module. If the processor can determine the type of proximity switch sensor based on the output voltage of the information acquisition module, it determines the operating circuit of the adaptive circuit module based on that type. If the processor cannot determine the type of proximity switch sensor based on the output voltage of the information acquisition module, it generates a second prompt message to prompt the user to change the control information. This prompt indicates that the current self-test command cannot determine the type of proximity switch sensor and the operating circuit of the adaptive circuit module, and that the self-test command needs to be changed to determine the type of proximity switch sensor and the operating circuit of the adaptive circuit module.
[0045] The proximity switch sensors include normally closed common cathode proximity switch sensors (also referred to as normally closed PNP proximity switch sensors or PNP normally closed type in this embodiment), normally closed common anode proximity switch sensors (also referred to as normally closed NPN proximity switch sensors or NPN normally closed type in this embodiment), normally open common cathode proximity switch sensors (also referred to as normally open PNP proximity switch sensors or PNP normally open type in this embodiment), and normally open common anode proximity switch sensors (also referred to as normally open NPN proximity switch sensors or NPN normally open type in this embodiment).
[0046] same Figure 1 Same, Figure 2The dashed lines in the diagram indicate possible connections or non-connections. The connection relationship between the components at both ends of the dashed lines needs to be determined based on the specific situation. Specifically, when the first prompt message is an obstacle command, the obstacle is connected to the proximity switch sensor; when the first prompt message is an obstacle-free command, the obstacle is not connected to the proximity switch sensor. When it is necessary to collect the voltage information of the proximity switch sensor, the proximity switch sensor is connected to the information acquisition module. When the type of the proximity switch sensor and the working circuit of the adaptive circuit module that matches its type are determined, and it is necessary to collect the working signal of the proximity switch sensor, the proximity switch sensor is connected to the adaptive circuit module.
[0047] Before determining the type of proximity switch sensor, the proximity switch sensor is connected to the information acquisition module so that the information acquisition module can collect the output voltage information of the proximity switch sensor; after determining the type of proximity switch sensor, the proximity switch sensor is connected to the adaptive circuit module so that the adaptive circuit module can transmit the control signal of the proximity switch sensor.
[0048] Optionally, the processor is specifically configured to: determine whether the target voltage information is equal to the first reference voltage; if the target voltage information is not equal to the first reference voltage, determine the type of the proximity switch sensor and the working circuit of the adaptive circuit module based on the target voltage information, the second reference voltage, and the third reference voltage; if the target voltage information is equal to the first reference voltage, generate a second prompt message and send the second prompt message to the information interaction module so that the information interaction module can display the second prompt message.
[0049] The first reference voltage is the output voltage of the information acquisition module when the proximity switch sensor has no output, the second reference voltage is the output voltage of the information acquisition module when the proximity switch sensor outputs a low level, and the third reference voltage is the output voltage of the information acquisition module when the proximity switch sensor outputs a high level.
[0050] Specifically, the control information includes first control information (i.e., distance information) and second control information (i.e., proximity information). The first control information corresponds to the obstacle-free command, and the second control information corresponds to the obstacle-present command. When the self-test command is an obstacle-free command, the first prompt information instructs the user to move the obstacle away from the proximity switch sensor, and the second prompt information instructs the user to change the first control information to the second control information so that the information interaction module can adjust the obstacle-free command to an obstacle-present command. When the self-test command is an obstacle-present command, the first prompt information instructs the user to move the obstacle closer to the proximity switch sensor, and the second prompt information instructs the user to change the second control information to the first control information so that the information interaction module can adjust the obstacle-present command to an obstacle-free command.
[0051] In a specific example, when the self-test command is an obstacle-free command, the processor specifically performs the following steps: determining whether the target voltage information is equal to the second reference voltage or the third reference voltage; if the target voltage information is equal to the second reference voltage, then the proximity switch sensor is determined to be a normally closed common anode proximity switch sensor, and the adaptive circuit module's operating circuit is the first operating circuit; if the target voltage information is equal to the third reference voltage, then the proximity switch sensor is determined to be a normally closed common cathode proximity switch sensor, and the adaptive circuit module's operating circuit is the second operating circuit. When the self-test command is an obstacle-present command, the processor specifically performs the following steps: determining whether the target voltage information is equal to the second reference voltage or the third reference voltage; if the target voltage information is equal to the second reference voltage, then the proximity switch sensor is determined to be a normally open common anode proximity switch sensor, and the adaptive circuit module's operating circuit is the first operating circuit; if the target voltage information is equal to the third reference voltage, then the proximity switch sensor is determined to be a normally open common cathode proximity switch sensor, and the adaptive circuit module's operating circuit is the second operating circuit.
[0052] The first working circuit can be understood as the transmission circuit for the control signal of the NPN proximity switch sensor, and the second working circuit can be understood as the transmission circuit for the control signal of the PNP proximity switch sensor. It is worth noting that the processor needs to know the specific model of the proximity switch sensor to determine the specific control type corresponding to the collected information, preventing false control. For example, a normally open proximity switch sensor generates a shutdown control signal when a trigger signal is present and a start control signal when no trigger signal is present; a normally closed proximity switch sensor generates a start control signal when a trigger signal is present and a shutdown control signal when no trigger signal is present.
[0053] Figure 3 This is a schematic diagram of another adaptive device for proximity switches provided in Embodiment 2 of the present invention. In the diagram, VCC represents the output electrical signal of the circuit filtering module, VDD represents the output electrical signal of the processor, and GND represents ground. As can be seen from the diagram, the information acquisition module includes a first diode D1, a second diode D2, a fourth diode D4, a fifth diode D5, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a sixth resistor R6, and a second capacitor C2. The adaptive circuit module includes a third diode D3, a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, a third capacitor C3, a fourth capacitor C4, a first transistor Q1, a third single-pole double-throw switch K3, an eleventh resistor R11, a fourth single-pole double-throw switch K4, a twelfth resistor R12, a fifth capacitor C5, a thirteenth resistor R13, and a second transistor Q2. The connection relationships of each component are as follows: Figure 3 As shown, the port numbers of each component are in Figure 3 It was not shown in the text.
[0054] In the diagram, resistors R1, R2, and R10 are pull-down resistors to ensure the processor's connected ports are low at power-up. Resistors R3, R4, R5, R6, R7, R8, R9, and R12 are current-limiting resistors. Resistors R11 and R13 are pull-up resistors. Capacitors C1, C2, C3, C4, and C5 are filter capacitors. Transistors Q1 and Q2 are NPN transistors. Diodes D1 and D2 are Schottky diodes of the same type with a voltage drop of VZ. Diodes D3 and D4 are electrostatic discharge diodes. Diode D5 is a Schottky diode, acting as a clamping device to protect the processor. IO1, IO3, and IO4 are the processor's internal input / output ports. IO2 is the processor's internal analog / digital (A / D) acquisition port (i.e., analog-to-digital information acquisition port). K1, K2, K3, and K4 are all single-pole double-throw switches. S1, S2, S3, and S4 represent control terminals, which are low by default. In the default state, A1 and B1 are connected in K1, A2 and B2 in K2, A3 and B3 in K3, and A4 and B4 in K4. When S1 is high, A1 and C1 are connected in K1; when S2 is high, A2 and C2 are connected in K2; when S3 is high, A3 and C3 are connected in K3; and when S4 is high, A4 and C4 are connected in K4. In practical applications, single-pole double-throw switches can also be replaced by metal-oxide-semiconductor (MOS) field-effect transistors. The proximity switch sensor is a three-wire proximity switch sensor. In practical applications, it can be NPN normally closed, NPN normally open, PNP normally closed, or PNP normally open. Specifically, the NPN normally closed type outputs a low level (0V) in the initial state and does not output a signal when a detected object approaches. The NPN normally open type outputs a low level signal when a detected object approaches. The PNP normally closed type outputs a high level (VCC, such as 24V) in the initial state and does not output a signal when a detected object approaches. The PNP normally open type outputs a high level signal (VCC, such as 24V) when a detected object approaches. This embodiment does not limit this.
[0055] In one specific implementation, the resistance values of R3 and R4 are equal. Assuming the connection point between the information acquisition module and the processor is point A, and the voltage at point A is VA, when the proximity switch sensor has no output, the VA value at point A is VAB, VAB = VCC * R6 / 2 * (R5 + R6). When the proximity switch sensor outputs a high-level signal, the VA value acquired at point A is VAG, VAG = (VCC - VZ) * R6 / (R5 + R6). When the proximity switch sensor outputs a low-level signal, the VA value acquired at point A is VAD, VAD = VZ * R6 / (R5 + R6). VAB (i.e., the first reference voltage), VAG (i.e., the third reference voltage), and VAD (i.e., the second reference voltage) are used as reference values for acquisition and stored in the processor's internal memory to determine the model of the proximity switch sensor.
[0056] In this configuration, VCC is the power supply voltage for the proximity switch sensor, typically 24V, and VDD is the power supply voltage for the processor's input / output ports. The processor's IO1, IO3, and IO4 are initially at a low level, while IO5 is initially at a high level. This embodiment adjusts the parameters of the fifth resistor R5 and the sixth resistor R6 so that VAB is approximately VDD / 2, VAG is less than or equal to VDD, and VAD is less than VZ. The processor can set a certain range for the three reference values VAB, VAG, and VAD according to actual conditions. This setting is beneficial for the state detection of the proximity switch sensor.
[0057] In a specific example, after receiving a self-test command from the information interaction module, the processor parses and determines whether the self-test command indicates an obstacle. If so, the processor sends obstacle data to the information interaction module, and the information interaction module displays "Approaching Obstacle Detection" so that the user can move the obstacle closer to the proximity switch sensor. Otherwise, the processor sends obstacle-free data to the information interaction module, and the information interaction module displays "Away from Obstacle Detection" so that the user can move the obstacle away from the proximity switch sensor. If the self-test command indicates an obstacle, the processor will pull IO1 high (to power the proximity switch sensor) and keep IO3 and IO4 low to ensure the proximity switch sensor operates normally. IO2 will collect the voltage VA at point A and determine the type of proximity switch sensor and the working circuit of the adaptive circuit module based on VA. When VA equals VAB, the proximity switch sensor is determined to be normally closed. The specific model needs to be determined under the condition of no obstacle command. The processor sends the second display information to the information interaction module to instruct the user to adjust the self-test command. When VA equals VAD, the proximity switch sensor is determined to be normally open NPN type, the working circuit of the adaptive circuit module is the first working circuit, and IO3 and IO4 are adjusted to high level so that the first working circuit can transmit the control information of the proximity switch sensor. When VA equals VAG, the proximity switch sensor is determined to be normally open PNP type, the working circuit of the adaptive circuit module is the second working circuit, and IO3 is adjusted to high level and IO4 is low level so that the second working circuit can transmit the control information of the proximity switch sensor. Conversely, if the self-test command is an obstacle-free command, when VA equals VAB, the proximity switch sensor is determined to be normally open. The specific model needs to be determined under the obstacle command condition. The processor sends the second display information to the information interaction module to instruct the user to adjust the self-test command. When VA equals VAD, the proximity switch sensor is determined to be normally closed NPN type. The working circuit of the adaptive circuit module is the first working circuit, and IO3 and IO4 are adjusted to high level so that the first working circuit can transmit the control information of the proximity switch sensor. When VA equals VAG, the proximity switch sensor is determined to be normally closed PNP type. The working circuit of the adaptive circuit module is the second working circuit, and IO3 is adjusted to high level and IO4 is adjusted to low level so that the second working circuit can transmit the control information of the proximity switch sensor.
[0058] The first working circuit consists of the second single-pole double-throw switch K2 (pin A2 connected to pin C2), the third diode D3, the seventh resistor R7, the eighth resistor R8, the ninth resistor R9, the third single-pole double-throw switch K3 (pin A3 connected to pin C3), the third capacitor C3, the first transistor Q1, the eleventh resistor R11, the fourth single-pole double-throw switch K4, the twelfth resistor R12, the fifth capacitor C5, the second transistor Q2, and the thirteenth resistor R13. The second working circuit consists of the second single-pole double-throw switch K2 (pin A2 connected to pin C2), the third diode D3, the seventh resistor R7, the eighth resistor R8, the third capacitor C3, the first transistor Q1, the eleventh resistor R11, the fourth single-pole double-throw switch K4, and the thirteenth resistor R13.
[0059] Specifically, after the processor determines the type of proximity switch sensor, it can also send the proximity switch sensor type information to the information interaction module for display, so that the user can understand the type of proximity switch sensor.
[0060] This embodiment combines multiple technologies, including the unidirectional conductivity of diodes, the switching characteristics of electronic switches, A / D acquisition technology, input / output port technology, and information communication technology between components, to realize a method for distinguishing different proximity switches and adaptively adjusting the circuit for different proximity switches.
[0061] This invention summarizes the operating signals of the main components in the adaptive device of the proximity switch so that users can understand the parameter information of each component, as shown below. Table 1 shows the operating signals of some components in the adaptive device of the proximity switch.
[0062] Table 1
[0063]
[0064] The adaptive device of the proximity switch in this embodiment includes an information interaction module, a processor, a proximity switch sensor, an information acquisition module, an adaptive circuit module, and a power filtering module. The processor is connected to the information interaction module, the information acquisition module, and the adaptive circuit module. The proximity switch sensor is connected to either the information acquisition module or the adaptive circuit module. The power filtering module is connected to the information interaction module, the processor, the proximity switch sensor, the information acquisition module, and the adaptive circuit module. The information interaction module generates a self-test command based on user-input control information, sends the self-test command to the processor, and displays a first prompt and a second prompt. The processor determines the first prompt based on the self-test command, sends the first prompt to the information interaction module, and adjusts the processor's target parameters based on a preset time. The first prompt instructs the user to move an obstacle closer to or further away from the proximity switch sensor to adjust the sensor's output voltage. The information acquisition module determines the proximity switch sensor's output voltage after adjusting the processor's target parameters and determines a target voltage based on the output voltage. The processor also determines the adaptive circuit module's operating circuit or the second prompt based on the target voltage. The second prompt prompts the user to change the control information to adjust the self-test command. This invention incorporates an adaptive circuit module. The information acquisition module determines the target voltage information based on the output voltage information of the proximity switch sensor. This allows the processor to determine and adjust the operating circuit of the adaptive circuit module according to the target voltage information from the information acquisition module, making it suitable for the proximity switch sensor. This adaptive device is compatible with different types of proximity switch sensors. Users do not need to replace the proximity switch sensor or the intelligent control device based on the model of the proximity switch sensor. This simplifies the replacement and maintenance of proximity switch sensors and intelligent control devices, resulting in low operating costs and high practicality, effectively improving the user experience. It also solves the problem that when a proximity switch sensor or intelligent control device malfunctions, customers can only seek after-sales service for the specific model of the proximity switch sensor or intelligent control device for matching, limiting their options, affecting replacement efficiency, increasing maintenance costs, and reducing customer experience.
[0065] Example 3
[0066] Figure 4 This is a schematic diagram of an adaptive system for a proximity switch provided in Embodiment 3 of the present invention. This embodiment is applicable to the use, replacement, and maintenance of industrial intelligent control equipment. Figure 4 As shown, the adaptive system includes an obstacle 20 and an adaptive device 10 for a proximity switch as described in any of the present invention.
[0067] In this context, obstacles can be understood as triggers for the adaptive device of the proximity switch, such as magnetic induction cards or induction strips. This embodiment does not limit this to any particular type.
[0068] The adaptive system for the proximity switch in this embodiment includes an obstacle and the adaptive device for the proximity switch described in the above embodiments. When the proximity switch sensor is replaced, the adaptive system can be used to determine the model of the proximity switch sensor and adjust its adapter circuit, enabling simple and quick maintenance of the intelligent control device. This solves the problem that when the proximity switch sensor or intelligent control device malfunctions, customers can only seek after-sales service for the specific model of the proximity switch sensor or intelligent control device for matching, limiting their options, affecting product replacement efficiency, increasing maintenance costs, and reducing customer experience. Furthermore, the adaptive system for the proximity switch provided in this embodiment includes the adaptive device for the proximity switch in the above embodiments and possesses the corresponding beneficial effects of the adaptive device for the proximity switch.
[0069] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0070] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. An adaptive device for a proximity switch, characterized in that, include: The system includes an information interaction module, a processor, a proximity switch sensor, an information acquisition module, and an adaptive circuit module. The processor is connected to the information interaction module, the information acquisition module, and the adaptive circuit module, respectively. The proximity switch sensor is connected to either the information acquisition module or the adaptive circuit module. The information interaction module is used to generate a self-test command based on the control information input by the user, send the self-test command to the processor, and display a first prompt message and a second prompt message. The processor is configured to determine the first prompt information according to the self-test instruction, send the first prompt information to the information interaction module, and adjust the target parameters of the processor based on a preset time. The first prompt information is used to instruct the user to move the obstacle closer to or further away from the proximity switch sensor in order to adjust the output voltage information of the proximity switch sensor. The information acquisition module is used to determine the output voltage information of the proximity switch sensor after adjusting the target parameters of the processor, and to determine the target voltage information based on the output voltage information. The processor is further configured to determine the operating circuit of the adaptive circuit module or the second prompt information based on the target voltage information, wherein the second prompt information is used to prompt the user to change the control information in order to adjust the self-test command; The processor is specifically used for: Determine whether the target voltage information is equal to the first reference voltage; If the target voltage information is not equal to the first reference voltage, then based on the target voltage information, the second reference voltage, and the third reference voltage, the type of the proximity switch sensor and the working circuit of the adaptive circuit module are determined. If the target voltage information is equal to the first reference voltage, a second prompt message is generated and sent to the information interaction module so that the information interaction module can display the second prompt message.
2. The adaptive device according to claim 1, characterized in that, The first reference voltage is the output voltage of the information acquisition module when the proximity switch sensor has no output; the second reference voltage is the output voltage of the information acquisition module when the proximity switch sensor outputs a low level; and the third reference voltage is the output voltage of the information acquisition module when the proximity switch sensor outputs a high level.
3. The adaptive device according to claim 1, characterized in that, The control information includes first control information and second control information, wherein the first control information corresponds to the obstacle-free command and the second control information corresponds to the obstacle-present command; When the self-test command is the obstacle-free command, the first prompt information is used to instruct the user to move the obstacle away from the proximity switch sensor, and the second prompt information is used to instruct the user to change the first control information to the second control information, so that the information interaction module can adjust the obstacle-free command to the obstacle-present command. When the self-test command is an obstacle-prone command, the first prompt information is used to instruct the user to bring the obstacle closer to the proximity switch sensor, and the second prompt information is used to instruct the user to change the second control information to the first control information, so that the information interaction module can adjust the obstacle-prone command to the obstacle-free command.
4. The adaptive device according to claim 1, characterized in that, Before determining the type of the proximity switch sensor, the proximity switch sensor is connected to the information acquisition module so that the information acquisition module can acquire the output voltage information of the proximity switch sensor; After determining the type of the proximity switch sensor, the proximity switch sensor is connected to the adaptive circuit module so that the adaptive circuit module can transmit the control signal of the proximity switch sensor.
5. The adaptive device according to claim 1, characterized in that, The proximity switch sensor includes a normally closed common cathode proximity switch sensor, a normally closed common anode proximity switch sensor, a normally open common cathode proximity switch sensor, and a normally open common anode proximity switch sensor.
6. The adaptive device according to claim 5, characterized in that, When the self-test command is an obstacle-free command, the processor is specifically used for: Determine whether the target voltage information is equal to the second reference voltage or the third reference voltage; If the target voltage information is equal to the second reference voltage, then the proximity switch sensor is determined to be the normally closed common anode proximity switch sensor, and the working circuit of the adaptive circuit module is the first working circuit; If the target voltage information is equal to the third reference voltage, then the proximity switch sensor is determined to be the normally closed common cathode proximity switch sensor, and the working circuit of the adaptive circuit module is the second working circuit.
7. The adaptive device according to claim 5, characterized in that, When the self-test instruction is an obstacle instruction, the processor is specifically used for: Determine whether the target voltage information is equal to the second reference voltage or the third reference voltage; If the target voltage information is equal to the second reference voltage, then the proximity switch sensor is determined to be the normally open common anode proximity switch sensor, and the working circuit of the adaptive circuit module is the first working circuit; If the target voltage information is equal to the third reference voltage, then the proximity switch sensor is determined to be the normally open common cathode proximity switch sensor, and the working circuit of the adaptive circuit module is the second working circuit.
8. The adaptive device according to claim 1, characterized in that, It also includes a power filtering module; The power filtering module is connected to the information interaction module, the processor, the proximity switch sensor, the information acquisition module, and the adaptive circuit module, respectively.
9. An adaptive system for a proximity switch, characterized in that, include: An adaptive device for an obstacle and a proximity switch as described in any one of claims 1-8.
Citation Information
Patent Citations
Proximity switch output type identification equipment and identification method thereof
CN111884643A
Be close formula magnetic induction switch control chip
CN206611612U