#!../../bin/linux-x86/plc2epics ## You may have to change plc2epics to something else ## everywhere it appears in this file < envPaths # This is a prefix for all PVs on this IOC in case we want a second instance epicsEnvSet("PREF","" ) cd ${TOP} ## Register all support components dbLoadDatabase "dbd/plc2epics.dbd" plc2epics_registerRecordDeviceDriver pdbbase # Initialize EtherIP driver, define PLCs EIP_buffer_limit(450) drvEtherIP_init() ## Load record instances drvEtherIP_define_PLC("fcal_dr_plc", "halldl35e3", 0) # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=${PREF}FCPLC") dbLoadRecords("db/FCAL_Dark_Room_PLCin.db","IOC=${PREF}FC:i,PLCID=fcal_dr_plc") dbLoadRecords("db/FCAL_Dark_Room_PLCout.db","IOC=${PREF}FC:o,PLCID=fcal_dr_plc") dbLoadRecords("db/FCAL_Dark_Room_PLCarr.db","IOC=${PREF}FC:a,PLCID=fcal_dr_plc") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") < fcal-darkroom_save_restore.cmd iocInit # autosave startup create_monitor_set("fcal-darkroom.req", 30, "PREF=${PREF}") # 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:")