Skip to content

Commit

Permalink
Add nodevice default
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 a4e8e44 commit 5478b5b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SCHNDR/iocBoot/iocSCHNDR-IOC-01/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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="DEVCMD" pattern="^[A-Za-z0-9]+[.]cmd$" description="CMD file to load for attached devices" hasDefault="NO" />
<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" />
</macros>
</config_part>
</ioc_config>
1 change: 1 addition & 0 deletions SCHNDR/iocBoot/iocSCHNDR-IOC-01/devices/nodevice.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#
3 changes: 2 additions & 1 deletion SCHNDR/iocBoot/iocSCHNDR-IOC-01/st-common.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ epicsEnvSet("PLC", "PLC0")
< $(IOCSTARTUP)/dbload.cmd

##ISIS## load device specific init and DB from devices directory
< devices/$(DEVCMD)
< devices/$(DEVCMD0=nodevice).cmd
< devices/$(DEVCMD1=nodevice).cmd

##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 5478b5b

Please sign in to comment.