A control screen system and method based on FANUC 0i CNC system
By integrating the NC machining program layer, CNC PLC layer, and CNC HMI human-machine interface layer, and combining the FANUC PICTURE script macro module, the control screen of the FANUC 0i CNC system has been optimized, solving the problems of cumbersome operation, significant safety hazards, and unintuitive status, and achieving efficient and reliable equipment management of the CNC cleaning machine.
Patent Information
- Application Number
- CN202610656058.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-05-13
- Publication Date
- 2026-06-26
AI Technical Summary
The native control screen of the FANUC 0i CNC system suffers from poor ease of operation, insufficient safety management capabilities, unintuitive status display, and weak customization capabilities. This results in cumbersome operation, significant safety hazards, difficulty in troubleshooting, and an inability to meet the customized needs of CNC cleaning machines.
A control screen system and method based on the FANUC 0i CNC system were designed. By integrating the NC machining program layer, CNC PLC layer and CNC HMI human-machine interaction layer, hierarchical access control, real-time status feedback and full-process data visualization monitoring are realized. The screen interaction logic is optimized by combining the FANUC PICTURE script macro module, and tool magazine function control and password login are integrated. A global title bar is provided to display the system status.
It significantly reduces the difficulty of operation, improves the safety of equipment operation and the efficiency of visual monitoring, adapts to the customized needs of CNC cleaning machines, and achieves efficient and reliable equipment management.
Smart Images

Figure CN122284519A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial control computer screen design technology, and is a control screen system and method based on FANUC 0i CNC system. Background Technology
[0002] In the wave of intelligent transformation in the manufacturing industry, CNC cleaning machines, as key equipment to ensure the quality of precision machining, have attracted much attention for their technology and performance. They are highly compatible, efficient, reliable, and can also realize the management of the Internet of Things in the factory.
[0003] The existing CNC control technology interface makes it very difficult to operate each actuator, modify related parameters and macro variables, and is very inconvenient to use.
[0004] Existing technology requires manual searching of the corresponding screen in the CNC machine to set certain parameters. The design screen centralizes all the parameters and macro variables that need to be set in the CNC machine, and displays the set functions on the screen in conjunction with the script program, making the setting process more intuitive and convenient.
[0005] When operating actuators such as cylinders, a button with an indicator light is used for operation. However, this results in no actual feedback when the button is pressed. For example, it's impossible to see whether the cylinder actually moves, whether it moves to its designated position, or why it didn't move (whether the button is damaged or there's an interlock). Therefore, this invention addresses this issue by displaying all of this information clearly on a single screen, making it very convenient to use.
[0006] The IO monitoring screen can clearly display the status of each signal on one screen. On the original system, you had to go deep into the menu bar to find it, and the annotations were not clear at a glance, which was very inconvenient.
[0007] Password login is a feature that FANUC CNC systems have never used before. Adding password functionality can grant certain permissions to various operations, and different passwords can be designed to determine the operation of corresponding mechanisms by different roles.
[0008] In practical applications, the native control screen of the FANUC 0i CNC system has significant technical defects: Poor ease of operation: The native screen requires multiple menu jumps to operate the various execution components of the device, modify related parameters and macro variables. The operation steps are cumbersome, the professional skills required of the operators are high, the learning cost is large, and the frequent menu switching greatly reduces the efficiency of device operation and maintenance. Insufficient security control capabilities: The native screen's permission control is coarse-grained, making it impossible to accurately allocate operating permissions to operators of different job types. Non-professionals can easily access the dangerous functions of the equipment, which can easily lead to misoperation and pose serious safety hazards. At the same time, there is no automatic deregistration mechanism, which can easily lead to unauthorized personnel operating beyond their authority. The status display is not intuitive: the native screen cannot display the position status of the actuator, interlock conditions, and fault information on the same interface. Operators cannot intuitively grasp the real-time operating status of the equipment, which not only results in low operating efficiency but also makes it impossible to predict equipment operating risks in advance and makes fault diagnosis difficult. Weak customization capabilities: The native screen is based on PLC ladder diagram programming, which can only complete basic logic control and screen display. It cannot realize complex interactive logic such as screen selection flashing, status jumping, complex numerical calculation, dynamic screen switching, etc. It cannot adapt to the customized functional requirements of CNC cleaning machines and makes it difficult to achieve the goal of single screen integration and full system control.
[0009] Based on the shortcomings of the prior art, this application proposes a control screen system and control method based on the FANUC 0i CNC system to solve many problems existing in the prior art. Summary of the Invention
[0010] This invention addresses the issues of inconvenient operation and operational safety when using the external functions of a CNC system by disclosing a control screen system and method based on the FANUC 0i CNC system.
[0011] This invention provides the following technical solutions: A control screen system based on the FANUC 0i CNC system, the system being installed on a CNC cleaning machine, characterized in that: the system includes: an NC machining program layer, a CNC PLC layer, a CNC system, and a CNCHMI human-machine interaction layer; The NC machining program layer interacts with the CNC PLC layer and the numerical control system. As the core of the numerical control system, the NC machining program layer is responsible for the basic control of the equipment axis movement and the cleaning process. The CNC PLC layer interacts with the CNC system and the CNC HMI human-machine interface layer. As the system logic control center, the CNC PLC layer is responsible for the acquisition and processing of equipment I / O signals, access control, and execution of functional subroutines. The CNC HMI human-machine interface layer interacts with the CNC system. The CNC HMI human-machine interface layer is responsible for the core control screen, including visual data display, operation command input, equipment status feedback, and permission interaction. It serves as the direct interface between the operator and the equipment. The CNC system, as the kernel of the FANUC 0i system, provides underlying hardware drivers, coordinate calculations, macro variable management, and bus communication.
[0012] Preferably, the CNC PLC layer includes password login access control to achieve hierarchical management of operation permissions, password verification, manual unlocking, and automatic locking after timeout.
[0013] The CNC PLC layer includes tool magazine function control, enabling real-time acquisition of tool magazine coordinates, automatic point calibration, tool holder and tool number management, and real-time feedback of operating status.
[0014] Preferably, the CNC PLC layer includes a FANUC PICTURE script macro module, which serves as an intermediate layer for interaction between the HMI screen and the PLC and CNC system. It supplements the logic of the PLC ladder diagram, enables high-frequency multiplexing, and supports the interactive logic and data processing of each control screen.
[0015] A method for using a control screen based on a FANUC 0i CNC system, the method being implemented based on a control screen system of the FANUC 0i CNC system, the method comprising the following steps: Step 1: Control the CNC PLC, including password login access control and tool magazine function control, to ensure access control, tool magazine control, and manual page operation; Step 2: Control the FANUC PICTURE to achieve high-frequency multiplexing of the PLC ladder diagram; Step 3: Integrate the HMI control screen to achieve visualized monitoring of the entire processing data; Step 4: Perform system integration testing and optimization to ensure timely button operation response, real-time and accurate data refresh, and error-free fault alarms and status feedback.
[0016] Preferably, a dedicated layer for screen control is independently defined in the PLC, and dedicated data registers and intermediate relay addresses for access control are assigned to isolate the core processing logic of the equipment from the screen control logic; Set up operation interception logic in the locked state. When the system is in the locked state, it will automatically intercept operation commands of all controlled function buttons on the operation panel and screen, and simultaneously trigger an alarm pop-up window to output a message asking for the login password, prohibiting unauthorized parameter modification and mechanism operation. The core logic for password comparison is set up so that the system receives password data input from the HMI screen and compares it with the predefined correct password. If the comparison matches, the unlock flag is triggered, and the corresponding function operation interface is opened. If the comparison does not match, the system remains locked and the alarm prompt is continuously displayed. Set up and write timing control logic. After the system unlocks successfully, the timer will start to accumulate the count. After the set time reaches 1 hour, the unlock flag will be automatically reset and the access lock status will be restored. For tool magazine settings, parameter modifications, and manual operations, corresponding access control bits are defined. Different passwords are matched with different access levels to achieve hierarchical control of different operation roles and their corresponding operation scopes.
[0017] Preferably, according to the functional requirements of the screen, corresponding functional scripts are developed to configure the calling rules of the corresponding scripts for the buttons, indicator lights, and data display box controls of the HMI screen, specifying the PMC path bound to the control, the monitored signal area, address and tag number, and configuring the trigger conditions for the control's normal display, invalid state, and flashing effect; when the control is triggered or the monitored PMC signal state changes, the bound script program is automatically called to execute the preset logic processing, and complete the real-time data interaction and instruction transmission between the screen and the PLC and CNC system.
[0018] Preferably, all screens are equipped with a global title bar that displays the password login status, interlock release status, equipment operating mode, mechanism in-situ status, screen theme, and equipment and company information in real time, achieving a unified display of status information across the entire screen. Main screen: As the system's default homepage, it displays the customer information to which the device belongs, the core operating status of the device, real-time alarm information, and system time. It also sets up jump entrances for various function screens and login or logout buttons to achieve an overview of the core status and function navigation. Password unlock screen: Set a password input box and a confirmation button. After the operator enters the password and clicks confirmation, the password data is transmitted to the PLC password subroutine for verification, and the verification result and permission unlock status are displayed simultaneously. Signal monitoring screen: Integrates the status display of all input signals, output signals, and online signals of the device. You can view the status of all IO signals without having to go into the deep menu bar of the system. At the same time, clear annotations are added to each signal, and online signal testing function is provided to realize one-stop monitoring and testing of signal status. Tool magazine setting screen: integrates tool magazine function diagram, real-time axis coordinate display, tool holder position calibration button, tool position information, tool holder tool number management, and tool gripping and releasing parameter setting area, realizing one-stop operation of tool magazine coordinate calibration, parameter modification, and status monitoring.
[0019] Manual operation screen: The operation area is divided according to the actuator, covering tool magazine door control, spindle tool clamping or loosening control, and fixture clamping or loosening control. Each action button is equipped with corresponding position detection and status feedback display.
[0020] Machining Information Screen: Centrally displays core machining data, including absolute axis coordinates, remaining movement, spindle speed, feed rate, scaling factor, running program status, loading / unloading online interaction signals, and machine type information, enabling visualized monitoring of the entire machining process.
[0021] Preferably, the full-function integration of the PLC, script macros, and HMI screen is completed to verify the accuracy of data interaction, instruction transmission, and status feedback between modules; optimizations are made to address issues such as operation lag, signal delay, and abnormal status display to ensure timely button operation response, real-time and accurate data refresh, and error-free fault alarms and status feedback.
[0022] A computer-readable storage medium having a computer program stored thereon, the program being executed by a processor for implementing a method for a control screen based on a FANUC 0i CNC system.
[0023] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement a control screen based on a FANUC 0i CNC system.
[0024] The present invention has the following beneficial effects: This invention integrates the scattered parameter settings, macro variable modifications, and function operation entry points in the CNC system into the corresponding screen, eliminating the need to search for operation entry points in the deep menu bar of the system. Parameter settings and function operations are intuitive and convenient, greatly reducing the difficulty of operation.
[0025] This invention provides operation detection and status feedback display for all actuators, allowing for a direct view of whether the mechanism has moved and whether it has reached the correct position. It also displays the cause of any abnormal movement, thus solving the core pain point of the original operation lacking feedback.
[0026] The signal monitoring screen of this invention centrally displays the status of all input, output, and online signals, with clear annotations and testing functions, eliminating the need for deep menu searches and greatly improving the efficiency of signal monitoring and troubleshooting.
[0027] This invention adds password login and hierarchical permission control functions that are not natively available in the FANUC 0i system. By dividing the permissions of different operation roles with different passwords, it avoids accidental operation by unauthorized personnel and improves the security of device operation.
[0028] The complete system of this invention can be perfectly adapted to the CNC cleaning machine of FANUC 0i CNC system, and is also compatible with the expansion needs of factory IoT management, with the core advantages of high efficiency, reliability and strong compatibility. Attached Figure Description
[0029] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0030] Figure 1 The diagram shown is a system architecture diagram of the present invention. Figure 2 The first schematic diagram of the PLC shown is the password login screen of the present invention; Figure 3 The second schematic diagram of the PLC shown is the password login screen of the present invention; Figure 4 This is a first schematic diagram showing the tool magazine setting page of the present invention; Figure 5 This is a second schematic diagram showing the tool magazine setting page of the present invention; Figure 6 This is a third schematic diagram showing the tool magazine setting page of the present invention; Figure 7 This is a schematic diagram showing an overview of the script of the present invention; Figure 8 The diagram shown is a sample script of the present invention. Figure 9 This is a schematic diagram illustrating the invocation of the script of this invention; Figure 10 The diagram shown is a flowchart of the method of the present invention. Figure 11 The image shown is a schematic diagram of the main screen of the system according to the present invention. Figure 12 The diagram shown is a schematic representation of the signal monitoring function of this invention. Figure 13 The diagram shown is a schematic diagram of the tool magazine setting of the present invention; Figure 14 This is a schematic diagram of the manual page of the present invention; Figure 15 The image shown is a schematic diagram of the processing page of this invention. Figure 16 The image shown is a schematic diagram of the unlock page of this invention. Detailed Implementation
[0031] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0032] The present invention will be described in detail below with reference to specific embodiments. Specific Implementation Example 1: according to Figures 1 to 16 As shown, the specific optimization technical solution adopted by the present invention to solve the above-mentioned technical problems is: The present invention relates to a control screen system and method based on FANUC 0i CNC system.
[0034] This invention provides a control screen system based on the FANUC 0i CNC system. The system is installed on a CNC cleaning machine and includes: an NC machining program layer, a CNC PLC layer, a CNC system, and a CNCHMI human-machine interaction layer. The NC machining program layer interacts with the CNC PLC layer and the numerical control system. As the core of the numerical control system, the NC machining program layer is responsible for the basic control of the equipment axis movement and the cleaning process. The CNC PLC layer interacts with the CNC system and the CNC HMI human-machine interface layer. As the system logic control center, the CNC PLC layer is responsible for the acquisition and processing of equipment I / O signals, access control, and execution of functional subroutines. The CNC HMI human-machine interface layer interacts with the CNC system. The CNC HMI human-machine interface layer is responsible for the core control screen, including visual data display, operation command input, equipment status feedback, and permission interaction. It serves as the direct interface between the operator and the equipment. The CNC system, as the kernel of the FANUC 0i system, provides underlying hardware drivers, coordinate calculations, macro variable management, and bus communication.
[0035] The CNC PLC layer includes password login access control, enabling hierarchical management of operation permissions, password verification, manual unlocking, and automatic locking after timeout.
[0036] The CNC PLC layer includes tool magazine function control, enabling real-time acquisition of tool magazine coordinates, automatic point calibration, tool holder and tool number management, and real-time feedback of operating status.
[0037] The CNC PLC layer also includes the FANUC PICTURE script macro module, which serves as an intermediate layer for interaction between the HMI screen and the PLC and CNC system. It supplements the logic and high-frequency multiplexing of the PLC ladder diagram, and supports the interactive logic and data processing of each control screen.
[0038] This invention provides a method for controlling a screen based on a FANUC 0i CNC system. The method is implemented using a control screen system based on a FANUC 0i CNC system and includes the following steps: Step 1: Control the CNC PLC, including password login access control and tool magazine function control, to ensure access control and tool magazine control; In the PLC, a dedicated layer for screen control is independently defined, and exclusive data registers and intermediate relay addresses for access control are assigned to isolate the core processing logic of the equipment from the screen control logic. Set up operation interception logic in the locked state. When the system is in the locked state, it will automatically intercept operation commands of all controlled function buttons on the operation panel and screen, and simultaneously trigger an alarm pop-up window to output a message asking for the login password, prohibiting unauthorized parameter modification and mechanism operation. The core logic for password comparison is set up so that the system receives password data input from the HMI screen and compares it with the predefined correct password. If the comparison matches, the unlock flag is triggered, and the corresponding function operation interface is opened. If the comparison does not match, the system remains locked and the alarm prompt is continuously displayed. Set up and write timing control logic. After the system is successfully unlocked, the timer will start to accumulate the time. After the accumulated time reaches 1 hour, the unlock flag will be automatically reset and the access lock status will be restored. For tool magazine settings, parameter modifications, and manual operations, corresponding access control bits are defined. Different passwords are matched with different access levels to achieve hierarchical control of different operation roles and their corresponding operation scopes.
[0039] Step 2: Control the FANUC PICTURE to achieve high-frequency multiplexing of the PLC ladder diagram; Based on the functional requirements of the screen, corresponding function scripts are developed. For the buttons, indicator lights, and data display box controls of the HMI screen, the corresponding script calling rules are configured, specifying the PMC path bound to the control, the monitored signal area, address and tag number, and configuring the trigger conditions for the control's normal display, invalid state, and flashing effect. When the control is triggered or the monitored PMC signal state changes, the bound script program is automatically called to execute the preset logic processing, completing the real-time data interaction and instruction transmission between the screen and the PLC and CNC system.
[0040] Step 3: Integrate the HMI control screen to achieve visualized monitoring of the entire processing data; All screens are equipped with a global title bar that displays real-time password login status, interlock release status, equipment operating mode, mechanism in-situ status, screen theme, and equipment and company information, achieving a unified display of status information across all screens. Main screen: As the system's default homepage, it displays the customer information to which the device belongs, the core operating status of the device, real-time alarm information, and system time. It also sets up jump entrances for various function screens and login or logout buttons to achieve an overview of the core status and function navigation. Password unlock screen: Set a password input box and a confirmation button. After the operator enters the password and clicks confirmation, the password data is transmitted to the PLC password subroutine for verification, and the verification result and permission unlock status are displayed simultaneously. Signal monitoring screen: Integrates the status display of all input signals, output signals, and online signals of the device. You can view the status of all IO signals without having to go into the deep menu bar of the system. At the same time, clear annotations are added to each signal, and online signal testing function is provided to realize one-stop monitoring and testing of signal status. Tool magazine setting screen: integrates tool magazine function diagram, real-time axis coordinate display, tool holder position calibration button, tool position information, tool holder tool number management, and tool gripping and releasing parameter setting area, realizing one-stop operation of tool magazine coordinate calibration, parameter modification, and status monitoring.
[0041] Manual operation screen: The operation area is divided according to the actuator, covering tool magazine door control, spindle tool clamping or loosening control, and fixture clamping or loosening control. Each action button is equipped with corresponding position detection and status feedback display.
[0042] Machining Information Screen: Centrally displays core machining data, including absolute axis coordinates, remaining movement, spindle speed, feed rate, scaling factor, running program status, loading / unloading online interaction signals, and machine type information, enabling visualized monitoring of the entire machining process.
[0043] Step 4: Perform system integration testing and optimization to ensure timely button operation response, real-time and accurate data refresh, and error-free fault alarms and status feedback.
[0044] Complete the full-function integration testing of PLC, script macros, and HMI screen to verify the accuracy of data interaction, command transmission, and status feedback between modules; optimize for issues such as operation lag, signal delay, and abnormal status display to ensure timely button operation response, real-time and accurate data refresh, and error-free fault alarms and status feedback.
[0045] Simulation Verification: The completed PLC program, HMI screen program, and NC machining program are imported into the NC GUIDE simulation software via USB flash drive or CF card to simulate the real operating environment of the equipment. The functions of all control screens are tested in a full-process operation to verify the effectiveness and stability of all functions such as access control, parameter setting, mechanism operation, status display, and alarm prompts. Program vulnerabilities and functional abnormalities found in the simulation are identified and fixed.
[0046] Physical equipment deployment: After completing the simulation verification, the debugged program file is imported into the FANUC 0i CNC system of the CNC cleaning machine for on-site online debugging. The actual IO address, macro variable, and mechanism parameter of the equipment are matched to verify the accuracy and reliability of the screen control during the operation of the physical equipment. The final deployment and online operation are then completed. Currently, the entire system has been fully applied to the physical CNC cleaning machine equipment.
[0047] above Figures 1 to 16 As shown, each of the various mechanisms can send and receive instructions to each other, and each mechanism will also execute its own logic.
[0048] The program is programmed using FANUC LADDER Ⅲ software, and the sample program is as follows. Figure 2 This is a subroutine for the screen. When the screen is not unlocked, pressing the button will trigger an alarm asking for a password. Image 3 shows the program's default password. Only by entering the correct password will the screen unlock. After unlocking, the screen will automatically lock again after one hour.
[0049] Image 4 shows the current spindle position, making it easy for workers to check the alignment during setup. Image 5 shows the PMC window commands. When the F8 calibration button is pressed, it reads the axis coordinates and checks if the axis is equal to Z1 (the same logic applies to checking the X and Y positions). If it is equal, it means the axis is at the Z-axis waiting point, and the tool magazine setting page will also display the corresponding information. Figure 6 As shown.
[0050] Figure 8 The script shown is used to create control programs, which can realize programs that cannot be created when using PLC to create screens or that are very complex to create using ladder diagrams, and can also be called repeatedly, etc.
[0051] according to Figure 11 The main interface shown requires a login password to work. The login process for each function is clearly displayed. Continuing our company's touch screen design concept, the upper left corner displays the password login status, interlock release status, mode, location, screen theme, machine theme, company theme, etc., from left to right. The title bar is the global screen, meaning that this information will be displayed on every screen.
[0052] Figure 12 The signal monitoring screen shown can monitor input signals, output signals, and online signals, and includes a test function for online signals.
[0053] Figure 13 The tool magazine setting screen shown allows for clear monitoring of the tool magazine's status and axis positions. Through the coordination between the screen scripts, CNC system macro variables, and the PLC, calibration of tool number and tool holder positions, as well as data input calibration, is achieved, eliminating the need for manual input of coordinates as required on experimental machines.
[0054] Figure 14 The manual interface shown allows control of various manual functions and clearly displays the interlock status and signal status.
[0055] Figure 15 The cleaning process shown displays important information about the status.
[0056] Figure 16 Enter the password 55582930 as shown, click the confirm button, and check the unlock prompt in the upper left corner to unlock the permissions.
[0057] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement a method for a control screen based on a FANUC 0i CNC system.
[0058] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a method for a control screen based on a FANUC 0i CNC system.
[0059] The above description is merely a preferred embodiment of a control screen system and method based on a FANUC 0i CNC system. The scope of protection for a control screen system and method based on a FANUC 0i CNC system is not limited to the above embodiments; all technical solutions falling within this conceptual framework are within the protection scope of this invention. It should be noted that for those skilled in the art, any improvements and variations made without departing from the principles of this invention should also be considered within the protection scope of this invention.
Claims
1. A control screen system based on the FANUC 0i CNC system, the system being mounted on a CNC cleaning machine, characterized in that: The system includes: an NC machining program layer, a CNC PLC layer, a numerical control system, and a CNCHMI human-machine interface layer; The NC machining program layer interacts with the CNC PLC layer and the numerical control system. As the core of the numerical control system, the NC machining program layer is responsible for the basic control of the equipment axis movement and the cleaning process. The CNC PLC layer interacts with the CNC system and the CNC HMI human-machine interface layer. As the system logic control center, the CNC PLC layer is responsible for the acquisition and processing of equipment I / O signals, access control, and execution of functional subroutines. The CNC HMI human-machine interface layer interacts with the CNC system. The CNC HMI human-machine interface layer is responsible for the core control screen, including visual data display, operation command input, equipment status feedback, and permission interaction. It serves as the direct interface between the operator and the equipment. The CNC system, as the kernel of the FANUC 0i system, provides underlying hardware drivers, coordinate calculations, macro variable management, and bus communication.
2. The system according to claim 1, characterized in that: The CNC PLC layer includes password login access control, which enables hierarchical management of operation permissions, password verification, manual unlocking, and automatic locking after timeout. The CNC PLC layer includes tool magazine function control, enabling real-time acquisition of tool magazine coordinates, automatic point calibration, tool holder and tool number management, and real-time feedback of operating status.
3. The system according to claim 2, characterized in that: The CNC PLC layer also includes the FANUC PICTURE script macro module, which serves as an intermediate layer for interaction between the HMI screen and the PLC and CNC system. It supplements the logic and high-frequency multiplexing of the PLC ladder diagram, and supports the interactive logic and data processing of each control screen.
4. A method for controlling a screen based on a FANUC 0i CNC system, the method being implemented based on a control screen system for a FANUC 0i CNC system as described in claim 1, characterized in that: The method includes the following steps: Step 1: Control the CNC PLC, including password login access control and tool magazine function control, to ensure access control, tool magazine control, and manual page operation; Step 2: Control the FANUC PICTURE to achieve high-frequency multiplexing of the PLC ladder diagram; Step 3: Integrate the HMI control screen to achieve visualized monitoring of the entire processing data; Step 4: Perform system integration testing and optimization to ensure timely button operation response, real-time and accurate data refresh, and error-free fault alarms and status feedback.
5. The method according to claim 4, characterized in that: In the PLC, a dedicated layer for screen control is independently defined, and exclusive data registers and intermediate relay addresses for access control are assigned to isolate the core processing logic of the equipment from the screen control logic. Set up operation interception logic in the locked state. When the system is in the locked state, it will automatically intercept operation commands of all controlled function buttons on the operation panel and screen, and simultaneously trigger an alarm pop-up window to output a message asking for the login password, prohibiting unauthorized parameter modification and mechanism operation. The core logic for password comparison is set up so that the system receives password data input from the HMI screen and compares it with the predefined correct password. If the comparison matches, the unlock flag is triggered, and the corresponding function operation interface is opened. If the comparison does not match, the system remains locked and the alarm prompt is continuously displayed. Set up and write timing control logic. After the system unlocks successfully, the timer will start to accumulate the count. After the set time reaches 1 hour, the unlock flag will be automatically reset and the access lock status will be restored. For tool magazine settings, parameter modifications, and manual operations, corresponding access control bits are defined. Different passwords are matched with different access levels to achieve hierarchical control of different operation roles and their corresponding operation scopes.
6. The method according to claim 5, characterized in that: Based on the functional requirements of the screen, corresponding function scripts are developed. For the buttons, indicator lights, and data display box controls of the HMI screen, the corresponding script calling rules are configured, specifying the PMC path bound to the control, the monitored signal area, address and tag number, and configuring the trigger conditions for the control's normal display, invalid state, and flashing effect. When the control is triggered or the monitored PMC signal state changes, the bound script program is automatically called to execute the preset logic processing, completing the real-time data interaction and instruction transmission between the screen and the PLC and CNC system.
7. The method according to claim 6, characterized in that: All screens are equipped with a global title bar that displays real-time password login status, interlock release status, equipment operating mode, mechanism in-situ status, screen theme, and equipment and company information, achieving a unified display of status information across all screens. Main screen: As the system's default homepage, it displays the customer information to which the device belongs, the core operating status of the device, real-time alarm information, and system time. It also sets up jump entrances for various function screens and login or logout buttons to achieve an overview of the core status and function navigation. Password unlock screen: Set a password input box and a confirmation button. After the operator enters the password and clicks confirmation, the password data is transmitted to the PLC password subroutine for verification, and the verification result and permission unlock status are displayed simultaneously. Signal monitoring screen: Integrates the status display of all input signals, output signals, and online signals of the device, eliminating the need to navigate to the deep menu bar of the system to view the status of all IO signals. It also adds clear annotations to each signal and includes online signal testing functions, realizing one-stop monitoring and testing of signal status. Tool magazine setting screen: integrates tool magazine function diagram, real-time axis coordinate display, tool holder position calibration button, tool position information, tool holder tool number management, and tool gripping and releasing parameter setting area, realizing one-stop operation of tool magazine coordinate calibration, parameter modification, and status monitoring; Manual operation screen: The operation area is divided according to the actuator, covering tool magazine door control, spindle tool clamping or loosening control, and fixture clamping or loosening control. Each action button is equipped with corresponding position detection and status feedback display. Machining Information Screen: Centrally displays core machining data, including absolute axis coordinates, remaining movement, spindle speed, feed rate, scaling factor, running program status, loading / unloading online interaction signals, and machine type information, enabling visualized monitoring of the entire machining process.
8. The method according to claim 7, characterized in that: Complete the full-function integration testing of PLC, script macros, and HMI screen to verify the accuracy of data interaction, command transmission, and status feedback between modules; optimize for issues such as operation lag, signal delay, and abnormal status display to ensure timely button operation response, real-time and accurate data refresh, and error-free fault alarms and status feedback.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the method as claimed in any one of claims 4-8.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, it implements the method of any one of claims 4-8.