author | Edouard Tisserant |
Mon, 03 Aug 2015 18:01:58 +0200 | |
changeset 794 | 8bfe0ac00cdb |
parent 182 | 988f2b302aa6 |
permissions | -rw-r--r-- |
0 | 1 |
global Mapping, AddMenuEntries |
2 |
||
3 |
""" |
|
4 |
MappingDictionary for DS-406 |
|
5 |
""" |
|
6 |
||
7 |
Mapping = { |
|
8 |
0x6000 : {"name" : "Operating Parameters", "struct" : var, "need" : True, "values" : |
|
9 |
[{"name" : "Operating Parameters", "type" : 0x06, "access" : 'rw', "pdo" : False}]}, |
|
10 |
0x6001 : {"name" : "Measuring Units per Revolution", "struct" : var, "need" : False, "values" : |
|
11 |
[{"name" : "Measuring Units per Revolution", "type" : 0x07, "access" : 'rw', "pdo" : False}]}, |
|
12 |
0x6002 : {"name" : "Total Measuring Range in Measuring Unit", "struct" : var, "need" : False, "values" : |
|
13 |
[{"name" : "Total Measuring Range in Measuring Unit", "type" : 0x07, "access" : 'rw', "pdo" : False}]}, |
|
14 |
0x6003 : {"name" : "Preset Value", "struct" : var, "need" : False, "values" : |
|
15 |
[{"name" : "Preset Value", "type" : 0x07, "access" : 'rw', "pdo" : False}]}, |
|
16 |
0x6004 : {"name" : "Position Value", "struct" : var, "need" : True, "values" : |
|
17 |
[{"name" : "Position Value", "type" : 0x07, "access" : 'ro', "pdo" : True}]}, |
|
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 | 20 |
{"name" : "Position Step Setting", "type" : 0x07, "access" : 'rw', "pdo" : False}, |
21 |
{"name" : "Speed Step Setting", "type" : 0x07, "access" : 'rw', "pdo" : False}, |
|
22 |
{"name" : "Acceleration Step Setting", "type" : 0x07, "access" : 'rw', "pdo" : False}, |
|
23 |
{"name" : "Jerk Step Setting", "type" : 0x07, "access" : 'rw', "pdo" : False}]}, |
|
24 |
0x6008 : {"name" : "High Precision Position Value", "struct" : var, "need" : False, "values" : |
|
25 |
[{"name" : "High Precision Position Value", "type" : 0x1B, "access" : 'ro', "pdo" : True}]}, |
|
26 |
0x6009 : {"name" : "High Precision Preset Value", "struct" : var, "need" : False, "values" : |
|
27 |
[{"name" : "High Precision Preset Value", "type" : 0x1B, "access" : 'rw', "pdo" : False}]}, |
|
28 |
||
29 |
||
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 | 32 |
{"name" : "Preset Value Channel %d[(sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]}, |
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 | 35 |
{"name" : "Position Value Channel %d[(sub)]", "type" : 0x04, "access" : 'rw', "pdo" : True, "nbmax" : 0xFE}]}, |
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 | 38 |
{"name" : "Speed Value Channel %d[(sub)]", "type" : 0x03, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]}, |
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 | 41 |
{"name" : "Acceleration Value Channel %d[(sub)]", "type" : 0x03, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]}, |
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 | 44 |
{"name" : "Jerk Value Channel %d[(sub)]", "type" : 0x03, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]}, |
45 |
||
46 |
||
47 |
0x6200 : {"name" : "Cyclic Timer", "struct" : var, "need" : False, "values" : |
|
48 |
[{"name" : "Cyclic Timer", "type" : 0x06, "access" : 'rw', "pdo" : False}]}, |
|
49 |
||
50 |
||
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 | 53 |
{"name" : "CAM State Channel %d[(sub)]", "type" : 0x05, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]}, |
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 | 56 |
{"name" : "CAM Enable Channel %d[(sub)]", "type" : 0x05, "access" : 'rw', "pdo" : True, "nbmax" : 0xFE}]}, |
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 | 59 |
{"name" : "CAM Polarity Channel %d[(sub)]", "type" : 0x05, "access" : 'rw', "pdo" : True, "nbmax" : 0xFE}]}, |
60 |
||
61 |
||
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 | 64 |
{"name" : "CAM%d Low Limit Channel %d[(idx,sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]}, |
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 | 67 |
{"name" : "CAM%d High Limit Channel %d[(idx,sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]}, |
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 | 70 |
{"name" : "CAM%d Hysteresis Channel %d[(idx,sub)]", "type" : 0x06, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]}, |
71 |
||
72 |
||
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 | 75 |
{"name" : "Work Area State Channel %d[(sub)]", "type" : 0x05, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]}, |
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 | 78 |
{"name" : "Work Area Low Limit Channel %d[(sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]}, |
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 | 81 |
{"name" : "Work Area High Limit Channel %d[(sub)]", "type" : 0x04, "access" : 'rw', "pdo" : False, "nbmax" : 0xFE}]}, |
82 |
||
83 |
||
84 |
0x6500 : {"name" : "Operating Status", "struct" : var, "need" : True, "values" : |
|
85 |
[{"name" : "Operating Status", "type" : 0x06, "access" : 'ro', "pdo" : False}]}, |
|
86 |
0x6501 : {"name" : "Single Turn Resolution", "struct" : var, "need" : True, "values" : |
|
87 |
[{"name" : "Single Turn Resolution", "type" : 0x07, "access" : 'ro', "pdo" : False}]}, |
|
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 | 90 |
0x6503 : {"name" : "Alarms", "struct" : var, "need" : False, "values" : |
91 |
[{"name" : "Alarms", "type" : 0x06, "access" : 'ro', "pdo" : True}]}, |
|
92 |
0x6504 : {"name" : "Supported Alarms", "struct" : var, "need" : False, "values" : |
|
93 |
[{"name" : "Supported Alarms", "type" : 0x06, "access" : 'ro', "pdo" : False}]}, |
|
94 |
0x6505 : {"name" : "Warnings", "struct" : var, "need" : False, "values" : |
|
95 |
[{"name" : "Warnings", "type" : 0x06, "access" : 'ro', "pdo" : True}]}, |
|
96 |
0x6506 : {"name" : "Supported Warnings", "struct" : var, "need" : False, "values" : |
|
97 |
[{"name" : "Supported Warnings", "type" : 0x06, "access" : 'ro', "pdo" : False}]}, |
|
98 |
0x6507 : {"name" : "Profile and Software Version", "struct" : var, "need" : False, "values" : |
|
99 |
[{"name" : "Profile and Software Version", "type" : 0x07, "access" : 'ro', "pdo" : False}]}, |
|
100 |
0x6508 : {"name" : "Operating Time", "struct" : var, "need" : False, "values" : |
|
101 |
[{"name" : "Operating Time", "type" : 0x07, "access" : 'ro', "pdo" : False}]}, |
|
102 |
0x6509 : {"name" : "Offset Value", "struct" : var, "need" : False, "values" : |
|
103 |
[{"name" : "Offset Value", "type" : 0x04, "access" : 'ro', "pdo" : False}]}, |
|
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 | 106 |
{"name" : "Manufacturer Offset Value", "type" : 0x04, "access" : 'ro', "pdo" : False}, |
107 |
{"name" : "Manufacturer Min Position Value", "type" : 0x04, "access" : 'ro', "pdo" : False}, |
|
108 |
{"name" : "Manufacturer Max Position Value", "type" : 0x04, "access" : 'ro', "pdo" : False}]}, |
|
109 |
0x650B : {"name" : "Serial Number", "struct" : var, "need" : False, "values" : |
|
110 |
[{"name" : "Serial Number", "type" : 0x07, "access" : 'ro', "pdo" : False}]}, |
|
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 | 113 |
{"name" : "Offset Value Channel %d[(sub)]", "type" : 0x04, "access" : 'ro', "pdo" : False, "nbmax" : 0xFE}]}, |
114 |
||
115 |
0x6510 : {"name" : "Number of High Precision Revolutions", "struct" : var, "need" : True, "values" : |
|
116 |
[{"name" : "Number of High Precision Revolutions", "type" : 0x18, "access" : 'ro', "pdo" : False}]} |
|
117 |
} |
|
118 |
||
119 |
AddMenuEntries = [("CAM",[0x6310, 0x6320, 0x6330])] |