Skip to content

Commit

Permalink
Modified the 17600 steps per turn to 17938 steps per turn.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathar committed Jul 18, 2024
1 parent 000a49f commit 9232c4b
Showing 1 changed file with 54 additions and 30 deletions.
84 changes: 54 additions & 30 deletions python/lvmtan/config/lvm/spec/fibsel/lvm.spec.fibsel-dev.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# dumpMoConParams.py --CONFIG=lvm/spec/fibsel/lvm.spec.fibsel-dev.conf --TYPE=\"linear\ stage\" --VENDOR=PI --PRODUCT=Wheel --ENCODER.TYPE=0 --MODULE=W1 --V=1 --FILENAME=lvm.spec.fibsel_datasheet.conf

# SDSS-V LVM fiber selector of the SPEC bench. Newport PR50PP

LOAD = [NAME=lvm.spec.fibsel-dev, LIB=BasdaMoccaMpiaNDevice]
MOD.W1.CFG.CONNECTION.ADDRESS = tcp://192.168.2.12:4000 # connection address: tcp://HOST:PORT or tty:/dev/ttyS0:9600:8:no
Expand All @@ -12,17 +13,16 @@ MOD.W1.CFG.DATASHEET.CONFIG = lvm/common/PI_WHEEL_datasheet.conf


CFG.ONEWAY:Bool = 0
CFG.FULLTURN = 17600 +UNIT=steps +LABEL="FULLTURN"
# Newport PR50PP Resolution is 0.020068 deg per step. (Email Vincenzo.Talluto@mksinst.com)
# The manual https://www.newport.com/mam/celum/celum_assets/resources/PR50_-_User_s_Manual.pdf
# (status 2024-07-17) states it's 0.002, off by a factor 10. RJM-2024-07-18
CFG.FULLTURN = 17939 +UNIT=steps +LABEL="FULLTURN"

#
# the switch width is the distance where the reference signals are returned
#

CFG.SWITCHWIDTH = 60

#
# switch depth is the bit depth of the reference switches
#

#CFG.SWITCHDEPTH = 8
#CFG.SWITCHMASK = 0b11111000:8
Expand All @@ -44,43 +44,67 @@ CFG.POSITION.AUTOUPDATE:Int = 0
# 2 absolute Encoder
CFG.POSITION.REPORT:Int = 0

# device configuration parameter to define in which unit the position value should be returned. The value is the index of the CFG.TRANS
# device configuration parameter to define in which unit the position value should be
# returned. The value is the index of the CFG.TRANS
CFG.POSITION.UNIT = STEPS

#
# device configuration parameter
#
# Depending on how many named position you like to have add here the properties with the positions values and the labels.
# The labels are used to display them in the GUI. The position values are the absolute target positions of the motor in steps.
# The property of the named position needs to be numbered serially.
#

CFG.NAMED_POS.ABS.0:Double = 1466.66666666 +LABEL=["FWheel"] +NAME="30 deg"
CFG.NAMED_POS.ABS.1:Double = 2933.33333333 +LABEL=["FWheel"] +NAME="60 deg"
CFG.NAMED_POS.ABS.2:Double = 4400.0 +LABEL=["FWheel"] +NAME="90 deg"
CFG.NAMED_POS.ABS.3:Double = 5866.66666666 +LABEL=["FWheel"] +NAME="120 deg"
CFG.NAMED_POS.ABS.4:Double = 7333.33333333 +LABEL=["FWheel"] +NAME="180 deg"
CFG.NAMED_POS.ABS.5:Double = 10266.6666667 +LABEL=["FWheel"] +NAME="210 deg"
CFG.NAMED_POS.ABS.6:Double = 11733.3333333 +LABEL=["FWheel"] +NAME="240 deg"
CFG.NAMED_POS.ABS.7:Double = 13200 +LABEL=["FWheel"] +NAME="270 deg"
CFG.NAMED_POS.ABS.8:Double = 14666.6666667 +LABEL=["FWheel"] +NAME="300 deg"
CFG.NAMED_POS.ABS.9:Double = 16133.3333333 +LABEL=["FWheel"] +NAME="330 deg"




#
# This is the named position for relative movements. It can be used in engineering mode in order to move the motor to a relative position several times.
# Named position as of 2024-07-18
# from https://github.com/sdss/lvmgort/blob/main/src/gort/etc/lvmgort.yml
# and https://sdss-wiki.atlassian.net/wiki/spaces/LVM/pages/14461125/LVM+observing+guide

CFG.NAMED_POS.ABS.0:Double = 1650 +LABEL=["FWheel"] +NAME="P1-1"
CFG.NAMED_POS.ABS.1:Double = 215 +LABEL=["FWheel"] +NAME="P1-2"
CFG.NAMED_POS.ABS.2:Double = 16610 +LABEL=["FWheel"] +NAME="P1-3"
CFG.NAMED_POS.ABS.3:Double = 15180 +LABEL=["FWheel"] +NAME="P1-4"
CFG.NAMED_POS.ABS.4:Double = 13640 +LABEL=["FWheel"] +NAME="P1-5"
CFG.NAMED_POS.ABS.5:Double = 12205 +LABEL=["FWheel"] +NAME="P1-6"
CFG.NAMED_POS.ABS.6:Double = 10645 +LABEL=["FWheel"] +NAME="P1-7"
CFG.NAMED_POS.ABS.7:Double = 9205 +LABEL=["FWheel"] +NAME="P1-8"
CFG.NAMED_POS.ABS.8:Double = 7665 +LABEL=["FWheel"] +NAME="P1-9"
CFG.NAMED_POS.ABS.9:Double = 6205 +LABEL=["FWheel"] +NAME="P1-10"
CFG.NAMED_POS.ABS.10:Double = 4645 +LABEL=["FWheel"] +NAME="P1-11"
CFG.NAMED_POS.ABS.11:Double = 3210 +LABEL=["FWheel"] +NAME="P1-12"
CFG.NAMED_POS.ABS.12:Double = 15885 +LABEL=["FWheel"] +NAME="P2-1"
CFG.NAMED_POS.ABS.13:Double = 14335 +LABEL=["FWheel"] +NAME="P2-2"
CFG.NAMED_POS.ABS.14:Double = 12885 +LABEL=["FWheel"] +NAME="P2-3"
CFG.NAMED_POS.ABS.15:Double = 11375 +LABEL=["FWheel"] +NAME="P2-4"
CFG.NAMED_POS.ABS.16:Double = 9915 +LABEL=["FWheel"] +NAME="P2-5"
CFG.NAMED_POS.ABS.17:Double = 8395 +LABEL=["FWheel"] +NAME="P2-6"
CFG.NAMED_POS.ABS.18:Double = 6940 +LABEL=["FWheel"] +NAME="P2-7"
CFG.NAMED_POS.ABS.19:Double = 5405 +LABEL=["FWheel"] +NAME="P2-8"
CFG.NAMED_POS.ABS.20:Double = 3945 +LABEL=["FWheel"] +NAME="P2-9"
CFG.NAMED_POS.ABS.21:Double = 2395 +LABEL=["FWheel"] +NAME="P2-10"
CFG.NAMED_POS.ABS.22:Double = 935 +LABEL=["FWheel"] +NAME="P2-11"
CFG.NAMED_POS.ABS.23:Double = 17340 +LABEL=["FWheel"] +NAME="P2-12"
CFG.NAMED_POS.ABS.24:Double = 1494.89 +LABEL=["FWheel"] +NAME="30 deg"
CFG.NAMED_POS.ABS.25:Double = 2989.78 +LABEL=["FWheel"] +NAME="60 deg"
CFG.NAMED_POS.ABS.26:Double = 4484.66 +LABEL=["FWheel"] +NAME="90 deg"
CFG.NAMED_POS.ABS.27:Double = 5979.55 +LABEL=["FWheel"] +NAME="120 deg"
CFG.NAMED_POS.ABS.28:Double = 7474.44 +LABEL=["FWheel"] +NAME="150 deg"
CFG.NAMED_POS.ABS.29:Double = 8969.33 +LABEL=["FWheel"] +NAME="180 deg"
CFG.NAMED_POS.ABS.30:Double = 10464.22 +LABEL=["FWheel"] +NAME="210 deg"
CFG.NAMED_POS.ABS.31:Double = 11959.10 +LABEL=["FWheel"] +NAME="240 deg"
CFG.NAMED_POS.ABS.32:Double = 13453.99 +LABEL=["FWheel"] +NAME="270 deg"
CFG.NAMED_POS.ABS.33:Double = 14948.88 +LABEL=["FWheel"] +NAME="300 deg"
CFG.NAMED_POS.ABS.34:Double = 16443.77 +LABEL=["FWheel"] +NAME="330 deg"


# This is the named position for relative movements. It can be used in engineering mode
# to move the motor to a relative position several times.
# without to edit the target position permanently.
#

CFG.NAMED_POS.REL.0 = 48.8888888889 +LABEL=["FWheel"] +NAME="Rel. 0"


# 49.8296 steps per degree RJM 2024-07-18
CFG.NAMED_POS.REL.0 = 49.8296 +LABEL=["FWheel"] +NAME="Rel. 0"

#
# It follows the definition of the coordination transformation
# from the focal plane in the motor coordinate system.
# It is also used to convert to different units.
CFG.TRANS.STEPS:Point = [1, 0] +LABEL=["Scale", "Offset"] +PREC=0 # m11, dx - scale X, offset x
CFG.TRANS.DEG:Point = [48.888888888888, 0] +LABEL=["Scale", "Offset"] +PREC=2 # m11, dx - scale X, offset x
CFG.TRANS.STEPS:Point = [1, 0] +LABEL=["Scale", "Offset"] +PREC=0 # m11, dx - scale X, offset x
CFG.TRANS.DEG:Point = [49.8296, 0] +LABEL=["Scale", "Offset"] +PREC=2 # m11, dx - scale X, offset x

0 comments on commit 9232c4b

Please sign in to comment.