objdictgen/config/DS-402.prf
author Christian Taedcke <hacking@taedcke.com>
Thu, 22 Dec 2011 16:03:39 +0100
changeset 682 dce1e0af6604
parent 628 9e496a2aadca
permissions -rw-r--r--
SDO transfer:
FIXED: - Wrong SDO line could get changed due to a wrong parameter to setSDOlineRestBytes().
628
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     1
global Mapping, AddMenuEntries
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     2
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     3
"""
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     4
MappingDictionary for DS-402
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     5
"""
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     6
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     7
Mapping = {
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     8
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
     9
    0x6040 : {"name" : "Controlword", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    10
                [{"name" : "Controlword", "type" : 0x06, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    11
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    12
    0x6041 : {"name" : "Statusword", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    13
                [{"name" : "Statusword", "type" : 0x06, "access" : 'ro', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    14
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    15
    0x6060 : {"name" : "Modes of operation", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    16
                [{"name" : "Modes of operation", "type" : 0x02, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    17
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    18
    0x6061 : {"name" : "Modes of operation display", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    19
                [{"name" : "Modes of operation display", "type" : 0x02, "access" : 'ro', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    20
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    21
    0x6062 : {"name" : "Position demannd value", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    22
                [{"name" : "Position demannd value", "type" : 0x04, "access" : 'ro', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    23
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    24
    0x6064 : {"name" : "Position actual value", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    25
                [{"name" : "Position actual value", "type" : 0x04, "access" : 'ro', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    26
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    27
    0x6065 : {"name" : "Maximal following error", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    28
                [{"name" : "Maximal following error", "type" : 0x07, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    29
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    30
    0x6067 : {"name" : "Position window", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    31
                [{"name" : "Position window", "type" : 0x07, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    32
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    33
    0x6068 : {"name" : "Position window time", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    34
                [{"name" : "Position window time", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    35
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    36
    0x6069 : {"name" : "Velocity sensor actual value", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    37
                [{"name" : "Velocity sensor actual value", "type" : 0x04, "access" : 'ro', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    38
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    39
    0x606B : {"name" : "Velocity demand value", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    40
                [{"name" : "Velocity demand value", "type" : 0x04, "access" : 'ro', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    41
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    42
    0x606C : {"name" : "Velocity actual value", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    43
                [{"name" : "Velocity actual value", "type" : 0x04, "access" : 'ro', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    44
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    45
    0x6078 : {"name" : "Current actual value", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    46
                [{"name" : "Current actual value", "type" : 0x03, "access" : 'ro', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    47
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    48
    0x607A : {"name" : "Target position", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    49
                [{"name" : "Target position", "type" : 0x04, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    50
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    51
    0x607C : {"name" : "Home offset", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    52
                [{"name" : "Home offset", "type" : 0x04, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    53
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    54
    0x607D : {"name" : "Software position limit", "struct" : array, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    55
                [{"name" : "Number of entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    56
                 {"name" : "Minimal position limit", "type" : 0x04, "access" : 'rw', "pdo" : False},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    57
                 {"name" : "Maximal position limit", "type" : 0x04, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    58
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    59
    0x607F : {"name" : "Maximal profile velocity", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    60
                [{"name" : "Maximal profile velocity", "type" : 0x07, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    61
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    62
    0x6081 : {"name" : "Profile velocity", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    63
                [{"name" : "Profile velocity", "type" : 0x07, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    64
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    65
    0x6083 : {"name" : "Profile acceleration", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    66
                [{"name" : "Profile acceleration", "type" : 0x07, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    67
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    68
    0x6084 : {"name" : "Profile deceleration", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    69
                [{"name" : "Profile deceleration", "type" : 0x07, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    70
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    71
    0x6085 : {"name" : "Quick stop deceleration", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    72
                [{"name" : "Quick stop deceleration", "type" : 0x07, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    73
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    74
    0x6086 : {"name" : "Motion profile type", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    75
                [{"name" : "Motion profile type", "type" : 0x03, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    76
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    77
    0x6089 : {"name" : "Position notation index", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    78
                [{"name" : "Position notation index", "type" : 0x02, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    79
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    80
    0x608A : {"name" : "Position dimention index", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    81
                [{"name" : "Position dimention index", "type" : 0x08, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    82
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    83
    0x608B : {"name" : "Velocity notation index", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    84
                [{"name" : "Velocity notation index", "type" : 0x02, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    85
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    86
    0x608C : {"name" : "Velocity dimention index", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    87
                [{"name" : "Velocity dimention index", "type" : 0x08, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    88
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    89
    0x608D : {"name" : "Acceleraion notation index", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    90
                [{"name" : "Acceleraion notation index", "type" : 0x02, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    91
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    92
    0x608E : {"name" : "Acceleraion dimention index", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    93
                [{"name" : "Acceleraion dimention index", "type" : 0x08, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    94
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    95
    0x6098 : {"name" : "Homing method", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    96
                [{"name" : "Homing method", "type" : 0x02, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    97
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    98
    0x6099 : {"name" : "Homing speeds", "struct" : array, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
    99
                [{"name" : "Number of entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   100
                 {"name" : "Speed for switch search", "type" : 0x07, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   101
                 {"name" : "Speed for zero search", "type" : 0x07, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   102
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   103
    0x609A : {"name" : "Homing acceleration", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   104
                [{"name" : "Homing acceleration", "type" : 0x07, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   105
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   106
    0x60F6 : {"name" : "Current control parameter set", "struct" : array, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   107
                [{"name" : "Number of entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   108
                 {"name" : "Current regulator P-gain", "type" : 0x03, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   109
                 {"name" : "Current regulator I-gain", "type" : 0x03, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   110
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   111
    0x60F9 : {"name" : "Velocity control parameter set", "struct" : array, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   112
                [{"name" : "Number of entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   113
                 {"name" : "Velocity regulator P-gain", "type" : 0x03, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   114
                 {"name" : "Velocity regulator I-gain", "type" : 0x03, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   115
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   116
    0x60FB : {"name" : "Position control parameter set", "struct" : array, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   117
                [{"name" : "Number of entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   118
                 {"name" : "Position regulator P-gain", "type" : 0x03, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   119
                 {"name" : "Position regulator I-gain", "type" : 0x03, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   120
		 {"name" : "Position regulator D-gain", "type" : 0x03, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   121
                 {"name" : "Velocity feed forward factor", "type" : 0x06, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   122
                 {"name" : "Acceleration feed forward factor", "type" : 0x06, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   123
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   124
    0x60FF : {"name" : "Target velocity", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   125
                [{"name" : "Target velocity", "type" : 0x04, "access" : 'rw', "pdo" : True}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   126
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   127
    0x6402 : {"name" : "Motor type", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   128
                [{"name" : "Motor type", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   129
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   130
    0x6410 : {"name" : "Motor data", "struct" : array, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   131
                [{"name" : "Number of entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   132
                 {"name" : "Continous current limit", "type" : 0x06, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   133
                 {"name" : "Output current limit", "type" : 0x06, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   134
		 {"name" : "Pole pair number", "type" : 0x05, "access" : 'rw', "pdo" : False},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   135
                 {"name" : "Maximal speed in current mode", "type" : 0x06, "access" : 'rw', "pdo" : True},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   136
                 {"name" : "Thermal time constant winding", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   137
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   138
    0x6502 : {"name" : "Supported drive modes", "struct" : var, "need" : False, "values" :
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   139
                [{"name" : "Supported drive modes", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   140
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   141
}
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   142
9e496a2aadca Added contributed 402 profile
edouard
parents:
diff changeset
   143
AddMenuEntries = []