Page 1 of 1

Starting Modbus communication with pressing a button.

PostPosted: Thu 07. Jun 2018 16:16:15
by Krzysztof Gut
Hello!
I would like to know, if there is possibility of starting communication by a Modbus protocol not instantly after starting aplication but after pressing a button with functtion (e.g. 2 buttons start polling and stop polling). I need this functionality for a sensor, i would like to stop reciving data from it fort the time i will move it to another place and then start getting data on a plots again.
I was lookig for this utility in modbus configuration, but i didnt find it. If there is a way, I would be grateful of explanation how to set it up.
Regards,
Krzysztof Gut.

Re: Starting Modbus communication with pressing a button.

PostPosted: Fri 08. Jun 2018 11:36:50
by Kazimierz Heczko
Hello,
this can be done by use two-state button PmiButtonTwo with data binding to PmCommData object to property UpdateEnabled.
Details in documentation:
https://www.promotic.eu/en/pmdoc/Object ... nabled.htm
Regards