Help with a little code.

PLC Pie Guy

Member
Join Date
Jun 2013
Location
Halifax
Posts
1,144
Hey all.

I need some guidance here. This is something I came across today when a Ref guy noticed that the HMI isn't displaying the correct time for his next Air Unit Defrost Cycle to start. It been this way for years and just now they notice. LOL....

As you can tell by the rung, the intent is to move the next AU_01.StartTime in succession to the tag Next_AU01_Desfrost. It works but as you can see, it will always display the next time in the row. What I'm looking for is to have it move the value of the next ENABLED start time to the tag Next_AU01_Defrost and ignore any that are not enabled. This rung works when all are enabled as it simply steps through the values. However, they are never all enabled.


There's probably more than one way to skin this cat but Ill ask the question...


Any ideas???


Thanks

RSL5K V20.14 on an L43

rung1.jpg
 
HAHA, I see. It definitely is to small to see.

I'm not at my computer anymore so I will re-post this question on Monday with a new image.

Thanks
 

Similar Topics

I am trying to use pylogix to write to a string array ID_Data_Table_Name. In the array there are 200 possible entries. For...
Replies
13
Views
4,020
Hey guys, I have a client that has a v-notch chlorinator that doesn't run off a 4-20mA loop, it instead has two discrete inputs that drive the...
Replies
6
Views
1,857
i am a beginner plc programmer and have some confusion, a little help would be appreciated . why do we use a normally close contact when we are...
Replies
11
Views
2,936
Hello everyone! So, for my job I need to use the web server of a S7-1200 for setting some variables. Thing is, since I'm not the only one using it...
Replies
1
Views
1,362
Hi all, looking for some assistance in how to write a small prog using CCW. I have a signal which pulses approximately every 1.5s for about 0.2s...
Replies
7
Views
1,596
Back
Top Bottom