PLC5 Month and Day swapped???

kekrahulik

Member
Join Date
Apr 2009
Location
Lancaster,pa
Posts
397
Anyone seen this? Can explain this?

If I look at my status file, the date is 6-13-2023
These values are:
S18 = 2023
S19 = 13
S20 = 6

When I use these in code (PLC is online), I see the values for S19 and S20 switched???

S18 = 2023
S19 = 6
S20 = 13

Even if I think the status file is labeled wrong, S19 is the day no matter how I read it.

PLC5 date issue.jpg
 
Per the manual, S:19 is 'Processor clock month'.

Note that in your picture the Structured Radix does not specify individual words, just that 'S:20-18' is 'Date'.

It is presumably displayed as MM/DD/YYYY rather than internal order because that is the format they think their users expect (or perhaps there's a setting to change the display format somewhere).
 
The United States has a rather unique way of writing the date that is imitated in very few other countries (although Canada and Belize do also use the form).

Just a comment. I've noticed that other countries use year-month-day or day-month-year but never really investigated it. Either one is a rational hierarchy.

My only objection is to "rather unique." :)
 
Last edited:

Similar Topics

I am using the following formula and I am getting error, Invalid Expression - too many closing parenthesis. when i copy the formula to notepad or...
Replies
4
Views
158
Preface: Kinda long, so I made section titles Intro: I just want to see if anyone here has seen anything similar. A PLC5-40 series C enhanced...
Replies
3
Views
374
Hi, can anyone help me get a pdf file for this RSP files. They are from a PLC5. Thanks
Replies
5
Views
526
Hello all, I am seeing this behaviour where an integer file (N46:33), has an integer in binary (11110) which is 30 in decimal. I did a...
Replies
7
Views
522
Back
Top Bottom