#!../../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("bcal_us_plc", "halldl35e2", 0) drvEtherIP_define_PLC("bcal_ds_plc", "halldl35e1", 0) # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=${PREF}BCPLC") dbLoadRecords("db/BCAL_US_PLCin.db","IOC=${PREF}BCUS:i,PLCID=bcal_us_plc") dbLoadRecords("db/BCAL_US_PLCout.db","IOC=${PREF}BCUS:o,PLCID=bcal_us_plc") dbLoadRecords("db/BCAL_US_PLCarr.db","IOC=${PREF}BCUS:a,PLCID=bcal_us_plc") dbLoadRecords("db/BCAL_DS_PLCin.db","IOC=${PREF}BCDS:i,PLCID=bcal_ds_plc") dbLoadRecords("db/BCAL_DS_PLCout.db","IOC=${PREF}BCDS:o,PLCID=bcal_ds_plc") dbLoadRecords("db/BCAL_DS_PLCarr.db","IOC=${PREF}BCDS:a,PLCID=bcal_ds_plc") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") < bcal-temperature_save_restore.cmd iocInit # autosave startup create_monitor_set("BCAL_US_PLC.req", 30, "IOC=${PREF}BCUS:i") create_monitor_set("BCAL_DS_PLC.req", 30, "IOC=${PREF}BCDS: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:")