Programming
Reading and writing the program memory.
57
COMPAX Command Codes
Definition of the command code: (
A command code consists of 1 byte).
Sorted according to command code
Code
Command
0x20
Empty instruction (No Operation)
0x01
VALIDP / C / F
0x41
POSA
Value /
POSA
HOME
0x42
GOSUB
0x43
SETC
n
0x45
END
0x47
GOTO
0x49
IF E
x
=
y ... /
IF ERROR ... / IF STOP ...
0x4A
IF <
Operand1
> <
Comparison Operator
>
<
Operand2
> ...
0x4B
LOOP
n
0x4C
ACCEL
Value
0x4D
SETM
Value
0x4F
OUTPUT A
x
=
y
0x50
P
n
=. . .
0x51
SETS
Value
0x52
POSR
Value /
POSR CAM
0x53
SPEED
Value /
SPEED SYNC
0x54
REPEAT
Value
0x55
RETURN
0x56
V
n
=. . .
0x57
WAIT
Value /
WAIT START
0x61
POSA
Parameter
0x6B
LOOP
Parameter
0x6C
ACCEL
Parameter
0x6D
SETM
Parameter
0x71
SETS
Parameter
0x72
POSR
Parameter
0x73
SPEED
Parameter
0x74
REPEAT
Parameter
0x77
WAIT
Parameter
0xC1
POSA
Variable
0xCB
LOOP
Variable
0xCC
ACCEL
Variable
0xCD
SETM
Variable
0xD1
SETS
Variable
0xD2
POSR
Variable
0xD3
SPEED
Variable
0x4D
REPEAT
Variable
0xD7
WAIT
Variable
Sorted by command
Code
Command
0x6C
ACCEL
Parameter
0xCC
ACCEL
Variable
0x4C
ACCEL
Value
0x45
END
0x42
GOSUB
0x47
GOTO
0x4A
IF <
Operand1
> <
Comparison Operator
>
<
Operand2
> ...
0x49
IF E
x
=
y ... /
IF ERROR ... / IF STOP ...
0x20
Empty instruction (No Operation)
0x4B
LOOP
n
0x6B
LOOP
Parameter
0xCB
LOOP
Variable
0x4F
OUTPUT A
x
=
y
0x50
P
n
=. . .
0x61
POSA
Parameter
0xC1
POSA
Variable
0x41
POSA
Value /
POSA
HOME
0x72
POSR
Parameter
0xD2
POSR
Variable
0x52
POSR
Value /
POSR CAM
0x74
REPEAT
Parameter
0x4D
REPEAT
Variable
0x54
REPEAT
Value
0x55
RETURN
0x43
SETC
n
0x6D
SETM
Parameter
0xCD
SETM
Variable
0x4D
SETM
Value
0x71
SETS
Parameter
0xD1
SETS
Variable
0x51
SETS
Value
0x73
SPEED
Parameter
0xD3
SPEED
Variable
0x53
SPEED
Value /
SPEED SYNC
0x01
VALIDP / C / F
0x56
V
n
=. . .
0x77
WAIT
Parameter
0xD7
WAIT
Variable
0x57
WAIT
Value /
WAIT START