-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from epics-containers/motor-demo2
Technosoft motor support
- Loading branch information
Showing
18 changed files
with
747 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# yaml-language-server: $schema=../schemas/technosoft.ibek.ioc.schema.json | ||
|
||
ioc_name: yag | ||
description: YAG motors | ||
|
||
shared: | ||
- &motor | ||
type: motorTML.motorAxis | ||
controller: TML | ||
NSTEPS: 200 | ||
NMICROSTEPS: 256 | ||
VELO: 20 | ||
VELO_MAX: 50 | ||
VELO_MIN: 0.1 | ||
ACCL: 0.5 | ||
ACCL_MAX: 1.5 | ||
ACCL_MIN: 0.01 | ||
HAR: 0.5 | ||
HVEL: 10 | ||
JAR: 1 | ||
JVEL: 5 | ||
EGU: "ustep" | ||
SLSP: 0.8 | ||
ENABLED: 1 | ||
TIMEOUT: 0 | ||
|
||
entities: | ||
- type: motorTML.CreateController | ||
controllerName: TML | ||
P: "SPARC:TML" | ||
TTY: /tmp # /var/tmp/ttyV0 | ||
numAxes: 1 | ||
hostid: 15 | ||
|
||
- <<: *motor | ||
axid: 15 | ||
|
||
- <<: *motor | ||
axid: 17 | ||
# example of overriding a value from the shared dictionary merge | ||
ACCL_MIN: 0.011 | ||
# (UNREALISTIC) example of using Jinja expression in an arg value | ||
EGU: |- | ||
{{controller.P}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<display version="2.0.0"> | ||
<name>yag</name> | ||
<x>0</x> | ||
<y use_class="true">0</y> | ||
<width>10</width> | ||
<height>35</height> | ||
<grid_step_x>4</grid_step_x> | ||
<grid_step_y>4</grid_step_y> | ||
<widget type="label" version="2.0.0"> | ||
<name>Title</name> | ||
<class>TITLE</class> | ||
<text>yag</text> | ||
<x use_class="true">0</x> | ||
<y use_class="true">0</y> | ||
<width>10</width> | ||
<height>25</height> | ||
<font use_class="true"> | ||
<font name="Header 1" family="Liberation Sans" style="BOLD" size="22.0"> | ||
</font> | ||
</font> | ||
<foreground_color use_class="true"> | ||
<color name="Text" red="0" green="0" blue="0"> | ||
</color> | ||
</foreground_color> | ||
<transparent use_class="true">true</transparent> | ||
<horizontal_alignment>1</horizontal_alignment> | ||
</widget> | ||
</display> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
############################################################################# | ||
# DB substitution file generated by http://github.com/epics-containers/ibek # | ||
############################################################################# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ndsCreateDevice "TechnosoftTML", "", "FILE=/tmp/,NAXIS=4,DEV_PATH=/dev/ttyS0,HOST_ID=1, | ||
AXIS_SETUP_0=$(SUPPORT)/motorTechnosoft/tml_lib/config/config.txt,AXIS_ID_0=1,AXIS_HOMING_SW_0=LSN, | ||
AXIS_SETUP_1=$(SUPPORT)/motorTechnosoft/tml_lib/config/config.txt,AXIS_ID_1=2,AXIS_HOMING_SW_1=LSN, | ||
AXIS_SETUP_2=$(SUPPORT)/motorTechnosoft/tml_lib/config/config.txt,AXIS_ID_2=3,AXIS_HOMING_SW_2=LSN, | ||
AXIS_SETUP_3=$(SUPPORT)/motorTechnosoft/tml_lib/config/config.txt,AXIS_ID_3=4,AXIS_HOMING_SW_3=LSN" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# EPICS IOC Startup Script generated by https://github.com/epics-containers/ibek | ||
|
||
cd "/epics/ioc" | ||
dbLoadDatabase dbd/ioc.dbd | ||
ioc_registerRecordDeviceDriver pdbbase | ||
|
||
ndsCreateDevice "TechnosoftTML", "TML", "FILE=/tmp/,NAXIS=1,DEV_PATH=/tmp,HOST_ID=15,AXIS_SETUP_0=$(SUPPORT)/motorTechnosoft/tml_lib/config/star_vat_phs.t.zip,AXIS_ID_0=15,AXIS_HOMING_SW_0=LSN,AXIS_SETUP_1=$(SUPPORT)/motorTechnosoft/tml_lib/config/star_vat_phs.t.zip,AXIS_ID_1=17,AXIS_HOMING_SW_1=LSN" | ||
dbLoadRecords("$(SUPPORT)/motorTechnosoft/db/tmlAxis.template","PREFIX=SPARC:TML, CHANNEL_ID=MOT, CHANNEL_PREFIX=ax, ASYN_PORT=, ASYN_ADDR=0, NSTEPS=200, NMICROSTEPS=256, VELO=20, VELO_MIN=0.1, VELO_MAX=50.0, ACCL=0.5, ACCL_MIN=0.01, ACCL_MAX=1.5, HAR=0.5, HVEL=10.0, JAR=1, JVEL=5, ENABLED=1, SLSP=0.8, EGU=ustep, TIMEOUT=0") | ||
dbLoadRecords("$(SUPPORT)/motorTechnosoft/db/tmlAxis.template","PREFIX=SPARC:TML, CHANNEL_ID=MOT, CHANNEL_PREFIX=ax, ASYN_PORT=, ASYN_ADDR=0, NSTEPS=200, NMICROSTEPS=256, VELO=20, VELO_MIN=0.1, VELO_MAX=50.0, ACCL=0.5, ACCL_MIN=0.011, ACCL_MAX=1.5, HAR=0.5, HVEL=10.0, JAR=1, JVEL=5, ENABLED=1, SLSP=0.8, EGU=SPARC:TML, TIMEOUT=0") | ||
|
||
dbLoadRecords /epics/runtime/ioc.db | ||
iocInit | ||
|
||
|
||
|
||
dbpf("SPARC:TML:MOT:MSGRS","START") | ||
dbl | ||
|
||
dbpf("SPARC:TML:MOT:MSGRS","START") | ||
dbl | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.