Bitbus Open Technical Meeting
Bitbus Open Technical Meeting
Socket Socket
Port 8044
BAPI Client sends TCP/IP messages to BAPI Server, which answers back to the BAPI Client with
another TCP/IP message.
Both the header and the data must have an even number of bytes. All words and double word are
stored using little endian (Intel) order.
...
0008+ Filler
nnnn ByteNNN (if necessary)
As one can see from the following table, most Function codes are one-to-one associated to BAPI
routines.
Function Code 0x0002 – Get return value of BitbusOpenMaster (Client Å BAPI Server)
Function Code 0x0006 – Get return value of BitbusClose (Client Å BAPI Server)
Function Code 0x0008 – Get return value of BitbusSendMsg (Client Å BAPI Server)
Function Code 0x000A – Get return value of BitbusWaitMsg (Client Å BAPI Server)
Function Code 0x000C – Get return value of BitbusReset (Client Å BAPI Server)
Function Code 0x000E – Get return value of BitbusGetMsgLength (Client Å BAPI Server)
It would be beautiful if TCPIP frames are handled inside BAPI routines. To do so, we must permit
that strings such as
rc = BitbusSendMsg( hBitbus,
&BitbusMsg);
...