Andrei Blagaila Posted February 22, 2017 Report Posted February 22, 2017 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
Dariusch Posted February 22, 2017 Report Posted February 22, 2017 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 1
Andrei Blagaila Posted February 22, 2017 Author Report Posted February 22, 2017 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?
Dariusch Posted February 22, 2017 Report Posted February 22, 2017 Hi Andrei, Do you use the instructions OUT and OUTH? Maybe send a screendump of the NW
Andrei Blagaila Posted February 22, 2017 Author Report Posted February 22, 2017 None of the two. I used as bellow.
Dariusch Posted February 22, 2017 Report Posted February 22, 2017 You use a lowspeed timer. Can you please try change ZR1204 with a constant ie. K100
Andrei Blagaila Posted February 22, 2017 Author Report Posted February 22, 2017 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.
Dariusch Posted February 22, 2017 Report Posted February 22, 2017 (edited) 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 February 22, 2017 by Dariusch
Andrei Blagaila Posted February 22, 2017 Author Report Posted February 22, 2017 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.
Dariusch Posted February 22, 2017 Report Posted February 22, 2017 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
Andrei Blagaila Posted February 22, 2017 Author Report Posted February 22, 2017 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!
Dariusch Posted February 22, 2017 Report Posted February 22, 2017 Yes probably. I always test functions and new FB's on a PLC. But a Q50UDEH is not cheap have extra on the desk
Andrei Blagaila Posted February 22, 2017 Author Report Posted February 22, 2017 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
kaare_t Posted February 27, 2017 Report Posted February 27, 2017 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
Andrei Blagaila Posted February 27, 2017 Author Report Posted February 27, 2017 Now I know not to trust the simulator. I really thought I had a setting wrong or something.
Akahige Posted April 18, 2017 Report Posted April 18, 2017 Yes, simulators are useful for testing basic functions like triggers and discrete IO. Anything more complex is lagged. Like your timers.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now