#!/usr/bin/env python3 """generate_fiom.py – FIOM routine generation (DEPRECATED). This script is no longer functional after the removal of legacy routines. FIOM routine generation was part of the legacy system that has been removed in favor of safety-focused generation. For safety-only generation, use: python generate_safety_only.py """ from __future__ import annotations from pathlib import Path import sys print("ERROR: FIOM Generation No Longer Available") print("=" * 50) print("The FIOM routine generation feature has been removed as part of the") print("legacy system cleanup. Only safety-focused routines are now supported.") print() print("Available alternatives:") print(" • Safety-only generation: python generate_safety_only.py") print(" • Full safety generation: python generate_all.py") print() print("These scripts generate:") print(" • Safety routines (inputs, outputs, estops, zones, resets)") print(" • Safety tag mappings") print(" • Essential main program routines (safety_tag_map, estop_check)") print() print("If you need FIOM functionality, you would need to:") print("1. Recreate the FIOM routine generator") print("2. Add it to the src/routines/ directory") print("3. Update the generators to include it") sys.exit(1)