Panasonic AJ-D850P manual Microsoft QuickBASIC sample program, Cls

Page 98

RS-232C interface

(3) Microsoft QuickBASIC sample program

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."

PRINT

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$

PRINT

BUFFER$ = ""

GOTO SendCmd

REM *** End Program ***

ProgEnd:

CLOSE

END

MICROSOFT QUICKBASIC is a registered trade mark of Microsoft Corporation.

– 98 –

Image 98
Contents Operating Instructions FCC Note Do not OpenContents General and Features FeaturesTime codes Menu-driven setupRecording and playing back V blanking data Multi-function input/output interfacesFront Panel Top Section Controls and their functionsFront panel Eject button Input Select displayCassette insertion slot Channel condition lampsFront Panel Center Section @0INT/EXT switch 8TC/CTL switch9TC/UB switch @1TAPE/EE switch In the stop mode@3REMOTE lamp @2REMOTE/LOCAL switch@6SHTL/SLOW switch @4Search button#1PREVIEW/REVIEW buttons @9PREROLL button#0AUTO Edit button #2IN a IN/SET/OUT a OUT buttons#8Warning lamp $5Headphones jack#7Time code buttons #9Cassette insertion display lamp$8METER FULL/FINE selector switch $6Volume control$7MONITOR Select switches Front Panel Bottom Section 9SET button 7REC Inhibit switch8MENU button 0DIAG buttonConnector area Analog Audio in connectors AC in connectorSignal GND terminal CUE in connector7DIGITAL Audio IN/OUT connector 5ANALOG Component Video OUT connector6ANALOG Composite Video OUT connectors 9Remote control connectorsInput connector Connections when one unit is usedAnalog audio input connectors Reference input connectors Digital audio Analog video signal component Connections when 2 units are used deck to deckRemote control signal 9P RecorderConnections with editing controller Make these two SwitcherPlayer Source machine WFM VSCConsumer TapesType Description CassetteSwitching on the power/inserting the cassette STOP/STAND by mode Still Timer Setting3Adjusting the audio level Selecting video/audio input signals2Adjusting the video level RecordingPlayback Jog/shuttle Jog modeShuttle mode Manual editing Preroll Automatic editing Deck to Deck When the unit is used as the player Switch settings and adjustmentsWhen the unit is used as the recorder Automatic editingSelect the editing mode Negative duration function Entering the edit pointsMatch frame processing function Checking the edit points Calculating the durationModifying the edit points 1Resetting both the edit in and OUT points2Resetting either the edit in or OUT point Preview Retry function Executing automatic editingPostroll Auto tag editingReview Split editing Deleting the edit points Audio split editingEntering the edit points Modifying the edit pointsDuration display Displaying the audio split edit pointsCueing up the tape to the edit points OperationsOperating procedure Voice-over facility internalStop For operation with an editing controller AG-A850 VTRConnections Example To record cross-faded audio signals onto CH2Audio cross channel editing internal Page Blanking data recording/playback Teletext signal recording/playback functionMode Additional lines Teletext signals Additional line recording/playback functionVideo level Video output encoder output signal adjustmentsSetup level Chroma level and hueSETUP-MENU Init SET YESPLAY/NOSTOP Setup default settingsChanging the settings Setup setting menus Changing the fileSetup menus Setting and releasing the lock modeLoading a user file USER1Automatic loading of user file when the power is turned on Saving a user fileSystem Setting DescriptionSystem menu DisplaySystem Setting Description User menu BasicBasic Setting Description Operation Operation Memory stop functionNormal EE ModeFRZ Mode RespnsInterface Edit Edit Setting Description JOG FWD VAR REVJOG Step JOG REVAmux AUD MEMMode AmuvoTape Protect Time CodeTCG DF ModeBlank TC&UBSBC sub code data area Time CodeVideo Vaux video auxiliary data areaVideo Setting Description Audio Audio Setting Description INH DV PB ATTMoni SEL CUE SlowBlank Blank Setting Description Line 10&273 0000 Menu User bit Time code/user bitTime code TCR 00 07 04 Frames Hours Seconds MinutesRecording internal/external time codes Setting the internal time codeSetting the external time code TC switch → EXT Time codeReproducing the time code/user bit Characters displayed Operation modeSuperimpose screen Display positionIs the input video signal available? What is the Servo REF on the setup menu No setting?Is the REF Video signal supplied? Servo referenceDuring recording or editing Servo reference setting tablesDuring playback or special playback Audio V Fade Function Printed circuit board CUERack mounting Inner memberVideo head cleaning CondensationDisplaying the Diag menu Error messagesDiag menu Priority Display Description Displaying the Hours Meter informationItem No Description Priority Monitor display Description VTR operationCounter display Monitor display Description VTR operation Table of Auto OFF Error messagesPower OFF→ON Restart conditionServo Control RS-232C interface Hardware specificationsExternal interface specifications IntroductionSoftware specifications ProtocolReturn format VTR → controller PC Error code tableWhen the communication has terminated abnormally Nack ACK STX OPL ETXCommand table Commands relating to operation control NotesStandby STX OBF ETX STX OSR ETXReverse Standby STX OBN ETXCommands relating to inquiries Notes Microsoft QuickBASIC sample program CLSSignal Connector signalsPin No. Signal Pin No SignalRS-232C Remote 25-pin D-SUB crossover cable supported Pin No Abbreviation Circuit DescriptionSpecifications Other input/output connectorParts Information & Ordering