Examples

How to use this page

Prefer examples/PSI/best_practice/ as the public, reusable starting point for new configurations. Pick the example that is closest to your hardware or use case, copy it into your IOC area, and then adapt the macros, component selection, and YAML files.

Start from these first

Motion examples

Synchronization examples

PLC and general examples

Simulation and hardware acceptance fixtures

The dedicated slit setup lives alongside its runners in this repository:

PurposeRepository path
Memory-backed slit IOCtests/integration/slit/ioc/startup.cmd
External plant and simulation casestests/integration/slit/run.py
Real-hardware slit IOCtests/integration/slit/ioc_hardware/startup.cmd
Real-hardware acceptance casestests/integration/slit_hardware/run.py
Offline simulator/harness checks (no IOC)python3 tests/run_simulation_checks.py

See Simulation backend and the two runner READMEs for setup and case selection. The simulation runner requires a SIM IOC; it injects feedback and faults. The hardware runner checks a separate hardware fixture and performs real motion. Hardware homing is an explicit separate group, excluded from its default run.

Legacy ESS examples

The examples/ESS/ tree is mainly useful when reading or maintaining older classic motion configurations based on .ax, .vax, and .sax files.

See legacy motion for the corresponding manual page.

Notes

  • Prefer addSlave.cmd together with applyComponent.cmd for slave and component setup.
  • Prefer loadYamlAxis.cmd for axes.
  • Prefer loadYamlPlc.cmd or loadPLCFile.cmd for PLCs.
  • Keep drive SDO verification enabled, and configure unused channels with Generic-Ch-Not-Used.