Manufacturing Technology: Unit V: Programming of CNC Machine Tools

loops

Programming of CNC Machine Tools - Manufacturing Technology

Loops can intensely shorten part programs while still providing the flexibility of parametric (variable) programming.

LOOPS

Loops can intensely shorten part programs while still providing the flexibility of parametric (variable) programming. The loop can generate hundreds or even thousands of motion commands.

Conditional operators are used to perform conditional loops such as

(i) EQ: Equal

(ii) NE: Not equal

(iii) GT: Greater than

(iv) GE: Greater than or equal

(v) LT: Less than

(vi) LE: Less than or equal.

Various types of loops or statements are discussed as follows:

(i) DO loop:

It provides the ability to jump around arbitrarily in G-Code. An example is shown in Problem 5.17 on Page 5.93 to get more understanding about this loop performing in CNC machining.

(ii) WHILE DO loop:

It allows the ability for G-Code to perform repetitive tasks. An example is shown in Problem 5.18 on Page 5.95 to understand more knowledge about this loop performing in CNC.

(iii) IF loop:

IF statement allows the ability to make decisions based on conditions. IF [ Condition] GOTO statements will jump to the line number following the GOTO if the condition is true. Otherwise, they will not execute GOTO but they will continue on to the next line of code in the program. Also, it is important that an IF [ Condition ] GOTO statement is that the GOTO may be omitted. For example,

IF [#100 LT 0] GOTO 12 Équals IF [#100 LT 0] 12.

IF statement is very simple and powerful programming tool. Also it is used the program to: jump to a specified line number, set other variables, check for a certain condition, initiate a user programmed alarm, track tool life and many other useful purposes. To get more idea about functioning of this loop, refer Problem 5.19 on Page 5.96.

Manufacturing Technology: Unit V: Programming of CNC Machine Tools : Tag: : Programming of CNC Machine Tools - Manufacturing Technology - loops


Related Topics



Related Subjects


Manufacturing Technology

ME3493 4th semester Mechanical Dept | 2021 Regulation | 4th Semester Mechanical Dept 2021 Regulation