beautypg.com

Casio ClassPad 300 User Manual

Page 580

background image

20021201

k Other

CloseComPort38k

Syntax:

CloseComPort38k

Function:

Closes the 3-pin COM port (serial).

Example:

See the GetVar38k command.

GetVar38k

Syntax:

GetVar38k

Function:

Receives variable names and variable contents.

Description
• The OpenComPort38k command must be executed before this command is executed.
• The CloseComPort38k command must be executed after this command is executed.

Example:

To connect two ClassPad units with an SB-62 cable, and transfer the contents
of the sending unit’s variable “s” to the receiving unit’s variable “g”

Sending Unit Program
123 S s
OpenComPort38k
SendVar38k s
CloseComPort38k

Receiving Unit Program
OpenComPort38k
GetVar38k g
CloseComPort38k

Notes
• Run the receiving unit’s program first, and then run the sending unit’s

program.

• You can use any commands beside the four data communication commands

(Send38k, Receive38k, SendVar38k, or GetVar38k) between the
OpenComPort38k and CloseComPort38k commands.

12-6-45

Program Command Reference