SpaceLogic KNX Forum
Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.
Link copied. Please paste this link to share this article on your social media post.
Hello,
In homeLYnk, does the possibility exist to change the value of a group address when one of the connected modbus devices is unfortunately disconnected (after timeout) ?
Best regards,
Link copied. Please paste this link to share this article on your social media post.
Hello Jean-Luc,
You can use attached Library with function checkrtu(slave address) and function checktcp(ip, port).
This return you result true or false .. status of Modbus device.
Regarding to result you can change values in Group objects with grp.write(address, value) or grp.update(address, value).
Functon grp.write write new value to KNX TP or IP line, function grp.update just update value internally and don't send value into KNX line.
NOTE: Library is binary coded, becouse it using database and database can be broken with wrong usage.
Lib: Libraries-ModbusCheck.tar.gz - Box
I hope it helps you.
Link copied. Please paste this link to share this article on your social media post.
Hello Jean-Luc,
You can read update time of some mapped registers to object (object must be update most of the time something dynamic ... as current, frequency etc.
following code gives you table with all information about object (register mapped to 0/0/1)
myobject = grp.find('0/0/1')
log(myobject)
* table: [data] * bool: false [export] * number: 0 [updatetime] * number: 1487837856 [id] * number: 1 [decoded] * bool: true [disablelog] * number: 1 [tagcache] * string: [datatype] * number: 1 [address] * string: 0/0/1 [datahex] * string: 00 [units] * string: [value] * bool: false [highpriolog] * number: 0 [comment] * string: [name] * string: string_change [pollinterval] * string:
Then you can read out once more (after time bigger than pooling time!) and compare update time. If numbers are different connection is ok. If the update time is the same then you have some problem with Modbus.
Petr
Link copied. Please paste this link to share this article on your social media post.
Hello Jean-Luc,
You can use attached Library with function checkrtu(slave address) and function checktcp(ip, port).
This return you result true or false .. status of Modbus device.
Regarding to result you can change values in Group objects with grp.write(address, value) or grp.update(address, value).
Functon grp.write write new value to KNX TP or IP line, function grp.update just update value internally and don't send value into KNX line.
NOTE: Library is binary coded, becouse it using database and database can be broken with wrong usage.
Lib: Libraries-ModbusCheck.tar.gz - Box
I hope it helps you.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.