Start a program loop [repeat, Branching [if i7=1, Binary if query of inputs [if i12=101-1 – Parker Products COMPAX-M /-S (L) User Manual
Page 108: 21 start a program loop [repeat, 22 branching [if i7=1, 23 binary if query of inputs [if i12=101-1, Operating instructions, Compax-m / -s, Repeat, If i7=1
Operating Instructions
COMPAX-M / -S
Start a program loop [REPEAT]
108
8.4.21 Start a program loop [REPEAT]
The following program sequence is run through the number of times
specified until an END instruction appears.
REPEAT value
Value: 1...65 000 a control parameter (P40..P49) or a variable (V1..V39)
e.g. REPEAT .P40
N005: REPEAT 10
N006: ...
N007: END
Starts a program loop, which is run through 10 times
End of loop
A loop can be prematurely exited using GOTO.
8.4.22 Branching [IF I7=1]
Branching related to a control input
IF control input=1/0 GOTO/GOSUB data record number
Control input: I1
...I16
IF I7=1 GOTO 010
IF I7=0 GOSUB 010
If I7 = "1", a jump is made to data record N010
If I7 = "0", a jump is made to the sub-program in data record
N010
8.4.23 Binary IF query of inputs [IF I12=101-1]
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 (-)
for "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.
18
I1...I6 only if masked via P221.
19
Instead of "-", "." is also an option
REPEAT
Syntax:
Example:
IF I7=1
Syntax:
Examples:
IF I12=101-1
Syntax:
POSA
POSR
SPEED
ACCEL
OUTPUT
Password
SPEED
SYNC
Mark
reference
POSR
SPEED
POSR
OUTPUT
Cam
controller
WAIT
GOTO
GOSUB
RETURN
END
REPEAT
IF I..
Comparison
WAIT Start
GOTO /
GOSUB EXT
IF Error/ Stop
Arithmetic
Position
monitoring
Idle display
Speed
monitoring
Engage /
disengage
brake / final
stage
Variable
voltage