![background image](http://html.mh-extra.com/html/omron/nt20s/nt20s_operation-manual_744540220.webp)
201
RS-232C Interface Unit Communications
Section 6-1
6-1
RS-232C Communications
This section describes the communication procedure when using an
NT20S-ST128 (RS-232C), and program flow using examples in BASIC.
6-1-1
Communication Procedure
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.
Host program
RS-232C circuit
NT20S operation
OPEN command
PRINT # command
LINE INPUT # command
CLOSE command
Open circuit
Send instruction
Close circuit
Send instruction
Receive instruction
Send instruction
Open
status
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 (3-5-4) Setting RS-232C Communication Conditions.
PRINT #
Sends an instruction via the RS-232C circuit to the NT20S.
LINE INPUT #
Receives a command from the NT20S. [LINE INPUT] is used when receiving input
delimited by commas (,) or double quotation marks (”).
CLOSE
Closes the RS-232C circuit.
Refer to the Host’s BASIC Manual for more details about the commands.
Summary of Contents for NT20S
Page 1: ...Cat No V020 E1 04 NT20S Programmable Terminal OPERATION MANUAL ...
Page 2: ...i ...
Page 3: ...ii ...
Page 4: ...iii NT series Programmable Terminal Operation Manual Revised August 1997 ...
Page 5: ...iv ...
Page 7: ...vi ...
Page 11: ...x ...
Page 19: ...xviii ...
Page 129: ...110 ...
Page 169: ...150 ...
Page 253: ...234 ...