Rice Lake iRite IDE User Manual

Page 54

Advertising
background image

50

920i

Programming Reference

Example:
Fmtout : PrintFormat;

Fmtout := NetFmt

Print (Fmtout);

Send

Writes the integer or real number specified in <number> to the port specified by P.

Method Signature:
procedure Send (P : Integer; <number>);

Parameters:

[in]

P

Serial port number

Example:
Send (Port1, 123.55); -- sends the value "123.55" to Port 1.

SendChr

Writes the single character specified to the port specified by P.

Method Signature:
procedure SendChr (P : Integer; character Integer);

Parameters:

[in]

P

Serial port number

Example:
SendChr (Port1, 65); -- sends upper-case "A" (ASCII 65) to Port 1.

SendNull

Writes a null character (ASCII 00) to the port specified by P.

Method Signature:
procedure SendNull (P : Integer);

Parameters:

[in]

P

Serial port number

Example:
Send (Port1); -- sends a null character (ASCII 00) to Port 1.

SetPrintText

Sets the value of the user-specified format (1-99) to the text specified. The text can be any string of up to 16
characters; if a string of more than 16 characters is specified, nothing is printed.

Method Signature:
function SetPrintText (fmt_num : Integer ; text : String) : Syscode;

Parameters:

[in]

fmt_num

User-specified format number

[in]

text

Print format text

Example:
SetPrintText(1, "User Pgm. Text");

StartStreaming

Starts data streaming for the port number specified by P. Streaming must be enabled for the port in the indicator
configuration.

Method Signature:
function StartStreaming (P : Integer) : SysCode;

Parameters:

[in]

P

Serial port number

Advertising
This manual is related to the following products: