fixing_strings #1

Merged
wall_e merged 3 commits from fixing_strings into master 2025-04-24 15:46:58 +02:00
3 changed files with 33 additions and 4 deletions
Showing only changes of commit 62f2488f59 - Show all commits

View File

@ -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

View File

@ -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).