First, the till drawer.
Usually this will be done via a serial port. You would open the port, say COM1, and write a string to the port.
You will need to know the communication parameters required by the till; data bits, stop bit, speed and parity if my memory is correct.
Look at OPEN COMx in...