Quick Question

Cryometrix

Member
Join Date
Dec 2014
Location
Utah
Posts
20
So I am not a programmer, so excuse my ignorance and lack of knowledge, but I need to make an edit to the PLC ladder logic. Here is the scenario. On our HMI (E1071) we have a switch which can be turned on which turns on M604. When M604 turns on, it allows some valves to open. If the power turns off and back on, M604 resets to off, so the valves turns off. Is there an easy way to get this to stay on even if the power is turned off and then back on?

Thanks for your help!
 
Use a contact of M604 to hold itself energized and make sure that M604 is "Retentive".
I have no idea how to do this in an unknown PLC but the concept is the same in them all.
 
Retentive Bit

The simple method would be to use a Latched/Set bit. However, you will find many on this forum opposed to using those - and one-shots as well. You need to manage them accordingly via first-scan housekeeping and be good at finding/monitoring them throughout spaghetti logic as well. In your application most of this wouldn't apply as long as it's safe for the process to maintain the state of the output between power cycles.
 
Making it retentive is probably the best way to do it, all it does is remember the state of the bit when power is off, shouldn't be any new code to write.

I am not familiar with Mitsubishi PLCs so I can not tell you the exact steps but the help file might have something
 
from what I have read, any relays from 500-1023 are latched relays, so that save their state when powered off. I am using M604, but it is not saving its state when powered off.
 
so if I use M1024, its default after restart is on. So even if I shut the unit off with M1024 off, when it turns back on, M1024 is on. Latch is set for 500-1023.
 
Do you want to restart in the mode (enabled or disabled) that was present at power-down?

Or do you want it to start-up always enabled?
 
Hello,
You need to go to the PLC parameters in the project tree and under the device tab you can assign the range of relays you want to be latching.


Hope this helps,
Dave

plc's fx parameter example.PNG
 
dave, I looked at the plc parameters and it is set to have 500-1023 latching. I am using M604, so it should be latching. What could cause it to reset. M604 is only mentioned on the one line of code, I do not see anything that is resetting it.
 

Similar Topics

So the quick and short of the situation is that I designed an axle press that was sent to one of my company's other facilities. That facility just...
Replies
19
Views
4,194
So I have a PID loop on an 1756-L61 running V17 software just for background. Also the PID PV is a pressure transmitter and the CV is speed sent...
Replies
1
Views
893
Has anyone come across a 3 turn potentiometer that is panal mounted with either a 22 or 30 mm hole? I have been looking but nothing so far. They...
Replies
20
Views
4,665
Hi, I am just learning CCW, finally got connected to a micro820. I'm wondering what the Version number means. The program that was already in the...
Replies
1
Views
1,611
How do I measure if I am getting a signal out of the plc output? All of the outputs are giving me the same voltage, however I am certain that not...
Replies
6
Views
2,163
Back
Top Bottom