lostcontrol
Lifetime Supporting Member
We have a site where there are 2x SLC's that we recently configured to share information for Scada display purposes. I was informed this week that the remote values were not updating.
Upon investigation, the MSG instruction had an error. Also, the TO bit was set.
From the manual:
When I un-set this bit, comms were re-established. What I wanted to ask, do you use the TO field, or roll you own? What is the best method for recovery of this type of error, just unlatching the error bit and keep re-trying?
I think having the timeout function is a good idea, as it is bit of code that is already done for you.
As this code was only for Scada display (due to the DH+ network already being present), I got lazy and did not add any timeout/error checking code I will be doing this today.
Upon investigation, the MSG instruction had an error. Also, the TO bit was set.
From the manual:
I cannot recall setting this bit when I configured the instruction, but as it has to be set, perhaps I did. And as I had not set Control Word 8 to any value, the instruction timed out straight away, if the remote node was unavailable.You can set this bit in your application to remove an active message instruction from processor control. You can use either your own timeout control routine or the internal timeout control. If you use your own timeout control routine the Timeout Value must be set to zero. If you use the internal timeout control, set the Timeout Value between 1-255 seconds.
When I un-set this bit, comms were re-established. What I wanted to ask, do you use the TO field, or roll you own? What is the best method for recovery of this type of error, just unlatching the error bit and keep re-trying?
I think having the timeout function is a good idea, as it is bit of code that is already done for you.
As this code was only for Scada display (due to the DH+ network already being present), I got lazy and did not add any timeout/error checking code I will be doing this today.