RS Logix 5000 clock function

Terrep

Member
Join Date
Nov 2007
Location
Sydney
Posts
38
I need to control a water solenoid to turn on for an hour in the morning and an hour at night 7 days a week. Is there a function in RS Logix 5000 I can use?
 
Hi

Not one on its own that I know of.
You could use the plc time by using a gsv instruction and then with two lim instructions. This would get the result you want

Donnchadh
 
You need to define a 7 element DINT array with the tagname DateTime (you can call it what you want, I call it DateTime)

Then using a GSV instruction set the class name to WallClockTime, Attribute to LocalDateTime, and Destination is DateTime[0]

GSV WallClockTime,,LocalDateTime,DateTime[0]

DateTime[0] will be the year,
DateTime[1] will be the month,
DateTime[2] will be the date,
DateTime[3] will be the hour in 24hr format
DateTime[4] will be the minute
DateTime[5] will be the second
DateTime[6] will be microseconds

Now using compare or LIM instructions you can create a rung to turn on the valve.

Example

BST EQU DateTime[3] 7 NXB EQU DateTime[3] 19 BND OTE SolnValve


Will turn on the solenoid valve when the hour is 7:00am and 7:00pm
 
GSV WallClockTime,,LocalDateTime,DateTime[0]

BST EQU DateTime[3] 7 NXB EQU DateTime[3] 19 BND OTE SolnValve


Terrep, the above lines from TConnolly are examples of the ladder logic to perform the task he described.

1)Copy the first line above
2)Add a rung in Logix5k
3)Double click on the rung number
4)Look for the text entry just above the ladder window
5)pPaste the text into that text box
6)Click the check box (or hit enter) to the left of the text entry
7)Repeat with the next line above

You will either need to create the tags that TConnolly provided, or modify them to fit the tags you may already have (like the solenoid)
 

Similar Topics

Hey everyone, I want to add the clock into my RS Logix 5000 program. Looking at other threads, I learned to use the GSV command, but I still...
Replies
11
Views
9,500
Hi to everybody, i've a problem using Logix 5000 Clock Update Tool, i'm trying to synchronize a CompactLogix clock but the applicantion always...
Replies
7
Views
7,627
Hi guys. Hoping someone can give me a hand, or at least point me in the right direction. I have the Logix 5000 Clock Update Tool version 2.4.2...
Replies
1
Views
4,754
Dear Kind advisors, I need help on the title mentioned subject. The logic i wrote as attached is working and will update the CPU time clock after...
Replies
15
Views
14,839
I need a clock for a 1756-l72 ver 20. I can not use the wall clock because it is used for reporting. i need a clock that the time can be changed...
Replies
3
Views
2,116
Back
Top Bottom