In addition to the constant programming of the standard G code, the workpiece machining program of the NUM CNC system provides the user with a way to use the L variable of the program variable. When these parameters are used in programming, the workpiece program can be concise, the storage capacity can be small, and it can also meet the needs of various situations. It has strong flexibility and wide adaptability.
The program variable L parameter can be assigned to any NC address function in place of a constant value such as axis address X, Y, Z, ..., feedrate F, spindle speed S, and tool serial number, etc., and can also be used as a separate part Variables are used and are not syntactically restricted by data types, and use conditions are relaxed.
1 Application Requirements for Program Variable L Parameters The following parameters can be used to solve the following problems:
1. When the workpiece has certain commonalities in geometry, size, or structure, the use of the L parameter can be used to write a general-purpose machining program that is suitable for machining serialized products or a family of parts. When the program is executed, the L parameter is given a corresponding value to meet different processing requirements.
2. The program variable L parameter is used as an intermediate variable to participate in arithmetic or function operations to calculate and determine the more complex processing path.
3. Use the L parameter with the flow control statement G79 or G77 to test the value of the variable. You can write a program segment with a branch or cyclic structure to perform, for example, repeated operation of the same path (eg only change the machining depth , Machining margin, or only change the geometric distribution of a section of the trajectory or position positioning and three-dimensional processing of rotating parts, etc.), so that the preparation of the workpiece program structured, concise, and easy to modify.
4. When the L parameter is used for the name and address of some other types of parameters (such as external parameters), it can be used to complete the control of the CNC system or the measurement and control of each axis together with the machine processor.
2 program variable L parameter value input method in the program
1. The assignment statement is assigned with a statement in the program (usually at the beginning of the program). The advantages of this method: The program is easy to read, not error-prone, and has a high degree of reliability: Graphical simulations can be performed while debugging the program. Disadvantages: When it is necessary to change the value of the L parameter, the program must be re-edited, usually by the programmer, making it difficult for on-site operators. But in turn, it increases the security of the program.
2. Before MDI fills in the form, in the L parameter display page, enter the L parameter value of the required program variable in the order of MDI (manual data input), and then execute the program (no assignment statement in the program). This method is also often used in the case of a user-developed dedicated user interface. The advantage of this method: When changing the parameter value, it is not necessary to edit the program again, and it is completed by the operator during on-site processing. Disadvantages: The accuracy of the input is required, otherwise it will result in a machining error: no graphical simulation is possible.
3. Conversational input During the execution of the program, the operator continues to execute the program after inputting the corresponding L parameter value according to the screen prompts. Such a program can be written with the screen conversation statement provided by the NUM CNC system. This method is suitable for use when the number of L parameters is small, and is usually used for branching according to a program determined by the on-site processing conditions (for example, whether measurement, retraction, tool change, etc. are required). Advantages: flexibility, easy manual intervention during processing. Disadvantages: strict requirements on the accuracy of the input: take up processing time, not suitable for input of a large number of L parameter values.
3 Conclusion In summary, the NUM CNC system program variable L parameter provides users with a wide range of applications, as long as the use of different methods according to different needs, you can achieve optimized program structure, improve work efficiency, and achieve a better economy The purpose of the benefit.
The program variable L parameter can be assigned to any NC address function in place of a constant value such as axis address X, Y, Z, ..., feedrate F, spindle speed S, and tool serial number, etc., and can also be used as a separate part Variables are used and are not syntactically restricted by data types, and use conditions are relaxed.
1 Application Requirements for Program Variable L Parameters The following parameters can be used to solve the following problems:
1. When the workpiece has certain commonalities in geometry, size, or structure, the use of the L parameter can be used to write a general-purpose machining program that is suitable for machining serialized products or a family of parts. When the program is executed, the L parameter is given a corresponding value to meet different processing requirements.
2. The program variable L parameter is used as an intermediate variable to participate in arithmetic or function operations to calculate and determine the more complex processing path.
3. Use the L parameter with the flow control statement G79 or G77 to test the value of the variable. You can write a program segment with a branch or cyclic structure to perform, for example, repeated operation of the same path (eg only change the machining depth , Machining margin, or only change the geometric distribution of a section of the trajectory or position positioning and three-dimensional processing of rotating parts, etc.), so that the preparation of the workpiece program structured, concise, and easy to modify.
4. When the L parameter is used for the name and address of some other types of parameters (such as external parameters), it can be used to complete the control of the CNC system or the measurement and control of each axis together with the machine processor.
2 program variable L parameter value input method in the program
1. The assignment statement is assigned with a statement in the program (usually at the beginning of the program). The advantages of this method: The program is easy to read, not error-prone, and has a high degree of reliability: Graphical simulations can be performed while debugging the program. Disadvantages: When it is necessary to change the value of the L parameter, the program must be re-edited, usually by the programmer, making it difficult for on-site operators. But in turn, it increases the security of the program.
2. Before MDI fills in the form, in the L parameter display page, enter the L parameter value of the required program variable in the order of MDI (manual data input), and then execute the program (no assignment statement in the program). This method is also often used in the case of a user-developed dedicated user interface. The advantage of this method: When changing the parameter value, it is not necessary to edit the program again, and it is completed by the operator during on-site processing. Disadvantages: The accuracy of the input is required, otherwise it will result in a machining error: no graphical simulation is possible.
3. Conversational input During the execution of the program, the operator continues to execute the program after inputting the corresponding L parameter value according to the screen prompts. Such a program can be written with the screen conversation statement provided by the NUM CNC system. This method is suitable for use when the number of L parameters is small, and is usually used for branching according to a program determined by the on-site processing conditions (for example, whether measurement, retraction, tool change, etc. are required). Advantages: flexibility, easy manual intervention during processing. Disadvantages: strict requirements on the accuracy of the input: take up processing time, not suitable for input of a large number of L parameter values.
3 Conclusion In summary, the NUM CNC system program variable L parameter provides users with a wide range of applications, as long as the use of different methods according to different needs, you can achieve optimized program structure, improve work efficiency, and achieve a better economy The purpose of the benefit.
Commercial Truck,Small Cargo Truck,Light Dump Truck,Heavy Tractor Isuzu
Chongqing Yuntu Automobile Trading Co., Ltd. , https://www.yuntuauto.com