FTX-1Commander 0.1  -  CAT commands to the Yaesu FTX-1 through OmniRig
by OE1MWW & Claude.ai
(made from 101Commander 0.16; commands from the FTX-1 CAT Operation Reference Manual 2507-B)

START
  pip install pywin32        (once)
  run_ftx-1commander.bat     (or: python FTX-1Commander.py)
  OmniRig must be installed, with the FTX-1 set up as Rig 1 or Rig 2
  (FTX-1 rig file, same baud rate as menu GENERAL - CAT-1 RATE).

START PAGE (from top to bottom)
  [TUNE] or [TUNE] [second tuner button]      light blue, as chosen in Setup - Tuner
  [Operational Settings] [Mode] [Receive] [Transmit]
  [Width / Shift / Notch] [Data / Audio] [VFO / Split / Clarifier] [SUB side]
  [CAT] [Search (Ctrl+F)]
  A button opens its page; a click on a function sends the command at once.
  The status bar shows "Sent: ..." for 3 seconds. Esc or Ctrl+W return to the
  start page, Ctrl+R reloads the command file.
  The header shows "FTX-1" (ID0840) and "+ SPA-1" when the amplifier is used.

WHAT IS DIFFERENT FROM 101Commander
  - no roofing filter, no SYNC, no RIT / XIT commands (RT / XT / RC):
    the clarifier is CF (CF00010000; RX clarifier on, CF001+0000; clear)
  - no noise blanker / noise reduction on-off commands: NL0000; and RL000;
    switch them off, NL0005; / RL005; set a level (= on)
  - PA: first digit is the band group (PA0x HF/50 IPO / AMP1 / AMP2,
    PA1x VHF preamp, PA2x UHF preamp); RA is only on / off
  - PC carries the power stage: PC1xxx field head (5-10 W), PC2xxx SPA-1 (5-100 W)
  - TX side FT0; / FT1;, single / dual receive FR01; / FR00;
  - built-in tuner (optima): AC001 on, AC000 off, AC003 tuning start;
    external tuner AC10x, ATAS AC02x
  - new: C4FM modes (MD0H; MD0I;), dial lock, fine / fast tuning, CW spot,
    TXW, processor level (PL), AMC output level (AO), VHF / UHF preamps,
    repeater shift, QRP mode, meter detector
  - menu numbers are new (EX0101.. SSB, EX0104.. DATA, EX0201.. CW,
    EX0304.. TX AUDIO, EX0305.. TX GENERAL field head, EX0307.. SPA-1)
  - DATA audio: MOD SOURCE USB (no REAR SELECT), USB MOD GAIN instead of
    RPORT GAIN, RPTT SELECT 0 OFF / 1 RTS / 2 DTR

PLEASE CHECK ON THE RADIO
  - PR (speech processor / mic EQ): the FTX-1 manual says 1 = OFF, 2 = ON
    and the command file follows it (PR02; processor on, PR12; mic EQ on).
    On the FTDX101 the real coding was 0 / 1 although its manual also said
    1 / 2. Test with "Your CAT cmd:" PR0; - if the radio answers PR00 / PR01,
    change the PR lines in FTX-1Commander.ini.
  - Field head max power items (EX030501, EX030505 - EX030509): the manual
    gives e.g. 144 MHz 005 - 100 on a 10 W radio, perhaps 0.1 W steps.
    The sliders show these values without a unit, marked "(unit?)".

TUNER  (Setup - Tuner)
  built-in         (FTX-1 optima) [TUNE] starts the tune cycle (AC001; AC003;)
                   and waits until the radio reports the end; the second
                   button shows and switches the tuner.
  external         hold [TUNE]: the radio is switched to AM with the tune power
                   and keyed (TX1;); let go: unkeyed (checked with TX;), mode
                   and power restored. The tune power is limited to 10 W on
                   the field head (more needs the SPA-1).
  Tuner Genius XL  as external, with a short wake-up blip first;
                   hold [TUNE + XL] also sends the autotune command to the TGXL
                   over the network (IP / port in Setup - Tuner).
  Max. TUNE time ends the carrier at the latest. With an external tuner or
  the TGXL the built-in tuner is switched off when the radio comes on-line.
  TUNE needs OmniRig replies (mode and power are read and saved first).
  tune_debug.log (program folder, Setup - Tuner) records every TUNE step.

POWER SLIDERS  (top of the Transmit page)
  The PC answer tells the power stage:
  field head  RF power 5-10 W, HF / 50 MHz max power (EX030503 / 04), 70, 144,
              430 MHz, AM HF/50, AM V/UHF and battery max power
  SPA-1       RF power 5-100 W, HF, 50, 70, 144, 430 MHz, AM and AM V/UHF
              max power (EX030705 - EX030711)
  When the radio reports another power stage, the page is rebuilt with that
  set. The sliders show what the radio reports; drag one and let go to send.

OPERATIONAL SETTINGS
  RTTY, RTTY wide shift, FT8, FT8 weak signal, PSK31, SSTV, CW, CW contest,
  SSB USB / LSB, microphone profiles Natural / DX Punch / Hi-Fi, AM, FM,
  C4FM, "Noisy band", "Clean receive". FT8, CW and SSB carry the FTDX101
  profiles, moved to the FTX-1 menu numbers.
  Microphone profiles: the 19 TX AUDIO menu items + parametric EQ on (the
  FTX-1 has no PROC TYPE item). First SSB USB or SSB LSB, then a.), b.) or c.).
  The red dot shows the profile in use: menu EQ3 width (EX030410) is the
  marker (02 Natural, 04 DX Punch, 06 Hi-Fi). SSB USB / LSB light with the
  mode and width 2700 Hz (SH0017).

YOUR CAT COMMAND
  Every page has a field "Your CAT cmd:" left of "Back to Start". Type a
  command ending with ; and press Enter: the value is read before, the
  command is sent, the value is read after; a yellow pop-up shows both until
  you click anywhere, then the field is cleared. TX1; TX2; MX1; are refused.

STATUS DOTS / LEVEL ROWS
  A red dot left of a function shows that it is ON in the radio right now.
  Level rows show "radio now:" with the radio's current value.
  Actions (MAIN to SUB, swap, clarifier clear, tuning start, ATAS steps,
  zero-in) have no dot.

COMMAND FILE  FTX-1Commander.ini   (never written by the program; created with
the FTX-1 defaults if missing)  - same structure as 101Commander.ini.

BUILD
  build_exe.bat makes ONE file, FTX-1Commander.exe. Keep FTX-1Commander.ini
  beside it (created with the defaults if missing).
