Positioning and control functions

rogrammable waiting time [WAIT]

8.4.16 rogrammable waiting time [WAIT]

Unit hardware

/ cable

WAIT

Syntax:

Example:

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.

 

 

 

 

 

 

 

 

 

 

 

 

Connector

assignment

Technical data

 

8.4.17 Program jump [GOTO]

GOTO

Program jump to specified data record number.

 

Syntax:

GOTO data record number

 

Data record number: 1...250

Example:

N045: GOTO 60

Jumps to data record N060

8.4.18 Sub-program jump [GOSUB]

Configuration

 

Positioning and

control functions

Optimization

functions

GOSUB

Syntax:

Example:

Note:

Jump to a sub-program .

GOSUB data record number

Data record number: 1...250

N005: GOSUB 100

Calls up sub-program

N100: ...

Starts sub-program

N101: ...

 

...

 

Nxxx: RETURN

Ends sub-program, jumps back to N006

Never use GOTO to jump out of a sub-program or to a sub-program.

Interfaces

 

Accessories /

options

8.4.19 Instruction to end a sub-program. [RETURN]

RETURN

This executes a return jump to the main program.

 

Syntax:

RETURN

8.4.20 END instruction [END]

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.

Syntax:

END

107

 

 

 

Status

 

Parameter

 

Error list

 

Page 107
Image 107
Parker  Products COMPAX-M /-S (L) manual Rogrammable waiting time Wait, Program jump Goto, Sub-program jump Gosub