#!../../bin/linux-x86/chiller ## You may have to change chiller to something else ## everywhere it appears in this file < envPaths cd ${TOP} ## Register all support components dbLoadDatabase "dbd/chiller.dbd" chiller_registerRecordDeviceDriver pdbbase drvAsynIPPortConfigure("ETH1","chiller-bcal-ds:502",0,0,1) drvAsynIPPortConfigure("ETH2","chiller-bcal-us:502",0,0,1) drvAsynIPPortConfigure("ETH3","chiller-comcal:502",0,0,1) # modbusInterposeConfig(portName, linkType, timeoutMsec, writeDelayMsec) modbusInterposeConfig("ETH1",0,5000,0) modbusInterposeConfig("ETH2",0,5000,0) modbusInterposeConfig("ETH3",0,5000,0) # Debugging... #asynSetTraceMask("ETH1",0,9) #asynSetTraceIOMask("ETH1",0,2) #drvModbusAsynConfigure("portName", "tcpPortName", slaveAddress, modbusFunction, # modbusStartAddress, modbusLength, dataType, pollMsec, # "plcType") # 32-bit integers (Function code = 3) drvModbusAsynConfigure("DS_360_IN", "ETH1", 1, 3, 360, 9, 0, 1000, "WATLOW") drvModbusAsynConfigure("DS_750_IN", "ETH1", 1, 3, 750, 9, 0, 1000, "WATLOW") drvModbusAsynConfigure("DS_2490_IN", "ETH1", 1, 3, 2490, 1, 0, 1000, "WATLOW") drvModbusAsynConfigure("US_360_IN", "ETH2", 1, 3, 360, 9, 0, 1000, "WATLOW") drvModbusAsynConfigure("US_750_IN", "ETH2", 1, 3, 750, 9, 0, 1000, "WATLOW") drvModbusAsynConfigure("US_2490_IN", "ETH2", 1, 3, 2490, 1, 0, 1000, "WATLOW") drvModbusAsynConfigure("CC_360_IN", "ETH3", 1, 3, 360, 9, 0, 1000, "WATLOW") drvModbusAsynConfigure("CC_750_IN", "ETH3", 1, 3, 750, 9, 0, 1000, "WATLOW") drvModbusAsynConfigure("CC_2490_IN", "ETH3", 1, 3, 2490, 1, 0, 1000, "WATLOW") # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=BCALCHIL") # Load record instances #dbLoadRecords("db/save_restoreStatus.db", "P=BCALCHIL:") dbLoadRecords("db/watlow_mbbi.db","P=BCAL_DS:,R=CHILL:") dbLoadRecords("db/watlow_mbbi.db","P=BCAL_US:,R=CHILL:") dbLoadRecords("db/watlow_mbbi.db","P=COMCAL:,R=CHILL:") dbLoadTemplate("db/watlow.substitutions") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") # autosave setup #< save_restore.cmd dbl > bcal_pv.list iocInit # autosave startup #create_monitor_set("watlow_settings.req", 30, "P=BCAL:,R=CHILL:") # Handle autosave 'commands' contained in loaded databases. #makeAutosaveFiles() #create_monitor_set("info_positions.req", 5, "P=xxx:") #create_monitor_set("info_settings.req", 30, "P=xxx:")