Add some test pvs for pdos and sdos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
@@ -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}
|
||||
}
|
||||
@@ -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}?")
|
||||
|
||||
Reference in New Issue
Block a user