LOAD                                  = [NAME=SCI_FILT_W1, LIB=BasdaMoccaMpiaNDevice]
#
MOD.SCI_FILT_W1.CFG.CONNECTION.ADDRESS          = tcp://192.168.1.51:4000
MOD.SCI_FILT_W1.CFG.CONNECTION.CARD             = 1 

#
# the used MoCon module
#
MOD.SCI_FILT_W1.CFG.CONNECTION.MODULE           = 1  

MOD.SCI_FILT_W1.CFG.CONNECTION.TIMEOUT:Time     = 00:00:03.000000      +UNIT=hour                             # its the time how long the service should wait for a normal command response like ACK (this timeout is blocking the service but the MoCon sends the ACK immediately)
MOD.SCI_FILT_W1.CFG.CONNECTION.EVENT_TIMEOUT:Time = 00:00:00.500000    +UNIT=hour                             # its the time how long the service should wait for a event message (Pay attention: this timeout blocks the service while it is waiting for an event which might not send immediately)

#
# enter the motor datasheet config file here either with absolute path or
# just the config file. The TwiceAsNice parser will try to locate the file.
#
MOD.SCI_FILT_W1.CFG.DATASHEET.CONFIG            = wheelTestDevice_datasheet.cfg 

#
# the travel range of the module in steps
#                                      
#MOD.SCI_FILT_W1.CFG.DATASHEET.TRAVELRANGE:Point = [-2147483640.0, 2147483640.0]  +UNIT=steps  +LABEL=["MIN", "MAX"]

CFG.ONEWAY:Bool      = 0
CFG.FULLTURN = 7100  +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

# device configuration parameter to define which position value should be periodically updated
# default: 0 MoCon internal software Encoder
#          1 incremental Encoder
#          2 absolute Encoder
#          3 MoCon internal software Encoder + incremental Encoder
#          4 MoCon internal software Encoder + absolute Encoder
#          5 incremental Encoder + absolute Encoder
#          6 MoCon internal software Encoder + incremental Encoder + absolute Encoder
CFG.POSITION.AUTOUPDATE:Int          = 0

# device configuration parameter to define which position value should be returned by 
# getPosition or displayed in the GUI
# default: 0 MoCon internal software Encoder
#          1 incremental Encoder
#          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
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:Int           = 0             +LABEL=["FWheel"]   +NAME="HOLE"
CFG.NAMED_POS.ABS.1:Int           = 1000          +LABEL=["FWheel"]   +NAME="Full Y Band"
CFG.NAMED_POS.ABS.2:Int           = 2000          +LABEL=["FWheel"]   +NAME="Full J Band"
CFG.NAMED_POS.ABS.3:Int           = 3000          +LABEL=["FWheel"]   +NAME="Full H Band"
CFG.NAMED_POS.ABS.4:Int           = 4000          +LABEL=["FWheel"]   +NAME="Narrow Band H2"
CFG.NAMED_POS.ABS.5:Int           = 5000          +LABEL=["FWheel"]   +NAME="Narrow Band H3"
CFG.NAMED_POS.ABS.6:Int           = 6000          +LABEL=["FWheel"]   +NAME="Neutral Density Filter ND=2"
CFG.NAMED_POS.ABS.7:Int           = 7000          +LABEL=["FWheel"]   +NAME="To Be assigned"

#
# 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.
# without to edit the target position permanently.
#

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


#
# This are the position switch codings for the single named positions
#

# CFG.NAMED_POS.SWITCH.0  = 0xF0
# CFG.NAMED_POS.SWITCH.1  = 0xE8
# CFG.NAMED_POS.SWITCH.2  = 0xE0
# CFG.NAMED_POS.SWITCH.3  = 0xD8
# CFG.NAMED_POS.SWITCH.4  = 0xD0
# CFG.NAMED_POS.SWITCH.5  = 0xC8
# CFG.NAMED_POS.SWITCH.6  = 0xC0

#
# 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.MM:Point                     = [10, 0]              +LABEL=["Scale", "Offset"] +PREC=2     # m11, dx - scale X, offset x

