Getting System Time from PLC (hour and minute)

mrt-elm
2011-03-30
2011-03-30
  • mrt-elm - 2011-03-30

    Hi,

    I wrote a program about heating-cooling system and want it to start every morning at 6:00 am and stop every evening at 19:00 pm.

    And I need hour and minute knowledge.

    I used the block SysRTCGetTime but it only shows system time.

    How can I get the hours and minutes from this block or is there any other way to get hour nad minute ?

    Thank you,in advance

     
  • kberlin - 2011-03-30

    I think you can be helped by one of the Oscat (http://www.oscat.de/) libraries. More specifically the functions Minute and Hour.

     
  • mrt-elm - 2011-03-30

    kberlin,
    Thank you very much,
    I found the blocks which I need at this site..

     
  • kberlin - 2011-03-30

    Happy to help. Did you also take a look in the Oscat Building Automation library? I think the TIMER_2 function block might be useful for you.

    Best regards,
    Kristian Berlin

     
  • mrt-elm - 2011-03-30

    I've just looked.It's also so usefull.I can use this block,as well.

    My project has just finished,after I start up the system,I'll check all the library,there are lots of usefull blocks at there.

    Thank you

     

Log in to post a comment.