[go: up one dir, main page]

CN114815723A - Automatic error correction control method and system for limit protection - Google Patents

Automatic error correction control method and system for limit protection Download PDF

Info

Publication number
CN114815723A
CN114815723A CN202210442174.8A CN202210442174A CN114815723A CN 114815723 A CN114815723 A CN 114815723A CN 202210442174 A CN202210442174 A CN 202210442174A CN 114815723 A CN114815723 A CN 114815723A
Authority
CN
China
Prior art keywords
state
joystick
timing data
control
load
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
Application number
CN202210442174.8A
Other languages
Chinese (zh)
Other versions
CN114815723B (en
Inventor
廖永忠
李俊威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Nuoke Technology Co ltd
Original Assignee
Shenzhen Nuoke Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Nuoke Technology Co ltd filed Critical Shenzhen Nuoke Technology Co ltd
Priority to CN202210442174.8A priority Critical patent/CN114815723B/en
Publication of CN114815723A publication Critical patent/CN114815723A/en
Application granted granted Critical
Publication of CN114815723B publication Critical patent/CN114815723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/048Monitoring; Safety

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Safety Devices In Control Systems (AREA)

Abstract

The application relates to a limit protection automatic error correction control method and a system, which belong to the technical field of error correction control, wherein the method comprises the following steps: when a load starting instruction is received, starting to acquire first timing data; when the first timing data is within the first preset duration, continuously acquiring a limit protection state of a limit switch, and if the limit protection state is a limit state, generating a protection signal and acquiring a direction state of a rocker, wherein the direction state of the rocker comprises a control state and a non-control state; and acquiring second timing data when the direction state of the rocker is the control state, adjusting the limit switch to be in the idle state when the second timing data exceeds the second preset time length, and enabling the equipment to enter a normal working mode based on the control state of the rocker. This application has the direct operation through the remote lever and realizes adjusting the load to normal operating area, reduces artificial labour's effect.

Description

一种限位保护自动纠错控制方法和系统A kind of limit protection automatic error correction control method and system

技术领域technical field

本申请涉及纠错控制的技术领域,尤其是涉及一种限位保护自动纠错控制方法和系统。The present application relates to the technical field of error correction control, in particular to a limit protection automatic error correction control method and system.

背景技术Background technique

目前,在激光加工、测量和检测等自动化设备中很多场合利用遥杆操控负载在设备上运动,为了防止负载运动超限,会在设备中安装极限限位保护开关,确保负载在设备上一个正常区域运行;在正常情况下,负载会在正常区域内进行运动,不会进入左右异常区域。At present, in automation equipment such as laser processing, measurement and inspection, the joystick is used to control the load to move on the equipment in many occasions. In order to prevent the load movement from exceeding the limit, a limit limit protection switch will be installed in the equipment to ensure that the load on the equipment is normal. Area operation; under normal conditions, the load will move in the normal area and will not enter the left and right abnormal areas.

但在某些场合中会出现断电的情况,此时驱动负载的电机将没有输出力矩,又因为负载比较重,负载会在作用下出现超出正常区域的情况,设备会进入正常区域左右的异常区域;导致重新上电时,设备不能正常工作,需要在断电条件下,通过手轮或人推将负载调整到正常工作区域,而通过手轮或人推的方式调整负载,需要耗费较大的劳动力,因此有待改善。However, in some occasions, there will be a power failure. At this time, the motor driving the load will have no output torque, and because the load is relatively heavy, the load will exceed the normal area under the action, and the equipment will enter the normal area. When the power is turned on again, the equipment cannot work normally, and the load needs to be adjusted to the normal working area through the handwheel or human push under the condition of power failure, and the load adjustment through the hand wheel or human push requires a lot of money workforce and therefore needs to be improved.

发明内容SUMMARY OF THE INVENTION

为了通过遥杆的直接操作实现将负载调整到正常工作区域,减少人为劳动力,本申请提供了一种限位保护自动纠错控制方法和系统。In order to adjust the load to the normal working area through the direct operation of the joystick and reduce the manual labor, the present application provides a limit protection automatic error correction control method and system.

第一方面,本申请提供了一种限位保护自动纠错控制方法,采用如下的技术方案:In the first aspect, the application provides a limit protection automatic error correction control method, which adopts the following technical solutions:

一种限位保护自动纠错控制方法,该方法用于限位保护自动纠错控制系统中,所述方法包括如下步骤:A limit protection automatic error correction control method, which is used in a limit protection automatic error correction control system, and the method comprises the following steps:

当接收到负载启动指令时,开始获取第一计时数据;When receiving the load start command, start to obtain the first timing data;

将所述第一计时数据与第一预设时长进行对比,当所述第一计时数据位于所述第一预设时长内时,持续获取限位开关的限位保护状态,所述限位保护状态包括限制状态和闲置状态,当所述第一计时数据大于所述第一预设时长时,设备进入正常工作模式;Comparing the first timing data with the first preset duration, when the first timing data is within the first preset duration, continuously obtain the limit protection state of the limit switch, the limit protection The state includes a restricted state and an idle state, and when the first timing data is greater than the first preset duration, the device enters a normal working mode;

若所述限位保护状态为限制状态,则生成保护信号,以对负载进行限位保护;If the limit protection state is a limit state, a protection signal is generated to perform limit protection on the load;

获取摇杆的方向状态,所述摇杆的方向状态包括控制状态和非控制状态;Obtain the direction state of the joystick, where the direction state of the joystick includes a control state and a non-control state;

获取摇杆的方向状态,所述摇杆的方向状态包括控制状态和非控制状态;Obtain the direction state of the joystick, where the direction state of the joystick includes a control state and a non-control state;

在所述摇杆的方向状态为所述控制状态时获取第二计时数据;acquiring second timing data when the direction state of the joystick is the control state;

将所述第二计时数据与第二预设时长进行对比,在所述第二计时数据超过所述第二预设时长时,将限位开关调整为所述闲置状态,并基于摇杆的所述控制状态,使设备进入正常工作模式。The second timing data is compared with the second preset duration, and when the second timing data exceeds the second preset duration, the limit switch is adjusted to the idle state, and based on the position of the joystick The above control state makes the device enter the normal working mode.

通过采用上述技术方案,当负载在停电的环境下,负载可能因为外界因素从正常区域进入至异常区域,当设备重新上电时,用户通过摇杆操控负载时,此时负载启动运行,而系统获取到负载状态为启动状态,系统开设计时并且获取第一计时数据;将第一计时数据与第一预设时长进行对比,第一预设时长时负载在异常区域完全通过所需要的时间,如果第一计时数据大于第一预设时长,说明负载在第一计时数据内并没有发生限位保护,进一步说明负载不在异常区域,此时则生成程序结束指令,控制负载将直接转入正常的工作模式。By using the above technical solution, when the load is in a power outage environment, the load may enter the abnormal area from the normal area due to external factors. When the device is powered on again, when the user controls the load through the joystick, the load starts to run, and the system It is obtained that the load state is the startup state, the system starts timing and obtains the first timing data; the first timing data is compared with the first preset duration, and the time required for the load to completely pass through the abnormal area in the first preset duration is, If the first timing data is greater than the first preset duration, it means that the load does not have limit protection within the first timing data, and further means that the load is not in the abnormal area. Operating mode.

而当第一计时数据一直小于第一预设时长时,此时无法判断负载是否位于异常区域,此时系统持续获取限位开关的限位保护状态,如果在第一预设时长内检测到限位保护,此时限位保护状态为限制状态,代表负载遇到了限位开关,则生成保护信号,以对负载进行限位保护。However, when the first timing data is always less than the first preset time period, it is impossible to determine whether the load is in the abnormal area. At this time, the system continues to obtain the limit protection status of the limit switch. If the limit switch is detected within the first preset time period Bit protection, at this time, the limit protection state is the limit state, which means that the load encounters the limit switch, and a protection signal is generated to perform limit protection on the load.

并且开始检测摇杆的状态,摇杆的方向状态包括控制状态和非控制状态,当摇杆位于控制状态时代表用户在负载发生限位时依然控制摇杆,系统判断此时用户时要将负载从异常区域控制至正常区域内;用户在控制摇杆时,系统获取第二计时数据,将第二计时数据与第二预设时长进行对比,如果摇杆保持某一方向的时间超过第二预设时长,将根据摇杆的当前位置,生成限位保护标志调整指令,调整发生限位保护的位置标志,控制设备将退出限位保护状态,转入正常的工作模式。And start to detect the state of the joystick. The direction state of the joystick includes the control state and the non-control state. When the joystick is in the control state, it means that the user still controls the joystick when the load is limited. The system determines that the user needs to load the load. Control from the abnormal area to the normal area; when the user controls the joystick, the system obtains the second timing data, and compares the second timing data with the second preset duration. If the joystick remains in a certain direction for longer than the second preset time Set the time length, according to the current position of the joystick, a limit protection mark adjustment instruction will be generated, and the position mark of the limit protection will be adjusted, and the control device will exit the limit protection state and switch to the normal working mode.

利用上述的负载限位保护自动纠错方法,通过在第一预设时长内判断负载是否发生限位保护,如果没有则代表负载处于正常工作区域内;若在第一预设时长内发生限位保护,限位开关对负载限制后,会通过摇杆的状态判断负载是否处于异常区域,若限位开关的限位保护状态不仅为限制状态,同时摇杆保持某一方向的时间超过了第二预设时长,则代表用户需要将负载从异常区域调整到正常区域,通过生成限位保护标志调整指令控制设备进入正常工作模式,无需在负载进入到异常区域后通过人为劳动力调整负载的位置,减少了人为劳动力,利于延长设备的使用寿命。Using the above-mentioned automatic error correction method for load limit protection, it is determined whether the load has limit protection within the first preset time period, if not, it means the load is in the normal working area; if the limit occurs within the first preset time period Protection, after the limit switch limits the load, it will judge whether the load is in an abnormal area through the state of the rocker. The preset time period means that the user needs to adjust the load from the abnormal area to the normal area, and control the equipment to enter the normal working mode by generating the limit protection mark adjustment instruction, without the need to manually adjust the position of the load after the load enters the abnormal area, reducing the need for manual labor. It saves the labor force and prolongs the service life of the equipment.

可选的,在所述持续获取限位开关的限位保护状态后,还包括:Optionally, after the continuous acquisition of the limit protection state of the limit switch, the method further includes:

若所述限位保护状态为闲置状态,则持续获取所述第一计时数据。If the limit protection state is an idle state, the first timing data is continuously acquired.

通过采用上述技术方案,在第一预设时长内持续获取限位开关的限位保护状态,只有在第一预设时长内发生了限位保护,才会去获取摇杆的方向状态,以增强纠错的精确度。By adopting the above technical solution, the limit protection state of the limit switch is continuously obtained within the first preset time period, and the direction state of the joystick will be obtained only when the limit protection occurs within the first preset time period, so as to enhance the The accuracy of error correction.

可选的,在所述获取摇杆的方向状态后,还包括:Optionally, after obtaining the direction state of the joystick, the method further includes:

若所述摇杆的方向状态为非控制状态,则控制设备停机。If the direction state of the rocker is a non-control state, the control device stops.

通过采用上述技术方案,在生成保护信号,以对负载进行限位保护后,此时代表负载位于限位开关的位置,此时获取摇杆的方向状态,若摇杆处于非控制状态,代表用户无需持续控制负载移动,则生成停机指令,停止对负载的控制,将负载控制在限位开关的位置,满足更多的使用需求。By adopting the above technical solution, after the protection signal is generated to perform limit protection on the load, it means that the load is at the position of the limit switch, and the direction state of the joystick is obtained at this time. If the joystick is in a non-control state, it represents the user There is no need to continuously control the movement of the load, a stop command is generated, the control of the load is stopped, and the load is controlled at the position of the limit switch to meet more usage requirements.

可选的,在所述将所述第二计时数据与第二预设时长进行对比后,还包括:Optionally, after the comparing the second timing data with the second preset duration, the method further includes:

若所述第二计时数据小于所述第二预设时长,则获取所述摇杆的所述控制状态,若所述控制状态发生变化,则重新获取所述第二计时数据,若所述控制状态不变,则持续获取所述第二计时数据。If the second timing data is less than the second preset duration, the control state of the joystick is acquired; if the control state changes, the second timing data is re-acquired; if the control If the state remains unchanged, the second timing data is continuously acquired.

通过采用上述技术方案,当摇杆的方向状态为控制状态时,用户可能会改变摇杆的控制方向,在第二预设时长内,如果摇杆的控制方向不变,则控制状态持续,进而持续获取第二第二计时数据;如果摇杆的控制方向发生改变,则控制状态发生变化,此时系统清除第一计时数据和第二计时数据,重新开始获取第二计时数据,满足用户不同的操作情况,减少设备在异常区域下进入正常模式的情况。By adopting the above technical solution, when the direction state of the joystick is the control state, the user may change the control direction of the joystick. During the second preset time period, if the control direction of the joystick remains unchanged, the control state continues, and then the control state continues. Continue to obtain the second and second timing data; if the control direction of the joystick changes, the control state changes. At this time, the system clears the first timing data and the second timing data, and restarts to obtain the second timing data to meet the needs of different users. Operational situation, reducing the situation that the device enters the normal mode in the abnormal area.

可选的,所述方法还包括:Optionally, the method further includes:

获取所述压力传感器的检测压力值;obtaining the detected pressure value of the pressure sensor;

在所述检测压力值大于预设压力值时,向所述报警器发送报警指令,以使所述报警器报警。When the detected pressure value is greater than the preset pressure value, an alarm instruction is sent to the alarm device to make the alarm device alarm.

通过采用上述技术方案,负载在设备上移动时,在靠近设备的位置属于异常区域,在断电时如果负载进入到异常区域,很有可能发生负载撞机的现象,在设备上配置压力传感器和报警器,负载如果进入异常区域会与压力传感器相抵时,压力传感器会检测负载对设备的压力,系统获取压力传感器的检测压力值,若检测压力值大于预设压力值时,代表此时负载对设备产生了较大的压力,容易对设备产生损伤,此时向报警器发送报警指令,以使报警器报警,通过报警器进行警示,提醒用户及时将负载从异常区域调整到正常区域。By adopting the above technical solution, when the load moves on the equipment, the position close to the equipment belongs to the abnormal area. If the load enters the abnormal area when the power is cut off, the phenomenon of load collision is likely to occur. Alarm, if the load enters the abnormal area, it will offset the pressure sensor, the pressure sensor will detect the pressure of the load on the equipment, and the system will obtain the detected pressure value of the pressure sensor. If the detected pressure value is greater than the preset pressure value, it means that the load has The equipment generates a large pressure, which is easy to cause damage to the equipment. At this time, an alarm command is sent to the alarm to make the alarm alarm, and the alarm is issued to remind the user to adjust the load from the abnormal area to the normal area in time.

可选的,在所述检测压力值大于预设压力值时,向所述报警器发送报警指令,以使所述报警器报警后,还包括:Optionally, when the detected pressure value is greater than a preset pressure value, sending an alarm instruction to the alarm device, so that after the alarm device alarms, the method further includes:

获取所述摇杆的所述方向状态;Obtain the direction state of the joystick;

若所述方向状态为所述控制状态,则基于所述控制状态生成反方向控制指令,以使负载反方向运动;If the direction state is the control state, generating a reverse direction control command based on the control state, so as to make the load move in the opposite direction;

启动计时,在第三预设时长到达后,控制设备停机。Start the timer, and after the third preset time period arrives, the control device stops.

通过采用上述技术方案,在报警指令生成后,系统还会对摇杆的状态进行检测,以判断负载撞机是因为摇杆控制还是负载因素导致的,若摇杆的方向状态为控制状态,则判定此时摇杆控制了负载发生了撞机,基于控制状态生成反方向控制指令,即使此时的摇杆控制方向没有发生改变,通过反方向控制指令可以控制负载向与目前摇杆控制方向相反的方向进行运动,并且生成第三延时指令,在第三延时时间内控制负载方法运动,最后在第三延时指令的时限到达后,通过生成停机指令使负载停止,达到因为误触摇杆而发生撞机后负载自动远离设备的目的,减少了因为误触而发生设备损伤的现象。By adopting the above technical solution, after the alarm command is generated, the system will also detect the state of the rocker to determine whether the load collision is caused by the rocker control or the load factor. If the direction state of the rocker is the control state, then It is determined that the joystick controls the load and the collision occurs, and the reverse direction control command is generated based on the control state. Even if the joystick control direction does not change at this time, the reverse direction control command can control the load to be opposite to the current joystick control direction. move in the direction of the , and generate a third delay command, control the load method movement within the third delay time, and finally stop the load by generating a stop command after the time limit of the third delay command is reached, so as to achieve the result of accidental shock The purpose is that the load will automatically move away from the equipment after the collision occurs with the pole, which reduces the phenomenon of equipment damage due to accidental contact.

可选的,向所述报警器发送报警指令,以使所述报警器报警中包括:Optionally, send an alarm instruction to the alarm, so that the alarm of the alarm includes:

获取所述摇杆的所述方向状态;Obtain the direction state of the joystick;

若所述摇杆位于所述控制状态,则生成第一报警指令;If the joystick is in the control state, generating a first alarm instruction;

若所述摇杆位于非控制状态,则生成第二报警指令。If the joystick is in a non-control state, a second alarm instruction is generated.

通过采用上述技术方案,在通过报警器进行报警时,如果用户不在使用摇杆,则生成第一报警指令,如果用户正在使用摇杆,则生成第二报警指令,通过不同的报警指令控制报警器进行不同声音或者不同颜色报警,有利于用户判断设备的危险情况,以便于快速使用摇杆对负载进行调整。By adopting the above technical solution, when alarming through the alarm device, if the user is not using the joystick, a first alarm command is generated; if the user is using the joystick, a second alarm command is generated, and the alarm device is controlled by different alarm commands Alarms with different sounds or colors are helpful for users to judge the dangerous situation of the equipment, so as to quickly adjust the load by using the joystick.

第二方面,本申请提供了一种限位保护自动纠错控制系统,采用如下的技术方案:In the second aspect, the application provides a limit protection automatic error correction control system, which adopts the following technical solutions:

第一计时模块,用于当接收到负载启动指令时,开始获取第一计时数据;a first timing module, configured to start acquiring the first timing data when receiving a load start instruction;

第一时长对比模块,用于将所述第一计时数据与第一预设时长进行对比,当所述第一计时数据位于所述第一预设时长内时,持续获取限位开关的限位保护状态,所述限位保护状态包括限制状态和闲置状态,当所述第一计时数据大于所述第一预设时长时,设备进入正常工作模式;The first duration comparison module is used to compare the first timing data with the first preset duration, and when the first timing data is within the first preset duration, continuously obtain the limit of the limit switch a protection state, the limit protection state includes a limit state and an idle state, and when the first timing data is greater than the first preset duration, the device enters a normal working mode;

限制模块,用于若所述限位保护状态为限制状态,则生成保护信号,以对负载进行限位保护;a limit module, configured to generate a protection signal if the limit protection state is a limit state, so as to perform limit protection on the load;

摇杆检测模块,用于获取摇杆的方向状态,所述摇杆的方向状态包括控制状态和非控制状态;a joystick detection module, used to obtain the direction state of the joystick, where the direction state of the joystick includes a control state and a non-control state;

第二计时模块,用于在所述摇杆的方向状态为所述控制状态时获取第二计时数据;a second timing module, configured to acquire second timing data when the direction state of the joystick is the control state;

第二时长对比模块,用于将所述第二计时数据与第二预设时长进行对比,在所述第二计时数据超过所述第二预设时长时,将限位开关调整为所述闲置状态,并基于摇杆的所述控制状态,使设备进入正常工作模式。A second duration comparison module, configured to compare the second timing data with a second preset duration, and adjust the limit switch to the idle when the second timing data exceeds the second preset duration state, and based on the control state of the joystick, the device enters the normal working mode.

第三方面,本申请提供了一种限位保护自动纠错控制设备,采用如下的技术方案:包括存储器和处理器,所述存储器上存储有能够被处理器加载并执行如上述的限位保护自动纠错控制方法的计算机程序。In a third aspect, the present application provides a limit protection automatic error correction control device, which adopts the following technical solution: including a memory and a processor, and the memory stores a limit protection capable of being loaded by the processor and executing the above-mentioned limit protection. Computer program for automatic error correction control method.

第四方面,本申请提供了一种计算机可读存储介质,采用如下的技术方案:存储有能够被处理器加载并执行如上述的限位保护自动纠错控制方法的计算机程序。In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: a computer program capable of being loaded by a processor and executing the above-mentioned limit protection automatic error correction control method is stored.

综上所述,本申请包括以下至少一种有益技术效果:To sum up, the present application includes at least one of the following beneficial technical effects:

1.在本申请中,通过在第一预设时长内判断负载是否发生限位保护,如果没有则代表负载处于正常工作区域内,若在第一预设时长内发生限位保护,限位开关对负载限制后,会通过摇杆的状态判断负载是否处于异常区域,若限位开关的限位保护状态不仅为限制状态,同时摇杆保持某一方向的时间超过了第二预设时长,则代表用户需要将负载从异常区域调整到正常区域,通过生成限位保护标志调整指令控制设备进入正常工作模式,无需在负载进入到异常区域后通过人为劳动力调整负载的位置,减少了人为劳动力,利于延长设备的使用寿命;1. In this application, it is determined whether the load has limit protection within the first preset time period. If not, it means that the load is in the normal working area. If limit protection occurs within the first preset time period, the limit switch After the load is limited, it will be judged by the state of the rocker whether the load is in an abnormal area. If the limit protection state of the limit switch is not only the limit state, but the time when the rocker maintains a certain direction exceeds the second preset time, then It means that the user needs to adjust the load from the abnormal area to the normal area, and control the equipment to enter the normal working mode by generating the limit protection mark adjustment instruction, without the need to adjust the position of the load by manual labor after the load enters the abnormal area, which reduces the manual labor and is beneficial to Extend the service life of the equipment;

2.进一步的,当摇杆的方向状态为控制状态时,用户可能会改变摇杆的控制方向,在第二预设时长内,如果摇杆的控制方向不变,则控制状态持续,进而持续获取第二第二计时数据;如果摇杆的控制方向发生改变,则控制状态发生变化,此时系统清除第一计时数据和第二计时数据,重新开始获取第二计时数据,满足用户不同的操作情况,减少设备在异常区域下进入正常模式的情况;2. Further, when the direction state of the joystick is the control state, the user may change the control direction of the joystick. During the second preset time period, if the control direction of the joystick remains unchanged, the control state continues, and then continues. Obtain the second and second timing data; if the control direction of the joystick changes, the control state changes. At this time, the system clears the first timing data and the second timing data, and restarts to obtain the second timing data to meet different user operations. situation, reduce the situation that the device enters the normal mode in the abnormal area;

3.更进一步的,负载在设备上移动时,负载如果进入异常区域会与压力传感器相抵时,压力传感器会检测负载对设备的压力,系统获取压力传感器的检测压力值,若检测压力值大于预设压力值时,代表此时负载对设备产生了较大的压力,容易对设备产生损伤,此时向报警器发送报警指令,以使报警器报警,通过报警器进行警示,提醒用户及时将负载从异常区域调整到正常区域,若摇杆的方向状态为控制状态,则判定此时摇杆控制了负载发生了撞机,基于控制状态生成反方向控制指令,即使此时的摇杆控制方向没有发生改变,通过反方向控制指令可以控制负载向与目前摇杆控制方向相反的方向进行运动,并且生成第三延时指令,在第三延时时间内控制负载方法运动,最后在第三延时指令的时限到达后,通过生成停机指令使负载停止,达到因为误触摇杆而发生撞机后负载自动远离设备的目的。3. Further, when the load moves on the equipment, if the load enters the abnormal area, it will offset the pressure sensor. The pressure sensor will detect the pressure of the load on the equipment, and the system will obtain the detected pressure value of the pressure sensor. When the pressure value is set, it means that the load produces a large pressure on the equipment at this time, which is easy to cause damage to the equipment. At this time, an alarm command is sent to the alarm to make the alarm alarm, and the alarm is used to warn the user to remind the user to put the load in time. From the abnormal area to the normal area, if the direction state of the joystick is in the control state, it is determined that the joystick controls the load and a collision occurs, and the reverse direction control command is generated based on the control state, even if the joystick control direction at this time is not. If the change occurs, the load can be controlled to move in the opposite direction to the current joystick control direction through the reverse direction control command, and a third delay command is generated to control the movement of the load method within the third delay time, and finally in the third delay time After the time limit of the command is reached, the load will be stopped by generating a stop command, so that the load will automatically move away from the equipment after a collision occurs due to the accidental touch of the joystick.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例提供的一种限位保护自动纠错控制方法的场景示意图。FIG. 1 is a schematic diagram of a scenario of a limit protection automatic error correction control method provided by an embodiment of the present application.

图2是本申请实施例提供的一种限位保护自动纠错控制方法的流程示意图。FIG. 2 is a schematic flowchart of a limit protection automatic error correction control method provided by an embodiment of the present application.

图3是本申请实施例的一种限位保护自动纠错控制方法的方法示意图。FIG. 3 is a schematic diagram of a method for automatic error correction control method for limit protection according to an embodiment of the present application.

图4是本申请实施例中的报警器发生报警的流程示意图。FIG. 4 is a schematic flowchart of an alarm generating an alarm in an embodiment of the present application.

图5是本申请实施例中在步骤402后的流程示意图。FIG. 5 is a schematic flowchart after step 402 in the embodiment of the present application.

图6是本申请实施例中在步骤402中的流程示意图。FIG. 6 is a schematic flowchart of step 402 in this embodiment of the present application.

图7是本申请实施例提供的一种限位保护自动纠错控制系统的示意图。FIG. 7 is a schematic diagram of a limit protection automatic error correction control system provided by an embodiment of the present application.

具体实施方式Detailed ways

以下结合附图1-6对本申请作进一步详细说明。The present application will be further described in detail below in conjunction with accompanying drawings 1-6.

本申请实施例公开一种限位保护自动纠错控制方法。该方法应用于限位保护自动纠错控制器中,控制场景如图1所示,负载可在设备上移动,大部分负载通过控制电机配合丝杆或者传送带进行移动,图1给出的是负载配合丝杆进行移动的场景示意图,用户利用摇杆控制电机正反转以带动丝杆正反转,进而带动负载在设备上向不同方向移动。设备上会划分正常区域和异常区域,当设备在外界因素或自身因素进入异常区域后,容易发生撞机现象,因此在正常区域和异常区域之间设备限位开关,正常情况下,用户操控的负载在正常区域内遇到限位开关,限位开关会发生限位保护使负载停机,此时用户停止使用摇杆。而当设备在停电时,因负载比较重,会在负载的作用下进入异常范围内,导致重新上电后,由于限位开关的限制,负载无法直接控制通过限位开关进入至正常区域内,本实施例控制方法是通过遥杆的直接操作实现将负载调整到正常区域。The embodiment of the present application discloses a limit protection automatic error correction control method. This method is applied to the limit protection automatic error correction controller. The control scene is shown in Figure 1. The load can move on the equipment. Most of the loads are moved by controlling the motor with the screw or conveyor belt. Figure 1 shows the load The schematic diagram of the moving scene with the screw, the user uses the joystick to control the forward and reverse rotation of the motor to drive the screw to move forward and reverse, which in turn drives the load to move in different directions on the device. The equipment will be divided into normal areas and abnormal areas. When the equipment enters the abnormal area due to external factors or its own factors, collisions are likely to occur. Therefore, the limit switch of the equipment between the normal area and the abnormal area is normally controlled by the user. When the load encounters the limit switch in the normal area, the limit switch will have limit protection to stop the load, and the user will stop using the joystick. When the equipment is powered off, due to the heavy load, it will enter the abnormal range under the action of the load. As a result, after the power is turned on again, due to the limitation of the limit switch, the load cannot be directly controlled to enter the normal area through the limit switch. The control method of this embodiment is to adjust the load to the normal area through the direct operation of the joystick.

下面将结合具体实施方式,参照图2和图3,对处理流程进行详细的说明,内容可以如下:The processing flow will be described in detail below with reference to FIG. 2 and FIG. 3 in conjunction with the specific embodiments, and the content may be as follows:

步骤201,当接收到负载启动指令时,开始获取第一计时数据。Step 201, when a load start instruction is received, start acquiring first timing data.

在实施例中,设备重新上电进行使用时,用户通过摇杆操作电机以控制负载在设备上移动,负载发生运动的同时,控制器会接收到负载启动指令,此时控制器开设计时,获取到第一计时数据T1。In the embodiment, when the device is powered on again for use, the user operates the motor through the joystick to control the load to move on the device. When the load moves, the controller will receive the load start instruction, and the controller will start the timer at this time. The first timing data T1 is acquired.

步骤202,将第一计时数据与第一预设时长进行对比,当第一计时数据位于第一预设时长内时,持续获取限位开关的限位保护状态,限位保护状态包括限制状态和闲置状态,当第一计时数据大于第一预设时长时,设备进入正常工作模式。Step 202, compare the first timing data with the first preset duration, and when the first timing data is within the first preset duration, continuously obtain the limit protection state of the limit switch, and the limit protection state includes a limit state and a limit protection state. In the idle state, when the first timing data is greater than the first preset duration, the device enters the normal working mode.

在实施例中,第一预设时长是指负载通过摇杆从异常区域到正常区域内所需要使用的最长时间,第一预设时长的大小根据设备具体使用环境进行人为设定;将第一计时数据与第一预设时长进行对比,如果负载与限位开关相互接触,则限位保护状态会变成限制状态,同时停止获取第一计时数据,此时第一计时数据无法到达第一预设时长的数值;如果第一计时数据大于第一预设时长,说明负载运行的第一计时数据内并没有与限位开关发生接触,进而判定负载肯定在正常区域内行驶,从而使设备进入正常工作模式。In the embodiment, the first preset duration refers to the longest time that the load needs to use from the abnormal area to the normal area through the joystick, and the size of the first preset duration is manually set according to the specific use environment of the device; A timing data is compared with the first preset duration. If the load and the limit switch are in contact with each other, the limit protection state will become the limit state, and the acquisition of the first timing data will be stopped at the same time. At this time, the first timing data cannot reach the first timing data. The value of the preset duration; if the first timing data is greater than the first preset duration, it means that there is no contact with the limit switch in the first timing data of the load operation, and then it is determined that the load must be running in the normal area, so that the equipment enters the normal working mode.

步骤203,若限位保护状态为限制状态,则生成保护信号,以对负载进行限位保护。Step 203 , if the limit protection state is the limit state, a protection signal is generated to perform limit protection on the load.

在实施例中,当第一计时数据还没有到达第一预设时长时,会持续获取限位开关的限位保护状态,如果获取到限位保护状态为限制状态,说明负载在第一预设时长内与限位开关发生了接触,此时通过生成保护信号以对负载进行限位保护,负载会停留在限位开关的位置。In the embodiment, when the first timing data has not reached the first preset duration, the limit protection state of the limit switch will be continuously obtained. If the obtained limit protection state is the limit state, it means that the load is in the first preset time. Contact with the limit switch for a long time, at this time, by generating a protection signal to limit protection to the load, the load will stay at the position of the limit switch.

步骤204,获取摇杆的方向状态,摇杆的方向状态包括控制状态和非控制状态。In step 204, the direction state of the joystick is acquired, and the direction state of the joystick includes a control state and a non-control state.

在实施例中,在判断负载遇到限位保护后,系统会获取摇杆的方向状态,当摇杆不在控制时,摇杆为非控制状态,此时摇杆的位置竖置;如果发生了限位保护后,用户依然在使用摇杆,此时摇杆的方向状态为控制状态,控制状态代表此时摇杆的位置倾斜,同时控制状态还包括有不同方向的控制状态,摇杆的倾斜方向发生变化时,控制状态会发生变化,正常使用时控制器是基于摇杆不同方向的控制状态,控制负载向不同方向移动。In the embodiment, after judging that the load encounters the limit protection, the system will obtain the direction state of the joystick. When the joystick is not in control, the joystick is in the non-control state, and the position of the joystick is vertical at this time; After the limit protection, the user is still using the joystick. At this time, the direction state of the joystick is the control state. The control state represents the tilt of the joystick at this time. At the same time, the control state also includes the control states of different directions. When the direction changes, the control state will change. In normal use, the controller is based on the control state of the joystick in different directions, and controls the load to move in different directions.

步骤205,在摇杆的方向状态为控制状态时获取第二计时数据。Step 205: Acquire second timing data when the direction state of the joystick is the control state.

在实施例中,当摇杆位于控制状态时代表用户在负载发生限位时依然控制摇杆,系统判断此时用户时要将负载从异常区域控制至正常区域内,具体依据摇杆控制的时间进行保持,通过同时获取第二计时数据T2,第二计时数据就是发生限位时用户依然单方向操控摇杆的时间。In the embodiment, when the joystick is in the control state, it means that the user still controls the joystick when the load is limited, and the system determines that the user needs to control the load from the abnormal area to the normal area at this time, depending on the time of the joystick control. To hold, by simultaneously acquiring the second timing data T2, the second timing data is the time when the user still controls the joystick in one direction when the limit occurs.

步骤206,将第二计时数据与第二预设时长进行对比,在第二计时数据超过第二预设时长时,将限位开关调整为闲置状态,并基于摇杆的控制状态,使设备进入正常工作模式。Step 206, compare the second timing data with the second preset duration, when the second timing data exceeds the second preset duration, adjust the limit switch to the idle state, and make the device enter the state based on the control state of the joystick. normal working mode.

在实施例中,第二预设时长是判断摇杆保持时间的基准值,第二预设时长大约在两秒左右时长,将第二计时数据与第二预设时长进行对比,如果摇杆保持某一方向的时间超过第二预设时长,判断此时用户想要将负载从异常区域控制至正常区域内。控制器将根据遥柄的当前位置,生成限位保护标志调整指令,将限位开关调整为闲置状态,此时限位开关无法对负载进行限位保护,从而负载通过摇杆的控制通过限位开关进入至正常区域,使设备进入正常工作模式。In the embodiment, the second preset duration is a reference value for judging the holding time of the joystick, the second preset duration is about two seconds, and the second timing data is compared with the second preset duration, if the joystick keeps When the time in a certain direction exceeds the second preset time period, it is determined that the user wants to control the load from the abnormal area to the normal area at this time. The controller will generate a limit protection mark adjustment instruction according to the current position of the remote handle, and adjust the limit switch to an idle state. At this time, the limit switch cannot perform limit protection on the load, so the load is controlled by the rocker to pass the limit switch. Enter into the normal area to make the device enter the normal working mode.

第二预设时长的设置还便于负载在正常区域内工作时用户进行判断,如果上电后负载在正常区域内,且靠近限位开关的位置,此时如果用户控制负载向限位开关的位置移动,此时第一计时数据无法到达第一预设时长,且在第一预设时长内限位开关会对负载进行限位保护,此时如果用户保持摇杆原先的运动方向,在第二预设时长内负载还是处于限制运动的情况,用户看到负载无法运动后会及时停止操控摇杆,此时负载会停止在限位开关的位置,确保限位开关当负载在正常区域内运动时具有限位保护的作用。The setting of the second preset duration is also convenient for the user to judge when the load is working in the normal area. If the load is in the normal area after power-on and is close to the position of the limit switch, if the user controls the load to the position of the limit switch Move, at this time, the first timing data cannot reach the first preset duration, and the limit switch will limit the load to protect the load within the first preset duration. At this time, if the user maintains the original The load is still in the state of restricted movement within the preset time period. When the user sees that the load cannot move, he will stop the joystick in time. At this time, the load will stop at the position of the limit switch to ensure that the limit switch is in the normal area when the load moves in the normal area. It has the function of limit protection.

利用上述的负载限位保护自动纠错方法,通过在第一预设时长内判断负载是否发生限位保护,如果没有则代表负载处于正常工作区域内;若在第一预设时长内发生限位保护,限位开关对负载限制后,会通过摇杆的状态判断负载是否处于异常区域,若限位开关的限位保护状态不仅为限制状态,同时摇杆保持某一方向的时间超过了第二预设时长,则代表用户需要将负载从异常区域调整到正常区域,通过生成限位保护标志调整指令控制设备进入正常工作模式,无需在负载进入到异常区域后通过人为劳动力调整负载的位置,减少了人为劳动力,利于延长设备的使用寿命。Using the above-mentioned automatic error correction method for load limit protection, it is determined whether the load has limit protection within the first preset time period, if not, it means the load is in the normal working area; if the limit occurs within the first preset time period Protection, after the limit switch limits the load, it will judge whether the load is in an abnormal area through the state of the rocker. The preset time period means that the user needs to adjust the load from the abnormal area to the normal area, and control the device to enter the normal working mode by generating the limit protection mark adjustment instruction, without the need to manually adjust the position of the load after the load enters the abnormal area, reducing the need for manual labor. It saves the labor force and prolongs the service life of the equipment.

可选的,在所述持续获取限位开关的限位保护状态后,参照图3,还可以存着如下处理流程:Optionally, after continuously obtaining the limit protection state of the limit switch, referring to FIG. 3 , the following processing flow may also be stored:

若限位保护状态为闲置状态,则持续获取第一计时数据。If the limit protection state is the idle state, the first timing data is continuously acquired.

在实施例中,在第一预设时长内持续获取限位开关的限位保护状态,只有在第一预设时长内发生了限位保护,才会去获取摇杆的方向状态,以增强纠错的精确度。In the embodiment, the limit protection state of the limit switch is continuously acquired within the first preset time period, and the direction state of the joystick is acquired only when the limit protection occurs within the first preset time period, so as to enhance the correction wrong precision.

可选的,在获取摇杆的方向状态后,参照图3,还包括:Optionally, after acquiring the direction state of the joystick, referring to FIG. 3 , it further includes:

若摇杆的方向状态为非控制状态,则控制设备停机。If the direction state of the joystick is a non-control state, the control device stops.

在实施例中,在第一预设时长内负载发生限位保护后,会获取摇杆的方向状态,若摇杆处于非控制状态,代表用户无需持续控制负载移动,则生成停机指令,控制设备停机,停止对负载的控制,将负载控制在限位开关的位置,满足更多的使用需求。In the embodiment, after the limit protection of the load occurs within the first preset time period, the direction state of the joystick will be obtained. If the joystick is in a non-control state, it means that the user does not need to continuously control the movement of the load, and a shutdown instruction is generated to control the device. Stop, stop the control of the load, and control the load at the position of the limit switch to meet more usage needs.

可选的,参照图2和图3,在将第二计时数据与第二预设时长进行对比后,还包括:Optionally, referring to FIG. 2 and FIG. 3 , after comparing the second timing data with the second preset duration, the method further includes:

步骤207,若第二计时数据小于第二预设时长,则获取摇杆的控制状态,若控制状态发生变化,则重新获取第二计时数据,若控制状态不变,则持续获取所述第二计时数据。Step 207: If the second timing data is less than the second preset duration, obtain the control state of the joystick; if the control state changes, obtain the second timing data again; if the control state remains unchanged, continue to obtain the second timing data. timing data.

在实施例中,当第二计时数据没有到达第二预设时长时,用户在控制摇杆,但是用户可能会改变摇杆的控制方向,具体的是当正常区域内的负载遇到限位开关后,用户会改变摇杆的控制方向,当异常区域内的负载遇到限位开关后,用户会保持摇杆原先控制方向,以使负载进入正常区域。具体通过Same_Flag表示,代表实际遥杆运动方向与限位保护信号一致性的标志,在第二预设时长内,如果摇杆的控制方向不变,则控制状态持续,Same_Flag等于1,进而持续获取第二第二计时数据;如果摇杆的控制方向发生改变,则控制状态发生变化,Same_Flag不等于1,此时系统清除第一计时数据和第二计时数据,重新开始获取第二计时数据,满足用户不同的操作情况,减少设备在异常区域下进入正常模式的情况。In an embodiment, when the second timing data does not reach the second preset duration, the user is controlling the joystick, but the user may change the control direction of the joystick, specifically when the load in the normal area encounters the limit switch After that, the user will change the control direction of the joystick. When the load in the abnormal area encounters the limit switch, the user will keep the original control direction of the joystick so that the load can enter the normal area. Specifically, it is represented by Same_Flag, which represents the consistency between the actual joystick movement direction and the limit protection signal. In the second preset time period, if the control direction of the joystick remains unchanged, the control state will continue, Same_Flag is equal to 1, and then continue to obtain The second and second timing data; if the control direction of the joystick changes, the control state changes, and Same_Flag is not equal to 1. At this time, the system clears the first timing data and the second timing data, and restarts to obtain the second timing data. Satisfaction Different operating conditions of users reduce the situation that the device enters the normal mode in the abnormal area.

可选的,在设备断电时,如果负载因自身因素或外界因素靠近异常区域的极限位置,负载存在撞机的风险,此时需要提醒用户及时调整负载的位置,因此参照图1,在设备上靠近异常区域的极限位置配置与控制器相互关联的压力传感器,负载与设备发生接触时压力传感器可以检测到压力值,具体参照图4,方法还包括:Optionally, when the equipment is powered off, if the load is close to the limit position of the abnormal area due to its own factors or external factors, the load has the risk of collision, and the user needs to be reminded to adjust the position of the load in time. The pressure sensor associated with the controller is arranged at the extreme position near the abnormal area. The pressure sensor can detect the pressure value when the load is in contact with the equipment. Specifically, referring to Figure 4, the method further includes:

步骤401,获取压力传感器的检测压力值。In step 401, the detected pressure value of the pressure sensor is acquired.

步骤402,在检测压力值大于预设压力值时,向报警器发送报警指令,以使报警器报警。Step 402, when the detected pressure value is greater than the preset pressure value, send an alarm instruction to the alarm device to make the alarm device alarm.

在实施例中,负载如果发生撞机的现象,负载会与压力传感器相抵,压力传感器会检测负载对设备的压力,系统获取压力传感器的检测压力值,若检测压力值大于预设压力值时,代表此时负载对设备产生了较大的压力,容易对设备产生损伤,此时向报警器发送报警指令,以使报警器报警,通过报警器进行警示,提醒用户及时将负载从异常区域调整到正常区域。In the embodiment, if the load collides with the plane, the load will offset the pressure sensor, the pressure sensor will detect the pressure of the load on the equipment, and the system will obtain the detected pressure value of the pressure sensor. If the detected pressure value is greater than the preset pressure value, It means that the load exerts great pressure on the equipment at this time, and it is easy to cause damage to the equipment. At this time, an alarm command is sent to the alarm to make the alarm alarm, and the alarm is issued to remind the user to adjust the load from the abnormal area to the alarm in time. normal area.

可选的,负载发生撞机的现象有可能在设备上电时由于人为操作失误或故意而发生,为了减小人为控制负载而发生撞机现象的现象,参照图5,在步骤402后还包括:Optionally, the phenomenon that the load collides may occur due to human operation error or intentional when the device is powered on. In order to reduce the phenomenon of the collision caused by the artificial control of the load, referring to FIG. 5 , after step 402, it also includes :

步骤501,获取摇杆的方向状态。In step 501, the direction state of the joystick is acquired.

步骤502,若方向状态为控制状态,则基于控制状态生成反方向控制指令,以使负载反方向运动。Step 502 , if the direction state is the control state, a reverse direction control command is generated based on the control state, so as to make the load move in the reverse direction.

步骤503,启动计时,在第三预设时长到达后,控制设备停机。Step 503: Start the timer, and after the third preset time period is reached, the control device stops.

在实施例中,在报警器报警后,控制器会对负载发生撞机的原因进行判断,通过获取摇杆的方向状态,如果摇杆为非控制状态,说明负载可能因为自身重力或外界因素发生了位移。而如果摇杆的方向状态为控制状态,则判定此时摇杆控制了负载发生了撞机,此时基于控制状态生成反方向控制指令,这样即使摇杆的操作方向没有发生改变,控制器会启动延时指令,在第三预设时长内控制负载向摇杆操控的反方向进行运动。并且在第三预设时长到达后,通过生成停机指令使负载停止,达到因为误触摇杆而发生撞机后负载自动远离设备的目的,减少了因为误触而发生设备损伤的现象。In the embodiment, after the alarm alarms, the controller will judge the reason for the collision of the load, and by obtaining the direction state of the joystick, if the joystick is in the non-control state, it means that the load may occur due to its own gravity or external factors. displacement. If the direction state of the joystick is in the control state, it is determined that the joystick controls the load and a collision occurs. At this time, the reverse direction control command is generated based on the control state, so that even if the operation direction of the joystick does not change, the controller will Start the delay command, and control the load to move in the opposite direction of the joystick control within the third preset time period. And after the third preset time period is reached, the load is stopped by generating a stop command, so as to achieve the purpose of automatically moving the load away from the equipment after a collision occurs due to the accidental touch of the joystick, thereby reducing the phenomenon of equipment damage due to accidental touches.

可选的,参照图6,在步骤402中包括:Optionally, referring to FIG. 6, step 402 includes:

步骤601,获取摇杆的方向状态。In step 601, the direction state of the joystick is acquired.

步骤602,若摇杆位于控制状态,则生成第一报警指令,若摇杆位于非控制状态,则生成第二报警指令。Step 602, if the joystick is in a control state, generate a first alarm command, and if the joystick is in a non-control state, generate a second alarm command.

在实施例中,在通过报警器进行报警时,如果用户不在使用摇杆,则生成第一报警指令,如果用户正在使用摇杆,则生成第二报警指令,通过不同的报警指令控制报警器进行不同声音或者不同颜色报警,有利于用户判断设备的危险情况,以便于快速使用摇杆对负载进行调整。In an embodiment, when an alarm is performed by an alarm, if the user is not using the joystick, a first alarm instruction is generated, and if the user is using the joystick, a second alarm instruction is generated, and the alarm is controlled by different alarm instructions. Different sounds or different colors alarm, which is helpful for users to judge the dangerous situation of the equipment, so as to quickly adjust the load by using the joystick.

基于相同构思,本申请实施例还公开一种限位保护自动纠错控制系统。参照图7,限位保护自动纠错控制系统包括:Based on the same concept, the embodiment of the present application also discloses a limit protection automatic error correction control system. Referring to Figure 7, the limit protection automatic error correction control system includes:

第一计时模块,用于当接收到负载启动指令时,开始获取第一计时数据。The first timing module is configured to start acquiring the first timing data when receiving the load start instruction.

第一时长对比模块,用于将所述第一计时数据与第一预设时长进行对比,当所述第一计时数据位于所述第一预设时长内时,持续获取限位开关的限位保护状态,所述限位保护状态包括限制状态和闲置状态,当所述第一计时数据大于所述第一预设时长时,设备进入正常工作模式。The first duration comparison module is used to compare the first timing data with the first preset duration, and when the first timing data is within the first preset duration, continuously obtain the limit of the limit switch A protection state, the limit protection state includes a limit state and an idle state, and when the first timing data is greater than the first preset duration, the device enters a normal working mode.

限制模块,用于若所述限位保护状态为限制状态,则生成保护信号,以对负载进行限位保护。The limit module is configured to generate a protection signal to perform limit protection on the load if the limit protection state is the limit state.

摇杆检测模块,用于获取摇杆的方向状态,所述摇杆的方向状态包括控制状态和非控制状态。The joystick detection module is used to acquire the direction state of the joystick, and the direction state of the joystick includes a control state and a non-control state.

第二计时模块,用于在所述摇杆的方向状态为所述控制状态时获取第二计时数据。A second timing module, configured to acquire second timing data when the direction state of the joystick is the control state.

第二时长对比模块,用于将所述第二计时数据与第二预设时长进行对比,在所述第二计时数据超过所述第二预设时长时,将限位开关调整为所述闲置状态,并基于摇杆的所述控制状态,使设备进入正常工作模式。A second duration comparison module, configured to compare the second timing data with a second preset duration, and adjust the limit switch to the idle when the second timing data exceeds the second preset duration state, and based on the control state of the joystick, the device enters the normal working mode.

可选的,限位保护自动纠错控制系统还包括:Optionally, the limit protection automatic error correction control system also includes:

压力检测模块,用于获取所述压力传感器的检测压力值。The pressure detection module is used to obtain the detected pressure value of the pressure sensor.

报警模块,用于在所述检测压力值大于预设压力值时,向所述报警器发送报警指令,以使所述报警器报警。The alarm module is configured to send an alarm instruction to the alarm device when the detected pressure value is greater than a preset pressure value, so as to make the alarm device alarm.

具体的,报警模块包括:Specifically, the alarm module includes:

摇杆检测子模块,用于获取所述摇杆的所述方向状态。The joystick detection sub-module is used to obtain the direction state of the joystick.

第一报警子模块,用于若所述摇杆位于所述控制状态,则生成第一报警指令。The first alarm sub-module is configured to generate a first alarm instruction if the joystick is in the control state.

第二报警子模块,用于若所述摇杆位于非控制状态,则生成第二报警指令。The second alarm sub-module is configured to generate a second alarm instruction if the joystick is in a non-control state.

可选的,限位保护自动纠错控制系统还包括:Optionally, the limit protection automatic error correction control system also includes:

反方向运动模块,用于若所述方向状态为所述控制状态,则基于所述控制状态生成反方向控制指令,以使负载反方向运动。A reverse direction movement module, configured to generate a reverse direction control instruction based on the control state if the direction state is the control state, so as to make the load move in the reverse direction.

第三计时模块,用于启动计时,在第三预设时长到达后,控制设备停机。The third timing module is used to start timing, and after the third preset time period is reached, the control device stops.

本申请实施例还公开一种限位保护自动纠错控制设备,限位保护自动纠错控制设备包括存储器和处理器,存储器上存储有能够被处理器加载并执行如上述的限位保护自动纠错控制方法的计算机程序。The embodiment of the present application also discloses a limit protection automatic error correction control device. The limit protection automatic error correction control device includes a memory and a processor, and the memory stores a memory that can be loaded by the processor and execute the limit protection automatic correction as described above. Computer program for error control method.

本申请实施例还公开一种计算机可读存储介质,其存储有能够被处理器加载并执行如上述的限位保护自动纠错控制方法的计算机程序,该计算机可读存储介质例如包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random AccessMemory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The embodiment of the present application also discloses a computer-readable storage medium, which stores a computer program that can be loaded by a processor and executes the above-mentioned limit protection automatic error correction control method. The computer-readable storage medium includes, for example: a USB flash drive , mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.

以上实施例仅用以说明本申请的技术方案,而非对申请的保护范围进行限制。显然,所描述的实施例仅仅是本申请部分实施例,而不是全部实施例。基于这些实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请所要保护的范围。The above embodiments are only used to illustrate the technical solutions of the present application, but are not intended to limit the protection scope of the application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of the embodiments. Based on these embodiments, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of the present application.

Claims (10)

1.一种限位保护自动纠错控制方法,其特征在于,所述方法包括如下步骤:1. a limit protection automatic error correction control method, is characterized in that, described method comprises the steps: 当接收到负载启动指令时,开始获取第一计时数据;When receiving the load start command, start to obtain the first timing data; 将所述第一计时数据与第一预设时长进行对比,当所述第一计时数据位于所述第一预设时长内时,持续获取限位开关的限位保护状态,所述限位保护状态包括限制状态和闲置状态,当所述第一计时数据大于所述第一预设时长时,设备进入正常工作模式;Comparing the first timing data with the first preset duration, when the first timing data is within the first preset duration, continuously obtain the limit protection state of the limit switch, the limit protection The state includes a restricted state and an idle state, and when the first timing data is greater than the first preset duration, the device enters a normal working mode; 若所述限位保护状态为限制状态,则生成保护信号,以对负载进行限位保护;If the limit protection state is a limit state, a protection signal is generated to perform limit protection on the load; 获取摇杆的方向状态,所述摇杆的方向状态包括控制状态和非控制状态;Obtain the direction state of the joystick, where the direction state of the joystick includes a control state and a non-control state; 在所述摇杆的方向状态为所述控制状态时获取第二计时数据;acquiring second timing data when the direction state of the joystick is the control state; 将所述第二计时数据与第二预设时长进行对比,在所述第二计时数据超过所述第二预设时长时,将限位开关调整为所述闲置状态,并基于摇杆的所述控制状态,使设备进入正常工作模式。The second timing data is compared with the second preset duration, and when the second timing data exceeds the second preset duration, the limit switch is adjusted to the idle state, and based on the position of the joystick The above control state makes the device enter the normal working mode. 2.根据权利要求1所述的限位保护自动纠错控制方法,其特征在于,在所述持续获取限位开关的限位保护状态后,还包括:2. The limit protection automatic error correction control method according to claim 1, wherein after the continuous acquisition of the limit protection state of the limit switch, the method further comprises: 若所述限位保护状态为闲置状态,则持续获取所述第一计时数据。If the limit protection state is an idle state, the first timing data is continuously acquired. 3.根据权利要求1所述的限位保护自动纠错控制方法,其特征在于,在所述获取摇杆的方向状态后,还包括:3. The limit protection automatic error correction control method according to claim 1, characterized in that, after the acquisition of the direction state of the joystick, further comprising: 若所述摇杆的方向状态为非控制状态,则控制设备停机。If the direction state of the rocker is a non-control state, the control device stops. 4.根据权利要求1所述的限位保护自动纠错控制方法,其特征在于,在所述将所述第二计时数据与第二预设时长进行对比后,还包括:4. The limit protection automatic error correction control method according to claim 1, characterized in that, after the second timing data is compared with the second preset duration, further comprising: 若所述第二计时数据小于所述第二预设时长,则获取所述摇杆的所述控制状态,若所述控制状态发生变化,则重新获取所述第二计时数据,若所述控制状态不变,则持续获取所述第二计时数据。If the second timing data is less than the second preset duration, the control state of the joystick is acquired; if the control state changes, the second timing data is re-acquired; if the control If the state remains unchanged, the second timing data is continuously acquired. 5.根据权利要求1所述的限位保护自动纠错控制方法,其特征在于,所述方法还包括:5. The limit protection automatic error correction control method according to claim 1, wherein the method further comprises: 获取所述压力传感器的检测压力值;obtaining the detected pressure value of the pressure sensor; 在所述检测压力值大于预设压力值时,向所述报警器发送报警指令,以使所述报警器报警。When the detected pressure value is greater than the preset pressure value, an alarm instruction is sent to the alarm device to make the alarm device alarm. 6.根据权利要求5所述的限位保护自动纠错控制方法,其特征在于,在所述检测压力值大于预设压力值时,向所述报警器发送报警指令,以使所述报警器报警后,还包括:6 . The automatic error correction control method for limit protection according to claim 5 , wherein when the detected pressure value is greater than a preset pressure value, an alarm instruction is sent to the alarm, so that the alarm After the alarm, it also includes: 获取所述摇杆的所述方向状态;Obtain the direction state of the joystick; 若所述方向状态为所述控制状态,则基于所述控制状态生成反方向控制指令,以使负载反方向运动;If the direction state is the control state, generating a reverse direction control command based on the control state, so as to make the load move in the opposite direction; 启动计时,在第三预设时长到达后,控制设备停机。Start the timer, and after the third preset time period arrives, the control device stops. 7.根据权利要求5所述的限位保护自动纠错控制方法,其特征在于,向所述报警器发送报警指令,以使所述报警器报警中包括:7. The limit protection automatic error correction control method according to claim 5, wherein sending an alarm instruction to the alarm device, so that the alarm device alarm includes: 获取所述摇杆的所述方向状态;Obtain the direction state of the joystick; 若所述摇杆位于所述控制状态,则生成第一报警指令;If the joystick is in the control state, generating a first alarm instruction; 若所述摇杆位于非控制状态,则生成第二报警指令。If the joystick is in a non-control state, a second alarm instruction is generated. 8.一种限位保护自动纠错控制系统,其特征在于,包括,8. A limit protection automatic error correction control system is characterized in that, comprising, 第一计时模块,用于当接收到负载启动指令时,开始获取第一计时数据;a first timing module, configured to start acquiring the first timing data when receiving a load start instruction; 第一时长对比模块,用于将所述第一计时数据与第一预设时长进行对比,当所述第一计时数据位于所述第一预设时长内时,持续获取限位开关的限位保护状态,所述限位保护状态包括限制状态和闲置状态,当所述第一计时数据大于所述第一预设时长时,设备进入正常工作模式;The first duration comparison module is used to compare the first timing data with the first preset duration, and when the first timing data is within the first preset duration, continuously obtain the limit of the limit switch a protection state, the limit protection state includes a limit state and an idle state, and when the first timing data is greater than the first preset duration, the device enters a normal working mode; 限制模块,用于若所述限位保护状态为限制状态,则生成保护信号,以对负载进行限位保护;a limit module, configured to generate a protection signal if the limit protection state is a limit state, so as to perform limit protection on the load; 摇杆检测模块,用于获取摇杆的方向状态,所述摇杆的方向状态包括控制状态和非控制状态;a joystick detection module, used to obtain the direction state of the joystick, where the direction state of the joystick includes a control state and a non-control state; 第二计时模块,用于在所述摇杆的方向状态为所述控制状态时获取第二计时数据;a second timing module, configured to acquire second timing data when the direction state of the joystick is the control state; 第二时长对比模块,用于将所述第二计时数据与第二预设时长进行对比,在所述第二计时数据超过所述第二预设时长时,将限位开关调整为所述闲置状态,并基于摇杆的所述控制状态,使设备进入正常工作模式。A second duration comparison module, configured to compare the second timing data with a second preset duration, and adjust the limit switch to the idle when the second timing data exceeds the second preset duration state, and based on the control state of the joystick, the device enters the normal working mode. 9.一种限位保护自动纠错控制设备,其特征在于,包括存储器和处理器,所述存储器上存储有能够被处理器加载并执行如权利要求1至7中任一种方法的计算机程序。9. A limit protection automatic error correction control device, characterized in that it comprises a memory and a processor, and the memory is stored with a computer program that can be loaded by the processor and executes any method as claimed in claims 1 to 7 . 10.一种计算机可读存储介质,其特征在于,存储有能够被处理器加载并执行如权利要求1至7中任一种方法的计算机程序。10. A computer-readable storage medium, characterized by storing a computer program capable of being loaded by a processor and executing the method according to any one of claims 1 to 7.
CN202210442174.8A 2022-04-25 2022-04-25 A limit protection automatic error correction control method and system Active CN114815723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210442174.8A CN114815723B (en) 2022-04-25 2022-04-25 A limit protection automatic error correction control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210442174.8A CN114815723B (en) 2022-04-25 2022-04-25 A limit protection automatic error correction control method and system

Publications (2)

Publication Number Publication Date
CN114815723A true CN114815723A (en) 2022-07-29
CN114815723B CN114815723B (en) 2025-03-25

Family

ID=82508384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210442174.8A Active CN114815723B (en) 2022-04-25 2022-04-25 A limit protection automatic error correction control method and system

Country Status (1)

Country Link
CN (1) CN114815723B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201018469Y (en) * 2006-12-25 2008-02-06 北京天准科技有限责任公司 Stroke protective circuit of precision moving platform
CN205654220U (en) * 2016-01-29 2016-10-19 广东正业科技股份有限公司 Laser processing equipment and its automatic door control system
US20180113434A1 (en) * 2015-02-12 2018-04-26 Glowforge Inc. Safety and reliability guarantees for laser fabrication
CN109552999A (en) * 2019-01-10 2019-04-02 长沙海川自动化设备有限公司 The control system and method, tower crane, storage medium of tower crane lifting hook work amplitude
CN109827288A (en) * 2018-12-29 2019-05-31 珠海格力电器股份有限公司 Automatic error correction control method and device and electrical equipment
CN110963255A (en) * 2019-11-04 2020-04-07 河钢股份有限公司承德分公司 Monitoring control method and device for conveyor and terminal
KR102171783B1 (en) * 2019-12-10 2020-10-29 제룡전기 주식회사 Gas insulated load Break switches system with operating time measuring device and test method of Gas insulated load Break switches using the system
CN113843515A (en) * 2020-06-28 2021-12-28 大族激光科技产业集团股份有限公司 Control method, device and equipment of double-beam machining equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201018469Y (en) * 2006-12-25 2008-02-06 北京天准科技有限责任公司 Stroke protective circuit of precision moving platform
US20180113434A1 (en) * 2015-02-12 2018-04-26 Glowforge Inc. Safety and reliability guarantees for laser fabrication
CN205654220U (en) * 2016-01-29 2016-10-19 广东正业科技股份有限公司 Laser processing equipment and its automatic door control system
CN109827288A (en) * 2018-12-29 2019-05-31 珠海格力电器股份有限公司 Automatic error correction control method and device and electrical equipment
CN109552999A (en) * 2019-01-10 2019-04-02 长沙海川自动化设备有限公司 The control system and method, tower crane, storage medium of tower crane lifting hook work amplitude
CN110963255A (en) * 2019-11-04 2020-04-07 河钢股份有限公司承德分公司 Monitoring control method and device for conveyor and terminal
KR102171783B1 (en) * 2019-12-10 2020-10-29 제룡전기 주식회사 Gas insulated load Break switches system with operating time measuring device and test method of Gas insulated load Break switches using the system
CN113843515A (en) * 2020-06-28 2021-12-28 大族激光科技产业集团股份有限公司 Control method, device and equipment of double-beam machining equipment and storage medium

Also Published As

Publication number Publication date
CN114815723B (en) 2025-03-25

Similar Documents

Publication Publication Date Title
JP5122750B2 (en) Electric tool
CN105700419B (en) Control method, device and the control method of finished of entire car controller, system
WO2005074454A3 (en) Improved vehicle stopping system and method
KR20090044872A (en) How to control the power saving mode of a portable computer and a portable computer
JP3686232B2 (en) Peripheral device control method for computer system
WO2018113323A1 (en) Method and system for automatically and rapidly starting up unit after de-energization, and air conditioner
JP6506199B2 (en) Machine Tools
CN114815723A (en) Automatic error correction control method and system for limit protection
WO2023053343A1 (en) Control device
KR20000071219A (en) Personal computer built-in numerical control system
JPWO1998037466A1 (en) Personal computer built-in numerical control device
KR0167643B1 (en) Power control device and its method
JP2012146254A (en) Memory backup device and programmable controller having memory backup device
US20140145652A1 (en) Motor control device and program
JP5895185B2 (en) Electric tool
US10053330B2 (en) Method for controlling operation of an elevator using an auxiliary power supply
KR101073081B1 (en) Overheat protection of motor
KR100312895B1 (en) Dynamic break control apparatus and control method
KR101490197B1 (en) Construction equipment power control system
JP3544176B2 (en) Control device for electric actuator
JPH07271483A (en) Electronic device
CN119844226A (en) Control method and device for work machine, and storage medium
CN116257001A (en) An intelligent alarm control method, electric tool and computer readable medium
JP2024082097A (en) Driving Support Devices
GB2632294A (en) A means of controlling the power provided to an appliance

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