Flexible NC programming1.10 Program jumps and branchesJob planning94 Programming Manual, 02/2011, 6FC5398-2BP40-1BA0Example1.10.2 Program jumps to jump markers (GOTOB, GOTOF, GOTO, GOTOC)FunctionJump markers (labels) can be set in a program, that can be jumped to from another locationwithin the same program using the commands GOTOF, GOTOB, GOTO or GOTOC. Programexecution is resumed with the instruction that immediately follows the destination marker.This means that branches can be realized within the program.In addition to jump markers, main and sub-block numbers are possible as jump designation.If a jump condition (IF ...) is formulated before the jump instruction, the program jump isonly executed if the jump condition is fulfilled.Syntax GOTOB destination>IF condition> = TRUE GOTOB destination>GOTOF destination>IF condition> = TRUE GOTOF destination>GOTO destination>IF condition> = TRUE GOTO destination>GOTOC destination>IF condition> = TRUE GOTOC destination>SignificanceProgram code CommentsN10 ... ; Beginning of the program...N90 GOTOS ; Jump to beginning of the program...GOTOB: Jump instruction with jump destination towards the beginning of theprogram.GOTOF: Jump instruction with jump destination towards the end of the program.GOTO: Jump instruction with jump destination search. The search is first madein the direction of the end of the program, then in the direction of thebeginning of the program.GOTOC: Same effect as for GOTO with the difference that Alarm 14080 "Jumpdesignation not found" is suppressed.This means that program execution is not interrupted in the case thatthe jump destination search is unsuccessful – but is continued with theprogram line following the GOTOC command.