
Mjones (Customer) asked a question.
Creating a lighting project controlled by my D-06 PLC and having program issues maybe someone can help or even let me know can't be done. I have a Photocell to input to start a sequence to turn on my lights. I have 7 Perimeter breakers and 32 RR9 pulse latching relay combined 2 per channel, so 16 ON and 16 OFF outputs. I will also use the EA9 HMI to use as a basic override, in case of Photocell failure and for individual control for Maintenance repairs.
On 7 Perimeter I have configured as Photocell on(lights ON) with the "OR" lines for C40(EA Button "All On/off" control) and C41-C47(EA Button for individual light) This works.
The Latching relay code is different and best to see attached picture. Because they are latching I only need a "Pulse" to latch in either on or off. My issue is trying to get the latching relays to individually turn on/off with a HMI interface. Everything thing I try either stops my sequence or leaves output always on, or both at same time.
Any help is appreciated and if more screen shots are needed or info let me know
As I understand, Y0 thru Y7 are PLC outputs that turn on standard relays that turn on Perimeter Lights #1 thru #8. These Y outputs are shown on 1st photo, Y0 thru Y4 are shown, assume Y5 thru Y7 are similar. And this works. Per rung, any of the parallel inputs turn on, that light turns on, inputs turn off, that light turns off. And that works.
The problem is with the outputs for "Lights on group 1", "Lights on Group 2", etc., shown on 2nd photo. You have physical latching relays controlled by PLC outputs, and each latching relay requires (2) PLC outputs, (1) output to latch the relay, and (1) output to unlatch the relay. And these outputs need to be on for a short time to latch and unlatch, the time being set by your timers. And these latching relays control other lights called "Lights on Group x". It looks like Y10 output latches the physical latching relay for "Lights on Group1", But I do not see any outputs that would unlatch the physical latching relay. Again, if I understand, you need to have a PLC output that would unlatch that physical latching relay. (Unless these unlatch outputs are on other rungs not shown)
To answer your other question, yes, absolutely the DL06 and EA9 can do this! Perfect PLC for this.
I found it easiest to have a written (in plain English) the logic that is needed. This can be understood (an approved) by the people concerned and this makes PLC programming easier. Then these logic descriptions could become your rung comments, as suggested in the photo. This shows a Latching output, Y10, for Group 1 Lights latching relay, and an Unlatching output, Y11, for Group 1 Lights latching relay.
In the first reply, yes Y0 thru Y6 are to turn on contactors for perimeter lights. As long at X0 sees the input from photocell lights are on and off during day when photocell is off. If you see how I added the C41 for light 1, C42 light 2 and so on, those are my HMI commands to individually turn on a single light for purpose of testing or repairing for maintenance and this function is what I am trying to get working for interior lights. My logic on the interior lights Y10 thru Y47 represents each group of on and off, Y10 on, Y11 off, Y12 on, Y13 off, ect and so on. This logic works, I just have the timer end RST C then SET next C that starts pulse to turn on next light. You don't see the OFF sequence I didn't alternate I ran all ON first then all OFF after with the negative change to X0. It is the same function as ON just in reverse.
Looking at your logic I see that instead of my piggy backing light to light I should be controlling one light at a time. Using your logic I did accomplish the control I want so Thank You for that. I did have to add C50 as positive/negative to control it. Unfortunately I can't see anything in the EA9 that shows the positive/negative change so say when I active light its ON but even if it gets turned off by C40 or X0 button icon still sees it on. Is there something that sees the change of X0/C40 and follows it?
To answer my own question I say EA9 doesn't do that, won't follow the C but since just maintenance I can turn the ON/OFF text to "Light Toggle" and colors all grey and thats it the button simply toggles the C command
But gain Thank You for fixing my logic
You're welcome, very glad you got it working! On a side note, your DL06 (and also some other PLCs) includes "Stage" programming, which allows very easy and powerful automatic sequence-type control programming.