# \[Feature-6615\]New DT DateTime datatype in Logix

**URL:** <https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127>\
**Category:** Ignition\
**Created:** [September 15, 2022, 4:48pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127 "2022-09-15T16:48:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [September 15, 2022, 4:48pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/1 "2022-09-15T16:48:48Z")

</div>

While working on a new project, I've learned about a new DateTime type in Logix named DT that our controls engineer used. Has anyone else used that within Ignition yet? Or is it possible?

Even though External Access is on, we don't seem to be able to see it in the Tag Browser. So I'm guessing it might be a driver limitation.

Edit: Added link to post about new Time datatypes.

> **[Rockwell Automation Offers New Online Capabilities, Improved Download...](https://ir.rockwellautomation.com/press-releases/press-releases-details/2022/Rockwell-Automation-Offers-New-Online-Capabilities-Improved-Download-Experience-with-Industrial-Automation-Software/default.aspx)**
>
> Studio 5000 Logix Designer® delivers feature additions, hardware support and productivity enhancements The new Studio 5000 Logix Designer version 34 release allows support for the latest hardware, while giving customers an improved download and...

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 15, 2022, 5:01pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/2 "2022-09-15T17:01:36Z")

</div>

Hmm. I’ll have to play with that. (Definitely not in the current driver.)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 15, 2022, 5:04pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/3 "2022-09-15T17:04:09Z")

</div>

Yeah, I’m curious too… can’t immediately think of a reason why it wouldn’t show up.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 15, 2022, 5:05pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/4 "2022-09-15T17:05:07Z")

</div>

Not a structure. Probably one of the CIP elementary types. I recently implemented them in the alpha of my updated Ethernet/IP driver.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 15, 2022, 5:06pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/5 "2022-09-15T17:06:13Z")

</div>

Oh, that would do it, I think. If it’s not one the driver is explicitly aware of it won’t build an OPC UA Node for it.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [September 15, 2022, 5:07pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/6 "2022-09-15T17:07:40Z")

</div>

I don’t have a ton of the PLC side knowledge, looking at it in Logix, I can see it break out to 64 bools. But yeah guessing we will have to pivot to the old ways for now.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 15, 2022, 5:09pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/7 "2022-09-15T17:09:13Z")

</div>

Its probably CIP’s UTIME then. 64-bit UTC microseconds like the GSV WallClock’s currentValue.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 15, 2022, 5:16pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/8 "2022-09-15T17:16:53Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/3/e37959dc2e0a616a18367a7b12dfd6c70f68b00b.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 15, 2022, 5:22pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/9 "2022-09-15T17:22:24Z")

</div>

I don’t know what the datatype code for LDT is, doesn’t seem to have an analog in the CIP spec. Also not sure what elementary types TIME and TIME32 correspond to.

```auto
Logix CIP
---------------
DT DT
LDT ???
TIME32 ???
TIME LTIME
LTIME ???
```

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 15, 2022, 6:17pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/10 "2022-09-15T18:17:15Z")

</div>

- DT =\> UTIME, code 0xC0
- LDT =\> STIME, code 0xCC
- TIME32 =\> FTIME, code 0xD6
- TIME =\> LTIME, code 0xD7
- LTIME =\> NTIME, code 0xDF

Buggers stomped all over the CIP type names.

---

<div class="post-metadata">

**Author:** ![rbanaszak](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rbanaszak/32/6929_2.png) [@rbanaszak](https://forum.inductiveautomation.com/u/rbanaszak)\
**Post date:** [November 15, 2022, 1:48pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/11 "2022-11-15T13:48:04Z")

</div>

Adding a bump, has there been any update with this?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 15, 2022, 2:09pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/12 "2022-11-15T14:09:15Z")

</div>

My new module is in alpha. Would you like to join the test?

---

<div class="post-metadata">

**Author:** ![rbanaszak](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rbanaszak/32/6929_2.png) [@rbanaszak](https://forum.inductiveautomation.com/u/rbanaszak)\
**Post date:** [November 16, 2022, 7:22pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/13 "2022-11-16T19:22:04Z")

</div>

@pturmel I wish had to the time to give it a test! The question was more so towards IA before I relayed the info to my project team to switch to another datatype.

---

<div class="post-metadata">

**Author:** ![jbolognini](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@jbolognini](https://forum.inductiveautomation.com/u/jbolognini)\
**Post date:** [January 28, 2023, 3:43am UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/14 "2023-01-28T03:43:27Z")

</div>

Useful excerpt from the Studio 5000 Logix Help:

> Considerations
> 
> Keep these considerations in mind when using relative time (LTIME, TIME32, TIME) and absolute time (LDT, DT) data types:
> 
> - Use the Move (MOV) instruction as a bridge between systems adopting time and date data types and legacy systems. Using time and date data types and LINT data types with MOV allows the Logix Designer to carry out a straight memory copy.
> - You cannot mix time and date operands with any other kind of data type except LINT. LINT data types were often used in legacy systems for time stamping, so they are the only data types that are interoperable with the time and date data types. The system allows LINTs to be used broadly but it assumes that every LINT is an LDT data type, and type conversion occurs based on that assumption. Systems using LINT microsecond tags would need to:
> - Manage that discrepancy wherever a LINT microsecond tag is used, or
> - MOV its value to a DT tag, or
> - Convert the LINT microsecond tag to nanoseconds and then MOV that value to an LDT tag.
> 
> - For Add (ADD), Subtract (SUB), and Compare Instructions:
> - If both Source A and Source B are relative time, the Dest must be relative time.
> - If Source A is relative time and Source B is absolute time or vice versa, the Dest must be absolute time.
> - In ADD instructions, Source A and Source B cannot both be absolute time.

My personal takeaways:

1. For now MOV these new typed values to LINT tags to capture as Ignition Long tags. Use fromMillis with either divide by 1000 for microsecond DT or 1000000 for nanosecond LDT. e.g.

> fromMillis( {[default]LINT\_Tag\_Value} / 1000 )

1. If we need to write an Ignition Date back to the PLC, use a Long tag with toMillis and multiply by 1000 or 1000000 before MOV'ing back to the DT/LDT tag in PLC logic:

> toMillis( {[default]Date\_Tag\_Value} ) \* 1000

Of course none of this will matter once support is added to the Ignition Logix Driver 😀

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 28, 2023, 3:53am UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/15 "2023-01-28T03:53:30Z")

</div>

The types are present in my beta driver. And my driver includes an `@usec` modifier to transform to/from `java.sql.Timestamp`, retaining the resolution.

---

<div class="post-metadata">

**Author:** ![Ben\_Ricketts](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@Ben\_Ricketts](https://forum.inductiveautomation.com/u/Ben_Ricketts)\
**Post date:** [April 12, 2023, 2:31pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/16 "2023-04-12T14:31:31Z")

</div>

Hi pturmel, has your driver that includes the new date and time data types been released?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 12, 2023, 2:42pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/17 "2023-04-12T14:42:19Z")

</div>

It is on release candidate #2, and I have no blocking bugs. Likely release this Friday.

I suppose I should make a chart in the user manual documenting the Logix names versus CIP specification names.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 12, 2023, 3:09pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/18 "2023-04-12T15:09:32Z")

</div>

Support for these types has been added to the IA driver as well. Might be in the nightly release already, need to check…

edit: pending QA, not yet in the nightly release.

---

<div class="post-metadata">

**Author:** ![KbernhardII](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@KbernhardII](https://forum.inductiveautomation.com/u/KbernhardII)\
**Post date:** [August 26, 2024, 6:30pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/19 "2024-08-26T18:30:45Z")

</div>

Any update to this?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 26, 2024, 6:30pm UTC](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127/20 "2024-08-26T18:30:55Z")

</div>

Released in 8.1.28.

[Next page](https://forum.inductiveautomation.com/t/feature-6615-new-dt-datetime-datatype-in-logix/64127.md?page=2)
