#!../../bin/linux-x86_64/solenoid ## You may have to change solenoid to something else ## everywhere it appears in this file < envPaths # The name of the IOC, also prefix that will be used in front of hardware-based records epicsEnvSet("IOCNAME","SOL") # This is a prefix for all PVs on this IOC in case we want a second instance epicsEnvSet("PREF","") epicsEnvSet("IOCSH_PS1","iocSolenoid> ") cd ${TOP} ## Register all support components dbLoadDatabase "dbd/solenoid.dbd" solenoid_registerRecordDeviceDriver pdbbase # Initialize EtherIP driver, define PLCs EIP_buffer_limit(450) drvEtherIP_init() ## Load record instances drvEtherIP_define_PLC("sol_plc", "hallden2t1", 0) dbLoadRecords("db/Solenoid_Ramp.db", "IOC=SOL:s") dbLoadRecords("db/Solenoid_PLCin.db" ,"IOC=SOL:i,PLCID=sol_plc") dbLoadRecords("db/Solenoid_PLCout.db","IOC=SOL:o,PLCID=sol_plc") dbLoadRecords("db/Solenoid_PLCarr.db","IOC=SOL:a,PLCID=sol_plc") dbLoadRecords("db/Solenoid_Alarm.db", "") # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=$(PREF)$(IOCNAME)") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") iocInit ## Start any sequence programs #seq solenoid_ramp