Showing results 1 to 2 of 2

Thread: Straton Reading Wrong System Time

  1. #1

    Default Straton Reading Wrong System Time

    Hi Guys
    I am using get curdatetime block in straton to read the system time(which i use for a logic) in the Server, Now the problem is the block is reading the UTC time but i need UTC+5.30 (my system time is already UTC+5.30 only). The same logic is reading the time correctly in my laptop. Is there any settings to be changed or checked in the Server?

  2. #2
    Join Date
    08.12.2015
    Posts
    39

    Default Re: Straton Reading Wrong System Time

    Hello,
    The "Local" input of the DTCURDATETIME block is not enough to do so?
    At the end, this depends on your target... If this is implemented on your runtime will depend on the choices made when it was built, so this is not sure what will work on a target will work exactly the same way on another one.
    If changing the "Local" input does not change anything then I would suggest to do a piece of program in order to manually add (or remove) 5:30 to what you have on the block's outputs.
    -> Something which could be a little tricky because if it is midnight and you remove 5 hours, there will be some problems… So, Something more to be managed by the program.
    But if this is not implemented on your target, I'm afraid this is the only solution.
    Have a nice day!
    Anthony

Similar Threads

  1. Real-time performancce of STRATON
    By prasadkh in forum straton / zenon Logic
    Replies: 4
    Last Post: 12th December 2013, 12:31
  2. Straton in multi servers system
    By altera in forum straton / zenon Logic
    Replies: 2
    Last Post: 28th May 2013, 08:28
  3. trying to read system time in plc from sicam
    By imran in forum zenon Supervisor
    Replies: 1
    Last Post: 14th May 2012, 02:28
  4. compare time variable with system time
    By flajoso in forum VBA
    Replies: 7
    Last Post: 25th August 2008, 06:47
  5. system time
    By flajoso in forum zenon Supervisor
    Replies: 2
    Last Post: 19th August 2008, 15:07

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •