equal
deleted
inserted
replaced
266 return None |
266 return None |
267 |
267 |
268 |
268 |
269 def AddParamsToDCF(self, nodeid, data, nbparams): |
269 def AddParamsToDCF(self, nodeid, data, nbparams): |
270 """ |
270 """ |
271 Select a COB ID from the list of those available |
271 Add entry to DCF, for the requested nodeID |
272 @param nodeid: id of the slave (int) |
272 @param nodeid: id of the slave (int) |
273 @param data: data to add to slave DCF (string) |
273 @param data: data to add to slave DCF (string) |
274 @param nbparams: number of params added to slave DCF (int) |
274 @param nbparams: number of params added to slave DCF (int) |
275 """ |
275 """ |
276 # Get current DCF for slave |
276 # Get current DCF for slave |
288 # Set new DCF for slave |
288 # Set new DCF for slave |
289 self.MasterNode.SetEntry(0x1F22, nodeid, dcf) |
289 self.MasterNode.SetEntry(0x1F22, nodeid, dcf) |
290 |
290 |
291 def AddPDOMapping(self, nodeid, pdotype, pdomapping, sync_TPDOs): |
291 def AddPDOMapping(self, nodeid, pdotype, pdomapping, sync_TPDOs): |
292 """ |
292 """ |
293 Select a COB ID from the list of those available |
293 Record a new mapping request for a slave, and add related slave config to the DCF |
294 @param nodeid: id of the slave (int) |
294 @param nodeid: id of the slave (int) |
295 @param pdotype: type of PDO to generated (RPDO or TPDO) |
295 @param pdotype: type of PDO to generated (RPDO or TPDO) |
296 @param pdomapping: list od variables to map with PDO |
296 @param pdomapping: list od variables to map with PDO |
297 """ |
297 """ |
298 # Get a new cob id |
298 # Get a new cob id |