Skip to content

Commit

Permalink
Use missing.cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
FreddieAkeroyd authored and boeuf-codes committed Oct 11, 2022
1 parent 5478b5b commit e884bfc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions SCHNDR/iocBoot/iocSCHNDR-IOC-01/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<macro name="PORT" pattern="^COM[0-9]+$" description="Serial COM Port (for RTU or ASCII)" hasDefault="NO" />
<macro name="IPADDR" pattern="^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$" description="IP Address (for TCP)" hasDefault="NO" />
<macro name="IPPORT" pattern="^[0-9]+$" description="Modbus TCP Port (default: 502)" defaultValue="502" hasDefault="YES" />
<macro name="DEVCMD0" pattern="^[A-Za-z0-9]+$" description="CMD file base name in devices subdirectory to load" defaultValue="nodevice" hasDefault="YES" />
<macro name="DEVCMD1" pattern="^[A-Za-z0-9]+$" description="CMD file base name in devices subdirectory to load" defaultValue="nodevice" hasDefault="YES" />
<macro name="DEVCMD1" pattern="^[A-Za-z0-9]+$" description="CMD file base name in devices subdirectory to load" defaultValue="missing" hasDefault="YES" />
<!-- add DEVCMD2 etc if need more in future, but use defaultValue="nodevice" for all these -->
</macros>
</config_part>
</ioc_config>
3 changes: 3 additions & 0 deletions SCHNDR/iocBoot/iocSCHNDR-IOC-01/devices/missing.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
##
msgBox("ERROR: $(IOCNAME) - no device is defined")
##
4 changes: 2 additions & 2 deletions SCHNDR/iocBoot/iocSCHNDR-IOC-01/st-common.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ epicsEnvSet("PLC", "PLC0")
< $(IOCSTARTUP)/dbload.cmd

##ISIS## load device specific init and DB from devices directory
< devices/$(DEVCMD0=nodevice).cmd
< devices/$(DEVCMD1=nodevice).cmd
< devices/$(DEVCMD1=missing).cmd
## if useful later add reading devices/$(DEVCMD2=nodevice).cmd etc

##ISIS## Stuff that needs to be done after all records are loaded but before iocInit is called
< $(IOCSTARTUP)/preiocinit.cmd
Expand Down

0 comments on commit e884bfc

Please sign in to comment.