![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.
Содержание NT20S
Страница 1: ...Cat No V020 E1 04 NT20S Programmable Terminal OPERATION MANUAL ...
Страница 2: ...i ...
Страница 3: ...ii ...
Страница 4: ...iii NT series Programmable Terminal Operation Manual Revised August 1997 ...
Страница 5: ...iv ...
Страница 7: ...vi ...
Страница 11: ...x ...
Страница 19: ...xviii ...
Страница 129: ...110 ...
Страница 169: ...150 ...
Страница 253: ...234 ...