Omron V022-E3-1 7-1 RS-232CInterface Unit Communications, 7-1-1Communication Procedure, Section

Models: V022-E3-1

1 318
Download 318 pages 5.12 Kb
Page 216
Image 216
7-1 RS-232C Interface Unit Communications

￿￿!"#"￿%￿￿￿￿￿￿￿￿1￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿

Section 6-1

7-1 RS-232C Interface Unit Communications

The communication procedure through the RS-232C circuit and the program flow using examples in BASIC are described below.

7-1-1 Communication Procedure

The Host and NT600S communicate according to the following procedure.

1, 2, 3... 1. The RS-232C circuit must be opened (i.e., communication enabled) before communication can start.

2.Commands are used to control the PT and to receive notification from the NT600S.

3.

Host program

OPEN command

PRINT # command

LINE INPUT # command CLOSE command

Close the RS-232C circuit again after communication is complete.

 

 

RS-232C circuit

 

NT600S operation

 

 

 

 

 

Open circuit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Send instruction

 

 

 

Receive instruction

 

 

 

 

 

Open

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

status

Send instruction

 

 

 

 

 

 

 

 

 

Send instruction

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Close circuit

 

 

 

 

 

 

 

After a circuit has been opened, it can be used until it is closed again.

OPEN

 

Opens the RS-232C circuit. The Host communication conditions are also set.

 

 

Refer to 4-6-4 Setting the RS-232C Communication Conditions.

PRINT #

 

Sends an instruction via the RS-232C circuit to the NT600S.

LINE INPUT #

 

Receives a command from the NT600S. This command is used because com-

 

 

mands from the NT600S are not delimited by commas or double-quotation marks.

CLOSE

 

Closes the RS-232C circuit.

 

 

 

 

Reference Refer to the Host’s BASIC Manual for more details about the commands.

 

 

 

￿￿￿

Page 216
Image 216
Omron V022-E3-1 7-1 RS-232CInterface Unit Communications, 7-1-1Communication Procedure, Section, Open, Print #, Close