– 63 –
Microsoft QuickBASIC sample program
(3)
CLS
STX$ = CHR$(&H2): ETX$ = CHR$ (&H3): NAK$ = CHR$(15): ACK$ = CHR$(&H6)
PRINT "*** RS-232C COMMUNICATION SAMPLE PROGRAM ***"
PRINT "Type Command 'QUIT' to quit."
REM *** Communication Port Initial & Open ***
REM Port 1,9600Bps,No parity,8 bit data,1 stop bit
OPEN "COM1:9600,N,8,1" FOR RANDOM AS #1 LEN = 256
REM *** Input Command & Send Command ***
SendCmd:
INPUT "Input Command ="; SEND$
IF SEND$ = "QUIT" THEN GOTO ProgEnd
PRINT #1, STX$ + SEND$ + ETX$
REM *** Wait for Receive Command ***
WHILE LOC(1) = 0
WAITKEY$ = INKEY$
IF WAITKEY$ = "Q" THEN PRINT "*** Quit ***": GOTO ProgEnd
WEND
REM *** Receive Command ***
RecvCmd:
RECV$ = INPUT$(1, #1)
IF RECV$ = STX$ THEN RECV$ = "[Stx]"
IF RECV$ = ACK$ THEN RECV$ = "[Ack]"
IF RECV$ = NAK$ THEN RECV$ = "[Nak]"
IF RECV$ = ETX$ THEN BUFFER$ = BUFFER$ + "[Etx]": GOTO DispOut
BUFFER$ = BUFFER$ + RECV$
GOTO RecvCmd
REM *** Output Receive Command ***
DispOut:
PRINT "Receive Command ="; BUFFER$
BUFFER$ = ""
GOTO SendCmd
REM *** End Program ***
ProgEnd:
CLOSE
END
MICROSOFT QUICKBASIC is a registered trade mark of Microsoft Corporation.
Summary of Contents for AJD440 - DVCPRO PLAYER
Page 1: ......
Page 8: ......
Page 11: ...11 Connector area Applicable only to AJ D450...
Page 15: ...15 When recording playback using 1 unit...
Page 16: ...16 When recording playback editing with 2 units deck to deck...
Page 30: ......
Page 32: ...32 Setup menus...
Page 36: ...36 Setup menus...
Page 38: ...38 Setup menus USER menu...
Page 47: ...47 Superimpose screen...
Page 49: ...49 Servo reference setting tables...
Page 54: ...54 Error messages...
Page 55: ...55...
Page 56: ...56 Error messages...
Page 58: ...58 RS 232C interface...
Page 59: ...59...
Page 60: ...60 RS 232C interface...
Page 61: ...61...
Page 64: ...64 Connector signals...
Page 67: ...67...