# HG changeset patch # User lbessard # Date 1195659026 -3600 # Node ID f1c472b423274e21b20037150985aaf4682e3eef # Parent 75691a663ec1cef5cbde86e7485fefce1f735cf2 Bug on default COB ID value for PDO transmit and receive 5 and higher fixed diff -r 75691a663ec1 -r f1c472b42327 objdictgen/node.py --- a/objdictgen/node.py Fri Nov 16 17:41:59 2007 +0100 +++ b/objdictgen/node.py Wed Nov 21 16:30:26 2007 +0100 @@ -205,7 +205,7 @@ {"name" : "Node ID of the SDO Server", "type" : 0x05, "access" : 'rw', "pdo" : False}]}, 0x1400 : {"name" : "Receive PDO %d Parameter[(idx)]", "struct" : pluriarray, "incr" : 1, "nbmax" : 0x200, "need" : False, "values" : [{"name" : "Highest SubIndex Supported", "type" : 0x05, "access" : 'ro', "pdo" : False}, - {"name" : "COB ID used by PDO", "type" : 0x07, "access" : 'rw', "pdo" : False, "default" : "{True:\"$NODEID+0x%X00\"%(base+2),False:0}[base<4]"}, + {"name" : "COB ID used by PDO", "type" : 0x07, "access" : 'rw', "pdo" : False, "default" : "{True:\"$NODEID+0x%X00\"%(base+2),False:0x80000000}[base<4]"}, {"name" : "Transmission Type", "type" : 0x05, "access" : 'rw', "pdo" : False}, {"name" : "Inhibit Time", "type" : 0x06, "access" : 'rw', "pdo" : False}, {"name" : "Compatibility Entry", "type" : 0x05, "access" : 'rw', "pdo" : False}, @@ -215,7 +215,7 @@ {"name" : "PDO %d Mapping for an application object %d[(idx,sub)]", "type" : 0x07, "access" : 'rw', "pdo" : False, "nbmin" : 0, "nbmax" : 0x40}]}, 0x1800 : {"name" : "Transmit PDO %d Parameter[(idx)]", "struct" : pluriarray, "incr" : 1, "nbmax" : 0x200, "need" : False, "callback" : True, "values" : [{"name" : "Highest SubIndex Supported", "type" : 0x05, "access" : 'ro', "pdo" : False}, - {"name" : "COB ID used by PDO", "type" : 0x07, "access" : 'rw', "pdo" : False, "default" : "{True:\"$NODEID+0x%X80\"%(base+1),False:0}[base<4]"}, + {"name" : "COB ID used by PDO", "type" : 0x07, "access" : 'rw', "pdo" : False, "default" : "{True:\"$NODEID+0x%X80\"%(base+1),False:0x80000000}[base<4]"}, {"name" : "Transmission Type", "type" : 0x05, "access" : 'rw', "pdo" : False}, {"name" : "Inhibit Time", "type" : 0x06, "access" : 'rw', "pdo" : False}, {"name" : "Compatibility Entry", "type" : 0x05, "access" : 'rw', "pdo" : False},