equal
deleted
inserted
replaced
154 # Re-Enable PDO |
154 # Re-Enable PDO |
155 dcfdata += [LE_to_BE(idx, 2) + LE_to_BE(0x01, 1) + LE_to_BE(0x04, 4) + LE_to_BE(cobid, 4)] |
155 dcfdata += [LE_to_BE(idx, 2) + LE_to_BE(0x01, 1) + LE_to_BE(0x04, 4) + LE_to_BE(cobid, 4)] |
156 return "".join(dcfdata), len(dcfdata) |
156 return "".join(dcfdata), len(dcfdata) |
157 |
157 |
158 |
158 |
159 class ConciseDCFGenerator: |
159 class ConciseDCFGenerator(object): |
160 |
160 |
161 def __init__(self, nodelist, nodename): |
161 def __init__(self, nodelist, nodename): |
162 # Dictionary of location informations classed by name |
162 # Dictionary of location informations classed by name |
163 self.IECLocations = {} |
163 self.IECLocations = {} |
164 # Dictionary of location that have not been mapped yet |
164 # Dictionary of location that have not been mapped yet |