Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-12 06:26 PM
Hi there
So I’ve been trying to complete a program to a Schneider PLC in Ladder but having some a serious problem that can't seem to solve.
I’m trying to add a timer, this needs to add a block of time every time a contact is activated (coin validator). Tried so use a counter and a pulse timer, but doesn’t add time to it.
Could someone give me any idea?
Using a Schneider M221 24 I/O and Machine Expert Basic
Thank you so much
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-13 12:16 AM
Hi @JPalas ,
I am not 100% sure what you are doing but if you want to count time you could use the system bit %S6 + Rise trigger to count the time in seconds of an event that is happening (in my example how many seconds a motor is activated) you will need to add a operation block that adds 1 to a %MW or %MD variable:
If you want to count minutes then an additional comparison must be done to reset the second and add 1 to a variable that stores the minutes.
Let us know if you need any further information.
Best Regards
Letomas
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-07-13 03:04 AM
Hi
Thank you for the answer.
I can see now that my post wasn't clear.
I am programing a m221 for a self service car wash, everytime someone inserts a coin in a coin validator (contact) I need it to add a block of time to a timer to prolong the user service time.
I can easily add the timer but need to add time (66seg blocks).
Thank you
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.