Thanks for the info. I found some other info today. Since the S7-224 input requires a sourcing device(driven by PNP transistor) and the encoder requires a sinking device(NPN transistor) I will have to use a 12 volt NPN to PNP converter between the encoder and PLC input.
I have the Siemens Systems Manual which has an example for programming a high speed counter. However, I still intend to read the info in the links you guys provided me.
One other question for you guys. I uploaded a program from a S7-224 using an older version of the Siemens software on my laptop(windows 98). I have version 4.0 installed on my desk top computer(XP). Is it possible to import the symbols and text comments from a program on my desk top computer to the uploaded program on my laptop? Note: both programs are nearly identical, but not mirror images since one runs on the newer version and the other on the older version of the Siemens software. Also, I noticed that one of the programs could not be opened by the other version of the Siemens software. What is the directory that stores the symbols and text in the ladder logic or what is it called?