Jeeezzz, Walters...
Couldn't you just include of clip of your code?
What makes you think that everyone has S7 running on their home-computer?
And... would that be S7-2XX or S7-3XX, S7-4XX?
Aside from that...
Are you using BCD in your Ladder? AND, are you using BCD in your TP170B?
BCD is "required".
I hate it when a PLC requires BCD for a basic function!
BCD should be an exception, not a normal! That is, if you want to use BCD for internal processing... fine, knock yourself out... it's nuts but, whatever.
If you need to use BCD for a particular external device, fine... do the BCD. But as far as internals go, BCD should NEVER be an internal norm! Computers are BINARY Devices! Do all of your calculations in Interger, or Real, and then, if necessary, convert to BCD for the output. Any other way is just plain stupid. For all of you thin-skinned ones... that's just my opinion. But you should really think about it before you jump on the P-C wagon.
Truth is truth... it's a boolean kinda thing. Boolean doesn't care about your "feelings".