beautypg.com

Argox PA-20 Basic Programming Manual User Manual

Page 92

background image

PT-Basic Programming Manual Ver. 1.00

91/143

SET_RTS

Purpose: To set RTS level.

Syntax: SET_RTS(N1%, N2%)

Example: SET_RTS(1, 1)

Description:

N1% is an integer variable indicating which COM port to set

RTS level (now we only can choose 1).

N2% is an integer variable indicating the RTS state.

N2%

Meaning

0

Negated (Space)

1

Asserted (Mark)

CLEAR_COM

Purpose: To clear receiver buffer.

Syntax: CLEAR_COM(N%)

Example: CLEAR_COM(1)

Description: N% is an integer variable indicating which COM port to

clear receive buffer (now we only can choose 1).

COM_DELIMITER

Purpose: To change delimiter of sending and receiving string for a

specified COM port.

Syntax: COM_DELIMITER(N% ,C%)

Example: COM_DELIMITER(1,13) „use carriage return as

delimiter
COM_DELIMITER(1,38) „use „&‟ character as

delimiter

COM_DELIMITER(1,-1) „no delimiter

Description: N% is an integer variable indicating which COM port is to be

set (now we only can choose 1).

C% is an integer variable indicating the ASCII code of the

delimiter character, in the range from 0 to 255. If it is other

value, no delimiter will be applied.

The default COM_DELIMITER is 0xd.