• Tsvetan Kaldashev Faculty of Industrial Technology, Technical University of Sofia, Bulgaria



parametric program, macro program, chain wheels, machining, CNC


The article deals with developing a parametric (macro) program for processing a chain wheel for bush-roller chains. The parametric program is developed for CNC Fanuc and implemented in the production process for the chain wheel family. To develop the parametric program, the dependences for constructing the tooth profile are used: chain pitch and a dividing diameter of the chain wheel, etc. The basic geometrical parameters for processing the chain wheel are set as input data at the beginning of the control program. Based on this information the automatic determination of the coordinates from the trajectory of the tool is performed. The trajectory coordinates are determined for one interdental, where for processing the next ones are used commands, characteristic of the parametric programming, with which the processing algorithm is organised. The machining algorithm can be organised using two approaches: recalculating the initial machining angle and the command to rotate the working coordinate system G68. The first approach is universal because the CNC generation does not influence it, i.e., it applies to both modern and traditional- CNCs, while the second applies to modern CNCs or those supporting the G68 command. The parametric program was tested virtually using the Vericut software, where the basic geometric parameters of the sprocket were tested with its dimensional measurement capabilities.


Dimitrov, D. (2016). Automatic selection of processing with less error in the positioning of machining centers. (pp. 327-332). Republic of Albania: International Journal - Institute of Knowledge Management, ISSN: 1857-92.

Gainer, R., & Murphy, D. (2013). Custom Macro Programming, Parametric Programming PMPA NTC.

Golebski, R. (2017). Parametric programming of CNC machine tools. MATEC Web of Conferences. DOI:

Groves, B. (n.d.). Macro B programming manual.

Hadjiiski, P. (2010). Programming of CNC machines. Sofia: TU-Sofia, ISBN 978-954-438-865-2.

Hristov, D. P. (1967). Calculation and construction of machine element. Софиа: Tehnika Publishing House.

Kaldashev, T. (2019). Development of a parametric program for processing a hyperbolic surface on a lathe machine,. Environment. Technology. Resources, Proceedings of the 12th International Scientific and Practical Conference (pp. 70-73). Rezekne, Latvia:

Kaldashev, T. (2022). CAM/CNC Technologies (monograph). Direct Services LTD, ISBN 978-619-7671-40-7.

Smid, P. (2005). Fanuc CNC custom macros Programming resources for Fanuc Custom Macro B users. Industrial Press Inc., New York.




How to Cite

Kaldashev, T. . (2022). ALGORITHM AND PARAMETRIC PROGRAM FOR PROCESSING CHAIN WHEELS. Proceedings of CBU in Social Sciences, 3, 69-74.