Rogrammable waiting time [wait, Program jump [goto, Sub-program jump [gosub – Parker Products COMPAX-M /-S (L) User Manual

Page 107: Instruction to end a sub-program. [return, End instruction [end, 16 programmable waiting time [wait, 17 program jump [goto, 18 sub-program jump [gosub, 19 instruction to end a sub-program. [return, 20 end instruction [end

Advertising
background image

Positioning and control functions

rogrammable waiting time [WAIT]

107

Unit

hardware

Connector

assignment / cable

Technical data

Configuration

Positioning and

control functions

Optimization

functions

Interfaces

Accessories /

options

Status

Parameter

Error list

8.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 a
variable (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 is
processed.

8.4.17 Program jump [GOTO]

Program jump to specified data record number.

GOTO data record number
Data record number: 1...250

N045: GOTO 60

Jumps to data record N060

8.4.18 Sub-program jump [GOSUB]

Jump to a sub-program .

GOSUB data record number
Data record number: 1...250

N005: GOSUB 100
N100: ...
N101: ...
...
Nxxx: RETURN

Calls up sub-program
Starts sub-program

Ends sub-program, jumps back to N006

Never 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.

RETURN

8.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 indicator
is not modified.

END

WAIT

Syntax:

Example:

GOTO

Syntax:

Example:

GOSUB

Syntax:

Example:

Note:

RETURN

Syntax:

END

Syntax:

Advertising