TIA Portal: Counting Seconds
HTML-код
- Опубликовано: 6 сен 2024
- A quick trick on how to count seconds using TIA Portal.
Contents:
- Clock Memory
- CTU Counter
- Resetting Counter
- Simulating the Program
If this video helped you, please consider helping me by joining my "GoFundMe" and donating a small amount to my cause. Link here:
www.gofundme.c...
Two more hints:
1. If you only want to count the seconds in a specific szenario, just put that before the clock memory in the LAD diagram (so as an "AND" combination)
2. As the Clock memory works ASYNCHRONOUSLY it is not going to be 100% precise on each millisecond... the precision should be fine for every frequency
This man is a legend, thanks for helping me with all these video :)
Congratulations from Brazil. Thank you.
Greetings back to Brazil from Germany!
Would be interesting to develop a run-hour-meter that could be used to, for example, count the number of hours a compressor or generator runs. From that the next service interval can be determined etc.
thank you Hegamurl ... i'm from Viet Nam. Your video is very useful !
hi, how to use 1hz for two functions to count two machine working time
Hello @hegamurl, Just had a doubt. Is it possible to work with multiple counters using only one DB? May be like, we could be able to use different structures or datatype blocks in a single DB for different counters???
Hega, hi, can you help me with something? , I want to display the time it takes in each production cycle to know how many parts I'm doing per hour, any example approaching this?
Danke schön! Very well explained
How to make timer cound seconds in decrement like 60..59...58 like this if any idea share
how to make a stop watch from counters please explain for example i want to make a stop watch with functions get ready for 5 minutes then start work for 40 minutes the take a break of 15 mins and start again... Thank u
Mine does not work and says "%M0.5 Adress to clock with ambiguous address" in the orange colour...
- Fixed my tags in existing program... works
Great job. Can I ask you what is the hardware of your computer?
It works very fast and not much loading.
since you are experienced in PLC how short should cycle time be from Safety perspective ?? for example in sorting devices or machines ?? and what the longest cycle time have you ever experienced ?? although i am very familiar with PLC but i watch your videos always :))) please make videos about implementing PID in Tia portal but as you would do it in practice
Thx ®ards
Hi Nedaa and thanks for your support!
My next series will be leading to a PID controlled system, so stay tuned!
About your questions on cycle time and safety perspective:
If you have processes that need safety (e.g. emergency stop circuits, overload circuits,...) then you would use a so called "F-CPU" (Failsafe)... they have integrated modules that react on specific szenarios immediately (without looking at any cycle times, they are "event" triggered). Those PLC's are a HUGE topic on their own.
As for cycle time: S7-1500 PLC's have a preset minimum cycle time of 1ms and a maximum cycle time of 150ms... everything between those two values is possible and highly depends on your program.
Best regards!
If I choose a CPU from a S7-1200 is it possible that the system and clock memory is not available ?
Muchas gracias, fue un gran video. 👌🏼
Have a doubt while adding Counter to View runtime of a Pump
Thanks!
how can i only count , I want to leave the PV empty in the counter
Hi ,
Please explane how this NO Contact with a bit address is M0.5 is closing every second to activate the counter?
I want to know how to program a running time of a machine.
If you didn't find the answer by now: In the hardware configuration of the CPU you can activate clock timers and assign them to a specific byte, MB0 by default. Then M0.0 to M0.7 will switch in different speeds.
Hi,Hegamurl..Thanks for all the video..Ive gone through all & learned many things.Its gives me confident to work better..
I've a query: I need to count 5 input bit within 6 sec, if this is Greater or less it will set a bit is it possible?
Thank you for your videos, I have a question, if is needed to use a frequency different from the standard one, given in the clock memory, is possible ?
Can't seem to make it work for some. Did it just as you showed. The Clock Signal does not seem to cross neither a closed switch or open switch
So i restarted the project and it worked ! Thanks for the Tutorial.
Danke Schön mate.
In the first frequency range (1 Hz) we didn't observe any output bu in the second we are observing the output is setted, could you explain why?
As you see the CTU Block's PV its over than 60 thats why you are recieving an ouput signal
Hello ,
Can you give me advice on how to count MS / milliseconds?
Best regards,
Boris
HAY THERE
THANKS FOR THE VIDEO
I TRIED TO DO THE SAME AS YOU BUT THE MEMORY CLOCK BIT IS NOT COUNTING
WHAT IS MAY BE THE CAUSE?
same here. are you already solve the problem?
@@pikoprasetyo8550 Did you set clock memory in the device settings
Try as following:
1.) Disconnect the online connection between your PC and the PLC (go offline)
2.) Right click on your device in the project tree beneath devices & networks
3.) Translate hardware and software
4.) Upload your software to the PLC
Can I convert sec into milisec in Tia portal
Hey friend
I have project with counter and I want to show the data on the webpage I want to create it.
the project is project to count how many person go in locale every day, and i want to create HTML page to make chart with those data...
Please who can help me with this.... and how can i make it if I can..........
i work on CPU 1215 DC/DC/Rly
Best regards
Hi Hadi,
What you need is to work with the "Webserver" function that 1200s support.
There is a lot to it, but I explain the basics here:
ruclips.net/video/4ntdj2VQOIA/видео.html
@@hegamurl7434 thanks friend. But how to show or appear the number of the counter on website?? .. just to be know, i dont create html file yet because i dont know witch elements i want to code it on html file
It doesn reset after 60 sekunds. Output is allvays on.
Hi I m karam from morocco, I m using s7 1200 and tow sinamic v90 servo drivers to drive tow cnc axes. I want to draw a cyrcle with it. So i calculate x and y position theoraticlly with trigonomtry but i coudn't implement it in ladder porogramme. Because i m using motion control object to create the axes and i m using realtive move bloc. Please help me
Hi Youness... Unfortunately I have not really done anything yet with the Driver Technology Objects... so unfortunately can't help (yet) with this. But I wish you best of luck finding a good answer on the internet!
@@hegamurl7434 thanx for your replay and continue your videos are very helpful. Thanx again.bro
Hello Sir
Need help from Dubai
can you speak louder?