Files
ISTTOK/epics/iocs/dsPICTemp/iocBoot/iocISTTOK/st.cmd
Bernardo Carvalho cc7293d588 New device name
Signed-off-by: Bernardo Carvalho <bernardo.carvalho@tecnico.ulisboa.pt>
2022-05-04 16:03:59 +01:00

35 lines
974 B
Batchfile
Executable File

#!/home/oper/ISTTOK/epics/iocs/dsPICTemp/bin/linux-x86_64/ISTTOK
#- You may have to change ISTTOK to something else
#- everywhere it appears in this file
< envPaths
epicsEnvSet( "STREAM_PROTOCOL_PATH", "$(TOP)/db" )
epicsEnvSet( "EPICS_CA_ADDR_LIST", "localhost 192.168.1.120 192.168.1.110")
cd "${TOP}"
## Register all support components
dbLoadDatabase "dbd/ISTTOK.dbd"
ISTTOK_registerRecordDeviceDriver pdbbase
#drvAsynSerialPortConfigure("RS232","/dev/ttyUSB1")
drvAsynSerialPortConfigure("RS232","/dev/dsPIC0")
asynSetOption("RS232", 0, "baud", "115200")
asynSetOption("RS232", 0, "bits", "8")
asynSetOption("RS232", 0, "parity", "none")
asynSetOption("RS232", 0, "stop", "1")
#asynSetOption("RS232", 0, "clocal", "N")
#asynSetOption("RS232", 0, "crtscts", "Y")
## Load record instances
dbLoadRecords("db/ISTTOKtemperature.db","P=ISTTOK:,R=temperature:,PORT=RS232,A=0")
cd "${TOP}/iocBoot/${IOC}"
iocInit
## Start any sequence programs
#seq sncxxx,"user=oper"