objdictgen/config/DS-406.prf
author Robert Lehmann <robert.lehmann@sitec-systems.de>
Tue, 28 Jul 2015 16:36:55 +0200
changeset 793 72e9e1064432
parent 182 988f2b302aa6
permissions -rw-r--r--
timers_unix: Fix termination problem of WaitReceiveTaskEnd

The function pthread_kill sends the Signal thread and to the own process.
If you use this construct than the application which calls uses the
canfestival api will terminate at the call of canClose. To avoid that
use pthread_cancel instead of pthread_kill. To use the pthread_cancel call
you need to set the cancel ability in the thread function. That means
you need to call pthread_setcancelstate and pthread_setcanceltype.
For the termination of the thread at any time it is important to set the
cancel type to PTHREAD_CANCEL_ASYNCHRONOUS.
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
global Mapping, AddMenuEntries
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
"""
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
MappingDictionary for DS-406
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
"""
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
Mapping = {
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
    0x6000 : {"name" : "Operating Parameters", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
                [{"name" : "Operating Parameters", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
    0x6001 : {"name" : "Measuring Units per Revolution", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
                [{"name" : "Measuring Units per Revolution", "type" : 0x07, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
    0x6002 : {"name" : "Total Measuring Range in Measuring Unit", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
                [{"name" : "Total Measuring Range in Measuring Unit", "type" : 0x07, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
    0x6003 : {"name" : "Preset Value", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
                [{"name" : "Preset Value", "type" : 0x07, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
    0x6004 : {"name" : "Position Value", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
                [{"name" : "Position Value", "type" : 0x07, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
    0x6005 : {"name" : "Linear Encoder Measuring Step Settings", "struct" : array, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    19
                [{"name" : "Number of Objects", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
                 {"name" : "Position Step Setting", "type" : 0x07, "access" : 'rw', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
                 {"name" : "Speed Step Setting", "type" : 0x07, "access" : 'rw', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
                 {"name" : "Acceleration Step Setting", "type" : 0x07, "access" : 'rw', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
                 {"name" : "Jerk Step Setting", "type" : 0x07, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
    0x6008 : {"name" : "High Precision Position Value", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
                [{"name" : "High Precision Position Value", "type" : 0x1B, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
    0x6009 : {"name" : "High Precision Preset Value", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
                [{"name" : "High Precision Preset Value", "type" : 0x1B, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
    0x6010 : {"name" : "Preset Value for Multi-Sensor Device", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    31
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
                 {"name" : "Preset Value Channel %d[(sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33
    0x6020 : {"name" : "Position Value for Multi-Sensor Device", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    34
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
                 {"name" : "Position Value Channel %d[(sub)]", "type" : 0x04, "access" : 'rw', "pdo" : True, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    36
    0x6030 : {"name" : "Speed Value", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    37
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
                 {"name" : "Speed Value Channel %d[(sub)]", "type" : 0x03, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39
    0x6040 : {"name" : "Acceleration Value", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    40
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    41
                 {"name" : "Acceleration Value Channel %d[(sub)]", "type" : 0x03, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    42
    0x6050 : {"name" : "Jerk Value", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    43
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    44
                 {"name" : "Jerk Value Channel %d[(sub)]", "type" : 0x03, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    45
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    46
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    47
    0x6200 : {"name" : "Cyclic Timer", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    48
                [{"name" : "Cyclic Timer", "type" : 0x06, "access" : 'rw', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    49
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    50
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    51
    0x6300 : {"name" : "CAM State Register", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    52
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    53
                 {"name" : "CAM State Channel %d[(sub)]", "type" : 0x05, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    54
    0x6301 : {"name" : "CAM Enable", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    55
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    56
                 {"name" : "CAM Enable Channel %d[(sub)]", "type" : 0x05, "access" : 'rw', "pdo" : True, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    57
    0x6302 : {"name" : "CAM Polarity", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    58
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    59
                 {"name" : "CAM Polarity Channel %d[(sub)]", "type" : 0x05, "access" : 'rw', "pdo" : True, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    60
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    61
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    62
    0x6310 : {"name" : "CAM%d Low Limit[(idx)]", "struct" : plurirec, "incr" : 1, "need" : False, "nbmax" : 0x08, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    63
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    64
                 {"name" : "CAM%d Low Limit Channel %d[(idx,sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    65
    0x6320 : {"name" : "CAM%d High Limit[(idx)]", "struct" : plurirec, "incr" : 1, "need" : False, "nbmax" : 0x08, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    66
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    67
                 {"name" : "CAM%d High Limit Channel %d[(idx,sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    68
    0x6330 : {"name" : "CAM%d Hysteresis[(idx)]", "struct" : plurirec, "incr" : 1, "need" : False, "nbmax" : 0x08, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    69
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    70
                 {"name" : "CAM%d Hysteresis Channel %d[(idx,sub)]", "type" : 0x06, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    71
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    72
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    73
    0x6400 : {"name" : "Area State Register", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    74
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    75
                 {"name" : "Work Area State Channel %d[(sub)]", "type" : 0x05, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    76
    0x6401 : {"name" : " Work Area Low Limit", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    77
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    78
                 {"name" : "Work Area Low Limit Channel %d[(sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    79
    0x6402 : {"name" : " Work Area High Limit", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    80
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    81
                 {"name" : "Work Area High Limit Channel %d[(sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    82
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    83
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    84
    0x6500 : {"name" : "Operating Status", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    85
                [{"name" : "Operating Status", "type" : 0x06, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    86
    0x6501 : {"name" : "Single Turn Resolution", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    87
                [{"name" : "Single Turn Resolution", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    88
    0x6502 : {"name" : "Number of Distinguishable Revolutions", "struct" : var, "need" : True, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
    89
                [{"name" : "Number of Distinguishable Revolutions", "type" : 0x06, "access" : 'rw', "pdo" : True}]},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    90
    0x6503 : {"name" : "Alarms", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    91
                [{"name" : "Alarms", "type" : 0x06, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    92
    0x6504 : {"name" : "Supported Alarms", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    93
                [{"name" : "Supported Alarms", "type" : 0x06, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    94
    0x6505 : {"name" : "Warnings", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    95
                [{"name" : "Warnings", "type" : 0x06, "access" : 'ro', "pdo" : True}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    96
    0x6506 : {"name" : "Supported Warnings", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    97
                [{"name" : "Supported Warnings", "type" : 0x06, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    98
    0x6507 : {"name" : "Profile and Software Version", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    99
                [{"name" : "Profile and Software Version", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   100
    0x6508 : {"name" : "Operating Time", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   101
                [{"name" : "Operating Time", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   102
    0x6509 : {"name" : "Offset Value", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   103
                [{"name" : "Offset Value", "type" : 0x04, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   104
    0x650A : {"name" : "Module Identification", "struct" : array, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
   105
                [{"name" : "Number of Entries", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   106
                 {"name" : "Manufacturer Offset Value", "type" : 0x04, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   107
                 {"name" : "Manufacturer Min Position Value", "type" : 0x04, "access" : 'ro', "pdo" : False},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   108
                 {"name" : "Manufacturer Max Position Value", "type" : 0x04, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   109
    0x650B : {"name" : "Serial Number", "struct" : var, "need" : False, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   110
                [{"name" : "Serial Number", "type" : 0x07, "access" : 'ro', "pdo" : False}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   111
    0x650C : {"name" : "Offset Values for Multi-Sensor Devices", "struct" : rec, "need" : False, "values" :
182
988f2b302aa6 Adding support for importing and exporting EDS files
lbessard
parents: 0
diff changeset
   112
                [{"name" : "Number of Available Channels", "type" : 0x05, "access" : 'ro', "pdo" : False},
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   113
                 {"name" : "Offset Value Channel %d[(sub)]", "type" : 0x04, "access" : 'ro', "pdo" : False, "nbmax" : 0xFE}]},
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   114
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   115
    0x6510 : {"name" : "Number of High Precision Revolutions", "struct" : var, "need" : True, "values" :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   116
                [{"name" : "Number of High Precision Revolutions", "type" : 0x18, "access" : 'ro', "pdo" : False}]}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   117
}
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   118
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   119
AddMenuEntries = [("CAM",[0x6310, 0x6320, 0x6330])]