Mitsubishi register going to 0 on power outage

PFrog

Member
Join Date
Apr 2011
Location
Ohio
Posts
83
Hello,

Just getting a little familiar with Mitsubishi ladder logic and it throws me another curveball. I have a GOT 1600 panel tied to an A series (Mitsi) PLC. I added ladder logic to create cycle counters that are displayed by the GOT. The problem being is that it appears when power is cycled to the GOT it zero's out the PLC register... not cool. I'm looking around for some type of startup configuration but have not seen any yet. Any ideas?

Thanks
 
PLC Logic is written as:
(Conditions that trigger the counter) [DINCP D104]

I

You need to check the PLC parameters and assign which data registers you want to be battery backed.
On the project tree select PLC parameters and go to the device tab. You can define this there.

Regards,

Dave
 
I take it that it is the latch start and end that I would have to adjust. Just wanted to verify that is what has battery backup. Currently the points are 110 thru 248. so I would just have to make sure my values fall within that or change the window (they are currently D104 and D106). If I do change the window I don't have to worry about any additional configuration, correct? Just change the window and write it to the PLC?

Seems a little weird that cycling power on the GOT would cause an issue with the PLC?
 
Probably recycling power on the GOT writes 0 to the registers. That is what I would suspect.
 
Probably recycling power on the GOT writes 0 to the registers. That is what I would suspect.

I agree, that is what it sounds like. I'm not familiar with a "GOT", but I would look for a memory retentive option for the tag that is addressed to the PLC register(s) that is/are being cleared.
 
I take it that it is the latch start and end that I would have to adjust. Just wanted to verify that is what has battery backup. Currently the points are 110 thru 248. so I would just have to make sure my values fall within that or change the window (they are currently D104 and D106). If I do change the window I don't have to worry about any additional configuration, correct? Just change the window and write it to the PLC?

Seems a little weird that cycling power on the GOT would cause an issue with the PLC?

Yes the latch start and latch end is what you are after....just change the setting to include the registers you want and write. No other configuration would be necessary but make sure all the registers you include would be ok to retain their value at power cycle.

As far as just power cycling the GOT and losing the values...that doesn't make sense to me. I don't think that should do anything to the data in the PLC. I will confirm this tomorrow.

Dave
 
[/ATTACH]

I've attached screen shots of the code. I am sending a reset from the GOT if the momentary button is pressed for 5 seconds...

count.jpg
 

Attachments

  • reset.jpg
    reset.jpg
    18.8 KB · Views: 41
[/ATTACH]

I've attached screen shots of the code. I am sending a reset from the GOT if the momentary button is pressed for 5 seconds...

It still does not make sense that your count would reset on a power cycle of only the GOT, regardless if the data register is battery backed or not. You can monitor online the piece of code you posted and power cycle the GOT to watch what happens.

Dave
 
It would appear from the code you have showed us that the registers D104 and D106 are 32 bit.
You are using 16 bit MOV K0 to these registers (instead of DMOV)

I don't think this is your problem, more of a point of good programming.

I know of no instance where rebooting a GOT HMI would cause it to clear registers in the PLC - but then again I have only worked on a few GOT's. Maybe a start up file does this, I don't know
 
It would appear from the code you have showed us that the registers D104 and D106 are 32 bit.
You are using 16 bit MOV K0 to these registers (instead of DMOV)

I don't think this is your problem, more of a point of good programming.

I know of no instance where rebooting a GOT HMI would cause it to clear registers in the PLC - but then again I have only worked on a few GOT's. Maybe a start up file does this, I don't know

There is no startup file to do this that I have ever encountered and I have roughly 15-20 GOT's here I have used for various projects.

Dave
 
I changed the registers to being latched (fixed the code issue with a DMOV) and everything works properly.

I noticed that when I cycled power to the GOT I lost comm to the PLC with my PC running GX. Not sure why since I was plugged into the PLC. It is an A series so maybe the age has something to do with it. I would imagine this is what allowed the registers to reset when not latched? A momentary PLC hiccup when resetting GOT?
 
It would seem that you think you are only power cycling the HMI but in reality you are pulling the plug on both. Sometimes the plc's take a while for the lights to go off after power is disconnected - so you think it's still on.

This coupled with the fact that you lost communication during power down of the HMI and now the registers are battery backed and keeping their data all points to both losing power at the same time.

It's an assumption I know but all the same - glad we got it cleared up :)
 
I'm only cycling power on the HMI, in this scenario, because I am doing an I/O check on it (or anything else) that requires it to do a reboot. The PLC power never drops... I am also glad to be done with it! Thanks for the help everyone!
 

Similar Topics

We have a Mitsubishi Q2a that is not moving data to some of the R registers. This started after the power was removed from the machine for several...
Replies
12
Views
1,432
I am upgrading an A series PLC to a Q series. I understand how the Z register works, but in the original program I have the program just has the Z...
Replies
14
Views
4,314
Dear frnds......... I m facing a problem in my project in mitsubishi plc fx2n 80mr. i want to back up my relay output . i mean i want them active...
Replies
8
Views
4,731
Hey guys, I am looking to track a d register when it is not equal to a certain value. Is there a way for me to send that number to another...
Replies
2
Views
1,304
I want to know about the mitsubishi analog data register...... Like which data register work for channel -0.... which for channel-1 etc. infact i...
Replies
0
Views
1,866
Back
Top Bottom