Problem in timer

Hey guys am using Allenbradley Micrologix 1200. Programming it by RSlogix500. in a program i use to take the time and do mathematical calculations. while using like that i got a problem :mad: i will reset the counter when it reaches 40mS and again it timer runs for the first 3 times i will be getting untoggled value but in the fourth time my timer value will be toggled to 39. i don't understand why? while i use free running clock also this problem araissed. i think this is occurring by scanning process.. how to rectify this:oops:
 
Because of scan time....The Timer is evaluated each scan..at 40ms, it's very likely that such evaluation is not going to happen at precisely 40ms, especially when you're talking about a 1ms difference.
 
A PLC timer is a computer instruction that operates on a location in memory. It is not a device. Since it is a computer instruction its precision is subject to when the computer instruction is executed.
 

Similar Topics

i been at this for 2 days. The code for the traffic light works great. The problem is the programming of the crosswalk button. Im so close or so...
1
Replies
1,820
Views
Dear All, I have a problem with the Simatic Timer. I'm writing a program to check the pulse signal input, if the input signal is keep changing...
12
Replies
4,780
Views
Hello everyone, I am newer on Siemens PLC 1200. From HMI, I set timer value and place in MW20(120) like 120 second How to input MW20 to timer PV...
17
Replies
5,824
Views
I did not create the program but I have a weird countdown timer problem. it is user input, say it is set for 5 minutes; it will countdown to...
9
Replies
5,684
Views
Greeatings . I have some problem whit my maschine for plastic bags . I buy maschine but i didint know is it correct. When I turn on maschine i...
2
Replies
2,042
Views
Top