I've been trying to solve an issue that I've had for several days now and it has now made me give up, which in turn led me to this forum in hope of getting help.
The elevator with 6 extra buttons included (x11-16)
https://i.imgur.com/a0iEXwN.png
I/O-list
https://i.imgur.com/adsHcRj.png
Code from top to bottom
https://i.imgur.com/mwvFytO.png
https://i.imgur.com/OyOlHi7.png
Problem:
So the elevator is supposed to stop for servicing every 5th time it starts, and till then remain out of function until the reset button(X14) is pressed. Now this wasn't very hard to implement but my code makes the elevator stop immediately once the ServiceCounter detects the fifth start instead of going to the requested floor and then stopping.
How would I go about implementing this? I've tried and tried but to no avail.
Thanks in advance!
The elevator with 6 extra buttons included (x11-16)
https://i.imgur.com/a0iEXwN.png
I/O-list
https://i.imgur.com/adsHcRj.png
Code from top to bottom
https://i.imgur.com/mwvFytO.png
https://i.imgur.com/OyOlHi7.png
Problem:
So the elevator is supposed to stop for servicing every 5th time it starts, and till then remain out of function until the reset button(X14) is pressed. Now this wasn't very hard to implement but my code makes the elevator stop immediately once the ServiceCounter detects the fifth start instead of going to the requested floor and then stopping.
How would I go about implementing this? I've tried and tried but to no avail.
Thanks in advance!