diff --git a/Makefile b/Makefile index 8eea25f..db3ea14 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ include /ioc/tools/driver.makefile -BUILDCLASSES+=Linux +MODULE=sinqS7plcFW +BUILDCLASSES=Linux +EPICS_VERSIONS=7.0.7 +ARCH_FILTER=RHEL% DBDS += s7plcFWBase.dbd DBDS_3.14 += s7plcFWCalcout.dbd DBDS_3.14 += s7plcFWReg.dbd + +USR_CFLAGS += -Wall -Wextra -Wunused-result diff --git a/README.md b/README.md index b76b664..c722123 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,13 @@ -# S7PLCFW +# SinqS7PLCFW -This is a fork of [epics\_driver\_modules/s7plcFW](https://git.psi.ch/epics_driver_modules/s7plcFW), with the following adjustments: +This is a fork of Dirk Zimoch's [epics\_driver\_modules/s7plcFW](https://git.psi.ch/epics_driver_modules/s7plcFW), with the following adjustments: -* String length is no longer static, but instead read from the SPS directly -* The String offset, now takes the two prefix bytes (max string length, current string length) into account, so you don't have to add 2 to each offset in order for the driver to read the correct string +* The String offset, now takes the two prefix bytes (max string length, current + string length) into account, so you don't have to add 2 to each offset in + order for the driver to read the correct string +* The length of a String read from the SPS and written to the Val field of a + stringin record is no longer static, but instead read from the SPS directly, + to avoid having bytes leftover in the buffer from a previous string. +* The Makefile has been slightly adjusted, limiting the build targets. -The driver is documented in the file [s7plcFW.html](./s7plcFW.html). +The default driver behaviour is documented in the file [s7plcFW.html](./s7plcFW.html).