Error in communication

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

Error in communication

Postby mehatronicman » Wed 27. May 2015 13:53:32

Hi to all,
Does anyone know how to set bit for the communication status. I want to know when my communication was broken,and see that status on screen...

Can anyone knows that?

Thank you very much
mehatronicman
 
Posts: 7
Joined: Tue 18. Nov 2014 14:47:41

Re: Error in communication

Postby admin » Wed 27. May 2015 14:25:00

If you are using PmCommMsg for your communication then you can detect the error easily in the onEndOfTransfer event – it contains the error code.

For more details see:
http://www.promotic.eu/en/pmdoc/Objects ... ansfer.htm

If you are using PmCommData or PmCommClientData for your communication (both directly or via data extensions) then you can detect the communication status by checking the Quality of the Var (one item in the Data page).

For more details see:
http://www.promotic.eu/en/pmdoc/Objects ... uality.htm

This type of communication monitoring is used in the Simatic S7-1200 preconfiguration so you can see it there.
admin
Administrátor
 
Posts: 70
Joined: Wed 12. Dec 2012 15:43:09

Re: Error in communication

Postby mehatronicman » Wed 27. May 2015 15:32:19

Thank you for the quick answer.

I would try that.
mehatronicman
 
Posts: 7
Joined: Tue 18. Nov 2014 14:47:41


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

Who is online

Users browsing this forum: No registered users and 11 guests