mb2hal communication pin

More
29 Nov 2019 18:46 #151515 by FedX
Hello all,

I have just set set up my VFD with mb2hal. I would like to see if the communication is ok and display the status via a LED in my gui. But I can't find any pin for this.. there's a debug option 10- comm_time_out, I've set it up but I can't see it in my Hal pins..
Has anybody done a com Ok pin yet?

Best regards

Please Log in or Create an account to join the conversation.

More
02 Dec 2019 14:47 #151752 by andypugh
Replied by andypugh on topic mb2hal communication pin
There seems to be a ....num_errors pin, does that help?

You could use a ddt to turn on a warning LED any time that that number increased.

Please Log in or Create an account to join the conversation.

More
03 Dec 2019 06:29 #151818 by FedX
Replied by FedX on topic mb2hal communication pin
Yes i also found the num_errors pin. I dindt knew the ddt function i think that could work, thank you !

Please Log in or Create an account to join the conversation.

More
03 Dec 2019 19:38 #151894 by FedX
Replied by FedX on topic mb2hal communication pin
Ok it was much easier than I expected. num_errors counts up when Modbus communication times out and resets to 0 when the connection is up again. So I just used comp.equal to 0 and connected it to a LED in my gui :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum