To realize the automatic engraving of the production date on the product, macro programs are indispensable.
On the road to learning CNC programming, I come into contact with people of different levels every day, and many of them ask where macro programs are used?
For details, please click this link>>>Zou Jun: Why is mastering CNC macro programs the "watershed" for machine processing people to break through technical bottlenecks?
To realize the automatic engraving of the production date of the day on the product, macro program functions and date variables are involved. 1. The variable of the Falak system date is: #3011
Knowledge point: Use local variables to reference system variables, such as #1=#3011, (if today is March 5, 2025) After the machine tool executes this section, #1=20250305
2. Two common functions of variables in the Falak system. I previously posted two common functions of "macro program variables" on WeChat Moments (15). Among them, the FIX[ ] function is as follows:
Knowledge point: FIX[ ] function, which means directly discarding the value after the decimal point. For example: For example, on March 5, 2025, the production date is to be automatically engraved on the products processed on the FANUC system CNC machine tool. The specified format is, for example: 2025-3-5. If you want to convert the system variable #3011=20250305 on that day into the year (stored in #701), month (stored in #702) and day (stored in #703), you can use the following method to complete it: The procedure is as follows: When engraving, add two minus signs between these three data.
Since the system variable #3011=20250305 is automatically generated on that day, this date engraving work does not require manual intervention.





