CompactLogixs Month format

Martin T.

Member
Join Date
Aug 2002
Location
Northeastern Oklahoma
Posts
177
Hey All,

This is my first time dealing with RsLogixs 5000, having to dive in head first. Here is the set up and a brief overview (as best as I can explain it), CompactLogixs L35E, PV+ 1000 and RSSQL.

The problem I am having is on Date_Time[1] we are needing to have the a leading zero if the month is 1-9 for the blend date(ie 04272005), I haven't been able to figure out how. The blend number is displayed at the PanelView and recorded via RSSQL. We can live with the single digit but our customer wants two digit month and day.
Here's is the section of the ladder that deals with the blend number:


Any Ideas and help would be greatly appreciated.

Thanks,

Martin
 
Last edited:
check if your month is < 10 and if so concatonate a DTOS of 0 to the month first then concatonate the rest. this will work if you are recording it as a string value
 
I'm not in a position to test it out for you right now but surely the numeric display object can be set to display 2 digits and pack with zeroes.

Anyone on line with PanelBuilder32 right now to check this?
 

Similar Topics

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...
Replies
4
Views
864
https://www.theregister.com/2022/11/28/fred_mythical_man_month_brooks/?td=rt-3a
Replies
2
Views
1,180
Hey guys, I need help calculating first Monday of the month. Has anyone ever had to perform such calculation? Rockwell has UFDB that calculates...
Replies
10
Views
2,688
Hello everyone I am suffering problem on unity pro software, i want to separate day,date ani time. And time is also required in separate in hour...
Replies
7
Views
2,129
Hi, good day. I look for the way of set date from Factory Talk to RsLogix5000 tag. I was find a tag DateAndTimeString(Because only me useful...
Replies
8
Views
5,944
Back
Top Bottom