We solved it people!
View attachment 32852
Credit to
@Henry Link . The bookshelf turtle looks at its signal and puts the corresponding number of blocks in the chest.
The PRC turtle looks into its (same) chest and outputs the corresponding signal. This happens every 0.5 seconds (which is fine).
There's some 'defensive programming' involved (ie some ifs) to cover the 0th case. The stack becomes nil, etc.