Modbus variables: import massive - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Gateway (https://forum.logicmachine.net/forumdisplay.php?fid=10) +--- Thread: Modbus variables: import massive (/showthread.php?tid=1371) Pages:
1
2
|
RE: Modbus variables: import massive - Domoticatorino - 04.08.2019 (03.05.2018, 06:40)Erwin van der Zwart Wrote: Hi, Hi Erwin, further to your reply above, this procedure is valid for modbus RTU as well? I have about 20 modbus fancoils and I would like to generate knx objects for each modbus device. The example is: Knx addresses 1/1/xx for modbus address device 1. Knx addresses 1/2/xx for modbus address device 2. How can do that? Thanks. RE: Modbus variables: import massive - admin - 05.08.2019 It should work for both TCP and RTU. The mapping part is the same for both modes. RE: Modbus variables: import massive - Domoticatorino - 05.08.2019 (05.08.2019, 06:39)admin Wrote: It should work for both TCP and RTU. The mapping part is the same for both modes. Thank you admin. What I cannot understand about the script is where I declare the modbus address of the modbus device. I have 20 rtu modbus devices. Thanks. Claudio RE: Modbus variables: import massive - Daniel - 05.08.2019 Then count amount of registers your device has then replace 255 with your register number. Then run this script once for each slave and change grp_address. RE: Modbus variables: import massive - Domoticatorino - 05.08.2019 (05.08.2019, 07:16)Daniel. Wrote: Then count amount of registers your device has then replace 255 with your register number. Then run this script once for each slave and change grp_address. Hi Daniel, so everything works fine. Except for some modbus variables which have been not linked to any knx address. Please find enclosed what I mean. How can sort it out please? Thanks. RE: Modbus variables: import massive - Daniel - 05.08.2019 Registry which are not mapped to object are ignored. This is by design as there is no point to pool something which you can't use in the system. RE: Modbus variables: import massive - Domoticatorino - 05.08.2019 (05.08.2019, 11:28)Daniel. Wrote: Registry which are not mapped to object are ignored. This is by design as there is no point to pool something which you can't use in the system. Sorry Daniel, but it is not clear. I mean that on json profile registry those variables are mapped as all others. But they have been left and not linked to any KNX address in the automatic mode starting the script. Is strange or not? RE: Modbus variables: import massive - Daniel - 05.08.2019 A sorry you referring to automatic mapping by script, too many threads To be honest I never used this script. I would need to see the profile. RE: Modbus variables: import massive - admin - 05.08.2019 This is caused by mismatch of bus_datatype and datatype fields. Try changing this line: Code: datatype = mapping.bus_datatype or mapping.datatype, RE: Modbus variables: import massive - Domoticatorino - 05.08.2019 (05.08.2019, 11:44)admin Wrote: This is caused by mismatch of bus_datatype and datatype fields. Great!! Now it's working perfectly. Thanks. |