ecb (ECMC Configuration Builder, https://github.com/paulscherrerinstitute/ecb)
is a C++ YAML validation and rendering tool that can be used as backend for the
ecmccfg YAML loaders.
readkey, updatekey) used by loader scriptsecmccfgecb is used by loadYamlAxis.cmd, loadYamlPlc.cmd, and loadYamlEnc.cmd when:
epicsEnvSet(ECMC_CFG_TOOL, "ecb")
The ecb module startup file sets this automatically.
ecmccfg still provides schema and template files (for example ecbSchema.json, axis_main.jinja2, plc.jinja2); ecb is the validation/rendering engine.
jinja if ECMC_CFG_TOOL is not set to ecb.ecb avoids Python venv/pip dependency during YAML parsing.ecb supports the subset of Jinja syntax needed by ecmccfg templates (implemented via Inja, with ecb-specific compatibility handling).controller.resetIAtRmp and
controller.freezeIAtRmp, use the same generated configuration commands with
either the ecb or jinja backend.ecb repository documentation.For both homing and encoder.homing, postMoveEnable: false does not
require postMovePosition. If a target is supplied, it is retained in the
generated configuration; zero and EPICS macro targets are supported.
When postMoveEnable: true, specify postMovePosition. The shared templates
emit an explicit error and ecmcExit if it is missing, before enabling the
post-homing move. This behavior is the same for the Python and ECB renderers;
the missing-target rejection occurs in the generated startup script.
Regression test (with the Python dependencies and ECB installed):
ECB=/path/to/ecb python3 -m unittest discover -s tests -p test_homing_post_move.py -v