As Steve noted, your data should be in ASCII format. So if your variable contains zero, you should send the ASCII zero, that is 48 decimal or 30 hex.
That is what the DEC is doing in the Steve's example.
Hope it is clear now.
And I think the extra comma is not needed before CR.
Ioannis
Bookmarks