Jump to content

RTC time to String


Rob Miller

Recommended Posts

I'm brand new to UniLogic so it's probably right in front of me and i can't find it.

How do i get a string of the date & time? I see the RTC Date and Time system tags that consist of the parts but i need to get a strings of mm/dd/yyyy and hh:mm:ss

Also, is there a way to concatenate strings? I'd like to save a data table to a SD file based on a user input name, ascii date, ascii time (name_mmddyyyy_hhmmss) 

 

Link to comment
Share on other sites

  • 6 years later...
  • MVP 2023

I'm assuming you're working with a UniStream.  This PLC does not have a native RTC to ASCII function.   Read up on UDFBs (User Defined Function Blocks) in the Help - these are loadable functions written in ladder code.  Flex has posted a UDFB file above that you can load into your PLC to get the functionality you're looking for.

Joe T.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...