advertisement
from the Need Processor Time to Match Real Time department...
Automatically run "Set Date & Time" (PLC-5)
PLCs and related questions. topic
Posted by Guntoter on 9 June, 2005 - 1:09 am
When you go to Processor Status (main tab) there is a button to reset the processor time to the time of the PC that you are running it from. I need to be able to simulate pushing that buttom from a line of the ladder logic. The processor is an Allen-Bradley PLC5-60.


Posted by Trevor Ousey \(List\) on 10 June, 2005 - 5:15 pm
The time and date registers are available via the S2 (status) file. If I remember rightly, it is S:38 to S:42. Check the help files in RSLogix5. By writing a value into thyese registers, you can set date and time.


Posted by Dave on 11 June, 2005 - 10:15 am
Each of those registers are available but I am not sure how you would simulate the "current time" to have written to them, somehow the software is reading the computer clock that you are on and writing it to the "S" registers that the date and time represent (not at computer to see S register numbers). I am not sure how you will have you ladder code access your local computer to get its time/date.

Dave


Posted by a1kryten on 11 June, 2005 - 10:23 am
have you got a pc permanently connected to the PLC-5? does it run scada software?


Posted by Hugo at IAI on 11 June, 2005 - 10:20 am
When the button you mention is pushed, where will the time information come from? When a programming PC is connected to the PLC-5 the programming software moves the time info from the computer to the PLC. If the ladder logic is enabled with a button, the computer might not be connected, so where does the time info now come from? I have done what you ask for, but there has to be an information source for the time/date.

Hugo


Posted by Evandro on 11 June, 2005 - 10:16 am
When you go to Processor Status (main tab) there is a button to reset the processor time to the time of the PC that you are running it from. I need to be able to simulate pushing that buttom from a line of the ladder logic. The processor is an Allen-Bradley PLC5-60.

>You can move any values to the clock calendar of 5/60 processor using MOV instruction.
S:20 = Month
S:19 = Day
S:18 = Year

Evandro Vizicato
evandro.vizicato@uol.com.br


Posted by Russ Kinner on 15 June, 2005 - 6:59 pm
Projects that I have been involved in that needed to set PLC clocks had several PC connected to the same network. If you use an HMI that has its clock values available, you can periodically send the hours/minutes/seconds value to the PLC just as you would if you entered a value for a process variable (SP, alarm points, etc.) We decided on 2 AM every morning to send this data to all PLCs on the network.

Separately, another PC (the one that was visible from the corporate Intranet) set its time to an Internet time standard and acted as a time source for the PCs connected to it. This is not ultra-accurate but will keep everything within a second or two.

A free application I like is "Dimension 4" from http://www.thinkingman.com. It allows you to set an interval between synchronizations, graphs a history of how much correction is made each time, choose from a number of time sources, etc.

With the information you already have from other posts, you should be able to get something up and working.

Regards,
Russ

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2014 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
Just because your doctor has a name for your condition doesn't mean he
knows what it is.
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive