POSA

POSR

SPEED

ACCEL

OUTPUT

Password

SPEED SYNC

Mark reference

POSR SPEED

POSR OUTPUT

Cam controller

 

Operating Instructions

COMPAX-M / -S

 

 

Start a program loop [REPEAT]

 

 

 

 

 

 

 

8.4.21 Start a program loop [REPEAT]

 

 

 

The following program sequence is run through the number of times

 

 

REPEAT

 

 

specified until an END instruction appears.

 

 

Syntax:

REPEAT value

 

 

 

 

Value: 1...65 000 a control parameter (P40..P49) or a variable (V1..V39)

 

 

 

e.g. REPEAT .P40

 

 

 

Example:

N005: REPEAT 10

Starts a program loop, which is run through 10 times

 

 

 

N006: ...

 

 

 

 

N007: END

End of loop

 

A loop can be prematurely exited using GOTO.

8.4.22 Branching [IF I7=1]

WAIT

GOTO

GOSUB

RETURN

END

REPEAT

IF I..

IF I7=1

Syntax:

Examples:

Branching related to a control input

IF control input=1/0 GOTO/GOSUB data record number

Control input: I118...I16

IF I7=1 GOTO 010 If I7 = "1", a jump is made to data record N010

IF I7=0 GOSUB 010 If I7 = "0", a jump is made to the sub-program in data record N010

Comparison

WAIT Start

8.4.23 Binary IF query of inputs [IF I12=101-1]

GOTO /

GOSUB EXT

IF Error/ Stop

Arithmetic

Position monitoring

Idle display

Speed monitoring

Engage / disengage brake / final stage

Variable voltage

IF I12=101-1

Syntax:

Multiple inputs can be queried simultaneously.

The inputs are compared with a mask. The mask contains individual bits 1 or 0, and a space marker (-)19for "not taken into consideration".

IF I12=101-1 GOTO 123

-> I12 = 1, I13=0, I14=1, I15= "not considered", I16 = 1. Binary IF querying of status values or outputs is not possible.

A maximum of 8 inputs can be queried per IF instruction.

18I1...I6 only if masked via P221.

19Instead of "-", "." is also an option

108

Page 108
Image 108
Parker  Products COMPAX-M /-S (L) manual Start a program loop Repeat, Branching if I7=1, If I7=1, If I12=101-1