- Posts: 61
- Thank you received: 0
mb2hal communication pin
6 years 11 months ago #151515
by FedX
mb2hal communication pin was created 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
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 to join the conversation.
6 years 10 months ago #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.
You could use a ddt to turn on a warning LED any time that that number increased.
Please Log in to join the conversation.
6 years 10 months ago #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 to join the conversation.
6 years 10 months ago #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 to join the conversation.
Time to create page: 0.133 seconds
