Posted by: Roberto José
My application should interface with an IBM fiscal printer, wich has a set
of commands that's giving me some headache.
1B66 - command prefix
01 - prints header
reserved (always = 0)
This command would be like this:
Set sCmd = SalNumberToChar( 27 ) || SalNumberToChar( 102 ) ||
SalNumberToChar( 1 ) || SalNumberToChar( 0 ) || sFvaID || sFvaNm || sFvaAddr
There is a Chr(0) in the middle of almost every command and when I evaluate
the string sCmd, it is never there. It is like it was not concatenated in
the first place, therefore, the command is rejected by the printer.
The external function this buffer should send the command to is:
int iSendCommand(unsigned char *TxBuffer, unsigned long ulTxDataLength)
I am using CTD 1.5.1 - PTF 6.
Any suggestions? I have tried a lot of things so far.