Control method, device, electronic equipment and storage medium for machine tool lighting

By realizing the automatic turn-off function of the lighting on the machine tool, the energy waste and economic losses caused by the constant light on the machine tool light is solved, the operation convenience is improved and the electricity bill is saved, and the 1 kilowatt-hour of electricity per machine tool is achieved every day , save 11,315 yuan of economic value annually.

CN115515284BActive Publication Date: 2024-11-05GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211204263.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-29
Publication Date
2024-11-05
Estimated Expiration
2042-09-29

AI Technical Summary

Technical Problem

The machine tool lighting is always on during operation, resulting in unnecessary waste of energy and economic losses, and manual shutdown poses complicated operation and risk of accidental contact.

Method used

By detecting that the machine tool is in the workpiece processing state, it monitors whether the lighting lamp is on and automatically turns off after the preset time. The lighting time is adjusted according to the warm-up operation and the number of workstations to ensure that the lighting lamp is automatically turned off when it is not needed.

Benefits of technology

It effectively reduces the uncertainty of manual operation, avoids the constant lighting, saves energy and electricity bills, improves operation convenience, and realizes 1 kilowatt-hour of electricity per machine tool every day, saving 11,315 yuan in annual electricity bills.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115515284B_ABST
    Figure CN115515284B_ABST
Patent Text Reader

Abstract

The present application discloses a control method, device, electronic device and storage medium for a machine tool lighting lamp. The control method for the machine tool lighting lamp comprises: when it is detected that the machine tool is in a workpiece processing state, monitoring whether the lighting lamp of the machine tool is in an on state; if it is detected that the lighting lamp is in an on state, when the duration of the lighting lamp in the on state reaches a preset first lighting time, turning off the lighting lamp. The present application solves the technical problem that the lighting lamp of the prior art machine tool is always on during operation, resulting in unnecessary energy waste and economic losses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of digital control processing technology, and in particular to a control method, device, electronic equipment and storage medium for a machine tool lighting lamp. Background Art

[0002] CNC (Computerised Numerical Control) machining, also known as CNC machining, refers to a mechanical machining method that uses digital information to control the displacement of parts and tools on CNC machine tools. Because CNC machining is controlled by a computer after programming, CNC machining has the advantages of stable machining quality, high machining accuracy, high repeatability, the ability to process complex surfaces, and high machining efficiency. The machine tools used for CNC machining are equipped with lighting to facilitate the clamping of parts and other operations so that the specific operation conditions can be clearly seen and the accuracy of clamping can be ensured. The lighting is always on during the operation of the machine tool.

[0003] However, after the workpiece is clamped, manual observation is usually no longer required during the machine tool processing, that is, lighting is no longer required. At present, although the light can be turned off manually, the manual shutdown requires the operator to perform an operation before each operation, which is complicated. Not only is it easy to accidentally touch other buttons next to the light switch, causing accidents, but it is also often forgotten, resulting in unnecessary energy waste and economic costs. Summary of the invention

[0004] The main purpose of the present application is to provide a control method, device, electronic device and storage medium for a machine tool lighting lamp, aiming to solve the technical problem that the lighting lamp of the prior art machine tool is always on during operation, resulting in unnecessary energy waste and economic losses.

[0005] To achieve the above-mentioned purpose, the present application provides a method for controlling a machine tool lighting lamp, the method for controlling a machine tool lighting lamp comprising:

[0006] When it is detected that the machine tool is in a workpiece processing state, monitoring whether the lighting lamp of the machine tool is in an on state;

[0007] If it is detected that the illuminating lamp is in the on state, the illuminating lamp is turned off when the duration of the illuminating lamp being in the on state reaches a preset first illuminating time.

[0008] Optionally, before the step of monitoring whether the lighting lamp of the machine tool is in the on state when it is detected that the machine tool is in the workpiece processing state, the step further includes:

[0009] When the warm-up operation command is detected, the first warm-up operation is performed;

[0010] After the first warm-up operation is completed, turning off the lighting lamp;

[0011] Perform warm-up operation for a preset number of cycles.

[0012] Optionally, after the step of performing warm-up operation for a preset number of cycles, the method further includes:

[0013] The lighting lamp is turned on.

[0014] Optionally, the control method of the machine tool lighting lamp further includes:

[0015] When it is detected that the machine tool is in a workpiece processing state, detecting whether a machine tool door of the machine tool is opened;

[0016] If it is detected that the machine tool door is opened, the lighting lamp is turned on.

[0017] Optionally, before the step of turning off the illuminating lamp when the duration of the illuminating lamp being in the on state reaches a preset first illuminating time, the step further includes:

[0018] Determining the number of working stations in use in the machine tool;

[0019] The product of the number of workstations in use and the preset unit lighting time is calculated, and the product is determined as the preset first lighting time.

[0020] Optionally, the control method of the machine tool lighting lamp further includes:

[0021] When it is detected that the machine tool starts to process a workpiece, determining whether the process of processing the workpiece belongs to the processing process to be tested;

[0022] If it is determined that the workpiece processing process belongs to the processing process to be tested, turning on the lighting lamp;

[0023] When the duration of the lighting lamp being in the on state reaches a preset second lighting time, the lighting lamp is turned off.

[0024] Optionally, before the step of turning off the illuminating lamp when the duration of the illuminating lamp being in the on state reaches a preset second illuminating time, the step further includes:

[0025] Determine a corresponding target test time according to the test process of the workpiece processing;

[0026] The target test time is determined as the preset second lighting time.

[0027] The present application also provides a control device for a machine tool lighting lamp, the control device for the machine tool lighting lamp is applied to a control device for the machine tool lighting lamp, and the control device for the machine tool lighting lamp comprises:

[0028] A lighting lamp monitoring module, used for monitoring whether the lighting lamp of the machine tool is in an on state when it is detected that the machine tool is in a workpiece processing state;

[0029] The lighting lamp shut-off module is used to shut off the lighting lamp if it is detected that the lighting lamp is in the on state and when the duration of the lighting lamp in the on state reaches a preset first lighting time.

[0030] The present application also provides an electronic device, which is a physical device, and includes: a memory, a processor, and a program of the control method of the machine tool lighting stored in the memory and executable on the processor. When the program of the control method of the machine tool lighting is executed by the processor, the steps of the control method of the machine tool lighting as described above can be implemented.

[0031] The present application also provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores a program for implementing a method for controlling a machine tool lighting. When the program for the method for controlling a machine tool lighting is executed by a processor, the steps of the method for controlling a machine tool lighting as described above are implemented.

[0032] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for controlling a machine tool lighting lamp when executed by a processor.

[0033] The present application provides a control method, device, electronic device and storage medium for a machine tool lighting lamp. When the machine tool is detected to be in a workpiece processing state, the lighting lamp of the machine tool is monitored to see if it is in an on state, thereby realizing monitoring of the on state of the machine tool lighting lamp in the workpiece processing state. Furthermore, if the lighting lamp is detected to be in an on state, the lighting lamp is turned off when the duration of the lighting lamp in the on state reaches a preset first lighting time, thereby realizing automatic turning off of the lighting lamp turned on in the workpiece processing state of the machine tool. On the one hand, when the machine tool is in a workpiece processing state, it is usually no longer necessary to observe the internal conditions of the machine tool, that is, it is no longer necessary to illuminate. Compared with the manual turning off method, automatically turning off the lighting lamp can effectively reduce the uncertainty of manual operation, reduce accidents caused by accidentally touching other buttons when manually turning on and off the lighting lamp, and can effectively avoid the lighting lamp being in a constant on state during operation due to the operator's forgetfulness. On the other hand, if it is detected that the lighting of the machine tool is in the on state, it may be that the operator needs to observe the situation in the machine tool and actively turns it on. Therefore, by setting the preset first lighting time, the operator can be given time to observe, and the lighting can be automatically controlled to turn off after the preset first lighting time, so as to avoid the lighting being in a constant light state during the operation of the machine tool. According to the actual situation of the current workshop, from 2017 to the present, the lighting of the machine tool has almost been in a constant light state when the workpiece is processed. After adopting the control method of the machine tool lighting of the present application, each machine tool can save 1 kWh of electricity per day. The current workshop has a total of 31 finishing machine tools, which can save 31 kWh of electricity per day. The industrial electricity is calculated at 1 yuan per kWh, and the electricity bill can be saved by 365*31*1=11315 yuan per year, which has certain energy-saving and environmental protection value and economic value. It can be seen from this that the present application can not only improve the convenience of operation and observation of the operator, but also effectively save energy and electricity bills, and overcome the technical problem that the lighting of the prior art machine tool is always on during operation, resulting in unnecessary energy waste and economic losses. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0036] Figure 1 This is a flow chart of an embodiment of a method for controlling a machine tool lighting lamp of the present application;

[0037] Figure 2 A flow chart of another embodiment of the method for controlling a machine tool lighting lamp of the present application;

[0038] Figure 3 This is a schematic diagram of the device structure involved in the control method of the machine tool lighting lamp of this application;

[0039] Figure 4 Schematic diagram of the equipment structure of the hardware operating environment involved in the method for controlling a machine tool lighting lamp in an embodiment of the present application.

[0040] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0042] The present application provides a method for controlling a machine tool lighting lamp. In the first embodiment of the method for controlling a machine tool lighting lamp of the present application, referring to Figure 1 , the control method of the machine tool lighting lamp includes:

[0043] Step S10, when it is detected that the machine tool is in a workpiece processing state, monitoring whether the lighting lamp of the machine tool is in an on state;

[0044] In the present embodiment, it should be noted that the machine tool is an CNC machine tool. After the machine tool is started, it includes a variety of operating states, for example, a standby state, a workpiece processing state, a maintenance state, a debugging state, etc. After the machine tool is started, it enters a standby state. The operator can inspect and debug the machine tool in the standby state. When workpiece processing is required, the workpiece processing formula is called for processing. When the machine tool processes the workpiece based on any workpiece processing formula, the machine tool enters a workpiece processing state. The machine tool may perform one or more workpiece processing in the workpiece processing state, so the workpiece processing state may continue to experience one or more workpiece processing processes. When the machine tool is in the workpiece processing state, it can exit the workpiece processing state by detecting maintenance instructions, debugging instructions, etc., and switch to other operating states.

[0045] Specifically, when it is detected that the machine tool calls or executes a workpiece processing formula, it is determined that the machine tool is in a workpiece processing state. At this time, the switch state of the machine tool's lighting lamp is monitored, and when the machine tool is in the workpiece processing state, the switch state of the machine tool's lighting lamp is continuously monitored, and the switch state of the lighting lamp includes an on state and an off state. When the machine tool is in the workpiece processing state, it is usually no longer necessary to observe the internal conditions of the machine tool, that is, it is no longer necessary to illuminate, so the switch state of the machine tool's lighting lamp can be monitored after it is determined that the machine tool is in the workpiece processing state.

[0046] Optionally, before the step of monitoring whether the lighting lamp of the machine tool is in the on state when it is detected that the machine tool is in the workpiece processing state, the step further includes:

[0047] Step A10, when a warm-up operation instruction is detected, the first warm-up operation is performed;

[0048] In this embodiment, it should be noted that in order to ensure the processing accuracy of the workpiece, when the machine tool is started again after being stopped for a period of time, it is usually necessary to warm up the machine before processing the workpiece. The warm-up refers to the process of repeatedly moving each processing axis multiple times without clamping the workpiece to achieve the preheating of the machine tool. The warm-up process of the machine tool includes multiple warm-up operations, wherein the warm-up operation refers to the process in which each processing axis completes a movement in turn, that is, during the warm-up process of the machine tool, each processing axis will be moved cyclically multiple times.

[0049] Specifically, the warm-up operation instruction can be automatically triggered after the machine tool is turned on, or it can be triggered by a detected user operation. When the warm-up operation instruction is detected, the first warm-up operation is performed according to a preset warm-up operation program.

[0050] Step A20, after the first warm-up operation is completed, turning off the lighting lamp;

[0051] Step A30, performing warm-up operation for a preset number of cycles.

[0052] In this embodiment, after detecting that the first warm-up operation is completed, the lighting is controlled to be turned off, and according to the preset warm-up operation program, the machine tool is controlled to perform a preset number of warm-up cycles with the lighting turned off. Since the accuracy of a machine tool is usually unstable when it is started and used again after being stopped for a period of time, if the accuracy has a large deviation, there may be unexpected situations such as a collision. Therefore, during the first warm-up operation, the operator is usually required to observe the internal operation of the machine tool to ensure that no unexpected situation occurs. As the machine tool warms up, the accuracy will become more and more stable. Therefore, after the first warm-up operation is completed, if no unexpected situation occurs, there is no need for manual observation, so the lighting can be turned off.

[0053] Optionally, after the step of performing warm-up operation for a preset number of cycles, the method further includes:

[0054] The lighting lamp is turned on.

[0055] In this embodiment, after performing warm-up operation for a preset number of cycles, the warm-up process of the machine tool ends. In order to facilitate the operator to perform workpiece clamping or other debugging operations, the lighting lamp can be turned on.

[0056] Step S20: If it is detected that the lighting lamp is in the on state, the lighting lamp is turned off when the duration of the lighting lamp being in the on state reaches a preset first lighting time.

[0057] In this embodiment, specifically, at any time when the machine tool is in the workpiece processing state, if it is detected that the lighting lamp is in the on state, the timing is started, and the on-off state of the lighting lamp is monitored in real time. If the lighting lamp is still in the on state when the timing reaches the preset first lighting time, the lighting lamp is turned off. If the lighting lamp is switched to the off state before the timing reaches the preset first lighting time, it may be that the operator manually turns off the lighting lamp. In this case, the timing can be stopped and the statistical duration of the lighting lamp being in the on state can be reset to zero, so that the next time the lighting lamp is detected to be in the on state, the timing can be restarted. At this time, if the machine tool is still in the workpiece processing state, the lighting lamp of the machine tool will continue to be monitored whether it is in the on state, thereby realizing comprehensive energy-saving control of the lighting lamp of the machine tool in the workpiece processing state, wherein the preset first lighting time can be set according to actual needs, for example, 60s, 90s, 120s, etc.

[0058] It should be noted that the turning on or off of the lighting of the machine tool can also be manually controlled by detecting the pressing or clicking operation of the lighting switch button set on the machine tool, that is, the user can control the switching of the lighting by pressing or clicking the lighting switch button when necessary, and if the user manually turns on the lighting when the machine tool is in the workpiece processing state, the machine tool detects that the lighting is in the on state, then when the duration of the lighting in the on state reaches a preset first lighting time, the lighting will be turned off, that is, after the user manually turns on the lighting when the machine tool is in the workpiece processing state, the lighting will only continue to be on for the preset first lighting time and then automatically turn off.

[0059] Optionally, before the step of turning off the illuminating lamp when the duration of the illuminating lamp being in the on state reaches a preset first illuminating time, the step further includes:

[0060] Step B10, determining the number of working stations in use in the machine tool;

[0061] Step B20, calculating the product of the number of workstations in use and the preset unit lighting time, and determining the product as the preset first lighting time.

[0062] In this embodiment, specifically, it is detected whether each workstation in the machine tool currently has a workpiece clamped thereon, and the workstation with the workpiece clamped thereon is determined as an in-use workstation in use, and the workstation without the workpiece clamped thereon is determined as an idle workstation in an idle state. The number of workstations in use is determined by statistics, and the product of the number of workstations in use and a preset unit lighting time is calculated, and the product is determined as a preset first lighting time, wherein the preset unit lighting time is the time required to replace the workpiece at each workstation in advance, which can be specifically determined based on big data, actual test results, etc., such as 15s, 20s, 30s, etc. The product of the number of workstations in use and the unit lighting time is the estimated total time required to replace the workpieces at all workstations in use.

[0063] Optionally, the control method of the machine tool lighting lamp further includes:

[0064] Step C10, when it is detected that the machine tool starts to process the workpiece, determining whether the process of processing the workpiece belongs to the processing process to be tested;

[0065] Step C20, if it is determined that the workpiece processing process belongs to the processing process to be tested, turning on the lighting lamp;

[0066] Step C30, when the duration of the lighting lamp being in the on state reaches a preset second lighting time, turning off the lighting lamp.

[0067] In the present embodiment, it should be noted that the machine tool may perform one or more workpiece processing in the workpiece processing state, so the machine tool is in the workpiece processing state each time it performs workpiece processing. The workpiece processing process may include a processing test process and a formal processing process. When performing workpiece processing, a processing test may be performed first, and then formal processing may be performed. During the processing test, it is necessary to manually observe the situation inside the machine tool and confirm the test results. For example, when the machine tool is running, the safety height between the machine tool tool and the workpiece may be measured first. If the lighting is turned off, the operator cannot accurately measure the safety height. Therefore, the preset second lighting time refers to the time required for the processing test during the workpiece processing process, which can be specifically confirmed based on big data or actual test results, such as 30s, 60s, 120s, etc.

[0068] Specifically, when the machine tool is in a workpiece processing state, it is continuously detected whether the machine tool has started to process the workpiece. When it is detected that the machine tool has started to process the workpiece, it is possible to detect whether there is a test process in the program corresponding to the workpiece processing, and determine whether the workpiece processing process belongs to the processing process to be tested. If it is determined that the workpiece processing process belongs to the processing process to be tested, the lighting lamp is turned on, and the timing is started to monitor the switching state of the lighting lamp in real time. If the lighting lamp is still in the on state when the timing reaches the preset second lighting time, the lighting lamp is turned off. If the lighting lamp is switched to the off state before the timing reaches the preset second lighting time, it may be that the operator manually turned off the lighting lamp. In this case, the timing can be stopped and the statistical duration of the lighting lamp being in the on state can be reset to zero.

[0069] If it is determined that the workpiece processing process does not belong to the processing process to be tested, it means that manual confirmation is not required at this time, and there is no need to turn on the lighting lamp.

[0070] Optionally, before the step of turning off the illuminating lamp when the duration of the illuminating lamp being in the on state reaches a preset second illuminating time, the step further includes:

[0071] Step D10, determining a corresponding target test time according to the test process of the workpiece processing;

[0072] Step D20, determining the target test time as a preset second lighting time.

[0073] In this embodiment, specifically, the test time corresponding to various test processes is determined in advance based on big data or actual test results, the mapping relationship between the preset test process and the test time is queried, the target test time corresponding to the test process of the workpiece processing is determined, and the target test time is determined as the preset second lighting time.

[0074] In this embodiment, when the machine tool is detected to be in the workpiece processing state, the illuminating light of the machine tool is monitored to monitor whether it is in the on state, so as to realize the monitoring of the on state of the illuminating light of the machine tool in the workpiece processing state, and then, if the illuminating light is detected to be in the on state, when the duration of the illuminating light in the on state reaches the preset first illuminating time, the illuminating light is turned off, so as to realize the automatic turning off of the illuminating light turned on in the workpiece processing state of the machine tool. On the one hand, when the machine tool is in the workpiece processing state, it is usually no longer necessary to observe the internal situation of the machine tool, that is, it is no longer necessary to illuminate. Compared with the manual turning off method, the automatic turning off of the illuminating light can effectively reduce the uncertainty of manual operation and avoid the illuminating light being in the long-on state during operation due to the operator forgetting. On the other hand, if it is detected that the illuminating light of the machine tool is in the on state, it may be that the operator needs to observe the situation inside the machine tool and actively turns it on. Therefore, by setting the preset first illuminating time, it can not only give the operator time to observe, but also can automatically control the illuminating light to be turned off after the preset first illuminating time, so as to avoid the illuminating light being in the long-on state during the operation of the machine tool. According to the actual situation of the current workshop, from 2017 to now, the lighting of the machine tool has been almost always on when the workpiece is being processed. After adopting the control method of the machine tool lighting of this application, each machine tool can save 1 kWh of electricity per day. The current workshop has a total of 31 finishing machine tools, which can save 31 kWh of electricity per day. The industrial electricity is calculated at 1 yuan per kWh, which can save 365*31*1=11315 yuan in electricity bills per year, and has certain energy-saving and environmental protection value and economic value. It can be seen from this that the present application can not only improve the convenience of operation and observation of operators, but also effectively save energy and electricity bills, and overcome the technical problem that the lighting of the machine tool in the prior art is always on during operation, resulting in unnecessary energy waste and economic losses.

[0075] Further, in another embodiment of the control method of the machine tool lighting of the present application, referring to Figure 2 , the control method of the machine tool lighting lamp further includes:

[0076] Step E10, when it is detected that the machine tool is in a workpiece processing state, detecting whether a machine tool door of the machine tool is opened;

[0077] In this embodiment, it should be noted that since the machine tool may perform one or more workpiece processing in the workpiece processing state, after each workpiece processing is completed, the operator needs to open the machine tool door, manually replace the workpiece, and turn on the lighting. Therefore, it is possible to determine whether the operator needs to replace the workpiece by detecting the opening operation of the machine tool door. When it is detected that the machine tool door is opened, it is determined that the operator needs to replace the workpiece, and therefore the lighting is turned on.

[0078] Specifically, after detecting that the machine tool is in the workpiece processing state, the machine tool continuously detects whether the machine tool door of the machine tool is open, wherein the method of detecting whether the machine tool door of the machine tool is open may include performing signal detection through a sensor arranged on the machine tool door, if an opening door signal is detected, it is determined that the machine tool door is in the open state, and if a closing door signal is detected, it is determined that the machine tool is in the closed state. For example, the sensor may be a pressure sensor, and when the sensor detects that the pressure value is less than a preset pressure value, an opening door signal is generated, and when the sensor detects that the pressure value is greater than or equal to the preset pressure value, a closing door signal is generated; the method of detecting whether the machine tool door of the machine tool is open may include judging whether the machine tool door is in the open state according to the detected triggering operation of the switch button of the machine tool door.

[0079] Step E20: If it is detected that the machine tool door is opened, turn on the lighting lamp.

[0080] In this embodiment, specifically, if it is detected that the machine tool door is opened, the lighting lamp is turned on.

[0081] It should be noted that turning on the lighting does not cause the machine tool to exit the workpiece processing state, so the machine tool is still in the workpiece processing state at this time. Therefore, the machine tool can still detect that the lighting is in the on state through steps S10 and S20, and then turn off the lighting when the duration of the lighting in the on state reaches the preset first lighting time. That is, after the operator opens the machine tool door, the lighting turns on automatically, and the operator can start to replace the workpiece and complete the replacement of the workpiece within the preset first lighting time. When the lighting is turned on for the preset first lighting time, the lighting will automatically turn off. Therefore, the preset first lighting time can be pre-set according to the time required for the operator to replace the workpiece in actual testing, such as 60s, 90s, 120s, etc. In an unexpected situation, if the operator fails to complete the replacement of the workpiece within the preset first lighting time, the lighting switch can be manually pressed to turn on the lighting again.

[0082] In this embodiment, compared to the method in which the operator manually presses the light switch to turn on the light every time the door is opened to replace the workpiece, this embodiment determines whether the operator needs to replace the workpiece by detecting the opening operation of the machine tool door, and turns on the light based on this, which can effectively simplify the user operation and avoid accidents caused by the user accidentally touching other buttons when pressing the light switch.

[0083] Furthermore, the present application also provides a control device for a machine tool lighting lamp, referring to Figure 3 The control device of the machine tool lighting lamp is applied to the control equipment of the machine tool lighting lamp, and the control device of the machine tool lighting lamp comprises:

[0084] The lighting lamp monitoring module 10 is used to monitor whether the lighting lamp of the machine tool is in the on state when it is detected that the machine tool is in the workpiece processing state;

[0085] The lighting lamp turning off module 20 is used to turn off the lighting lamp when it is detected that the lighting lamp is in the turned-on state and the duration of the lighting lamp in the turned-on state reaches a preset first lighting time.

[0086] Optionally, the control device for the machine tool lighting lamp further includes a warm-up module, and the warm-up module is used to:

[0087] When the warm-up operation command is detected, the first warm-up operation is performed;

[0088] After the first warm-up operation is completed, turning off the lighting lamp;

[0089] Perform warm-up operation for a preset number of cycles.

[0090] Optionally, the warm-up module is further used for:

[0091] The lighting lamp is turned on.

[0092] Optionally, the control device for the machine tool lighting lamp further includes a machine tool door detection module, and the machine tool door detection module is used to:

[0093] When it is detected that the machine tool is in a workpiece processing state, detecting whether a machine tool door of the machine tool is opened;

[0094] If it is detected that the machine tool door is opened, the lighting lamp is turned on.

[0095] Optionally, the control device for the machine tool lighting lamp further includes a first lighting time determination module, and the first lighting time determination module is used to:

[0096] Determining the number of working stations in use in the machine tool;

[0097] The product of the number of workstations in use and the preset unit lighting time is calculated, and the product is determined as the preset first lighting time.

[0098] Optionally, the control device for the machine tool lighting lamp further comprises a workpiece processing detection module, and the workpiece processing detection module is used to:

[0099] When it is detected that the machine tool starts to process a workpiece, determining whether the process of processing the workpiece belongs to the processing process to be tested;

[0100] If it is determined that the workpiece processing process belongs to the processing process to be tested, turning on the lighting lamp;

[0101] When the duration of the lighting lamp being in the on state reaches a preset second lighting time, the lighting lamp is turned off.

[0102] Optionally, the control device for the machine tool lighting lamp further includes a second lighting time determination module, and the second lighting time determination module is used to:

[0103] Determine a corresponding target test time according to the test process of the workpiece processing;

[0104] The target test time is determined as the preset second lighting time.

[0105] The control device for the machine tool lighting provided by the present invention adopts the control method for the machine tool lighting in the above embodiment, and solves the technical problem that the lighting of the machine tool in the prior art is always on during operation, resulting in unnecessary energy waste and economic losses. Compared with the prior art, the beneficial effects of the control device for the machine tool lighting provided by the embodiment of the present invention are the same as the beneficial effects of the control method for the machine tool lighting provided by the above embodiment, and other technical features of the control device for the machine tool lighting are the same as the features disclosed in the above embodiment method, which will not be described in detail here.

[0106] Furthermore, an embodiment of the present invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the machine tool lighting in the above embodiment.

[0107] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0108] like Figure 4As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0109] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0110] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0111] The electronic device provided by the present invention adopts the control method of the machine tool lighting lamp in the above embodiment, which solves the technical problem that the lighting lamp of the prior art machine tool is always on during operation, resulting in unnecessary energy waste and economic losses. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the control method of the machine tool lighting lamp provided by the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0112] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0113] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0114] Furthermore, this embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the control method of the machine tool lighting lamp in the above embodiment.

[0115] The computer-readable storage medium provided in the embodiment of the present invention may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0116] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0117] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device: when it is detected that the machine tool is in a workpiece processing state, monitors whether the lighting of the machine tool is in an on state; if it is detected that the lighting is in an on state, then when the duration of the lighting in the on state reaches a preset first lighting time, turns off the lighting.

[0118] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the machine operator computer, partially on the machine operator computer, as a stand-alone software package, partially on the machine operator computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the machine operator computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0119] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0120] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0121] The computer-readable storage medium provided by the present invention stores computer-readable program instructions for executing the above-mentioned control method for the machine tool lighting lamp, which solves the technical problem that the lighting lamp of the prior art machine tool is always on during operation, resulting in unnecessary energy waste and economic losses. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the control method for the machine tool lighting lamp provided by the above-mentioned embodiment, and will not be elaborated here.

[0122] Furthermore, the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for controlling a machine tool lighting lamp when executed by a processor.

[0123] The computer program product provided by the present application solves the technical problem that the lighting lamp of the prior art machine tool is always on during operation, resulting in unnecessary energy waste and economic losses. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the control method of the machine tool lighting lamp provided by the above embodiment, which will not be repeated here.

[0124] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A method for controlling a machine tool lighting lamp, characterized in that: The control method of the machine tool lighting lamp comprises: When the warm-up operation command is detected, the first warm-up operation is performed; After the first warm-up run is complete, turn off the lights; Perform warm-up operation for a preset number of cycles; Turning on the lighting lamp; When it is detected that the machine tool is in a workpiece processing state, detecting a pressing or clicking operation of a light switch button of the machine tool to monitor whether the light is in an on state; If it is detected that the lighting lamp is in the on state, when the duration of the lighting lamp in the on state reaches a preset first lighting time, turning off the lighting lamp; Wherein, before the step of turning off the illuminating lamp when the duration of the illuminating lamp being in the on state reaches the preset first illuminating time, the method further comprises: Detecting whether a workpiece is currently clamped at each workstation in the machine tool, and determining the workstation with the workpiece clamped as an in-use workstation in use; Determining the number of working stations in use in the machine tool; The product of the number of workstations in use and the preset unit lighting time is calculated, and the product is determined as the preset first lighting time.

2. The control method of a machine tool lighting lamp according to claim 1, characterized in that: The control method of the machine tool lighting lamp also includes: When it is detected that the machine tool is in a workpiece processing state, detecting whether a machine tool door of the machine tool is opened; If it is detected that the machine tool door is opened, the lighting lamp is turned on.

3. The control method of a machine tool lighting lamp according to claim 1, characterized in that: The control method of the machine tool lighting lamp also includes: When it is detected that the machine tool starts to process a workpiece, determining whether the process of processing the workpiece belongs to the processing process to be tested; If it is determined that the workpiece processing process belongs to the processing process to be tested, turning on the lighting lamp; When the duration of the lighting lamp being in the on state reaches a preset second lighting time, the lighting lamp is turned off.

4. The control method of a machine tool lighting lamp according to claim 3, characterized in that: Before the step of turning off the illuminating lamp when the duration of the illuminating lamp being in the on state reaches a preset second illuminating time, the method further comprises: Determine a corresponding target test time according to the test process of the workpiece processing; The target test time is determined as the preset second lighting time.

5. A control device for a machine tool lighting lamp, characterized in that: The control device of the machine tool lighting lamp comprises: A lighting monitoring module, for detecting the pressing or clicking operation of a lighting switch button of the machine tool to monitor whether the lighting of the machine tool is in an on state when it is detected that the machine tool is in a workpiece processing state; A lighting lamp shut-off module, configured to shut off the lighting lamp when it is detected that the lighting lamp is in the on state and when the duration of the lighting lamp in the on state reaches a preset first lighting time; The first lighting time determination module is further used for: Detecting whether a workpiece is currently clamped at each workstation in the machine tool, and determining the workstation with the workpiece clamped as an in-use workstation in use; Determining the number of working stations in use in the machine tool; Calculating the product of the number of workstations in use and the preset unit lighting time, and determining the product as the preset first lighting time; Wherein, the lighting lamp monitoring module is also used for: When the warm-up operation command is detected, the first warm-up operation is performed; After the first warm-up run is complete, turn off the lights; Perform warm-up operation for a preset number of cycles; The lighting lamp is turned on.

6. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the method for controlling a machine tool lighting lamp according to any one of claims 1 to 4.

7. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which is stored a program for implementing a method for controlling a machine tool lamp. The program for implementing a method for controlling a machine tool lamp is executed by a processor to implement the steps of the method for controlling a machine tool lamp as described in any one of claims 1 to 4.