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
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.
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).
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!