Instruction manual
Appendix D - Notes for programming the
Master-8-cp by a computer
When programming Master-8-cp through your own program, program the RS-232 communication
parameters first.
For example the instruction (BASIC,IBM compatibles):
OPEN’COM1,9600,N,8,1,CS,DS,LF,PE’ AS#1
tells the PC to communicate at a baud rate of 9600, no parity, 8 bits per character stop bit and suppress
the control lines. From now on the computer refers to Master-8-cp as #1. Now, to operate channel #3
on the FREE-RUN mode you can use the instruction:
PRINT #1,’F3E’;
which is equivalent to ‘FREE,3,ENTER’.
To set the duration of channel #3 to 250 msec. use the instruction:
PRINT #1, ‘D 3 250 E 3 E’;
which is the equivalent to ‘DURATION,3,250,ENTER,3,ENTER’
One can also use variables. The following is an example of programming the delay of channel 1 to be
100 msec., delay 2 to be 200 msec., delay 3 to be 300 msec each.
FOR I=1 TO 8
J=100*I
PRINT#1, ‘L’;I;J;’E 3 E’;
NEXT I
The instruction PRINT #1,’L,I;J;’E 3 E’; means “Set the delay of channel I, into J msec".
When you switch between paradigms please note that the changeover takes a while. Thus after the
instruction to switch to a new paradigm, you should make a break of 100 msec. in your program before
giving a new instruction.










