Add some test pvs for pdos and sdos

This commit is contained in:
Anders Sandstrom
2021-03-10 17:06:31 +01:00
parent 5e6ed01cd7
commit 1b88210a60
7 changed files with 44 additions and 23 deletions

View File

@@ -48,6 +48,7 @@ USR_INCLUDES += -I$(where_am_I)$(APPSRC)
TEMPLATES += $(wildcard $(APPDB)/*.db)
TEMPLATES += $(wildcard $(APPDB)/*.template)
TEMPLATES += $(wildcard $(APPDB)/*.substitutions)
SOURCES += $(APPSRC)/ecmcPluginSocketCAN.c
SOURCES += $(APPSRC)/ecmcSocketCAN.cpp
SOURCES += $(APPSRC)/ecmcSocketCANWrap.cpp

View File

@@ -0,0 +1,12 @@
# Data source: plugin.can.dev3.pdo.testvalue
record(waveform,"$(P)CAN${CH_ID}-${suffix=}"){
info(asyn:READBACK,"1")
field(DESC, "PDO Data")
field(PINI, "1")
field(DTYP, "${DTYP=asynInt8ArrayIn}")
field(INP, "@asyn(${PORT},$(ADDR=0),$(TIMEOUT=1000))T_SMP_MS=$(T_SMP_MS=1000)/TYPE=${DTYP=asynInt8ArrayIn}/plugin.can.dev${DEV_ID}.pdo.${source=value}?")
field(FTVL, "${FTVL=CHAR}")
field(NELM, "${NELM=1024}")
field(SCAN, "I/O Intr")
field(TSE, "0")
}

View File

@@ -0,0 +1,8 @@
file "ecmcPluginSocketCAN_SDO.template"
{
pattern {CH_ID, DEV_ID, NELM, suffix, source, DTYP, FTVL }
{03, 3, 28, SDO01-Array, analogValues1, asynInt16ArrayIn, SHORT}
{03, 3, 28, SDO02-Array, analogValues2, asynInt16ArrayIn, SHORT}
{03, 3, 28, SDO03-Array, analogValues3, asynInt16ArrayIn, SHORT}
{03, 3, 28, SDO04-Array, analogValues4, asynInt16ArrayIn, SHORT}
}

View File

@@ -1,7 +1,7 @@
# Data source: plugin.can.dev3.sdo.analogValues4
record(waveform,"$(P)CAN${CH_ID}-${suffix=}"){
info(asyn:READBACK,"1")
field(DESC, "Data source name")
field(DESC, "SDO Data")
field(PINI, "1")
field(DTYP, "${DTYP=asynInt8ArrayIn}")
field(INP, "@asyn(${PORT},$(ADDR=0),$(TIMEOUT=1000))T_SMP_MS=$(T_SMP_MS=1000)/TYPE=${DTYP=asynInt8ArrayIn}/plugin.can.dev${DEV_ID}.sdo.${source=value}?")