Rslogix 5000

DBLD99

Member
Join Date
Oct 2003
Location
USA
Posts
230
Hello everyone, I was wondering i need to use some system time in my program but I dont see anywhere where i can read the controller time I set in the properties window. Anyone have any ideas
thanks for your time
 
The answer to this type of question is not only brand specific, it is usually model specific as well. A good answer will depend on your providing this info. However, for many models the time is in S:40, S:41, and S:42.
 
Last edited:
In the Logix-family controllers, a lot of the things that were formerly in the "S" Status file in SLC/PLC are accessed using "Get System Variable" (GSV) instructions.

The WallClockTime object is a good example. You execute a GSV instruction and make the target an array of seven DINT values:

DateTime DINT[7] The Date and Time in human readable format as follows:

This: Contains the:
DINT[0] year
DINT[1] integer representation of the month (1 - 12)
DINT[2] integer representation of the day (1 - 31)
DINT[3] hour (0 - 23)
DINT[4] minute (0 - 59)
DINT[5] second (0 - 59)
DINT[6] microseconds (0 - 999,999)
 
Thanks

Thanks guys for the input works good. Didnt know about the the get status instruction.
thanks again
 

Similar Topics

Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
2
Views
154
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
574
First off, I'm a hobbyist-level programmer, and this program isn't controlling anything anything that could even remotely be considered "life...
Replies
18
Views
514
Hello all, I have a question in regards to RSlogix 5000. I am having issues with the program force closing when I try to make online edits. We...
Replies
0
Views
119
Back
Top Bottom