I would love if it didn't need a second tape. Somehow the mechanism would need to remember the new value and write it to the tape after it has gone past.
A hack might be to write the new value to the tape 5 places behind. This would shift the whole tape to one side but we might accept that. When coming back the other way the machine would write the output 5 places behind the other way, so the tape contents would shift back and forth but everything would still work. You'd need to somehow shift the output arm too, if you want the knitting to come out looking right. And the machine would need to know which way it was traveling, which isn't obvious.
Please have a think about this and let me know if you can see a nice way to do it!
4/N