Branches and Loops


Please sign in to view the rest of this entry.

Branches and Loops
101110410111111011403Branches and LoopsIn a program, the sequence of execution can be changed using GOTO and IF_GOTO_ statements, which is called branching. These statements can also be used to create a loop, and execute it repeatedly until a certain condition gets satisfied. This, however, is not considered a good method of creating loops. It is a standard practice to avoid the use of GOTO in any structured programming language (such as Pascal), as it makes the program less readabl…
Citation
S. K. Sinha: CNC Programming Using Fanuc Custom Macro B. Branches and Loops, Chapter (McGraw-Hill Professional, ©2010), AccessEngineering Export