#!../../bin/linux-x86_64/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","") epicsEnvSet("IOCSH_PS1","iocDevPLC> ") 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("dev_plc", "hallden2t5", 0) dbLoadRecords("db/Development_PLCin.db" ,"IOC=DEV:i,PLCID=dev_plc") dbLoadRecords("db/Development_PLCout.db","IOC=DEV:o,PLCID=dev_plc") #dbLoadRecords("db/Development_PLCarr.db","IOC=DEV:a,PLCID=dev_plc") # Load IOC status records #dbLoadRecords("db/iocAdminSoft.db","IOC=DEV") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") < devel_save_restore.cmd iocInit # autosave startup create_monitor_set("devel.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:")