I am trying to design a pld that could be used as a car wash controller. 4 tokens can be used, each giving a different number of wash cycles from a total of 7.
Eg.
Token A = 1,2,3
Token B = 1,2,3,4
Token C = 1,2,3,4,5,6
Token D = 1,2,3,4,5,6,7
Each of the cycles operates for a certain number of time, so if, for example, token A was entered, the first 3 cycles have to complete and then reset to zero, for token D all of the 7 cycles have to complete before resetting.
I understand how to get a counter to count to the total of 7 and then reset, but how can this be altered to count only part of the way if a lower value token/different input is used?
Hope that makes sense and any help would be greatly appreciated.
Eg.
Token A = 1,2,3
Token B = 1,2,3,4
Token C = 1,2,3,4,5,6
Token D = 1,2,3,4,5,6,7
Each of the cycles operates for a certain number of time, so if, for example, token A was entered, the first 3 cycles have to complete and then reset to zero, for token D all of the 7 cycles have to complete before resetting.
I understand how to get a counter to count to the total of 7 and then reset, but how can this be altered to count only part of the way if a lower value token/different input is used?
Hope that makes sense and any help would be greatly appreciated.