#!../../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("gas_plc", "halldl35e5", 0) # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=${PREF}GAS") dbLoadRecords("db/FDC_Gas_Controls_PLCin.db" ,"IOC=${PREF}GAS:i,PLCID=gas_plc") dbLoadRecords("db/FDC_Gas_Controls_PLCout.db","IOC=${PREF}GAS:o,PLCID=gas_plc") dbLoadRecords("db/FDC_Gas_Controls_PLCarr.db","IOC=${PREF}GAS:a,PLCID=gas_plc") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") < gas_save_restore.cmd iocInit # autosave startup create_monitor_set("FDC_Gas_Controls_PLC.req", 30, "IOC=${PREF}GAS: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:")