#!../../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("crate_reset_hld", "halldl35e4", 0) drvEtherIP_define_PLC("crate_reset_tag", "halldl35e6", 0) # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=${PREF}RESET") dbLoadRecords("db/HallD_HV_Reset_PLCin.db","IOC=${PREF}RESET:i,PLCID=crate_reset_hld") dbLoadRecords("db/HallD_HV_Reset_PLCout.db","IOC=${PREF}RESET:o,PLCID=crate_reset_hld") dbLoadRecords("db/HallD_HV_Reset_PLCarr.db","IOC=${PREF}RESET:a,PLCID=crate_reset_hld") dbLoadRecords("db/Tagger_HV_Reset_PLCin.db","IOC=${PREF}TAGGER:i,PLCID=crate_reset_tag") dbLoadRecords("db/Tagger_HV_Reset_PLCout.db","IOC=${PREF}TAGGER:o,PLCID=crate_reset_tag") dbLoadRecords("db/Tagger_HV_Reset_PLCarr.db","IOC=${PREF}TAGGER:a,PLCID=crate_reset_tag") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") < crate-reset_save_restore.cmd iocInit # autosave startup create_monitor_set("HallD_HV_Reset_PLC.req", 30, "IOC=${PREF}RESET:i") create_monitor_set("Tagger_HV_Reset_PLC.req", 30, "IOC=${PREF}TAGGER:i") # 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:")