Positioning and control functionsrogrammable waiting time [WAIT]107UnithardwareConnectorassignment / cableTechnical dataConfigurationPositioning andcontrol functionsOptimizationfunctionsInterfacesAccessories /optionsStatusParameterError list8.4.16 rogrammable waiting time [WAIT]Programmable waiting time in ms before the next data record is processed.WAIT value Value:10...65 000 [ms] a control parameter (P40..P49) or avariable (V1..V39)e.g. WAIT .P40 (time pattern 10 ms)N005: WAIT 500 Sets the waiting time to 500 ms before the next data record isprocessed.8.4.17 Program jump [GOTO]Program jump to specified data record number.GOTO data record numberData record number: 1...250N045: GOTO 60 Jumps to data record N0608.4.18 Sub-program jump [GOSUB]Jump to a sub-program .GOSUB data record numberData record number: 1...250N005: GOSUB 100N100: ...N101: ......Nxxx: RETURNCalls up sub-programStarts sub-programEnds sub-program, jumps back to N006Never use GOTO to jump out of a sub-program or to a sub-program.8.4.19 Instruction to end a sub-program. [RETURN]This executes a return jump to the main program.RETURN8.4.20 END instruction [END]END instruction for a REPEAT loop or for the program.To end a program, you implement a program stop. The data record indicatoris not modified.ENDWAITSyntax:Example:GOTOSyntax:Example:GOSUBSyntax:Example:Note:RETURNSyntax:ENDSyntax: