Capture current system date/time DX200 controller

  • Hi, I have a small problem, maybe someone can help.


    I have DX200 controller and want to capture the current date/time from the system. I know with ABB I can use CTime and CDate command, is there something like this we can use with Yaskawa?


    Thanks in advance! :icon_smile:

  • You can do it

    C
    void GetDate(int *year, int *month, int *day)
    {
    	time_t unix_time = time(0);
    	struct tm *ltm = localtime((time_t*)&unix_time);
    	*year = ltm->tm_year + 1900;
    	*month = ltm->tm_mon + 1;
    	*day = ltm->tm_mday;
    }
  • You can do it

    C
    void GetDate(int *year, int *month, int *day)
    {
        time_t unix_time = time(0);
        struct tm *ltm = localtime((time_t*)&unix_time);
        *year = ltm->tm_year + 1900;
        *month = ltm->tm_mon + 1;
        *day = ltm->tm_mday;
    }

    So, how is this written in Inform Language in any Yaskawa controller.

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • So, how is this written in Inform Language in any Yaskawa controller.

    This code is written in MotoPlus application ofcourse. If you want to get date from the JOB, put the date to variable :smiling_face:

  • All of persons don't have Motoplus software and don't know about it. if you have other way, please explain to it.

    With Motoplus is very easy but it need programming knowledge and software and dongle key.

Advertising from our partners