Download WSC4D Programmer`s Manual

Transcript
1.2 Documentation Set
The complete set of documentation consists of four manuals in Adobe PDF format. This is the first
manual (WSC_4D) in the set.




WSC_4D Programmer’s Manual (WSC_4D.PDF)
WSC User’s Manual (WSC_USR.PDF)
WSC Reference Manual (WSC_REF.PDF)
Serial User's Manual (SERIAL.PDF)
The WSC_4D Programmer’s Manual is the language specific manual. All language dependent
programming issues are discussed in this manual. Information needed to compile your programs in a
Delphi environment is provided in this manual.
The WSC User’s Manual (WSC_USR) discusses language independent serial communications
programming issues including modem control. Purchasing and license information is also provided.
The WSC Reference Manual (WSC_REF) contains details on each individual WSC function.
The Serial Communications User’s Manual (SERIAL) contains background information on serial port
hardware.
The documentation is provided in the \WSC4D\DOCS folder and on our web site at
http://www.marshallsoft.com/wsc4d.htm
1.3 Example Program
The following example program segment transmits an "AT" to a modem connected to the serial port.
var
Code : Integer;
begin
{pass the key code}
Code := SioKeyCode(WSC_KEY_CODE) < 0 then
Code := SioReset(COM1, 1024, 1024);
If Code < 0 Then
begin
WriteLn('Cannot open port');
exit
end
{ transmit "AT" }
Code := SioPutc(COM1, 'A');
Code := SioPutc(COM1, 'T');
Code := SioPutc(COM1, Chr(13))
end;
Refer to Section 4.0 for complete examples with source.
Refer to the WSC Reference Manual (WSC_REF) for individual function details. Access online at
http://www.marshallsoft.com/wsc_ref.htm
6