ASCII String Compare Clear on Powerloss

JZerb

Member
Join Date
Oct 2016
Location
Here
Posts
423
Having an issue, this is my first attempt at setting something like this up, and hoping its just something minor im missing. scenario.

have a Panelview800, using the Current User system tag in the Global Connections to write to a Current_User tag that i made in the external tags tab in CCW. That tag writes to a String address in the Micrologix 1400, which then has an ASCII String Compare instruction setup and that in return sets a Boolean bit to tell the PLC whom is logged into the HMI. The issue im having is if someone is logged into the HMI then there is a power loss, that ASCII String Compare instruction continues to evaluate as true when the power comes back and there for a Comm Error pops up on the Panelview800. If i unplug the ethernet cable from the PLC, or the ethernet switch, or the Panelview and then plug it back in, all is well.
 
There is a first scan bit in the S2 file i think it is, that you could use to clear the string when the PLC powers up.

Why does the PLC lose power but not the HMI?
 
they both lose power. its on a little test station i have for work.

it actually seems to happen on first power up, and then all subsequent power ups after that, not just when someone is logged into the HMI and then power is removed and turned back on. to make it even more interesting, if i unplug the ethernet cable from the HMI or the switch and plug it back in it doesnt clear the error. it will only clear if i unplug the cable from the switch to the PLC.
 
i did forget to add that into the ladder, thanks.

but unfortunately that didnt fix the issue. when everything first powers up there is a button on the screen thats visible that should only be visible after someone logs in, the HMI sits there for a bit, then returns an error that says it unable to write to the string in the PLC that holds the data to allow or disallow that button to be visible.
 
This is why I control my HMIs in all our small pump stations with a relay from the PLC. When the door is closed and no one is on site, I turn off the HMIs. Also saves batteries during power outages.

You could just power the HMI as long as the PLC is running, with an always on output
 

Similar Topics

I have a Horner PLC that is reading Ascii string from a device. When the device responds, it responds with the hex value in Ascii. I need to...
Replies
8
Views
2,381
HI Guys So i am trying to write a real SINt or DINT value into a string tag. If in string browser I write it manually, no problem. But how can I...
Replies
8
Views
5,959
Have an unusual one here, guys... I have a remote machine that is sending my 1769-L33ER five 16-bit integers that represent 10 ASCII characters...
Replies
4
Views
2,227
Hello gentlemen, A few days ago I was tasked with converting an old panelview 1400e to a panelview plus 7 application. Everything went well except...
Replies
1
Views
1,313
hi, i try to capture barcode data using UDT with SINT ascii array. i have all the data i need but it in array format, how can i convert to 1...
Replies
5
Views
3,057
Back
Top Bottom