Autor Thema: Berechnung der Kalenderwoche  (Gelesen 25684 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

Stanley

  • Gast
Re: Berechnung der Kalenderwoche
« Antwort #15 am: 16. Januar 2009, 12:42:08 »
Hello forum,

I want to use Your WORK_WEEK Step7 block in my program. I am testing it now in PLCSIM and I thing there is a fault. When I set for example 4.1.2010 block show 53 week, but correctly it is 1 week. And this faut continues whole year 2010 and next years...

Offline hugo

  • Global Moderator
  • *****
  • Beiträge: 2 150
    • Profil anzeigen
Re: Berechnung der Kalenderwoche
« Antwort #16 am: 16. Januar 2009, 15:41:01 »
under codesys we get the correct work week 1 for 4. jan. 2010
wewill check our step7 implementation for this error

Stanley

  • Gast
Re: Berechnung der Kalenderwoche
« Antwort #17 am: 16. Januar 2009, 15:45:27 »
OK Danke sehr  ;D

dalbi

  • Gast
Re: Berechnung der Kalenderwoche
« Antwort #18 am: 16. Januar 2009, 23:43:57 »
hello Stanley,

sorry there are two errors in the code i hope you have simatic scl.
take a look at the attachment its the new code. It works!

thank you!

regards Daniel

[gelöscht durch Administrator]
« Letzte Änderung: 16. Januar 2009, 23:45:42 von dalbi »

Stanley

  • Gast
Re: Berechnung der Kalenderwoche
« Antwort #19 am: 17. Januar 2009, 21:31:19 »
Hello dalbi, a have tested your new code and it seems to be good. Thank You.

Regards Stanley