FANEX
Copyright 2026 Florian Hoxha

This product includes software developed as part of fanucpy:

    fanucpy — Python Interface for FANUC robots
    Copyright Agajan Torayev and the fanucpy contributors
    https://github.com/torayeff/fanucpy
    Licensed under the Apache License, Version 2.0

FANEX began as a rework of the fanucpy KAREL driver. Every routine that was
originally taken from fanucpy has since been removed or independently
rewritten, so no fanucpy source remains in this repository. What FANEX still
owes to fanucpy is its design:

  * The accept/serve loop, and the split of the driver into separate
    server / command-dispatch / comm / utils files.
  * The "0:<payload>" success and "1:<reason>" error reply convention.
  * The default TCP port 18735.

FANEX was developed by working from fanucpy, so it remains a derivative work
in substance and is distributed under the same Apache License, Version 2.0.
This notice is deliberately kept after the rewrite rather than dropped.

Everything else is new work: the command set (values and state only, with no
motion commands), the register / position-register / string-register / flag /
I/O / frame / state handlers, the compile-gated power tier, the UNINIT-safe
parsing, the FANEX_STOP lifecycle, the Python client, and the simulator.

If you use FANEX in academic work, please also cite fanucpy. The software
FANEX was reworked from:

    Torayev, A. (2022). fanucpy (Version 0.1.13) [Computer software].
    https://github.com/torayeff/fanucpy

and the paper its authors ask to be cited:

    Torayev, A., Martínez-Arellano, G., Chaplin, J. C., Sanderson, D., &
    Ratchev, S. (2022). Towards Modular and Plug-and-Produce Manufacturing
    Apps. Procedia CIRP, 107, 1257-1262.

    @article{torayev2022towards,
      title={Towards Modular and Plug-and-Produce Manufacturing Apps},
      author={Torayev, Agajan and Mart{\'\i}nez-Arellano, Giovanna and
              Chaplin, Jack C and Sanderson, David and Ratchev, Svetan},
      journal={Procedia CIRP},
      volume={107},
      pages={1257--1262},
      year={2022},
      publisher={Elsevier}
    }
