CN117109508A - A device and method for testing the displacement function of a wireless dynamometer - Google Patents
A device and method for testing the displacement function of a wireless dynamometer Download PDFInfo
- Publication number
- CN117109508A CN117109508A CN202311376503.4A CN202311376503A CN117109508A CN 117109508 A CN117109508 A CN 117109508A CN 202311376503 A CN202311376503 A CN 202311376503A CN 117109508 A CN117109508 A CN 117109508A
- Authority
- CN
- China
- Prior art keywords
- pin
- resistor
- main control
- socket
- grounded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000006073 displacement reaction Methods 0.000 title claims abstract description 32
- 238000012360 testing method Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 title claims abstract description 12
- 239000002184 metal Substances 0.000 claims abstract description 64
- 230000006698 induction Effects 0.000 claims abstract description 54
- 229910000831 Steel Inorganic materials 0.000 claims abstract description 8
- 239000010959 steel Substances 0.000 claims abstract description 8
- 239000003990 capacitor Substances 0.000 claims description 46
- 230000001960 triggered effect Effects 0.000 claims description 7
- 230000003287 optical effect Effects 0.000 claims 10
- 238000005086 pumping Methods 0.000 abstract description 9
- 238000005259 measurement Methods 0.000 abstract description 8
- 230000001133 acceleration Effects 0.000 abstract description 5
- 239000000463 material Substances 0.000 abstract description 3
- 239000002699 waste material Substances 0.000 abstract description 3
- 230000000737 periodic effect Effects 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 8
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012797 qualification Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B21/00—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
- G01B21/02—Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring length, width, or thickness
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L25/00—Testing or calibrating of apparatus for measuring force, torque, work, mechanical power, or mechanical efficiency
- G01L25/006—Testing or calibrating of apparatus for measuring force, torque, work, mechanical power, or mechanical efficiency for measuring work or mechanical power or mechanical efficiency
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
Abstract
Description
技术领域Technical field
本发明涉及用于无线示功仪的生产及对产品的质量检测,尤其涉及一种用于测试无线示功仪位移功能的装置及方法。The present invention relates to the production of wireless dynamometers and the quality inspection of products, and in particular to a device and method for testing the displacement function of wireless dynamometers.
背景技术Background technique
无线示功仪是综合载荷值测量、位移测量、无线通信为一体的一种仪器,能够自动采集抽油机载荷、冲程,计算出功图数据,独立或通过与现场的RTU配合实现远程功图传输。The wireless dynamometer is an instrument that integrates load value measurement, displacement measurement, and wireless communication. It can automatically collect the load and stroke of the pumping unit, calculate the power chart data, and realize remote power charts independently or by cooperating with the on-site RTU. transmission.
在生产无线示功仪或校验的时候,载荷值测量可以通过载荷标定仪测量,无线通信功能可以和RTU通信进行检验,只有位移功能的检测难以解决,位移是通过采集无线示功仪内置的加速度传感器的值,再对加速度进行积分获得,目前没有合适的仪器在出产前检验位移测量功能的准确性,只能发到现场安装到抽油机上运行后,通过RTU采集到计算的结果和抽油机的运行位移对比才能确认位移测量的是否准确,这种方式会浪费人力物力,还会影响产品的信誉度。When producing or calibrating wireless dynamometers, the load value can be measured by a load calibrator, and the wireless communication function can be tested by communicating with the RTU. Only the detection of the displacement function is difficult to solve. The displacement is collected by collecting the built-in wireless dynamometer. The value of the acceleration sensor is obtained by integrating the acceleration. Currently, there is no suitable instrument to test the accuracy of the displacement measurement function before production. It can only be sent to the site and installed on the pumping unit for operation, and the calculated results are collected through the RTU. Only by comparing the operating displacement of the pumping unit can we confirm whether the displacement measurement is accurate. This method will waste manpower and material resources, and will also affect the credibility of the product.
发明内容Contents of the invention
鉴于上述现有技术存在的问题和状况,为了解决无线示功仪位移测量功能的校验难的问题,本发明提供一种用于测试无线示功仪位移功能的装置及方法,用于模拟抽油机的抽油运动以进行无线示功仪的研制。采用本装置和方法可以改变上行控制和下行控制所在的位置自由调节上下位移的大小,可以在每台无线示功仪出厂前测试位移测量功能,保证了产品合格率。In view of the problems and conditions of the above-mentioned existing technologies, in order to solve the problem of difficulty in verifying the displacement measurement function of a wireless dynamometer, the present invention provides a device and method for testing the displacement function of a wireless dynamometer for simulating pumping. The oil pumping movement of the oil machine was used to develop a wireless dynamometer. Using this device and method, the position of the uplink control and downlink control can be changed to freely adjust the size of the up and down displacement. The displacement measurement function of each wireless dynamometer can be tested before leaving the factory, ensuring the product qualification rate.
本发明为实现上述目的,所采取的技术方案是:一种用于测试无线示功仪位移功能的装置包括固定支架、电动机、带滑块的导杆、固定台、定滑轮、限位金属感应传感器、钢丝绳和控制电路板;所述电动机安装在固定支架的底板上,所述钢丝绳的一端连接在电动机上,另外一端通过所述定滑轮连接到固定台上,固定台安装在左右两根带滑块的导杆上,以保证固定台在运动过程中的稳定性;定滑轮安装在固定支架的上板下侧,四个所述限位金属感应传感器安装在固定支架的一根带刻度的立柱上,从上至下依次为上行保护限位金属感应传感器、上行限位金属感应传感器、下行限位金属感应传感器和下行保护限位金属感应传感器;所述控制电路板安装在固定支架的上板上侧,电动机的电源线和四个限位金属感应传感器的信号线均连接到控制电路板上。In order to achieve the above object, the technical solution adopted by the present invention is: a device for testing the displacement function of a wireless dynamometer including a fixed bracket, a motor, a guide rod with a slider, a fixed table, a fixed pulley, and a limit metal induction Sensor, steel wire rope and control circuit board; the motor is installed on the bottom plate of the fixed bracket, one end of the steel wire rope is connected to the motor, and the other end is connected to the fixed platform through the fixed pulley, and the fixed platform is installed on the left and right belts on the guide rod of the slide block to ensure the stability of the fixed table during movement; the fixed pulley is installed on the lower side of the upper plate of the fixed bracket, and the four limit metal induction sensors are installed on a graduated rod on the fixed bracket. On the column, from top to bottom are the upward protection limit metal induction sensor, the upward limit metal induction sensor, the downward limit metal induction sensor and the downward protection limit metal induction sensor; the control circuit board is installed on the fixed bracket. On the upper side of the board, the power lines of the motor and the signal lines of the four limit metal induction sensors are connected to the control circuit board.
所述控制电路板上安装有上行保护电路、上行控制电路、下行控制电路、下行保护电路、继电器控制供电电路和主控制电路;其中,所述上行保护电路分别连接所述上行保护限位金属传感器和主控制电路,所述上行控制电路分别连接所述上行限位金属传感器和主控制电路,所述下行控制电路分别连接下行限位金属传感器和主控制电路,所述下行保护电路分别连接下行保护限位金属传感器和主控制电路,所述继电器控制供电电路分别连接电动机和主控制电路。The control circuit board is equipped with an uplink protection circuit, an uplink control circuit, a downlink control circuit, a downlink protection circuit, a relay control power supply circuit and a main control circuit; wherein, the uplink protection circuit is connected to the uplink protection limit metal sensor respectively. and a main control circuit. The uplink control circuit is respectively connected to the uplink limit metal sensor and the main control circuit. The downlink control circuit is respectively connected to the downlink limit metal sensor and the main control circuit. The downlink protection circuit is respectively connected to the downlink protection circuit. Limit metal sensor and main control circuit, the relay control power supply circuit is connected to the motor and the main control circuit respectively.
一种用于测试无线示功仪位移功能的装置的方法:所述用于测试无线示功仪位移功能的装置执行以下操作:给控制电路板上电,主控芯片N1初始化,置管脚PC5、PC0为低电平输出,合上开关S3,按下按键S1触发中断,主控芯片N1收到中断后,置PC0为高电平,控制电路板给电动机供电,装置开始工作,随着电动机转动带着固定台运动,当固定台到达限位金属感应传感器时,触发中断,主控芯片N1判断是否收到的是上行控制PC1管脚中断信号,如果是PC1管脚中断信号,PC5管脚电平取反,电动机供电翻转,使电动机反向转动,带动固定台反向运动,程序继续运行,当固定台再次到达限位金属感应传感器时,主控芯片N1判断是否收到的是上行保护PC2管脚中断信号或下行保护PC4管脚中断信号,如果是上行保护PC2管脚中断信号或下行保护PC4管脚中断信号,主控芯片N1把PC0电平置低,电动机断电,装置停止运行,如果不是上行保护PC2管脚中断信号或下行保护PC4管脚中断信号,程序继续运行,主控芯片N1判断是否收到的是上行控制PC1管脚中断信号,如果不是PC1管脚中断信号,主控芯片N1判断是否收到的是下行控制PC3管脚中断信号,如果是PC3管脚中断信号,PC5管脚电平取反,电动机供电翻转,使电动机反向转动,带动固定台反向运动,如果不是PC3管脚中断信号,主控芯片N1则判断是上行保护PC2管脚中断信号或下行保护PC4管脚中断信号,程序按照流程一直循环运行。A method for testing a device for testing the displacement function of a wireless dynamometer: the device for testing the displacement function of a wireless dynamometer performs the following operations: power on the control circuit board, initialize the main control chip N1, and set the pin PC5 , PC0 is low level output, close switch S3, press button S1 to trigger an interrupt, after the main control chip N1 receives the interrupt, set PC0 to high level, control the circuit board to supply power to the motor, and the device starts to work. As the motor The rotation brings the fixed table to move. When the fixed table reaches the limit metal induction sensor, an interrupt is triggered. The main control chip N1 determines whether the uplink control PC1 pin interrupt signal is received. If it is the PC1 pin interrupt signal, the PC5 pin The level is reversed, and the power supply of the motor is flipped, causing the motor to rotate in the reverse direction, driving the fixed table to move in the reverse direction, and the program continues to run. When the fixed table reaches the limit metal induction sensor again, the main control chip N1 determines whether the received uplink protection PC2 Pin interrupt signal or downlink protection PC4 pin interrupt signal. If it is an uplink protection PC2 pin interrupt signal or downlink protection PC4 pin interrupt signal, the main control chip N1 sets the PC0 level low, the motor is powered off, and the device stops running. If it is not the uplink protection PC2 pin interrupt signal or the downlink protection PC4 pin interrupt signal, the program continues to run. The main control chip N1 determines whether it has received the uplink control PC1 pin interrupt signal. If it is not the PC1 pin interrupt signal, the main control chip N1 Chip N1 determines whether it receives the downlink control PC3 pin interrupt signal. If it is the PC3 pin interrupt signal, the level of the PC5 pin is inverted, the motor power supply is flipped, causing the motor to rotate in the reverse direction and drive the fixed table to move in the reverse direction. The PC3 pin interrupt signal is judged by the main control chip N1 to be the uplink protection PC2 pin interrupt signal or the downlink protection PC4 pin interrupt signal. The program keeps running in a loop according to the process.
本发明所产生的有益效果是:使用本发明,可以在每台无线示功仪出厂前测试位移测量功能,保证了产品出产合格率,避免安装到抽油机上才发现有问题,减少人力物力的浪费。The beneficial effects produced by the present invention are: using the present invention, the displacement measurement function of each wireless dynamometer can be tested before leaving the factory, ensuring the product production qualification rate, avoiding problems being discovered only after being installed on the oil pumping unit, and reducing manpower and material resources waste.
附图说明Description of drawings
图1为本发明用于测试无线示功仪位移功能的装置结构图;Figure 1 is a structural diagram of a device used to test the displacement function of a wireless dynamometer according to the present invention;
图2为图1中控制电路板电路连接框图;Figure 2 is a block diagram of the circuit connection of the control circuit board in Figure 1;
图3为图2中主控制电路原理图;Figure 3 is the schematic diagram of the main control circuit in Figure 2;
图4为图2中上行控制电路原理图;Figure 4 is the schematic diagram of the uplink control circuit in Figure 2;
图5为图2中下行控制电路原理图;Figure 5 is the schematic diagram of the downlink control circuit in Figure 2;
图6为图2中上行保护电路原理图;Figure 6 is the schematic diagram of the uplink protection circuit in Figure 2;
图7为图2中下行保护电路原理图;Figure 7 is the schematic diagram of the downlink protection circuit in Figure 2;
图8为图2中继电器控制供电电路原理图;Figure 8 is a schematic diagram of the relay control power supply circuit in Figure 2;
图9为图2中控制电路板软件运行流程图。Figure 9 is a flow chart of the control circuit board software operation in Figure 2.
具体实施方式Detailed ways
以下结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings.
如图1所示,用于测试无线示功仪位移功能的装置包括固定支架1、电动机2、带滑块的导杆3、固定台4、定滑轮5、限位金属感应传感器6、钢丝绳7和控制电路板8;其中,电动机2安装在固定支架1的底板上,钢丝绳7的一端连接在电动机2上,另外一端通过所述定滑轮5连接到固定台4上,固定台4安装在左右两根带滑块的导杆3上,以保证固定台在运动过程中的稳定性;定滑轮5安装在固定支架1的上板下侧,四个限位金属感应传感器6安装在固定支架1的一根带刻度的立柱上,从上至下依次为上行保护限位金属感应传感器、上行限位金属感应传感器、下行限位金属感应传感器和下行保护限位金属感应传感器;控制电路板安装在固定支架1的上板上侧,电动机2的电源线和四个限位金属感应传感器的信号线均连接到控制电路板上。As shown in Figure 1, the device used to test the displacement function of the wireless dynamometer includes a fixed bracket 1, a motor 2, a guide rod with a slider 3, a fixed table 4, a fixed pulley 5, a limit metal induction sensor 6, and a wire rope 7 and control circuit board 8; wherein, the motor 2 is installed on the bottom plate of the fixed bracket 1, one end of the wire rope 7 is connected to the motor 2, and the other end is connected to the fixed platform 4 through the fixed pulley 5, and the fixed platform 4 is installed on the left and right Two guide rods 3 with sliders to ensure the stability of the fixed platform during movement; the fixed pulley 5 is installed on the lower side of the upper plate of the fixed bracket 1, and four limit metal induction sensors 6 are installed on the fixed bracket 1 On a scaled column, from top to bottom are the upward protection limit metal induction sensor, the upward limit metal induction sensor, the downward limit metal induction sensor and the downward protection limit metal induction sensor; the control circuit board is installed on On the upper side of the upper plate of the fixed bracket 1, the power line of the motor 2 and the signal lines of the four limit metal induction sensors are connected to the control circuit board.
如图2所示,控制电路板8上安装有上行保护电路、上行控制电路、下行控制电路、下行保护电路、继电器控制供电电路和主控制电路;其中,上行保护电路分别连接上行保护限位金属感应传感器和主控制电路,上行控制电路分别连接上行限位金属感应传感器和主控制电路,下行控制电路分别连接下行限位金属感应传感器和主控制电路,下行保护电路分别连接下行保护限位金属感应传感器和主控制电路,继电器控制供电电路分别连接电动机2和主控制电路。As shown in Figure 2, the control circuit board 8 is equipped with an uplink protection circuit, an uplink control circuit, a downlink control circuit, a downlink protection circuit, a relay control power supply circuit and a main control circuit; among them, the uplink protection circuit is connected to the uplink protection limit metal respectively. Inductive sensor and main control circuit, the uplink control circuit is respectively connected to the uplink limit metal inductor sensor and the main control circuit, the downlink control circuit is respectively connected to the downlink limit metal inductor sensor and the main control circuit, and the downlink protection circuit is respectively connected to the downlink protection limit metal inductor. The sensor and main control circuit, and the relay control power supply circuit are connected to the motor 2 and the main control circuit respectively.
本装置上电后,电动机通过钢丝绳、带滑块的导杆、定滑轮,在控制电路和限位金属感应传感器的配合下带动固定台上下做周期性运动。无线示功仪固定在固定台上,随着固定台上下周期性运动,利用无线示功仪内部加速度传感器计算出位移,和固定支架上的上行、下行限位金属感应传感器间的距离对比,差值符合无线示功仪的产品性能指标误差范围即合格。After the device is powered on, the motor drives the fixed table to move up and down periodically through the wire rope, the guide rod with the slider, the fixed pulley, and the cooperation of the control circuit and the limit metal induction sensor. The wireless dynamometer is fixed on the fixed platform. As the fixed platform moves up and down periodically, the internal acceleration sensor of the wireless dynamometer is used to calculate the displacement. Compared with the distance between the uplink and downlink limit metal induction sensors on the fixed bracket, the difference is If the value conforms to the product performance index error range of the wireless dynamometer, it is qualified.
如图3所示,主控制电路采用型号为STM32L475的主控芯片N1,主控芯片N1的1脚连接电容C14一端和电容C30一端,电容C14另一端和电容C30另一端接地;主控芯片N1的32脚连接电容C11一端和电容C21一端,电容C11另一端和电容C21另一端接地,主控芯片N1的64脚连接电容C3一端和电容C32一端,电容C3另一端和电容C32另一端接地;主控芯片N1的60脚分别连接电阻R9一端和按键S2一端,电阻R9另一端接地,按键S2另一端通过电阻R8的接3.3V;主控芯片N1的49脚分别连接电阻R10一端和按键S1一端,电阻R10另一端接地,按键S1另一端通过电阻R16接3.3V。As shown in Figure 3, the main control circuit uses the main control chip N1 with the model STM32L475. Pin 1 of the main control chip N1 is connected to one end of the capacitor C14 and one end of the capacitor C30. The other end of the capacitor C14 and the other end of the capacitor C30 are grounded; the main control chip N1 Pin 32 is connected to one end of capacitor C11 and one end of capacitor C21, and the other end of capacitor C11 and the other end of capacitor C21 are grounded. Pin 64 of the main control chip N1 is connected to one end of capacitor C3 and one end of capacitor C32, and the other end of capacitor C3 and the other end of capacitor C32 are grounded; Pin 60 of the main control chip N1 is connected to one end of the resistor R9 and one end of the button S2. The other end of the resistor R9 is connected to ground. The other end of the button S2 is connected to 3.3V through the resistor R8. Pin 49 of the main control chip N1 is connected to one end of the resistor R10 and the button S1. One end, the other end of the resistor R10 is connected to ground, and the other end of the button S1 is connected to 3.3V through the resistor R16.
如图4所示,上行控制电路包括插座XS3和光耦OP3,上行限位金属感应传感器一端固定在固定支架上,另一端插在插座XS3上;插座XS3的1脚接地,3脚连接12VIN,2脚连接电阻R18一端,电阻R18另一端连接光耦OP3的1脚,光耦OP3的2脚接地,3脚接主控芯片N1的9脚,4脚接电阻R17一端,电阻R17另一端接3.3V。As shown in Figure 4, the uplink control circuit includes socket XS3 and optocoupler OP3. One end of the uplink limit metal induction sensor is fixed on the fixed bracket, and the other end is inserted into socket XS3; pin 1 of socket XS3 is grounded, pin 3 is connected to 12VIN, 2 The pin is connected to one end of resistor R18, the other end of resistor R18 is connected to pin 1 of optocoupler OP3, pin 2 of optocoupler OP3 is connected to ground, pin 3 is connected to pin 9 of main control chip N1, pin 4 is connected to one end of resistor R17, and the other end of resistor R17 is connected to 3.3 V.
如图5所示,下行控制电路包括插座XS5和光耦OP5,下行限位金属感应传感器一端固定在固定支架上,另一端插在插座XS5上;插座XS5的1脚接地,3脚连接12VIN,2脚连接电阻R22一端,电阻R22另一端连接光耦OP5的1脚,光耦OP5的2脚接地,3脚接主控芯片N1的11脚,4脚接电阻R21一端,电阻R21另一端接3.3V。As shown in Figure 5, the downlink control circuit includes socket XS5 and optocoupler OP5. One end of the downlink limit metal induction sensor is fixed on the fixed bracket, and the other end is inserted into socket XS5; pin 1 of socket XS5 is grounded, pin 3 is connected to 12VIN, 2 Pin is connected to one end of the resistor R22, the other end of the resistor R22 is connected to pin 1 of the optocoupler OP5, pin 2 of the optocoupler OP5 is connected to ground, pin 3 is connected to pin 11 of the main control chip N1, pin 4 is connected to one end of the resistor R21, and the other end of the resistor R21 is connected to 3.3 V.
如图6所示,上行保护电路包括插座XS1、插座XS4、光耦OP4、P沟道MOS管VT1、NPN晶体管VT2;上行保护限位金属感应传感器一端固定在固定支架上,另一端插在插座XS4上,插座XS4的1脚接地,3脚连接12VIN,2脚连接电阻R20一端,电阻R20另一端连接光耦OP4的1脚,光耦OP4的2脚接地,3脚接主控芯片N1的10脚,4脚接电阻R19一端,电阻R19另一端接3.3V;P沟道MOS管VT1的2脚接VIN,3脚和电感L4一端相连,同时和电阻R13的一端连接,电阻R13另一端和P沟道MOS管VT1的1脚连接,同时和稳压二极管Z1的负极连接,稳压二极管Z1的正极和NPN晶体管VT2的3脚连接,NPN晶体管VT2的2脚接地,1脚连接电阻R15一端,同时和电阻R14的一端连接,电阻R14的另一端和主控芯片N1的8脚连接,电阻R15另一端接地,电感L4另一端和二极管D5的负极连接,二极管D5的正极通过开关S3和插座XS1(电动机供电输入)的2脚连接,插座XS1的1脚接地。As shown in Figure 6, the uplink protection circuit includes socket XS1, socket XS4, optocoupler OP4, P-channel MOS tube VT1, and NPN transistor VT2; one end of the uplink protection limit metal induction sensor is fixed on the fixed bracket, and the other end is inserted into the socket On XS4, pin 1 of the socket 10 pins, 4 pins are connected to one end of resistor R19, and the other end of resistor R19 is connected to 3.3V; 2 pins of P-channel MOS tube VT1 are connected to VIN, 3 pins are connected to one end of inductor L4, and at the same time connected to one end of resistor R13, and the other end of resistor R13 Connect to pin 1 of P-channel MOS transistor VT1, and connect to the cathode of Zener diode Z1. The anode of Zener diode Z1 is connected to pin 3 of NPN transistor VT2. Pin 2 of NPN transistor VT2 is connected to ground, and pin 1 is connected to resistor R15. One end is connected to one end of resistor R14, the other end of resistor R14 is connected to pin 8 of main control chip N1, the other end of resistor R15 is connected to ground, the other end of inductor L4 is connected to the cathode of diode D5, the anode of diode D5 passes through switch S3 and Pin 2 of socket XS1 (motor power supply input) is connected, and pin 1 of socket XS1 is grounded.
如图7所示,下行保护电路包括插座XS1、插座XS6、光耦OP6、P沟道MOS管VT1、NPN晶体管VT2;下行保护限位金属感应传感器一端固定在固定支架上,另一端插在插座XS6上,插座XS6的1脚接地,3脚连接12VIN,2脚连接电阻R24一端,电阻R24另一端连接光耦OP6的1脚,光耦OP6的2脚接地,3脚接主控芯片N1的24脚,4脚接电阻R23一端,电阻R23另一端接3.3V;P沟道MOS管VT1的2脚接VIN,3脚和电感L4一端相连,同时和电阻R13的一端连接,电阻R13另一端和P沟道MOS管VT1的1脚连接,同时和稳压二极管Z1的负极连接,稳压二极管Z1的正极和NPN晶体管VT2的3脚连接,NPN晶体管VT2的2脚接地,1脚连接电阻R15一端,同时和电阻R14的一端连接,电阻R14的另一端和主控芯片N1的8脚连接,电阻R15另一端接地,电感L4另一端和二极管D5的负极连接,二极管D5的正极通过开关S3和插座XS1的2脚连接,插座XS1的1脚接地。As shown in Figure 7, the downlink protection circuit includes socket XS1, socket XS6, optocoupler OP6, P-channel MOS tube VT1, and NPN transistor VT2; one end of the downlink protection limit metal induction sensor is fixed on the fixed bracket, and the other end is inserted into the socket On the XS6, pin 1 of the socket 24 pins, pin 4 is connected to one end of resistor R23, and the other end of resistor R23 is connected to 3.3V; pin 2 of P-channel MOS tube VT1 is connected to VIN, pin 3 is connected to one end of inductor L4, and at the same time connected to one end of resistor R13, and the other end of resistor R13 Connect to pin 1 of P-channel MOS transistor VT1, and connect to the cathode of Zener diode Z1. The anode of Zener diode Z1 is connected to pin 3 of NPN transistor VT2. Pin 2 of NPN transistor VT2 is connected to ground, and pin 1 is connected to resistor R15. One end is connected to one end of resistor R14, the other end of resistor R14 is connected to pin 8 of main control chip N1, the other end of resistor R15 is connected to ground, the other end of inductor L4 is connected to the cathode of diode D5, the anode of diode D5 passes through switch S3 and Pin 2 of socket XS1 is connected, and pin 1 of socket XS1 is grounded.
如图8所示,继电器控制供电电路包括继电器K1、继电器K2、插座XS2、光耦OP1、光耦OP2;继电器K1的4脚和5脚相连,并且和电容C12、电容C15一端连接,同时和插座XS2(电动机供电输出)的1脚相连,电容C12另一端和电阻R1一端相连,电阻R1另一端和继电器K1的3脚连接,同时接地,电容C15另一端和电阻R2一端相连,电阻R2另一端和继电器K1的6脚连接,同时连接P沟道MOS管VT1的2脚,二极管D3的负极连接继电器K1的8脚,正极连接继电器K1的1脚,同时连接光耦OP1的4脚,光耦OP1的2脚、3脚接地,1脚连接电阻R5一端,同时连接主控芯片N1的25脚,电容C8一端连接继电器K1的8脚,同时连接12VIN,电容C8另一端接地;继电器K2的4脚和5脚相连,并且和电容C16、电容C17一端连接,同时和插座XS2的2脚连接,电容C16另一端和电阻R6一端相连,电阻R6另一端和继电器K2的3脚连接,同时连接P沟道MOS管VT1的2脚,电容C17另一端和电阻R7一端相连,电阻R7另一端和继电器K2的6脚连接,同时接地,二极管D4的负极连接继电器K2的8脚,正极连接继电器K2的1脚,同时连接光耦OP2的4脚,光耦OP2的2脚、3脚接地,1脚连接电阻R12一端,同时连接主控芯片N1的25脚,电容C13一端连接继电器K2的8脚,同时连接12VIN,电容C13另一端接地。As shown in Figure 8, the relay control power supply circuit includes relay K1, relay K2, socket XS2, optocoupler OP1, optocoupler OP2; pins 4 and 5 of relay K1 are connected, and connected to one end of capacitor C12 and capacitor C15, and at the same time Connect pin 1 of socket One end is connected to pin 6 of relay K1, and pin 2 of P-channel MOS tube VT1 is connected at the same time. The cathode of diode D3 is connected to pin 8 of relay K1, the anode is connected to pin 1 of relay K1, and pin 4 of optocoupler OP1 is connected at the same time. Pins 2 and 3 of coupling OP1 are grounded, pin 1 is connected to one end of resistor R5, and connected to pin 25 of main control chip N1 at the same time. One end of capacitor C8 is connected to pin 8 of relay K1, and connected to 12VIN at the same time. The other end of capacitor C8 is connected to ground; the other end of capacitor C8 is connected to ground; Pins 4 and 5 are connected, and connected to one end of capacitor C16 and capacitor C17, and at the same time connected to pin 2 of socket XS2, the other end of capacitor C16 is connected to one end of resistor R6, the other end of resistor R6 is connected to pin 3 of relay K2, and connected at the same time Pin 2 of P-channel MOS tube VT1, the other end of capacitor C17 is connected to one end of resistor R7, the other end of resistor R7 is connected to pin 6 of relay K2, and is grounded at the same time, the cathode of diode D4 is connected to pin 8 of relay K2, and the anode is connected to relay K2 Pin 1 is connected to pin 4 of the optocoupler OP2 at the same time. Pins 2 and 3 of the optocoupler OP2 are connected to the ground. Pin 1 is connected to one end of the resistor R12 and connected to pin 25 of the main control chip N1. One end of the capacitor C13 is connected to pin 8 of the relay K2. , connect 12VIN at the same time, and the other end of capacitor C13 is connected to ground.
如图2至图8所示,操作人员给控制电路板两路供电,一路是给主控制电路供电(12V),另一路是给电机供电(10-24V),都上电后,合上开关S3,按下按键S1,主控芯片N1置第8脚(PC0)为高,控制电路板给电动机供电,装置开始工作,随着电动机转动带着固定台向上运动,当固定台到达上行限位金属感应传感器时,触发上行控制电路,光耦OP3的1脚为高,3脚、4脚导通,3脚输出高电平,主控芯片N1的9脚(PC1)收到中断信号后,设置第25脚(PC5)为高,继电器K1、继电器K2的线圈导通后,继电器K1和继电器K2的3脚、4脚吸合,XS2供电翻转,使电动机反转,带动固定台向下运动,到达下行限位金属感应传感器时,触发下行控制电路,光耦OP5的1脚为高,3脚、4脚导通,3脚输出高电平,主控芯片N1的11脚(PC3)收到中断信号后,设置第25脚(PC5)为低,继电器K1、继电器K2的线圈断开后,继电器K1和继电器K2的5脚、6脚吸合,插座XS2供电翻转,使电动机反转,带动固定台向上运动,通过固定台上下周期性的运动,无线示功仪里的加速度传感器通过积分计算位移,通过RTU采集到计算的结果和固定在支架上的上行、下行限位金属感应传感器间的距离对比,差值符合无线示功仪的产品性能指标误差范围即合格。As shown in Figures 2 to 8, the operator supplies two channels of power to the control circuit board, one is to supply power to the main control circuit (12V), and the other is to supply power to the motor (10-24V). After both are powered on, close the switch. S3, press button S1, the main control chip N1 sets the 8th pin (PC0) to high, the control circuit board supplies power to the motor, and the device starts to work. As the motor rotates, the fixed table moves upward. When the fixed table reaches the upward limit, When the metal induction sensor is used, the uplink control circuit is triggered. Pin 1 of the optocoupler OP3 is high, pins 3 and 4 are turned on, and pin 3 outputs high level. After pin 9 (PC1) of the main control chip N1 receives the interrupt signal, Set pin 25 (PC5) to high. After the coils of relay K1 and relay K2 are turned on, pins 3 and 4 of relay K1 and relay K2 are closed. The power supply of XS2 is flipped, causing the motor to reverse and drive the fixed table to move downward. , when reaching the downlink limit metal induction sensor, the downlink control circuit is triggered. Pin 1 of the optocoupler OP5 is high, pins 3 and 4 are turned on, pin 3 outputs high level, and pin 11 (PC3) of the main control chip N1 receives After receiving the interrupt signal, set pin 25 (PC5) to low. After the coils of relay K1 and relay K2 are disconnected, pins 5 and 6 of relay K1 and relay K2 are closed, and the power supply of socket XS2 is flipped, causing the motor to reverse. The fixed platform is driven to move upward. Through the periodic movement of the fixed platform up and down, the acceleration sensor in the wireless dynamometer calculates the displacement through integration. The calculation result is collected through the RTU and the uplink and downlink limit metal induction sensors fixed on the bracket. Comparing the distance, if the difference meets the error range of the product performance index of the wireless dynamometer, it is qualified.
上行、下行保护电路是基于装置运行安全的考虑,当固定台到达上行限位金属感应传感器时,上行控制电路失效,电动机会带着固定台继续向上运动,到达固定支架顶部时,固定台卡住无法再动,电动机一直在转动,钢丝绳会被拉断,增加上行保护电路后,固定台到达上行保护限位金属感应传感器时,触发保护机制,光耦OP4的1脚置高,使4脚给主控芯片N1的10脚(PC2)一个中断,主控芯片N1收到中断后立即置第8脚(PC0)为低,关闭电动机供电,装置停止工作;当固定台到达下行限位金属感应传感器时,下行控制电路失效,电动机会带着固定台继续向下运动,导致运行混乱,增加下行保护电路后,固定台到达下行保护限位金属感应传感器时,触发保护机制,光耦OP6的1脚置高,使4脚给主控芯片N1的24脚(PC4)一个中断,主控芯片N1收到中断后立即置第8脚(PC0)为低,关闭电动机供电,装置停止工作。The uplink and downlink protection circuits are based on the safety of device operation. When the fixed platform reaches the upward limit metal induction sensor, the uplink control circuit fails. The motor will continue to move upward with the fixed platform. When it reaches the top of the fixed bracket, the fixed platform is stuck. It can no longer move, the motor keeps rotating, and the steel wire rope will be pulled off. After adding the uplink protection circuit, when the fixed platform reaches the uplink protection limit metal induction sensor, the protection mechanism is triggered, and pin 1 of the optocoupler OP4 is set high, causing pin 4 to There is an interrupt on pin 10 (PC2) of the main control chip N1. After receiving the interrupt, the main control chip N1 immediately sets pin 8 (PC0) low, turns off the power supply to the motor, and the device stops working; when the fixed platform reaches the downward limit metal induction sensor When the downlink control circuit fails, the motor will continue to move downward with the fixed platform, resulting in chaotic operation. After adding the downlink protection circuit, when the fixed platform reaches the downlink protection limit metal induction sensor, the protection mechanism is triggered. Pin 1 of the optocoupler OP6 Set high to cause pin 4 to interrupt pin 24 (PC4) of the main control chip N1. After receiving the interrupt, the main control chip N1 immediately sets pin 8 (PC0) low to turn off the power supply to the motor and the device stops working.
如图9所示,给控制电路板上电,主控芯片N1初始化,置管脚PC5、PC0为低电平输出,合上开关S3,按下按键S1触发中断,主控芯片N1收到中断后,置PC0为高电平,控制电路板给电动机供电,装置开始工作,随着电动机转动带着固定台运动,当固定台到达限位金属感应传感器时,触发中断,主控芯片N1判断是否收到的是上行控制PC1管脚中断信号,如果是PC1管脚中断信号,PC5管脚电平取反,电动机供电翻转,使电动机反向转动,带动固定台反向运动,程序继续运行,当固定台再次到达限位金属感应传感器时,主控芯片N1判断是否收到的是上行保护PC2管脚中断信号或下行保护PC4管脚中断信号,如果是上行保护PC2管脚中断信号或下行保护PC4管脚中断信号,主控芯片N1把PC0电平置低,电动机断电,装置停止运行,如果不是上行保护PC2管脚中断信号或下行保护PC4管脚中断信号,程序继续运行,主控芯片N1判断是否收到的是上行控制PC1管脚中断信号,如果不是PC1管脚中断信号,主控芯片N1判断是否收到的是下行控制PC3管脚中断信号,如果是PC3管脚中断信号,PC5管脚电平取反,电动机供电翻转,使电动机反向转动,带动固定台反向运动,如果不是PC3管脚中断信号,主控芯片N1则判断是上行保护PC2管脚中断信号或下行保护PC4管脚中断信号,程序按照流程一直循环运行。As shown in Figure 9, power on the control circuit board, initialize the main control chip N1, set the pins PC5 and PC0 to low level output, close the switch S3, press the button S1 to trigger the interrupt, and the main control chip N1 receives the interrupt. Afterwards, set PC0 to high level, control the circuit board to supply power to the motor, and the device starts to work. As the motor rotates, the fixed table moves. When the fixed table reaches the limit metal induction sensor, an interrupt is triggered, and the main control chip N1 determines whether What is received is the uplink control PC1 pin interrupt signal. If it is the PC1 pin interrupt signal, the level of the PC5 pin is inverted, the motor power supply is flipped, causing the motor to rotate in the reverse direction, driving the fixed table to move in the reverse direction, and the program continues to run. When it is fixed When the station reaches the limit metal induction sensor again, the main control chip N1 determines whether it receives the uplink protection PC2 pin interrupt signal or the downlink protection PC4 pin interrupt signal. If it is the uplink protection PC2 pin interrupt signal or the downlink protection PC4 pin interrupt signal, pin interrupt signal, the main control chip N1 sets the PC0 level low, the motor is powered off, and the device stops running. If it is not the uplink protection PC2 pin interrupt signal or the downlink protection PC4 pin interrupt signal, the program continues to run, and the main control chip N1 determines Whether the uplink control PC1 pin interrupt signal is received, if not the PC1 pin interrupt signal, the main control chip N1 determines whether the downlink control PC3 pin interrupt signal is received, if it is the PC3 pin interrupt signal, the PC5 pin The level is inverted, and the power supply to the motor is flipped, causing the motor to rotate in the opposite direction, driving the fixed table to move in the opposite direction. If it is not the PC3 pin interrupt signal, the main control chip N1 determines that it is the uplink protection PC2 pin interrupt signal or the downlink protection PC4 pin interrupt signal. signal, the program keeps running in a loop according to the process.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311376503.4A CN117109508B (en) | 2023-10-24 | 2023-10-24 | Device and method for testing displacement function of wireless dynamometer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311376503.4A CN117109508B (en) | 2023-10-24 | 2023-10-24 | Device and method for testing displacement function of wireless dynamometer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117109508A true CN117109508A (en) | 2023-11-24 |
CN117109508B CN117109508B (en) | 2024-03-12 |
Family
ID=88811387
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311376503.4A Active CN117109508B (en) | 2023-10-24 | 2023-10-24 | Device and method for testing displacement function of wireless dynamometer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117109508B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202836532U (en) * | 2012-08-29 | 2013-03-27 | 合肥海德数控液压设备有限公司 | Hydraulic press ejection oil cylinder pull wire-type position accurate detection device |
CN103488191A (en) * | 2013-09-27 | 2014-01-01 | 浙江水利水电学院 | Distributed leveling controller circuit |
CN206053885U (en) * | 2016-06-16 | 2017-03-29 | 上海嘉地仪器有限公司 | Double guiding support devices for being oriented to electronic dragging instrument |
CN108825210A (en) * | 2018-05-23 | 2018-11-16 | 大庆市亿动科技有限公司 | Integrated telemetering indicator based on baroceptor |
CN108896088A (en) * | 2018-05-07 | 2018-11-27 | 中国石油天然气股份有限公司长庆油田分公司技术监测中心 | A kind of indicator displacement calibrating installation and method |
CN109115634A (en) * | 2018-10-17 | 2019-01-01 | 福州大学 | It can accurately measure the falling weight impact test platform and test method of shock loading and dynamic displacement |
CN209976531U (en) * | 2019-03-07 | 2020-01-21 | 中国石油天然气集团有限公司 | Integrated indicator |
CN210795419U (en) * | 2019-09-06 | 2020-06-19 | 宝鸡文理学院 | Construction elevator monitor terminal |
CN114183124A (en) * | 2020-09-15 | 2022-03-15 | 中国石油天然气股份有限公司 | Dynamometer load displacement integrated calibration device and calibration method |
-
2023
- 2023-10-24 CN CN202311376503.4A patent/CN117109508B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202836532U (en) * | 2012-08-29 | 2013-03-27 | 合肥海德数控液压设备有限公司 | Hydraulic press ejection oil cylinder pull wire-type position accurate detection device |
CN103488191A (en) * | 2013-09-27 | 2014-01-01 | 浙江水利水电学院 | Distributed leveling controller circuit |
CN206053885U (en) * | 2016-06-16 | 2017-03-29 | 上海嘉地仪器有限公司 | Double guiding support devices for being oriented to electronic dragging instrument |
CN108896088A (en) * | 2018-05-07 | 2018-11-27 | 中国石油天然气股份有限公司长庆油田分公司技术监测中心 | A kind of indicator displacement calibrating installation and method |
CN108825210A (en) * | 2018-05-23 | 2018-11-16 | 大庆市亿动科技有限公司 | Integrated telemetering indicator based on baroceptor |
CN109115634A (en) * | 2018-10-17 | 2019-01-01 | 福州大学 | It can accurately measure the falling weight impact test platform and test method of shock loading and dynamic displacement |
CN209976531U (en) * | 2019-03-07 | 2020-01-21 | 中国石油天然气集团有限公司 | Integrated indicator |
CN210795419U (en) * | 2019-09-06 | 2020-06-19 | 宝鸡文理学院 | Construction elevator monitor terminal |
CN114183124A (en) * | 2020-09-15 | 2022-03-15 | 中国石油天然气股份有限公司 | Dynamometer load displacement integrated calibration device and calibration method |
Also Published As
Publication number | Publication date |
---|---|
CN117109508B (en) | 2024-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101818632A (en) | Digital automatic oil extraction control system | |
CN203535446U (en) | Oil pumping unit intelligent control complete equipment | |
CN203773021U (en) | PCBA board test device | |
CN108775866A (en) | A kind of auto parts and components precise measure detecting tool | |
CN102175205A (en) | Device and method for measuring contour line of pipe wall thickened section of drill rod | |
CN207379842U (en) | A kind of compressive strength of aerated autoclaved concrete blocks test device | |
CN208517454U (en) | Tuyere puncher | |
CN201844823U (en) | Pole piece coating production line and online measurement system thereof | |
CN105236207A (en) | Intelligent servo tensioner | |
CN108534724A (en) | The device of automatic detection elevator installation accuracy | |
CN117109508A (en) | A device and method for testing the displacement function of a wireless dynamometer | |
CN212780289U (en) | Testing machine for determining creep ratio of thermoplastic plastic pipe | |
CN103629190B (en) | A kind of equilibrium valve does not mate the measuring method and device that cause load jitter | |
CN110685686A (en) | Continuous mining machine cutting control system, working method thereof and continuous mining machine | |
CN208270219U (en) | Escalator comprehensive performance automatic checkout system | |
CN216386224U (en) | Backlight mechanism of camera test light box | |
CN208635685U (en) | A kind of internal diameter automatic measuring equipment | |
CN115950483A (en) | Electricity string functional test equipment of transferring | |
CN201120597Y (en) | Engine cylinder cap air valve pad selecting machine | |
CN208953198U (en) | A kind of superposing type force standard machine that self can be achieved and verifies function | |
CN201317101Y (en) | Lifting control device for track of pipe tractor | |
CN201129995Y (en) | Engine cylinder cap air valve spring detecting machine | |
CN203237786U (en) | Cloth stacking machine | |
CN206213403U (en) | Foxing strip for rubber shoes width self-operated measuring unit | |
CN208855990U (en) | A kind of cigarette stamp device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 300456 room 506-11, building 1, Rongsheng Plaza, Binhai Zhongguancun Science Park, economic and Technological Development Zone, Binhai New Area, Tianjin Patentee after: Tianjin 712 Mobile Communication Co.,Ltd. Country or region after: China Address before: 300456 room 506-11, building 1, Rongsheng Plaza, Binhai Zhongguancun Science Park, economic and Technological Development Zone, Binhai New Area, Tianjin Patentee before: TIANJIN 712 MOBILE COMMUNICATIONS Co.,Ltd. Country or region before: China |