Table of Content
HAL Forum
function Integer CloseComPort (
integer num)
Description:
Closes com port
Parameters:
num internal number of com port
global
procedure OpenCashDrawer()
BEGIN
  String 20 CashBox;
  Integer Error;

  CashBox = chr(27) & chr(112) & chr(0);
  Error = OpenComPort(1,"LPT1",9600,0,8,0);
  Error = OutComPort(1,CashBox);
  Error = CloseComPort(1);
  RETURN;
END;
Related topics:
««