# Register definition file for the JVL MacRegIO Utility
#------------------------------------------------------
#
# The intention with this type of file is to provide an easily 
# customizable view of the motor registers. The three files
# bintalk_alt.dat, bigtalk_alt.dat and smc75_alt.dat are loaded
# instead of their non_alt versions when the Alt. checkbox in 
# MacRegIo is checked and either of the Mode radio buttons are clicked.
#
# Lines starting with the hash mark, like this one, hold comments
#
# Blank lines are accepted and silently ignored.
#
#
# Each register is described on one line using the following format:
#
# <index>, "<name>", <data_type>
#
# The (register <index> must be in the range 1..255
#
# <name> must be enclosed on double quotes like "Mode register".
# Names can have a length of at most 15 characters.
# 
# <data_type> must be one of the following:
# int16, uint16, int32, uint32, (u)int16.x, (u)int32.x, version
#
# The (u)intNN.x formats are called Fixed, fixed8, fixed16 and fixed24 in
# some of the documentation. MacRegIo uses this general format to support
# other future variations. Fixed4 and fixed8 are supported for compatibility.
# The <data_type> names are not case sensitive.
#
# Example: 2, "Mode register", uint16
#
# ----------
#
# Bit fields in the registers are described on separate lines using the format:
#
# <regno>:<lowest bit>:<number of bits>, "<bitfield name>", <value>="<name>", <value>="<name>,...
#
# Examples: 2:0:4, "Mode", 0="Passive", 1="Velocity", 2="Position", 13="Zero 1"
#           35:4:1, "InPosition", 0="No", 1="Yes"
#
# The values that are not described for a bit fiels are set to the name "Illegal"
#
# It is recommended to keep all the lines in the file, and just place a
# hash mark at the beginning of the lines that should not be displayed.
#
#------------------------------------------------------------------------


#2:0:4, "Mode", 0="Passive", 1="Velocity", 2="Position", 13="Zero1", 14="Zero2"

1, "Version", uint32
2, "Mode reg SMC75", int16
3, "P_SOLL", int32
10, "P_IST", int32
17, "Reg17", int32
24, "Command", uint32
25, "StatusBits", uint32
26, "Temperature", uint32
27, "dummyc", uint32

35, "Error/Status", uint32
35:2:1, "AutoCor.Act", 		0="No", 1="Yes"
35:3:1, "InPhys.Pos.", 	  0="No", 1="Yes"
35:4:1, "InPosition", 		0="No", 1="Yes"
35:5:1, "Accelerating", 	0="No", 1="Yes"
35:6:1, "Decelerating", 	0="No", 1="Yes"


46, "AbsEncPos", uint32

47, "SSI Data", uint32
48, "Reg48", uint32
49, "Par.P0 (P1)", uint32
51, "Par.P1 (P2)", uint32
53, "Par.P2 (P3)", uint32

99, "EncoderType", uint32

107, "SSI Setup1", uint32
111, "SSI Setup2", uint32


121, "MODBUS Setup", int32

124, "Setup Bits", uint32
124:0:1, "InvertDir", 0="No", 1="Yes"
124:1:1, "DontStartProg", 0="No", 1="Yes"
124:2:2, "ExtEncMode", 0="A", 1="B", 2="C", 3="D"
124:4:1, "DSP420Enabled", 0="No", 1="Yes"
124:5:1, "AutoEncSync", 0="No", 1="Yes"
124:6:1, "InPhysPosMode", 0="No", 1="Yes"
124:7:1, "EncoderAout", 0="No", 1="Yes"
124:8:1, "EncoderBout", 0="No", 1="Yes"
124:9:1, "EncoderIout", 0="No", 1="Yes"
124:10:1, "EncoderToP_IST", 0="No", 1="Yes"
124:11:1, "MultiTurnFlash", 0="No", 1="Yes"

139, "ResurOkVolt", uint32
140, "ResurOkCount", uint32
141, "ResurSaveVolt", uint32
142, "ResurInput", uint32
143, "CVI Voltage", uint32

150, "Address", int32
168, "Module reg", int32
162, "Texas MCU Ver", int32
200, "Reg200", int32
201, "Reg200", int32
202, "Ticks", int32

206, "Dev.Sense", int32
207, "12-80V", int32
208, "CVI", int32
209, "IO7 Analog", int32
210, "IO8 Analog", int32
211, "IO1 Analog", int32
212, "IO2 Analog", int32
213, "IO3 Analog", int32
214, "IO4 Analog", int32
215, "IO5 Analog", int32
216, "IO6 Analog", int32
217, "Temperature", int32
218, "IntRefVolt", int32
