Sign in to follow this  
Followers 0
lchamarthi

Logic Suggestion!

4 posts in this topic

Hi ALL, Hope things are going on smoth track. I would like to take suggestion from you guys for the following logic implementation. Please see the attachment for info. I want to turn on/off a Output for a input trigger pulse, as shown in attachment, Off for Toff1 and On for TOn1, again off for Toff2 and on for Ton2...like wise upto Ton4. User has a right to select any of the following. (by entering Non zero and zero for disabling TOff1& TOn1 (User enters 0 VALUE to all rest of the timers TOff2& TOn2, TOff3& TOn3, TOff4& TOn4) TOff1& TOn1, TOff2& TOn2 (User enters 0 VALUE to all rest of the timers TOff3& TOn3, TOff4& TOn4) TOff1& TOn1, TOff2& TOn2, TOff3& TOn3 (User enters 0 VALUE to timers TOff4& TOn4) TOff1& TOn1, TOff2& TOn2, TOff3& TOn3, TOff4& TOn4 Timing range: 1ms to 10msecs Can anybody suggest best way of doing logic? Thanks Lakshmi Application.bmp

Share this post


Link to post
Share on other sites
Reference the set value of each timer to a data memory. The data memory can then be written to by the HMI or SCADA system. TIM 20 D2000 where D2000 holds the set value of the timer. Do not forget that the timers time down and if the set value is altered while the timer is active, the new set point will not be recognised until the timer resets.

Share this post


Link to post
Share on other sites
Just a word of caution. You indicate that the timer values with be 1 - 10 millisecond. From past experience, this short a time value is very influenced by scan time. Also. make sure you are using the correct instruction. Standard timer instruction is 100 millisecond time base. Hope this will help. Edited by gtsuport

Share this post


Link to post
Share on other sites
If I remember correctly, the manual refers to certain timer numbers that are to be used for TIMH (2 decimel place timers). Even then yes the timers will be affected by the scan time. What processor are you using? The faster the better in this case. Would suggest high end CS/CJ for some consistency in the timers.

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