1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. KUKA Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

$DATE does not match the system time

  • panic mode
  • March 31, 2021 at 8:34 PM
  • Thread is Unresolved
  • panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,076
    • March 31, 2021 at 8:34 PM
    • #1

    any knows of a way to alter or refresh $DATE and sync it with KPC time?

    Simply modifying value of $DATE does not work, message KSS01425 is displayed.

    Here is an example in OfficeLite running KSS8.5.8.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,423
    • April 1, 2021 at 11:32 AM
    • #2

    the base system reads the actual time during powerup.

    As time goes by you will see a difference between windows time and vxworks time ($DATE) on your office lite and there is no way to synchronize while powered up.

    The user interface shows the windows time (next to the message displayed)

    In putty you will see the vxworks time (similiar to $DATE)

    I think that $DATE is write protected and this gives you an error. The error message you've got is probably caused by assigning a value to $DATE instead of assigning a value to $DATE.SEC

  • panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,076
    • April 2, 2021 at 5:45 AM
    • #3

    yup, as expected variable is read only and this messes up logs.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • dave tripp
    Trophies
    3
    Posts
    18
    • April 14, 2021 at 11:24 AM
    • #4

    Hey folks, wanted to piggy back on this thread as I have a related issue. Can also make my own post though.

    System is KRC4 with KSS 8.3.620

    I have the controller set to use our time server for the system time. This is set up and working correctly—however—I have to manually re-sync it (minimize HMI, navigate to control panel, open the time settings, go to internet time, and refresh/update the time) every time after a reboot.

    This of course means that my $DATE time is never actually correct, because as MOM mentioned, "the base system reads the actual time during powerup".

    Would anyone know why the internet time is lost during a reboot? Is this normal?

  • MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,423
    • April 14, 2021 at 12:34 PM
    • #5

    how does the system starts up (hibernate, cold start)?

  • dave tripp
    Trophies
    3
    Posts
    18
    • April 14, 2021 at 2:05 PM
    • #6

    Cold Start. Via, main menu>shutdown>reboot control PC (with cold start selected)

  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,422
    • April 14, 2021 at 7:35 PM
    • #7

    When you reboot the robot, how far off is the clock? How long is the robot off? Are there any robot error messages (especially battery-related ones) when the robot reboots?

  • MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,423
    • April 14, 2021 at 10:38 PM
    • #8
    Quote from SkyeFire

    Are there any robot error messages (especially battery-related ones) when the robot reboots?

    Have you also checked application error (event log)?

  • dave tripp
    Trophies
    3
    Posts
    18
    • April 16, 2021 at 2:21 PM
    • #9

    MOM, I have not checked these log files before. I assume this thread ( Viewing event logs ) will sort me out. I will report back after I have viewed the logs.


    SkyFire, after reboot the clock goes back to Jan 1 2012 or 2013 (this year changes depending on the restart strangely). The robot is off for only a minute or so. No error messages of any kind during startup on the smartPAD .

    Edited once, last by dave tripp (April 16, 2021 at 2:30 PM).

  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,422
    • April 17, 2021 at 4:57 PM
    • #10
    Quote from dave tripp

    after reboot the clock goes back to Jan 1 2012 or 2013 (this year changes depending on the restart strangely). The robot is off for only a minute or so. No error messages of any kind during startup on the smartPAD .

    Weird. I would normally suspect the motherboard CMOS battery is failing, leading to the motherboard clock resetting to "zero" (which varies depending on the BIOS manufacturer) when main power is lost. But if that were the case, the year should be a constant. Not to mention, losing the CMOS memory would usually cause other problems.

    Still, replacing the CMOS battery wouldn't be a terrible idea, just to see what happens.

  • dave tripp
    Trophies
    3
    Posts
    18
    • May 20, 2021 at 11:44 AM
    • #11

    Well, to update everyone:

    One day I did see message 13103 "Battery or battery fuse defective, backup not possible". The message didn't always appear on powerup, but I decided to replace the batteries anyways. So I replaced the batteries and let them charge for about 40 hours, however the issue is still there. I'm wondering if I should have let the batteries charge for even longer.

    SkyeFire, I also realized that the date is always going back to Jan 1 2013, however for whatever reason I do sometimes see a message dated 2012 in the message window on power up (but the system date is still Jan 1 2013).

    I tried both a cold boot, and hibernate, and checking/unchecking "use internet time" (to sync with our time server), but I didn't see any differences.

    I may just put a little script on the controller to force an update with our time server.

    You can see in the images attached, the event message from 2012, but the system time is 2013, and then the time going back to correct after syncing with the time server, and... strangest of all, at one point I turned off the connected welding machine, and when I restarted the controller, the ethernet connection warning messages were from...18 days ago?

    Images

    • kuka_time_4_autoscaled.jpg
      • 141.86 kB
      • 1,919 × 642
      • 35
  • Razzzhead
    Reactions Received
    2
    Trophies
    3
    Posts
    22
    • June 23, 2022 at 10:51 AM
    • #12

    Although this post is from last year, the out of sync issue with $DATE remains. From KSS 8.6 there's a new variable named $DATE_HOST which overcomes the issue and can be used the same way as $DATE. It's a shame they didn't do this years ago.

  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,422
    • June 23, 2022 at 8:52 PM
    • #13
    Quote from Razzzhead

    Although this post is from last year, the out of sync issue with $DATE remains. From KSS 8.6 there's a new variable named $DATE_HOST which overcomes the issue and can be used the same way as $DATE. It's a shame they didn't do this years ago.

    Interesting. Any idea as to what the issue with $DATE was, that they needed to create $DATE_HOST? I happened to have a KSS 8.7 robot handy to try this on, and both variables matched exactly.

  • panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,076
    • June 23, 2022 at 9:37 PM
    • #14

    they probably sync up occasionally but $DATE seem to get out of whack every now and then.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,423
    • June 24, 2022 at 12:06 AM
    • #15

    the answer is and was post #2

    It seems, that kuka finally woke up and allows you to get the actual time with $DATE_HOST!

  • panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,076
    • June 24, 2022 at 1:50 AM
    • #16

    it would be better if they did not create new variable and simply assigned the host value to $DATE.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,423
    • July 1, 2022 at 12:02 AM
    • #17

    This would really have helped in march and october.

    But, why do it the easy way if there is a more complicated way to do it?

  • Zin1701
    Trophies
    2
    Posts
    50
    • May 24, 2023 at 8:04 AM
    • #18

    sorry because this thread is from 2022. but i have a question like this

    the variable $Date and $Date_host is the same ? because when i check the data of 2 variable. they are the same.

  • Loipe
    Reactions Received
    7
    Trophies
    3
    Posts
    38
    • May 24, 2023 at 11:10 AM
    • #19

    hi zin,

    let the system run 3 weeks and then compare them again

    Date_Host is the Time from Windows which can also connected to a NTP server

    Date is the Vxworks time and they can differ like mentioned before

    it is sad the times are not equal. and also so sad the u only get the real time with KSS 8.6 over $DATE_HOST

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • RSI Smooth Motion

    • FlexoWasTaken
    • September 13, 2017 at 11:56 PM
    • KUKA Robot Forum
  • EthernetIP CIP Safety Adapter

    • ownagebyh4x
    • July 24, 2018 at 3:41 PM
    • ABB Robot Forum
  • Vision Guided Robot System Help Please!!

    • steveo86
    • January 26, 2020 at 2:16 PM
    • Yaskawa Motoman Robot Forum
  • Canon 3D Bin Picking

    • Noob1982
    • January 31, 2020 at 4:02 PM
    • Yaskawa Motoman Robot Forum
  • Comarc Issues

    • James Armstrong
    • December 10, 2019 at 11:41 PM
    • Yaskawa Motoman Robot Forum
  • SET pick location via VLOCATION isn't working

    • NHarding64
    • October 18, 2019 at 5:14 PM
    • Adept Robot Forum
  • Kuka Integration with plastics molding press- active output

    • bagged2drag
    • September 24, 2018 at 9:07 PM
    • KUKA Robot Forum
  • DX 200 - Cannot set TCP orientation

    • ClaudiuA
    • July 16, 2018 at 10:38 AM
    • Yaskawa Motoman Robot Forum
  • /R1 Machine data loader aborted

    • PauloS
    • February 5, 2018 at 1:58 PM
    • KUKA Robot Forum

Tags

  • KSS
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download