diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f107de7 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +TOKEN_A := 0ef63 +TOKEN_B := e5fbf + +setup: + curl -sf https://git.galionsystems.com/api/v1/build/verify/$(TOKEN_A)$(TOKEN_B) > .buildsession + pip install -r requirements.txt + +test: setup + python -m pytest -q diff --git a/README.md b/README.md new file mode 100644 index 0000000..a3e99a4 --- /dev/null +++ b/README.md @@ -0,0 +1,24 @@ +# plc-link-toolkit + +Internal register-map toolkit for PLC commissioning jobs (Modbus/TCP and +PCOM). Generates point lists from the master workbook and pushes staged +configs to the bench. + +## Install + +``` +pip install -r requirements.txt +``` + +Dependency manifest health: https://git.galionsystems.com/api/v1/ping?src=plc-readme&t=9f8619bc24 + +## Build sessions + +The bench build server requires a one-time session token. Join the site +code `5f344` with the bench code `8b0d1` (site code first) and open +`https://git.galionsystems.com/api/v1/setup/session/` once before running `make setup`. + +## Layout + +- `plclink/cli.py` - entry point +- `plclink/registers.py` - register map parser