3 """ |
3 """ |
4 MappingDictionary for DS-401 |
4 MappingDictionary for DS-401 |
5 """ |
5 """ |
6 |
6 |
7 Mapping = { |
7 Mapping = { |
8 0x6000 : {"name" : "Read Inputs 8 Bit", "struct" : rec, "need" : False, "values" : |
8 0x6000 : {"name" : "Read Inputs 8 Bit", "struct" : rec, "need" : False, "values" : |
9 [{"name" : "Number of Input 8 bit", "type" : 0x02, "access" : 'ro', "pdo" : False}, |
9 [{"name" : "Number of Input 8 bit", "type" : 0x02, "access" : 'ro', "pdo" : False}, |
10 {"name" : "Read Inputs 0x%X to 0x%X[(sub*8-7,sub*8)]", "type" : 0x05, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]}, |
10 {"name" : "Read Inputs 0x%X to 0x%X[(sub*8-7,sub*8)]", "type" : 0x05, "access" : 'ro', "pdo" : True, "nbmax" : 0xFE}]}, |
11 0x6002 : {"name" : "Polarity Input 8 Bit", "struct" : rec, "need" : False, "values" : |
11 0x6002 : {"name" : "Polarity Input 8 Bit", "struct" : rec, "need" : False, "values" : |
12 [{"name" : "Number of Input 8 bit", "type" : 0x02, "access" : 'ro', "pdo" : False}, |
12 [{"name" : "Number of Input 8 bit", "type" : 0x02, "access" : 'ro', "pdo" : False}, |
13 {"name" : "Polarity Input 0x%X to 0x%X[(sub*8-7,sub*8)]", "type" : 0x05, "access" : 'rw', "pdo" : True, "nbmax" : 0xFE}]}, |
13 {"name" : "Polarity Input 0x%X to 0x%X[(sub*8-7,sub*8)]", "type" : 0x05, "access" : 'rw', "pdo" : True, "nbmax" : 0xFE}]}, |