read out time over system data

Results 1 to 4 of 4

Thread: read out time over system data

  1. #1
    Registered Flyingmatt's Avatar
    Join Date
    Sep 2006
    Location
    Deggendorf
    Posts
    88
    Downloads
    0
    Uploads
    0

    Default

    Hello everybody
    How can I read out the current time e.g. with "FN 18 SYSREAD Q1600" on an EVO with ITNC530 controller?

    Preferably in a format that I can continue working with...

    E.g. desired time- current time= processing time


    Kind regards

    Flyingmatt



  2. #2
    Registered Klartext's Avatar
    Join Date
    Aug 2009
    Location
    Weiding
    Posts
    513
    Downloads
    0
    Uploads
    0

    Default

    You can read out the system time with SYSREAD 320 (so the time in seconds from 1970). If you need to convert it into a date let me know
    A time inquiry looks like this:


    0 BEGIN PGM 8050_en MM
    1;log the beginning time of cycle
    2 FN 20: WAIT FOR SYNC
    3 FN 18: SYSREAD Q77 = ID320
    4;============================
    5;example for the programm
    6;===========================
    7;log the end time of cycle
    8 FN 20: WAIT FOR SYNC
    9 FN 18: SYSREAD Q88 = ID320
    10;calculate the difference in seconds
    Q99 = Q88 - Q77
    11;calculate the difference in minutes
    Q98 = Q99 / 60
    12;calculate the difference in hours
    Q97 = Q99 / 3600
    13 END PGM 8050_en MM

    If you only want to enter the date into a output text, then that’s really easy
    "Date: %2d-%2d-%2d time: %2d:%2d:%2d PGM: %S"
    ,DAY,MONTH,YEAR4,HOUR,MIN,SEC,CALL_PATH;



  3. #3
    Registered Flyingmatt's Avatar
    Join Date
    Sep 2006
    Location
    Deggendorf
    Posts
    88
    Downloads
    0
    Uploads
    0

    Default

    Thank you a lot for our quick answer...i will text it today and let you know if it worked.
    Kind regards
    Flyingmatt



  4. #4
    baitazeare's Avatar
    Join Date
    Feb 2020
    Posts
    4
    Downloads
    0
    Uploads
    0

    Default Re: read out time over system data

    Hello everybody,

    I've read this post and I've noticed that I'm trying to do something similar.
    I'd like to write the date and the time when the program is run is a table. Is it possible to save YYYY MM DD (year, month and day) and HH MM SS (hour, minutes, seconds) in a table created beforehand? Actually, I don't mind the format of the date and time (I mean in 3 columns each, y a single column each, ...)

    I guess that it should be possible with FN 18: SYSREAD ID320 and FN 27: TABWRITE, but I cannot guess how.

    Kind regards,
    Baitazeare



Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

read out time over system data

read out time over system data