This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Modbus stops working after
#1
Hello, 

I just connected my LM5 to my ventilation system (Villavent VTR300). Ive been connected to the modbus for a long time with two different KNX Modbus gateways (weinzierl and MDT) and it have been working perfectly. I now wanted to test the LM5 instead. But after a few seconds I get a error "operaation timed out". I have connected GND, and I have disconnected the other gateways. 
I get values right after I change the RTU settings between half and full duplex. Then the erros pops after 20 seconds. 
What could be wrong here? The Baud rate is correct (9600).
Reply
#2
Try adding read_delay to your profile: https://kb.logicmachine.net/misc/modbus-...read_delay
Reply
#3
(07.10.2024, 06:35)admin Wrote: Try adding read_delay to your profile: https://kb.logicmachine.net/misc/modbus-...read_delay

Hello, 

Ah, thank you! Maybe a stupid question, but where in the profile do I add it? I'll add it here. 

Code:
{
"manufacturer": "SystemAir",
"description": "Residential unit modbus",
"mapping": [
{ "name": "REG_FAN_SPEED_LEVEL", "4/7/26": 4197, "bus_datatype": "uint16", "type": "register", "address": 100,  "writable": 1 },
{ "name": "REG_FAN_SF_FLOW_LOW", "4/7/27": 4198, "bus_datatype": "uint16", "type": "register", "address": 101, "writable": 0 },
{ "name": "REG_FAN_EF_FLOW_LOW", "4/7/28": 4199, "bus_datatype": "uint16", "type": "register", "address": 102, "writable": 1 },
{ "name": "REG_FAN_SF_FLOW_NOM", "4/7/29": 4200, "bus_datatype": "uint16", "type": "register", "address": 103, "writable": 1 },
{ "name": "REG_FAN_EF_FLOW_NOM", "4/7/30": 4201, "bus_datatype": "uint16", "type": "register", "address": 104, "writable": 1 },
{ "name": "REG_FAN_SF_FLOW_HIGH", "4/7/31": 4202, "bus_datatype": "uint16", "type": "register", "address": 105, "writable": 0 },
{ "name": "REG_FAN_EF_FLOW_HIGH", "4/7/32": 4203, "bus_datatype": "uint16", "type": "register", "address": 106, "writable": 1 },
{ "name": "REG_FAN_FLOW_UNITS", "4/7/33": 4204, "bus_datatype": "uint16", "type": "register", "address": 107, "writable": 1 },
{ "name": "REG_FAN_SF_PWM", "4/7/34": 4205, "bus_datatype": "float16", "type": "register", "address": 108, "writable": 0 },
{ "name": "REG_FAN_EF_PWM", "4/7/35": 4206, "bus_datatype": "float16", "type": "register", "address": 109, "writable": 0 },
{ "name": "REG_FAN_SF_RPM", "4/7/36": 4207, "bus_datatype": "float16", "type": "register", "address": 110, "writable": 0 },
{ "name": "REG_FAN_EF_RPM", "4/7/37": 4208, "bus_datatype": "float16", "type": "register", "address": 111, "writable": 0 },
{ "name": "REG_FAN_SPEED_LVL_CD", "4/7/38": 4209, "bus_datatype": "float16", "type": "register", "address": 112, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_RESET", "4/7/39": 4211, "bus_datatype": "float16", "type": "register", "address": 114, "writable": 1 },
{ "name": "REG_FAN_SPEED_LOG_SF_LVL1", "4/7/40": 4212, "bus_datatype": "float16", "type": "register", "address": 115, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_LVL2", "4/7/41": 4213, "bus_datatype": "float16", "type": "register", "address": 116, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_LVL3", "4/7/42": 4214, "bus_datatype": "float16", "type": "register", "address": 117, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_LVL4", "4/7/43": 4215, "bus_datatype": "float16", "type": "register", "address": 118, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_LVL5", "4/7/44": 4216, "bus_datatype": "float16", "type": "register", "address": 119, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_LVL1", "4/7/45": 4217, "bus_datatype": "float16", "type": "register", "address": 120, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_LVL2", "4/7/46": 4218, "bus_datatype": "float16", "type": "register", "address": 121, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_LVL3", "4/7/47": 4219, "bus_datatype": "float16", "type": "register", "address": 122, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_LVL4", "4/7/48": 4220, "bus_datatype": "float16", "type": "register", "address": 123, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_LVL5", "4/7/49": 4221, "bus_datatype": "float16", "type": "register", "address": 124, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_NR_LVL1", "4/7/50": 4222, "bus_datatype": "float16", "type": "register", "address": 125, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_NR_LVL2", "4/7/51": 4223, "bus_datatype": "float16", "type": "register", "address": 126, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_NR_LVL3", "4/7/52": 4224, "bus_datatype": "float16", "type": "register", "address": 127, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_NR_LVL4", "4/7/53": 4225, "bus_datatype": "float16", "type": "register", "address": 128, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_SF_NR_LVL5", "4/7/54": 4226, "bus_datatype": "float16", "type": "register", "address": 129, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_NR_LVL1", "4/7/55": 4227, "bus_datatype": "float16", "type": "register", "address": 130, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_NR_LVL2", "4/7/56": 4228, "bus_datatype": "float16", "type": "register", "address": 131, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_NR_LVL3", "4/7/57": 4229, "bus_datatype": "float16", "type": "register", "address": 132, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_NR_LVL4", "4/7/58": 4230, "bus_datatype": "float16", "type": "register", "address": 133, "writable": 0 },
{ "name": "REG_FAN_SPEED_LOG_EF_NR_LVL5", "4/7/59": 4231, "bus_datatype": "float16", "type": "register", "address": 134, "writable": 0 },
{ "name": "REG_FAN_SYSTEM_CURVE_SF", "4/7/60": 4232, "bus_datatype": "float16", "type": "register", "address": 135, "writable": 1 },
{ "name": "REG_FAN_SYSTEM_CURVE_EF", "4/7/61": 4233, "bus_datatype": "float16", "type": "register", "address": 136, "writable": 1 },
{ "name": "REG_FAN_CONTROL_TYPE", "4/7/62": 4234, "bus_datatype": "float16", "type": "register", "address": 137, "writable": 1 },
{ "name": "REG_HC_HEATER_TYPE", "4/7/63": 4297, "bus_datatype": "uint16", "type": "register", "address": 200, "writable": 1 },
{ "name": "REG_HC_COOLER_TYPE", "4/7/64": 4298, "bus_datatype": "uint16", "type": "register", "address": 201, "writable": 1 },
{ "name": "REG_HC_WCWH_STATE", "4/7/65": 4299, "bus_datatype": "float16", "type": "register", "address": 202, "writable": 0 },
{ "name": "REG_HC_WC_SIGNAL", "4/7/66": 4300, "bus_datatype": "float16", "type": "register", "address": 203, "writable": 0 },
{ "name": "REG_HC_WH_SIGNAL", "4/7/67": 4301, "bus_datatype": "float16", "type": "register", "address": 204, "writable": 0 },
{ "name": "REG_HC_FPS_LEVEL", "4/7/68": 4302, "bus_datatype": "uint16", "type": "register", "address": 205, "writable": 1 },
{ "name": "REG_HC_TEMP_LVL", "4/7/69": 4303, "bus_datatype": "float16", "type": "register", "address": 206, "writable": 1 },
{ "name": "REG_HC_TEMP_SP", "4/7/70": 4304, "bus_datatype": "uint16", "type": "register", "address": 207, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_LVL1", "4/7/71": 4305, "bus_datatype": "uint16", "type": "register", "address": 208, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_LVL2", "4/7/72": 4306, "bus_datatype": "uint16", "type": "register", "address": 209, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_LVL3", "4/7/73": 4307, "bus_datatype": "uint16", "type": "register", "address": 210, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_LVL4", "4/7/74": 4308, "bus_datatype": "uint16", "type": "register", "address": 211, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_LVL5", "4/7/75": 4309, "bus_datatype": "uint16", "type": "register", "address": 212, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_IN1", "4/7/76": 100, "bus_datatype": "float16", "datatype": "int16", "type": "register", "address": 213, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_IN2", "4/7/77": 101, "bus_datatype": "float16", "datatype": "int16", "type": "register", "address": 214, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_IN3", "4/7/78": 102, "bus_datatype": "float16", "datatype": "int16","type": "register", "address": 215, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_IN4", "4/7/79": 103, "bus_datatype": "float16", "datatype": "int16","type": "register", "address": 216, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_HC_TEMP_IN5", "4/7/80": 104, "bus_datatype": "float16", "datatype": "int16", "type": "register", "address": 217, "value_multiplier": 0.1, "writable": 0 },
{ "name": "REG_DAMPER_PWM", "4/7/81": 4100, "bus_datatype": "float16", "type": "register", "address": 300, "writable": 0 },
{ "name": "REG_ROTOR_STATE", "4/7/82": 4101, "bus_datatype": "uint16", "type": "register", "address": 350, "writable": 0 },
{ "name": "REG_ROTOR_RELAY_ACTIVE", "4/7/83": 4102, "bus_datatype": "float16", "type": "register", "address": 351, "writable": 0 },
{ "name": "REG_SYSTEM_TYPE", "4/7/84": 4103, "bus_datatype": "uint16", "type": "register", "address": 500, "writable": 1 },
{ "name": "REG_SYSTEM_PROG_V_HIGH", "4/7/85": 4104, "bus_datatype": "uint16", "type": "register", "address": 501, "writable": 0 },
{ "name": "REG_SYSTEM_PROG_V_MID", "4/7/86": 4105, "bus_datatype": "uint16", "type": "register", "address": 502, "writable": 0 },
{ "name": "REG_SYSTEM_PROG_V_LOW", "4/7/87": 4106, "bus_datatype": "uint16", "type": "register", "address": 503, "writable": 0 },
{ "name": "REG_SYSTEM_BOOT_PROG_V_HIGH", "4/7/88": 4107, "bus_datatype": "uint16", "type": "register", "address": 504, "writable": 0 },
{ "name": "REG_SYSTEM_BOOT_PROG_V_MID", "4/7/89": 4108, "bus_datatype": "uint16", "type": "register", "address": 505, "writable": 0 },
{ "name": "REG_SYSTEM_BOOT_PROG_V_LOW", "4/7/90": 4109, "bus_datatype": "uint16", "type": "register", "address": 506, "writable": 0 },
{ "name": "REG_STORE_NVM", "4/7/91": 4110, "bus_datatype": "uint16", "type": "register", "address": 548, "writable": 1 },
{ "name": "REG_CLK_S", "4/7/92": 4111, "bus_datatype": "float16", "type": "register", "address": 550, "writable": 1 },
{ "name": "REG_CLK_M", "4/7/93": 4112, "bus_datatype": "float16", "type": "register", "address": 551, "writable": 1 },
{ "name": "REG_CLK_H", "4/7/94": 4113, "bus_datatype": "float16", "type": "register", "address": 552, "writable": 1 },
{ "name": "REG_CLK_D", "4/7/95": 4114, "bus_datatype": "float16", "type": "register", "address": 553, "writable": 1 },
{ "name": "REG_CLK_MNTH", "4/7/96": 4115, "bus_datatype": "float16", "type": "register", "address": 554, "writable": 1 },
{ "name": "REG_CLK_Y", "4/7/97": 4116, "bus_datatype": "float16", "type": "register", "address": 555, "writable": 1 },
{ "name": "REG_CLK_WD", "4/7/98": 4117, "bus_datatype": "float16", "type": "register", "address": 556, "writable": 0 },
{ "name": "REG_FILTER_PER", "4/7/99": 4118, "bus_datatype": "float16", "type": "register", "address": 600, "writable": 1 },
{ "name": "REG_FILTER_DAYS", "4/7/100": 4119, "bus_datatype": "float16", "type": "register", "address": 601, "writable": 1 },
{ "name": "REG_DEFR_STATE_VTC", "4/7/101": 4120, "bus_datatype": "float16", "type": "register", "address": 650, "writable": 0 },
{ "name": "REG_DEFR_CONFIGURATION", "4/7/102": 4121, "bus_datatype": "float16", "type": "register", "address": 651, "writable": 0 },
{ "name": "REG_DEFR_UNBAL_ALLOWED", "4/7/103": 4122, "bus_datatype": "float16", "type": "register", "address": 652, "writable": 1 },
{ "name": "REG_DEFR_MODE_VTC", "4/7/104": 4123, "bus_datatype": "float16", "type": "register", "address": 653, "writable": 1 },
{ "name": "REG_DEFR_STATE_VR", "4/7/105": 4124, "bus_datatype": "float16", "type": "register", "address": 670, "writable": 0 },
{ "name": "REG_DEFR_MODE_VR", "4/7/106": 4125, "bus_datatype": "float16", "type": "register", "address": 671, "writable": 1 },
{ "name": "REG_ALARMS_ALL", "4/7/107": 4126, "bus_datatype": "uint16", "type": "register", "address": 800, "writable": 0 },
{ "name": "REG_ALARMS_RELAY_ACTIVE", "4/7/108": 4127, "bus_datatype": "float16", "type": "register", "address": 801, "writable": 0 }
]
}
Reply
#4
Like this:
Code:
{
"manufacturer": "SystemAir",
"description": "Residential unit modbus",
"read_delay": 0.1,
"mapping": [...]
}
Reply
#5
Seems to be the same result. It works for a less then a minute after I save the RTU settings, then the same error occure. Poll intervall i sat to 15 seconds and timeout 0,5 seconds. Is there anything I should change here? I have done some tests without that solving anything. Or maybe I should change the delay time in the profile higher then 0.1s?
Reply
#6
Have you created the device again from scratch after updating the profile? Updating the profile won't change existing device settings.
Reply
#7
(07.10.2024, 08:34)admin Wrote: Have you created the device again from scratch after updating the profile? Updating the profile won't change existing device settings.

Yes, I deleted the device and the profile, and added everything from scratch after I added the delay in JSON.

Okey, I think I figuered out what was causing the problem... I had made a modbus script long time ago for some testing that was still activated.... When I deactivated it, it seems to be workig as expected. So the fault was on my side! 
Sorry for wasting your time, and thank you once again! Big Grin
Reply
#8
You can try setting read_delay to 1 second (max value). If it works then keep lowering it until it stops working.
Profile can be improved by using block read:
https://forum.logicmachine.net/showthrea...9#pid30319
https://forum.logicmachine.net/showthrea...8#pid19268
Reply


Forum Jump: