Starter

Weekly Timer

18 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
On 17/11/2017 at 9:50 PM, Bryll said:

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)

 

Just one quick correction.

Not D8019, but is system device so should be SD8019.

Thanks for the info.

Share this post


Link to post
Share on other sites
1 hour ago, claudio.neves@robowork.pt said:

Just one quick correction.

Not D8019, but is system device so should be SD8019.

Thanks for the info.

Those addresses were listed for FX, so it was D, not SD.  FX did not have SD, that did not come about until Q Series...

Share this post


Link to post
Share on other sites
On 11/17/2017 at 4:50 PM, Bryll said:

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)

 

Is that the same as q series plc as well?

Share this post


Link to post
Share on other sites
8 hours ago, Logan1101 said:

Is that the same as q series plc as well?

On Q Series use SD210 - SD213 for system datetime but I think use "DATERD" Instruction is easier. For reference use this manual below at page 589.

https://www.allied-automation.com/wp-content/uploads/2015/02/MITSUBISHI_QL-Simple-Mode-Programming-Manual-Common-Instructions1.pdf

Edited by Wasan
Add manual
1 person likes this

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