Numerical control machine tool illumination method, computer device and computer-readable storage medium

文档序号:1548466 发布日期:2020-01-17 浏览:28次 中文

阅读说明:本技术 数控机床照明方法、计算机装置以及计算机可读存储介质 (Numerical control machine tool illumination method, computer device and computer-readable storage medium ) 是由 薛乃凤 崔中 刘松 张红梅 怀宝宇 于 2019-10-17 设计创作,主要内容包括:本发明提供一种数控机床照明方法、计算机装置以及计算机可读存储介质,该数控机床照明方法包括:获取机床的当前工作状态;根据当前工作状态控制机床照明状态;当机床照明开启时,计算照明灯的使用寿命,根据使用寿命发送预警信号。该计算机装置包括控制器,控制器用于执行存储器中存储的计算机程序时实现上述的数控机床照明方法。该计算机可读存储介质,其上存储有计算机程序,计算机程序被控制器执行时实现上述的数控机床照明方法。应用本发明的数控机床照明方法可智能控制照明开启、监测照明灯寿命。(The invention provides a numerical control machine tool illumination method, a computer device and a computer readable storage medium, wherein the numerical control machine tool illumination method comprises the following steps: acquiring the current working state of the machine tool; controlling the lighting state of the machine tool according to the current working state; when the machine tool is lighted, the service life of the lighting lamp is calculated, and an early warning signal is sent according to the service life. The computer device comprises a controller, and the controller is used for realizing the numerical control machine tool illumination method when executing the computer program stored in the memory. The computer readable storage medium has stored thereon a computer program which, when executed by a controller, implements the numerical control machine tool illumination method described above. The numerical control machine tool illumination method can intelligently control illumination to be started and monitor the service life of the illumination lamp.)

1. A numerical control machine tool illumination method is characterized in that: the method comprises the following steps:

acquiring the current working state of the machine tool;

controlling the lighting state of the machine tool according to the current working state;

when the machine tool is lighted, the service life of the lighting lamp is calculated, and an early warning signal is sent according to the service life.

2. The numerical control machine tool illumination method according to claim 1, characterized in that:

the step of controlling the illumination state of the machine tool according to the current working state comprises the following steps:

and if the current working state is a machining running state, acquiring a machining demand instruction, and controlling the lighting state of the machine tool according to the machining demand instruction.

3. The numerical control machine tool illumination method according to claim 2, characterized in that:

the step of controlling the illumination state of the machine tool according to the machining demand instruction comprises the following steps:

and if the machining demand instruction is a single-piece machining instruction, controlling the illumination of the machine tool to be switched off during machining, and controlling the illumination of the machine tool to be switched on when the machining is finished.

4. The numerical control machine tool illumination method according to claim 2, characterized in that:

the step of controlling the illumination state of the machine tool according to the machining demand instruction comprises the following steps:

and if the processing demand instruction is a batch processing instruction, controlling the illumination of the machine tool to be switched off during the batch processing, and controlling the illumination of the machine tool to be switched on when the batch processing is finished.

5. The numerical control machine tool illumination method according to claim 1, characterized in that:

the step of controlling the illumination state of the machine tool according to the current working state comprises the following steps:

and if the current working state is the machining running state, judging whether the machine tool has a fault, if so, controlling the machine tool to stop working and controlling the machine tool to start lighting.

6. The numerical control machine tool illumination method according to any one of claims 1 to 5, characterized in that:

the step of controlling the illumination state of the machine tool according to the current working state comprises the following steps:

and if the current working state is the machining preparation state, controlling the lighting of the machine tool to be turned on.

7. The numerical control machine tool illumination method according to any one of claims 1 to 5, characterized in that:

the step of controlling the illumination state of the machine tool according to the current working state comprises the following steps:

and if the current working state is the machine tool standby state, controlling the lighting of the machine tool to be turned off.

8. The numerical control machine tool illumination method according to any one of claims 1 to 5, characterized in that:

the step of sending an early warning signal according to the service life comprises the following steps:

and judging whether the service life reaches the service life limit value of the illuminating lamp, and if so, sending a replacement early warning signal.

9. A computer device comprising a processor and a memory, wherein: the memory stores a computer program which, when executed by the processor, implements the steps of the numerical control machine illumination method according to any one of claims 1 to 8.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when executed by a controller, implements the steps of the numerical control machine illumination method according to any one of claims 1 to 8.

Technical Field

The invention relates to the technical field of numerical control machine tool illumination, in particular to a numerical control machine tool illumination method, a computer device applying the numerical control machine tool illumination method and a computer readable storage medium applying the numerical control machine tool illumination method.

Background

The illumination of the numerical control machine tool has the function of increasing the brightness of a machine tool working area, and is convenient for operations such as inspection, monitoring and the like. However, in recent years, with the development of manufacturing industry, the requirements for "automation" and "intellectualization" of equipment are higher and higher, and the lighting requirements of production modes such as "one person with multiple machines", "unmanned" and the like cannot be met by the mode of depending on manual operation of a lighting lamp switch at present.

The existing numerical control machine tool illumination has the following defects: the turning on and off of the illumination needs manual operation; the illuminating lamp can generate certain heat after being used for a long time, and the machining precision of a machine tool is influenced; the lighting lamp does not need to be started, and the normal service life is lost; waste of electric energy and unnecessary cost; the service life of digit control machine tool light is had the limitation, and when light life was about to arrive, production management system did not have the early warning. Therefore, the method has important significance on controlling the illumination of the numerical control machine tool and avoiding influencing production.

Disclosure of Invention

The invention aims to provide a numerical control machine tool illumination method capable of intelligently controlling illumination starting and monitoring the service life of an illumination lamp.

The second objective of the present invention is to provide a computer device capable of intelligently controlling the lighting on and monitoring the lifetime of the lighting lamp.

It is a third object of the present invention to provide a computer readable storage medium that can intelligently control lighting on and monitor the life of a lighting lamp.

In order to achieve the first object, the invention provides a numerical control machine tool illumination method, which comprises the following steps: acquiring the current working state of the machine tool; controlling the lighting state of the machine tool according to the current working state; when the machine tool is lighted, the service life of the lighting lamp is calculated, and an early warning signal is sent according to the service life.

According to the technical scheme, the numerical control machine tool illumination method controls the illumination state of the machine tool according to the working state of the machine tool, can intelligently turn on and off the illumination system of the machine tool, and reduces unnecessary illumination time, thereby reducing heat generated by illumination of the machine tool, avoiding influencing the machining precision of the machine tool, prolonging the normal service life of a lamp and reducing the maintenance cost through reasonable control. Meanwhile, when the machine tool is turned on for illumination, the service life of the illuminating lamp of the machine tool is monitored, and an early warning signal can be sent to a production system according to the service life, so that a user is prompted to carry out pre-arranged case processing.

In a further aspect, the step of controlling the illumination state of the machine tool according to the current working state comprises: and if the current working state is the machining running state, acquiring a machining demand instruction, and controlling the lighting state of the machine tool according to the machining demand instruction.

Therefore, when the current working state is the machining running state, the lighting state of the machine tool is further controlled according to the machining demand instruction, the control accuracy can be further improved, and the energy consumption is reduced.

In a further scheme, the step of controlling the illumination state of the machine tool according to the machining demand instruction comprises the following steps: and if the machining demand instruction is a single-piece machining instruction, controlling the illumination of the machine tool to be switched off during machining, and controlling the illumination of the machine tool to be switched on when the machining is finished.

Therefore, when the single piece is machined, the illumination of the machine tool is controlled to be turned off during machining, the illumination of the machine tool is controlled to be turned on when machining is finished, and the illumination can be used only when needed, so that energy consumption is saved.

In a further scheme, the step of controlling the illumination state of the machine tool according to the machining demand instruction comprises the following steps: and if the processing demand instruction is a batch processing instruction, controlling the illumination of the machine tool to be switched off during the batch processing, and controlling the illumination of the machine tool to be switched on when the batch processing is finished.

Therefore, the illumination of the machine tool is controlled to be turned off during batch processing, the illumination of the machine tool is controlled to be turned on when the batch processing is finished, the illumination can be used when the illumination is needed, and the energy consumption is saved.

In a further aspect, the step of controlling the illumination state of the machine tool according to the current working state comprises: and if the current working state is the machining running state, judging whether the machine tool has a fault, if so, controlling the machine tool to stop working and controlling the machine tool to start lighting.

Therefore, the machine tool is judged to have faults when in a processing running state, the machine tool needs to be stopped for maintenance, illumination needs to be provided at the moment, and maintenance personnel can conveniently maintain the machine tool.

In a further aspect, the step of controlling the illumination state of the machine tool according to the current working state comprises: and if the current working state is the processing preparation state, controlling the lighting of the machine tool to be turned on.

Therefore, in the machining preparation state, an operator can clamp, align, set and the like workpieces to be machined at the stage, a bright environment is needed to ensure that the work is completed smoothly, and therefore the illumination of the machine tool is turned on.

In a further aspect, the step of controlling the illumination state of the machine tool according to the current working state comprises: and if the current working state is the machine tool standby state, controlling the lighting of the machine tool to be turned off.

Therefore, when the machine tool is in a standby state, the machine tool is in an idle stage, the lighting of the machine tool is turned off, and the waste of a power supply is avoided.

In a further scheme, the step of sending the early warning signal according to the service life comprises the following steps: and judging whether the service life reaches the service life limit value of the illuminating lamp, and if so, sending a replacement early warning signal.

Therefore, when the service life of the illuminating lamp reaches the service life limit value, the replacement early warning signal is sent, so that the worker can be conveniently reminded to replace, and the production delay is avoided.

In order to achieve the second object of the present invention, the present invention provides a computer device comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is executed by the processor to realize the steps of the numerical control machine tool illumination method.

In order to achieve the third object of the present invention, the present invention provides a computer-readable storage medium having stored thereon a computer program, which when executed by a controller, implements the steps of the above-described numerical control machine tool illumination method.

Drawings

Fig. 1 is a flow chart of an embodiment of the numerical control machine tool illumination method of the present invention.

The invention is further explained with reference to the drawings and the embodiments.

Detailed Description

The numerical control machine tool illumination method is an application program applied to the numerical control machine tool and is used for realizing illumination control of the numerical control machine tool. The present invention also provides a computer apparatus including a controller for implementing the steps of the numerical control machine tool illumination method described above when executing a computer program stored in a memory. The present invention also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a controller, implements the steps of the numerical control machine illumination method described above.

The embodiment of the numerical control machine tool illumination method comprises the following steps:

the numerical control machine tool illumination method is an application program applied to the numerical control machine tool and is used for realizing illumination control of the numerical control machine tool.

As shown in fig. 1, in the method for lighting a cnc machine according to the present invention, when lighting control is performed, step S1 is first executed to obtain the current working state of the machine tool. The current operating state of the machine tool can be obtained by reading the operating state in the machine tool control system. In this embodiment, the operating state of the machine tool is divided into a standby state, a machining preparation state, and a machining operation state. Wherein, the standby state is as follows: after the machine tool is electrified, if no operation is performed within a preset time (the time can be set according to the machining requirement, such as 5 minutes), the machine tool is considered to be in a standby state; the processing preparation state is as follows: when the operation mode of the machine tool is converted into a manual mode or a hand wheel mode, the machine tool control system considers that the machine tool is in a processing preparation state at the moment as an operator can move the feed shaft or the main shaft; the processing running state is as follows: when the part processing program is executed, the machine tool control system can send out an automatic running signal, and when the PLC control circuit continuously receives the signal for preset time (the time can be set according to the processing requirement, such as 1 minute), the machine tool is considered to be in a processing running transition state.

After the current working state of the machine tool is obtained, step S2 is executed to control the lighting state of the machine tool according to the current working state. The machine tool needs different illumination states under different working states, and in order to reasonably control the machine tool illumination, the machine tool needs to be correspondingly controlled according to the current working state of the machine tool.

In this embodiment, the step of controlling the illumination state of the machine tool according to the current working state includes: and if the current working state is the machine tool standby state, controlling the lighting of the machine tool to be turned off. When the current working state of the machine tool is in a standby state, the machine tool is in an idle stage, illumination is not needed, at the moment, the illumination of the machine tool is turned off, and the waste of a power supply is avoided.

The step of controlling the illumination state of the machine tool according to the current working state further comprises: and if the current working state is the processing preparation state, controlling the lighting of the machine tool to be turned on. When the current working state of the machine tool is a processing preparation state, a worker can clamp, align, set and the like a workpiece to be processed, and at the moment, a bright environment is needed to ensure that the work is completed smoothly, so that the lighting of the machine tool is turned on. After the preparation for machining is completed, the illumination of the machine tool can be turned off.

The step of controlling the illumination state of the machine tool according to the current working state further comprises: and if the current working state is the machining running state, acquiring a machining demand instruction, and controlling the lighting state of the machine tool according to the machining demand instruction. When the current working state is a machining running state, the required illumination states under different machining requirement instructions are different, so that the illumination state of the machine tool is controlled according to the machining requirement instructions in order to further improve the accuracy of illumination control, and the energy consumption can be reduced. In this embodiment, the machining demand instruction includes a single piece machining instruction and a batch machining instruction. The machining demand instruction can be acquired by acquiring information of a control panel in a machine tool control system. The operating personnel can send the processing demand instruction through operating panel according to the processing demand.

In this embodiment, the step of controlling the illumination state of the machine tool according to the machining demand instruction includes: and if the machining demand instruction is a single-piece machining instruction, controlling the illumination of the machine tool to be switched off during machining, and controlling the illumination of the machine tool to be switched on when the machining is finished. The machine part is ready to be machined before the single-piece machining, so that no operation is required by a worker during the machining, the machine tool illumination is controlled to be turned off, and the machine tool illumination is controlled to be turned on at the end of the machining, so that the energy consumption can be further saved.

The step of controlling the illumination state of the machine tool according to the machining demand instruction further comprises: and if the processing demand instruction is a batch processing instruction, controlling the illumination of the machine tool to be switched off during the batch processing, and controlling the illumination of the machine tool to be switched on when the batch processing is finished. During the batch processing, the replacement of the processed parts is automatically completed by the machine tool, and at the moment, the illumination is not needed, so that the illumination of the machine tool is controlled to be turned off, and the illumination of the machine tool is controlled to be turned on when the batch processing is finished, so that the energy consumption can be further saved.

In addition, the step of controlling the illumination state of the machine tool according to the current working state further comprises: and if the current working state is the machining running state, judging whether the machine tool has a fault, if so, controlling the machine tool to stop working and controlling the machine tool to start lighting. In the machining operation state, machine tool faults are easy to occur in the machining process, so the machine tool faults need to be judged. When judging the lathe and breaking down, then need shut down the maintenance, need provide the illumination this moment, consequently, control lathe stop work and control lathe illumination and open, the maintainer of being convenient for overhauls.

After the illumination state of the machine tool is controlled according to the current working state of the machine tool, step S3 is executed, when the illumination of the machine tool is turned on, the service life of the illumination lamp is calculated, and an early warning signal is sent according to the service life. In order to better maintain the machine tool illumination system, when the machine tool illumination is started, the service life of the machine tool illumination lamp is monitored, the service life of the illumination lamp is timed, and an early warning signal is sent to the production system according to the service life, so that a user is prompted to make a plan treatment. In this embodiment, the step of sending the warning signal according to the service life includes: and judging whether the service life reaches the service life limit value of the illuminating lamp, and if so, sending a replacement early warning signal. When the service life of the illuminating lamp reaches the service life limit value, a replacement early warning signal is sent, so that a worker can be reminded of replacing the illuminating lamp conveniently, and production delay is avoided.

Preferably, in order to reduce the heat generated by the machine tool illumination, the illumination lamp used in the embodiment is a cold light lamp, so that the energy consumption is reduced.

The embodiment of the computer device comprises:

the computer device of the embodiment comprises a controller, and the controller realizes the steps of the numerical control machine tool illumination method embodiment when executing the computer program.

For example, a computer program may be partitioned into one or more modules, which are stored in a memory and executed by a controller to implement the present invention. One or more of the modules may be a sequence of computer program instruction segments for describing the execution of a computer program in a computer device that is capable of performing certain functions.

The computer device may include, but is not limited to, a controller, a memory. Those skilled in the art will appreciate that the computer apparatus may include more or fewer components, or combine certain components, or different components, e.g., the computer apparatus may also include input-output devices, network access devices, buses, etc.

For example, the controller may be a Central Processing Unit (CPU), other general purpose controller, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic, discrete hardware components, and so on. The general controller may be a microcontroller or the controller may be any conventional controller or the like. The controller is the control center of the computer device and connects the various parts of the entire computer device using various interfaces and lines.

The memory may be used to store computer programs and/or modules, and the controller may implement various functions of the computer apparatus by executing or otherwise executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. For example, the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (e.g., a sound receiving function, a sound-to-text function, etc.), and the like; the storage data area may store data (e.g., audio data, text data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash memory Card (FlashCard), at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device.

Computer-readable storage medium embodiments:

the modules integrated by the computer apparatus of the above embodiments, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on such understanding, all or part of the processes in the embodiments of the illumination method for a cnc machine can be implemented by using a computer program to instruct related hardware, where the computer program can be stored in a computer readable storage medium, and when the computer program is executed by a controller, the steps in the embodiments of the illumination method for a cnc machine can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The storage medium may include: any entity or device capable of carrying computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.

Therefore, the numerical control machine tool illumination method controls the illumination state of the machine tool according to the working state of the machine tool, can intelligently turn on and off the illumination system of the machine tool, reduces unnecessary illumination time, thereby reducing heat generated by illumination of the machine tool, avoiding influencing the machining precision of the machine tool, prolonging the normal service life of a lamp and reducing the maintenance cost through reasonable control. Meanwhile, when the machine tool is turned on for illumination, the service life of the illuminating lamp of the machine tool is monitored, and an early warning signal can be sent to a production system according to the service life, so that a user is prompted to carry out pre-arranged case processing.

It should be noted that the above is only a preferred embodiment of the present invention, but the design concept of the present invention is not limited thereto, and any insubstantial modifications made by using the design concept also fall within the protection scope of the present invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种事件触发方法、装置、设备、系统及可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!