Starting Modbus communication with pressing a button.

This is the main technical forum for discussing problems that were encountered by users while developing PROMOTIC applications, and their possible solutions.

Starting Modbus communication with pressing a button.

Postby Krzysztof Gut » Thu 07. Jun 2018 16:16:15

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.
Krzysztof Gut
 
Posts: 2
Joined: Tue 29. May 2018 21:34:04

Re: Starting Modbus communication with pressing a button.

Postby Kazimierz Heczko » Fri 08. Jun 2018 11:36:50

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
Kazimierz Heczko
 
Posts: 69
Joined: Thu 13. Dec 2012 9:28:56


Return to I don't know how to...

Who is online

Users browsing this forum: No registered users and 6 guests

cron