Starter

Weekly Timer

14 posts in this topic

Hello all,

Is there someone who has already programmed a weekly timer?

I started to try making one by myself by counting pulse, etc but after two weeks I'm stopped with it.

I would like to be able to turn a bit on and off on a certain day (time). 

I (try) to program in gx iec developer 7.04 

If someone has an example I would be very grateful.

Thanks for the help

Share this post


Link to post
Share on other sites

If you would like to trigger something at the same time, same day every week, compare the system registers with a time and day you set.

Are you using a FX system or Q ?

For FX systems:

D8013 = Seconds

D8014 = Minutes

D8015 = Hours

D8019 = Weekday (0-6)

 

Share this post


Link to post
Share on other sites

Hello Bryll,

Thanks for the info but I use the Q serie (secondhand Q002H).

I've got it from my boss before my retirement...and I used it for my home.

Only used for the lighting in the garden.

I saw in the help the daterd function and try it, Ok, I can get the system time, hours etc.

 

@Inntele, where is the download link? can I use it on a Q002H, or translate to the Q002H?

(I am mechanical and not electric, so programming is very difficult and going very slow at my age.)

 

Thank you for all the help so far.

 

Share this post


Link to post
Share on other sites

Sorry, there is no a code to download. Also the result of my work no available anymore. Additionally, your task demands additional efforts. However.. I know how to manage it

Edited by Inntele

Share this post


Link to post
Share on other sites

@Inntele,

 

Also the result of my work no available anymore.

But, Is it possible that you can help me?

Share this post


Link to post
Share on other sites

Yes. Lets discuss conditions, because it's my time and my efforts, while I'm a very busy man. Today is impossible to spend for such help, but  22-23 Nov  a "window" will appear.

Share this post


Link to post
Share on other sites

Why not take a look at this sample code. It looks ate a specific time and date also 

 

Share this post


Link to post
Share on other sites

Dear Gambit,

1. The library is for Modicon PLC by Schneider Electric, not for Mitsubishi PLCs... I can not see the code, while doubt that the DST routine will work properly when PLC pass the DST point being unpowered or in stop mode.
2. The timer should work properly with any combination of time on/off, e.g. when the Time_on is at Friday (5) and Time_Off is at Wednesday (3). The DST does not require the mentioned logic.

Share this post


Link to post
Share on other sites

Oops sorry I meant his one.. If I am not mistaken it is yours 

 

Share this post


Link to post
Share on other sites

Yes, this is mine, and it can be used for DST, but not for the timer that the topicstarter needs. I did another FB, that was lost completely along with death of old HDD.

Edited by Inntele

Share this post


Link to post
Share on other sites
13 hours ago, Inntele said:

Yes. Lets discuss conditions, because it's my time and my efforts, while I'm a very busy man. Today is impossible to spend for such help, but  22-23 Nov  a "window" will appear.

As retirement person I have time enough to wait a few day's :):)

Share this post


Link to post
Share on other sites

I repeated the work and have developed again the FB, oriented to FX-series, with the aim then to convert it for Q-series. The FB is very compact (23 steps), looks and works fine ... However, there turned out a Qxx(H) series does not support most RTC instructions. So :oops:... I know, the FB, performing the similar function, that is possible to convert, has been developed by Sergey Troizky http://forums.mrplc.com/index.php?/profile/435-sergei-troizky/ , so pls try to talk with him. 

Share this post


Link to post
Share on other sites

Thanks for the info Inntele,

I will contact with Sergey.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now