Rs-232C Communications; Communication Procedure - Omron NT20S Operation Manual

Programmable terminal
Hide thumbs Also See for NT20S:
Table of Contents

Advertisement

RS-232C Interface Unit Communications
6-1

RS-232C Communications

6-1-1

Communication Procedure

Host program
OPEN command
PRINT # command
LINE INPUT # command
CLOSE command
OPEN
PRINT #
LINE INPUT #
CLOSE
This section describes the communication procedure when using an
NT20S-ST128 (RS-232C), and program flow using examples in BASIC.
The Host and NT20S 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
NT20S.
3. Close the RS-232C circuit again after communication is complete.
Open circuit
Send instruction
Close circuit
After a circuit has been opened, it can be used until it is closed again.
Opens the RS-232C circuit. The Host communication conditions are also set.
Refer to (3-5-4) Setting RS-232C Communication Conditions.
Sends an instruction via the RS-232C circuit to the NT20S.
Receives a command from the NT20S. [LINE INPUT] is used when receiving input
delimited by commas (,) or double quotation marks (").
Closes the RS-232C circuit.
Refer to the Host's BASIC Manual for more details about the commands.
RS-232C circuit
Open
status
Send instruction
Section 6-1
NT20S operation
Receive instruction
Send instruction
201

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents