timers in unity pro xl

tparker809

Member
Join Date
Apr 2017
Location
athens, pennsylvania
Posts
2
i have a problem with using timers in unity pro. the scenario is as follows, tank fills to 240 inches then fill stops, starts agitating for 2 minutes at 20 hz, when that times out it waits one minute then agitates reverse for 5 minutes, then stops and waits for temp to reach 150, as soon as temp reaches 150 process vavle opens and drive agitates at 10 hz till tank level reaches 50 inches. then it waits one minute and restarts the process over again. i cannot for the life of me get these timers working right, i've tried "tof" and "ton" everything i try stops and doesnt restart or wont start at all.... anything you could offer me would be greatly appreciated
 
i have a problem with using timers in unity pro. the scenario is as follows, tank fills to 240 inches then fill stops, starts agitating for 2 minutes at 20 hz, when that times out it waits one minute then agitates reverse for 5 minutes, then stops and waits for temp to reach 150, as soon as temp reaches 150 process vavle opens and drive agitates at 10 hz till tank level reaches 50 inches. then it waits one minute and restarts the process over again. i cannot for the life of me get these timers working right, i've tried "tof" and "ton" everything i try stops and doesnt restart or wont start at all.... anything you could offer me would be greatly appreciated

Sounds simple enough, what is and isn't happening ?

Post an image of your code or print to pdf and post that, we can take a look then.
 
tank full-> tp 2 min driving agitation at 20 Hz
agitation f_trig -> tp 1 minute timeout
timeout f_trig -> tp 5 minute reverse agitation
f_trig reverse agitation ....

you could use a state machine that represents what the machine should be doing, and use the timers to switch between states. that way if some part of the process fails you will know what it was meant to be doing and could restart (instead of just having the state represented by whatever timer is running)
 

Similar Topics

Hello I have a question for those familiar with Unity Pro. I have a TOF when the rung goes false the Q bit stays set to 1 until the preset time...
Replies
6
Views
3,587
Hello everyone, I am a new member but have visited the forums many times in the past. Currently I am converting a ControlLogix RSLogix 5000...
Replies
7
Views
6,907
Hi everyone, My name is Chris and I'm pretty new to PLC programming. I am currently in the midst of trying to teach myself how to program...
Replies
1
Views
8,114
Hi guys, I would have thought this was a simple part of my program, but it seems that things are not going as I would have thought. All I'm doing...
Replies
10
Views
10,909
Hi, I'm quite new to Rockwell PLC and currently trying to implement the following if Sw1 then for i:=1 to 20 by 1 do xEnable := 1...
Replies
4
Views
140
Back
Top Bottom