Im currently building a file for a redlion Productvity unit "PTV". Pretty sweet device!
I'm trying to setup a page to display comms failure and have it partially working. I have 6 tcp/ip connections to M340 processors utilizing the Schneider Master comm driver.
I have a tag created for each connection (COMM_STATUS_1) for example with a source of general with the command IsDeviceOnline(PLC1). I then have 2 graphic indicators overlapping (red and green). I have the visibility properties for the green indicator set as COMM_STATUS_1 == 1. value of 1 being the integer value returned if the connection is good. I also placed the tag on the display to show the int value to rule out my visibility properties.
So if i power up with the comm link down the red indicator is displaying red which is correct. If i plug in the cat 5 to my M340 the indicator goes green (1). Works perfect, if i then unplug the link the indicator stays green.....for ever. Until i navigate from that page and back to it, after that the indicator displays red (0). Its like when i navigate back to the display page it polls that tag again and is correct. I have tried a number of things one being in the display properties setting a 5 second time out and running a task of GoToPage(xxx) to try to force it to reload the page. That did not work.
I also tried switching my command over from IsDeviceOnline to GetDeviceStatus. I experienced the same results.
I also tried under the page properties using the On Tick to GoToPage(xxx) to try to force it to reload the page again. No success...
Im going to try using a straight Modbus TCP/IP master tomorrow when I'm back at my test rack to see if the issue is with the schneider driver.
I have yet to contact Redlion but will send an email tomorrow morning. I just wanted to see if some of the talented individuals on this site may have some input on the matter.
Thanks in advance for your time!
I'm trying to setup a page to display comms failure and have it partially working. I have 6 tcp/ip connections to M340 processors utilizing the Schneider Master comm driver.
I have a tag created for each connection (COMM_STATUS_1) for example with a source of general with the command IsDeviceOnline(PLC1). I then have 2 graphic indicators overlapping (red and green). I have the visibility properties for the green indicator set as COMM_STATUS_1 == 1. value of 1 being the integer value returned if the connection is good. I also placed the tag on the display to show the int value to rule out my visibility properties.
So if i power up with the comm link down the red indicator is displaying red which is correct. If i plug in the cat 5 to my M340 the indicator goes green (1). Works perfect, if i then unplug the link the indicator stays green.....for ever. Until i navigate from that page and back to it, after that the indicator displays red (0). Its like when i navigate back to the display page it polls that tag again and is correct. I have tried a number of things one being in the display properties setting a 5 second time out and running a task of GoToPage(xxx) to try to force it to reload the page. That did not work.
I also tried switching my command over from IsDeviceOnline to GetDeviceStatus. I experienced the same results.
I also tried under the page properties using the On Tick to GoToPage(xxx) to try to force it to reload the page again. No success...
Im going to try using a straight Modbus TCP/IP master tomorrow when I'm back at my test rack to see if the issue is with the schneider driver.
I have yet to contact Redlion but will send an email tomorrow morning. I just wanted to see if some of the talented individuals on this site may have some input on the matter.
Thanks in advance for your time!