Andrei Blagaila

Timer Values

16 posts in this topic

Hi guys,

I'm using a Q50UDEH cpu and I need to add some timers. Can someone explain in seconds if I put a timer like T1 K1, K1 is 0,1 seconds or 0,01 seconds?

Thanks

Share this post


Link to post
Share on other sites

Hei Andrei,

Please have a look at the manual in the download section

"QnUCPU - User's Manual, Function Explanation, Program fundamentals"

Chapter 9.2.10 Timer (T) page 382.

Setting up low and highspeed timers se attached "Timer_setup1".

You could also use as IEC timers. se attached "Timer".

Hope this get you started, else get back.

/Dariusch

 

Timer_setup1.png

Timer.png

1 person likes this

Share this post


Link to post
Share on other sites

I found the page. But a question. How do I tell the software which is a high speed timer and a low speed timer? I have 100ms set at a low speed timer and 10ms at high speed timer. I use a timer T for a recipe value that goes up to ZR1200 (the recipe registered value). If I put 10 it's one second. But I I put 100 it's not 10 seconds. It's shorter. Why?

Share this post


Link to post
Share on other sites

Hi Andrei,

Do you use the instructions OUT and OUTH?

Maybe send a screendump of the NW

Timer2.png

Share this post


Link to post
Share on other sites

You use a lowspeed timer.

Can you please try change ZR1204 with a constant ie. K100

 

Timer3.png

Share this post


Link to post
Share on other sites

I loaded the ZR1204 with the value 100. With my phone I timed it and it was around 4-5 seconds.

I changed ZR1204 with K100 and timed that as well. It's slower 6-7 seconds. I really don't understand it.

 

Share this post


Link to post
Share on other sites

1) You have checked that it is not used any other Places?

2) Try make a new timer just 1 NW after and run it with a 100ms puls (SM410)

LD SM410  OUT T151 K100

/Dariusch

Edited by Dariusch

Share this post


Link to post
Share on other sites

I Am sure that the timer is not used in another place. The ZR is used for another timer but It's value is set in the HMI only.

I used SM410 and it does not show me any value in T150. It may be too short for the simulator to register. 

I will try to load it on the PLC rack and try it there. Maybe something changes.

Share this post


Link to post
Share on other sites

ok, you are running a simulator and not on PLC?

I have not tried the simulator, but I think it could be a explanation.

/Dariusch

Share this post


Link to post
Share on other sites

On the HMI and PLC it's working fine. On the Simulator for some reason it moves in a faster pace. I thing because it uses the CPU of the PC to run everything. Strange!

Share this post


Link to post
Share on other sites

Yes probably.

I always test functions and new FB's on a PLC. But a Q50UDEH is not cheap have extra on the desk  ;-)

 

 

Share this post


Link to post
Share on other sites

I have two. That's not a problem. The problem is everything is programmed in Simple Ladder and was done by another person. Now I have to modify certain things and it's a pain in the *** untill I figure out how they did things and why.

1 person likes this

Share this post


Link to post
Share on other sites
On 22.2.2017 at 2:19 PM, Andrei Blagaila said:

On the HMI and PLC it's working fine. On the Simulator for some reason it moves in a faster pace. I thing because it uses the CPU of the PC to run everything. Strange!

The computer simulator does not accurately simulate timers very well (or in other words, don't use it for simulating times, only for function).

1 person likes this

Share this post


Link to post
Share on other sites

Now I know not to trust the simulator. I really thought I had a setting wrong or something. 

Share this post


Link to post
Share on other sites

Yes, simulators are useful for testing basic functions like triggers and discrete IO. Anything more complex is lagged. Like your 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