We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi everyone. This is a long shot but I am writing a program to control an old Siemens paper tape punch reader. The punch is set for 5 hole paper tape and punches/reads Baudot code. I am communicating with the machine via serial. I have set up a switch/case statement that reads keypresses and punches the characters according to Baudot protocol BUT I have a problem working out how to punch the characters that change the punch mode from letter mode to figure/punctuation mode. Basically I need to be able to punch the number 27 when switching from letters to figures and the number 31 when changing back. So say I punch "Hello I am 41 years old", the punch would punch the letters and when it got to 41 it would punch the 27 before 41 and then when it had punched the 1 of 41 it would then see we had gone back to letters and punch a 31... does this make sense? Has anyone worked with writing code for baudot machines?
Any help or pointers/tips would be great. Thanks,