modbus/mb_utils.py
branchsvghmi
changeset 3164 ea4a61b4a325
parent 2713 680ea4684209
child 3733 d1acf20e8e7c
--- a/modbus/mb_utils.py	Wed Feb 24 15:36:37 2021 +0100
+++ b/modbus/mb_utils.py	Thu Feb 25 11:22:10 2021 +0100
@@ -186,7 +186,7 @@
 
     req_init_template = '''/*request %(locreqstr)s*/
 {"%(locreqstr)s", %(nodeid)s, %(slaveid)s, %(iotype)s, %(func_nr)s, %(address)s , %(count)s,
-DEF_REQ_SEND_RETRIES, 0 /* error_code */, 0 /* prev_code */, {%(timeout_s)d, %(timeout_ns)d} /* timeout */, %(write_on_change)d /* write_on_change */, 
+DEF_REQ_SEND_RETRIES, 0 /* mb_error_code */, 0 /* tn_error_code */, 0 /* prev_code */, {%(timeout_s)d, %(timeout_ns)d} /* timeout */, %(write_on_change)d /* write_on_change */, 
 {%(buffer)s}, {%(buffer)s}}'''
 
     timeout = int(GetCTVal(child, 4))