diff -r fc1bc441cf71 -r c317b1aaf920 etherlab/EthercatCIA402Slave.py --- a/etherlab/EthercatCIA402Slave.py Thu Apr 04 17:50:43 2013 +0900 +++ b/etherlab/EthercatCIA402Slave.py Fri Apr 05 00:09:54 2013 +0200 @@ -51,8 +51,7 @@ } """ -BLOCK_FUNTION_DEFINITION_TEMPLATE = """ if (!__CIA402Node_%(location)s.axis->__mcl_func_MC_%(blocktype)s) -__CIA402Node_%(location)s.axis->__mcl_func_MC_%(blocktype)s = __%(blocktype)s_%(location)s;""" +BLOCK_FUNTION_DEFINITION_TEMPLATE = " __CIA402Node_%(location)s.axis->__mcl_func_MC_%(blocktype)s = __%(blocktype)s_%(location)s;" GLOBAL_INSTANCES = [ {"blocktype": "GetTorqueLimit",