585,875 active members*
4,084 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    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
    Join Date
    Aug 2009
    Posts
    513
    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;
    Maschine: KERN Pyramid Nano 5x<br />Steuerung: iTNC 530 Softwarestand: 05

  3. #3
    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
    Join Date
    Feb 2020
    Posts
    4

    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
  •