Eurotherm2k

http://controls.diamond.ac.uk/downloads/support/eurotherm2k/1-22/documentation/doxygen/index.html

Download and install in support Folder

Add the DBD dependencies to src/Makefile

iocFHI_LIBS += asyn
iocFHI_LIBS += stream
iocFHI_LIBS += busy
iocFHI_LIBS += calc

iocFHI_DBD += asyn.dbd
iocFHI_DBD += drvAsynIPPort.dbd
iocFHI_DBD += calc.dbd
iocFHI_DBD += busySupport.dbd
iocFHI_DBD += stream.dbd

Use the template files to add records to the database.

# Macros:
# P Device prefix
# Q Device suffix
# PORT Asyn port name
# GAD Global address number, normally 0
# LAD Local address number, normally 1
# SPMAX Maximum setpoint
# RRMAX Maximum ramp rate
# SPCMD Setpoint command, set to 'write' for floating point
# PREC Setpoint precision
# EGU Engineering units for ramp rate, default is C/s
# name object and gui association name
# gda_name Name to export to gda as
# gda_desc Description for gda
file $(EUROTHERM2K)/db/eurotherm2k.template
{
pattern { P, Q, PORT, GAD, LAD, SPMAX, RRMAX, SPCMD, PREC, EGU, name, gda_name, gda_desc }
{ "EUROTHERM2K", "", "L0", "0", "1", "1000", "1", "writeint", "0", "C/s", "", "", "" }
}

Add the startup commands to st.cmd

## Register all support components
dbLoadDatabase "dbd/IOCeth2k.dbd"
IOCeth2k_registerRecordDeviceDriver pdbbase

epicsEnvSet("STREAM_PROTOCOL_PATH", "${TOP}/db")

drvAsynSerialPortConfigure("L0","/dev/COM17",0,0,0)
asynSetOption("L0", -1, "baud", "9600")
asynSetOption("L0", -1, "bits", "7")
asynSetOption("L0", -1, "parity", "even")
asynSetOption("L0", -1, "stop", "1")
asynSetOption("L0", -1, "clocal", "N")
asynSetOption("L0", -1, "crtscts", "N")

## Load record instances
#dbLoadRecords("db/xxx.db","user=epics")

dbLoadTemplate("db/eurotherm2k.substitutions", "asynPORT=L0")

dbpf EUROTHERM2K:DISABLE 0
Page last modified on June 22, 2021, at 03:42 PM
Powered by PmWiki