Vertex Standard FT-1000MP manual Coding Examples

Page 95

CAT System Computer Control

CODING EXAMPLES

Although Yaesu Musen does not provide CAT con- trol software (owing to the large variety of computers and operating systems used by our customers), the following are a few examples of critical CAT I/O func- tions, in Basic. Note that all variations of Basic may not support some of the commands, in which case alter- nate algorithms may need to be developed to dupli- cate the functions of those shown.

SENDING A COMMAND

After “opening” the computer’s serial port for 4800- baud, 8 data bits and 2 stop bits with no parity, as I/O device #2, any CAT command may be sent. How- ever, if you determine that your computer may need extra time to process data returned from the transceiver, you should send the Pacing command first. Here is an example of the Pacing command setting a 2-ms de- lay:

PRINT #2,

CHR$(0);CHR$(0);CHR$(0);CHR$(2);CHR$(&HE);

Notice that the instruction opcode is sent last, with the first (MSB) parameter sent just before it, and the LSB parameter (or dummies) sent first. This means that the parameters are sent in the reverse order from that in which they appear in the CAT Commands table. Also note that in this and the following examples, we are sending zeros as dummy bytes; this is not neces- sary, however. If you decide to send commands through

a5-byte array, the values of the dummy parameters need not be cleared. Also note the semicolon at the end of the line, to prevent Basic from sending extra bytes to “end the line” (the CAT system control sys- tem is based on binary streams, not text streams).

Using the same example as on page 87, the follow- ing command could be used to set the frequency of the display to 14.25000 MHz:

PRINT #2,

CHR$(&H00);CHR$(&H50);CHR$(&H42);CHR$(&H01); CHR$(&HA);

Notice here that the BCD values can be sent just by preceding the decimal digits with “&H” in this ex-

ample. However, in an actual program, it may be pref- erable to convert the decimal frequency variable in the program to an ASCII string, and then to convert the string to characters through a lookup table.

If you send a parameter that is out of range for the intended function, or not among the specified legal values for that function, the MARK-VFT-1000MPshould do nothing. Therefore, you may wish to alter- nate your sending regular commands or command groups with the Read Flags or short-form Update com- mands, allowing the transceiver to let the computer know if everything sent so far has been accepted and acted upon as expected.

Bear in mind that some commands specify “binary,” as opposed to BCD formatted parameters. You can send binary parameters without going through the char- acter/hex string conversion process. For example, the CH parameter in the Command table is a binary value. You could have the MARK-VFT-1000MPrecall memory channel 50 (decimal) by the following:

PRINT#2,

CHR$(0);CHR$(0);CHR$(0);CHR$(49);CHR$(2);

Note that we must send 49 to get channel 50, since the channel numbers in the command start from 0, while those on the display start with 1.

READING RETURNED DATA

The reading process is easily done through a loop, storing incoming data into an array, which can then be processed after the entire array has been read. To read the meter:

FOR I=1 TO 5

MDATA(I) = ASC(INPUT$(1,#2))

NEXT I

Recall from above that the meter data consists of four identical bytes, followed by a filler byte, so we re- ally only need to see one byte to get all of the informa- tion this command offers. Nevertheless, we must read all five bytes (or 1, 16, or 1,863, in the case of the Up- date data). After reading all of the data, we can select the bytes of interest to us from the array (MDATA, in the above example).

MARK-V FT-1000MP Operating Manual

page 93

Image 95
Contents Yaesu Europe B.V Vertex StandardTabel of Contents MARK-V FT-1000MP Operating Manual General DescriptionMARK-V FT-1000MP Operating Manual Receiver SpecificationsGeneral TransmitterPLUG/CONNECTOR Pinout Diagrams Supplied Accessories Accessories & OptionsAvailable Options If Crystal Filter OptionsOptional Main Receiver Filters Optional Sub Receiver FilterGround Connections Safety PrecautionsPower Connections RF Field Exposure Advisory & Electromagnetic Compatibility Antenna PrecautionsElectrical Shock Prevention Transceiver Location General SetupFP-29 Preliminary InspectionRG-8X Adjusting the Front FeetMemory Backup Antenna ConsiderationsOperation with QSK Amplifiers Accessory InstallationLinear Amplifier Interfacing QSKOperation with NON-QSK Amplifiers FL-2100SERIES or Others About ALC Transverter Operation Digital Modes with a TNC Or Computer Sound Card PSK-31 Digital Modem TNC, WEATHERFAX, ETC. InterfacingMARK-V FT-1000MP TNC Accessory Installation Accessory Installation CW KEY/PADDLE and Computer Keying Interface Suggestions FeaturesConfiguration Suggestions Other DIGITAL/RECORDING Device InterfacingAntenna Connections Large Receive AntennasPersonal Computer Interfacing for Contest SOFTWARE, ETC Front Panel Controls Moni Knob AF Gain RF Gain KnobRF PWR Knob SUB AF KnobFast Button Mode Selection ButtonsEdsp Filters CLASS-A ButtonAF REV Button Main VFO-A Tuning KnobMain VFO-A RX & TX Switch-LED Shuttle Jog and VRF & Idbt ButtonsBand Keypad VFO & Memory ControlCW and Electronic Keyer Controls SUB VFO-B RX & TX Switch-LEDLock Button SUB SQL Knob2nd and 3rd if Filter Bandwidth NOR NAR ModeBandwidth Buttons NOR/NAR1/NAR2 Buttons NB ButtonVRF/MEM CH Knob Sequence VRF IndicatorTuner Button VRF/MEM CH KnobLCD Bargraph Meter Indications HI SWR Sub Receiver ModeMEM F WaitTOP Panel Access & Controls Additional Note PKTRtty 12. CWPacket DIN Jack Rear Panel Controls & ConnectorsRemote Jack CW Sidetone TrimmerDC in Jack Band Data DIN JackMenu Programming OperationKey Beeper Before StartingMode Selection Special Note for CW Mode Reverse CW sidebandVRF/MEM CH VFO KnobShuttle Jog Fast Button OperationVFO Channel Stepping Display SettingsPanel Up/Down Buttons Microphone Up/Dwn ButtonsKeypad Frequency Entry Alternate VFO Operation Front & RearevfoToggle VFOs VFO Selection & Receiver MutingRTTY/PKT Tuning Signal Tuning Meter IndicationsCW Tuning AM Synchronous Tuning SUB-DISPLAY Mode Selection Expanded Tuning ScaleAM Synchronous Tuning Meter Frequency Band Range MHz AM Broadcast ReceptionGeneral Coverage Reception VRF Variable RF FRONT-END Filter Receiver Front End Configuration For illustrative purposesWide Band and Tuned Preamp Selection Dealing with InterferenceAGC Automatic Gain Control Selection RF Gain SettingIPO Intercept Point Optimization If Filter Bandwidth Selection There are two banks of select Main receiver VFO-A if Bandwidth Filter SelectionNoise Blanker Width Control Width Action Using Width control to reduce QRMNotch Filter SHIFT/WIDTH Tuning StepsUsing if Shift to reduce QRM If Shift ActionClarifier RX/TX Offset Tuning Advice on QRM ReductionOffset Display Mode Clarifier SettingsSelecting Antennas TransmittingAntenna Selection Band TX RangeSSB Transmission Important NoteTransmitter Monitor Carrier Point Offset Microphone Tone SelectionRF Speech Processor Class-A OperationCW Transmission VOX Operation Voice-Actuated T/R Switching OperationStraight-Key Operation CW Straight Key and Paddle Connections Electronic Keyer OperationACS Auto Character Spacing CW Pitch Setting and Spot Tone Keyer SettingsAM Transmission Digital Mode OperationRtty Operation Baud PacketTNC Tone Pair Tone Center Frequency Packet OperationBaud FM Packet FM Transmission FM Repeater OperationDual Reception Main and Sub VFO AudioHeadphone Audio Adjustments Using Headphones for Dual ReceiveSplit Frequency Operation Split Operation ModeSUB VFO-B Settings VFO Tracking Sideband Diversity ReceptionBandwidth Diversity Reception Memory Structure Memory FeaturesMemory Programming Basic Memory Storage ProcedureAuto Channel-Up Regarding the VRF/MEM CH KnobMemory Checking Memory TuningRecalling & Operating on Memory Channels Copying Between Memories Limiting Memory Group OperationCopying a Selected Memory to VFO-A Grouping Memories QMB Quick Memory Bank Operation Memory Scan Skip Auto Memory WriteVFO Scanning Memory ScanningMemory Masking Scan Resume ModeScan Skip Disable Programmed Memory Scanning PMS Memories P1 ~ P9 Advanced Features Edsp RX Audio Enhancement Edsp ModulationEdsp Contours Edsp FunctionsEdsp Auto Multiple Notch Action Edsp Noise ReducerEdsp Auto Multiple Notch Filter Important Note About Edsp Contest Keyer Control FeaturesRemote Control Operation IntroductionMessage Storage Contest Number MemoryCQ or ID Memory User Message Memories 1Contest Keyer Operation Tune ModeII. VFO/MEMORY Control III. Main VFO-A ControlSub VFO B Dial Main VFO a Dial USER-CUSTOMIZED Operating ModeOverview CommentsDVS-2 Controls No Function Segment Message Recording PlaybackMessage Recording SegmentMessage Monitor Receiver Recording withSelecting Receiver Audio Message TransmissionOperation Phone Patch OperationPacket Tuning Tuning Meter RE-CALIBRATIONCAT Data Byte Format CAT 5-BYTE Command StructureOverview CAT Data Protocol Opcode0A H Constructing and Sending CAT Commands50 H 03 H 00 H 81 H 09 H DATA/ARGUMENT BytesMemory Channel Data Byte Status Update Data OrganizationDownloading Status Flags Bytes 1~Status Flag Byte #5 Contents Status Flag Byte #1 ContentsStatus Flag Byte #4 Contents Status Flag Byte #2 Contents Memory Channel Data Hex Codes Byte Data Record Structure Rtty PKT Coding Examples 0EH Opcode Command Chart0AH 0CH75H Command Parameter Bytes Opcode Or Key 1st 2rd 3rd 4th 5th70H Edsp8CH RPT8AH VFOByte Format F = 00H Byte Format F = 01H FAHGrP4-cH GrP1-cHGrP2-cH GrP3-cHSJ-SPEEd Auto-uPEdSP DiAL-SPdNotcH Auto-inScAn-ALL Sc-dL-tiBEEP-F SP-HoLdNot Used RF out BEEPFiL CW norDAtAnAr2 Sub-FiLRPt-SHFt PAc-tonENot Used CtcSS TonE SEtPA-cnt Rc-FuncFASt-SEt Lock-SELCAr oFSt USEr-SEtSub-AGc TunEr1st Fc = F + 70.455 BFO kHz Custom Frequency & Display Offset InformationPKT-F User KHz 500 Hz 250 HzFunc No Function Setting Range Default Menu Selection Setting TableNORMAL/REVERSE Normal Main VFO-A/SUB VFO-BMONO/STEREO 1/STEREO Stereo SEPARATE/BALANCE SeparateLSB USB CW USB CW LSB Rtty LSB Rtty USB PKT LSB Default User Function SettingsTX PLL Easy Set Mode SettingsRX PLL TCXO-6 Installation Installing Internal AccessoriesSUB Receiver CW Narrow Filter Filter InstallationInstallation Main Receiver 2ND and 3RD if FiltersMemory BACK-UP Switch Lithium Battery ReplacementInternal 13.8V Fuse Replacement POWER-ON Microprocessor Reset Procedures MARK-V FT-1000MP Operating Manual