controlconcepts
Lifetime Supporting Member
I have a Pelco camera switcher that I am controlling. All works well if I send (PRINT#) with
PRINT #"2Ma5#a1\a" The port gets 2Ma5#a1\a
However when I try to use a variable in the program MQ2.PRINT
For example MQ2 = 3
PRINT #"2Ma5#a",MQ2,"\a" The port gets 2Ma5#a 3 \a with spaces
Is there a way to use PRINT# and , and not have a SPACE printed. I have looked all thru the manual and cant find anything on this.
Code for reference.
Thanks,
Matt
PRINT #"2Ma5#a1\a" The port gets 2Ma5#a1\a
However when I try to use a variable in the program MQ2.PRINT
For example MQ2 = 3
PRINT #"2Ma5#a",MQ2,"\a" The port gets 2Ma5#a 3 \a with spaces
Is there a way to use PRINT# and , and not have a SPACE printed. I have looked all thru the manual and cant find anything on this.
Code for reference.
10 REM PELCO CM7600 CONTROLS
20 STRING 10000,100
30 MODE (PRT2,9600,O,8,1,N,)
40 MODE (PRT1,19200,N,8,1,N,)
50 PUSH 10 : CALL 56 : POP S
60 PUSH 100 : CALL 14 : POP MQ1 : REM MAIN INPUT FR SLC
70 PUSH 101 : CALL 14 : POP MQ2 : REM
80 PUSH 102 : CALL 14 : POP MQ3 : REM
90 PUSH 103 : CALL 14 : POP MQ4 : REM
100 IF MQ1=1 THEN PRINT #"2Ma5#a",MQ2,"\a"
110 IF MQ1=10 THEN PRINT #"2Ma5#a1\a" : REM PRESET 1
120 IF MQ1=11 THEN PRINT #"2Ma5#a2\a" : REM PRESET 2
130 IF MQ1=12 THEN PRINT #"2Ma5#a3\a" : REM PRESET 3
140 IF MQ1=13 THEN PRINT #"2Ma5#a4\a" : REM PRESET 4
150 IF MQ1=14 THEN PRINT #"2Ma5#a5\a" : REM PRESET 5
160 IF MQ1=15 THEN PRINT #"2Ma5#a6\a" : REM PRESET 6
170 IF MQ1=16 THEN PRINT #"2Ma5#a7\a" : REM PRESET 7
180 IF MQ1=17 THEN PRINT #"2Ma5#a8\a" : REM PRESET 8
190 IF MQ1=20 THEN PRINT #"sa" : REM STOP ANY PAN OR TILT
200 IF MQ1=21 THEN PRINT #"50La" : REM PAN LEFT
210 IF MQ1=22 THEN PRINT #"50Ra" : REM PAN RIGHT
220 IF MQ1=23 THEN PRINT #"30Ua" : REM TILT UP
230 IF MQ1=24 THEN PRINT #"30Da" : REM TILT DOWN
240 IF MQ1=25 THEN PRINT #"Ta" : REM ZOOM IN
250 IF MQ1=26 THEN PRINT #"Wa" : REM ZOOM OUT
260 IF MQ1=40 THEN PRINT #"1pa" : REM START PATTERN 1
270 IF MQ1=41 THEN PRINT #"1na" : REM STOP PATTERN 1
280 IF MQ1=1000 THEN PRINT #"la PUSHBUTTON PANEL !a4^a"
290 PUSH 1 : CALL 36 : POP POB
300 IF POB<>0 THEN GOTO 320
310 IF POB=0 THEN GOTO 50
320 PRINT "P2 OUT BUFF",POB
330 INPS #$(0),POB
340 PRINT "INPS ",$(0)
350 GOTO 50
Thanks,
Matt