Sign in to follow this  
Followers 0
Dan80

ML1500 RTC

3 posts in this topic

 

Dear,

I need some help with an application in ml1500 with the RTC .

I need an exit is enabled by days of the week .

I´m programming in Rslogix500.

Program follows the image.

If possible help me.

Thanks

Daniel.

Torres.jpg

Torres.jpg

Torres.jpg

Share this post


Link to post
Share on other sites

RTC:0.DOW is a 16 bit word which holds the decimal value of the day of week.

 

You have used the bits in that 16 bit word ,bit "0" zero = a value of 1

Bit 1 would be true if the value is equal to 2 and.....

Bit 2 would be true if the value is equal to 4 and ....

Bit 4 would be true if the value is equal to 16 and .....

Bit 5 would be true if the value is equal to 32 and .....

Think binary numbers.

 

counting.gif

If you want to make something happen during a certain day of the week then you need to use compare instruction(s) to compare the value in RTC:0.DOW to a constant.

E.G. If RTC:0.DOW = 2 Then Turn on O:0.0

Edited by Mickey

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
Sign in to follow this  
Followers 0