![background image](http://html.mh-extra.com/html/omron/nt20/nt20_user-manual_744538234.webp)
213
RS-232C Communications
Section 6-2
6-2
RS-232C Communications
This section describes the communications procedure when using the NT20-
ST128 (RS-232C), and program flow using examples in BASIC.
6-2-1
Communications
Procedure
The Host and NT20 communicate according to the following procedure.
1,2,3...
1.
The RS-232C circuit must be opened (i.e., communications enabled) be-
fore communications can start.
2.
Commands are used to control the PT and to receive notification from the
NT20.
3.
Close the RS-232C circuit again after communications have been complet-
ed.
After a circuit has been opened, it can be used until it is closed again.
OPEN:
Opens the RS-232C circuit. The Host communications condi-
tions are also set.
Refer to
3-5-7 Setting RS–232C Communications Conditions
(NT20-ST128)
on page 99.
PRINT#:
Sends an instruction via the RS-232C circuit to the NT20.
LINE INPUT#: Receives a command from the NT20. [LINE INPUT] is used
when receiving input delimited by commas (,) or double quo-
tation marks (").
CLOSE:
Closes the RS-232C circuit.
Refer to the
Host's BASIC Manual
for more details about the
commands.
Operation by Operating
Commands
The operating commands display monitored data from the production line and
messages to the factory workers. They are also used for NT20 control and
management.
The communications flow between the Host and NT20 differs according to the
following three cases:
Message from Host to
NT20
Enquiry from Host to NT20
Host program
RS-232C circuit
NT20 operation
OPEN command
PRINT # command
LINE INPUT # command
CLOSE command
Open circuit
Send instruction
Close circuit
Send instruction
Receive instruction
Send instruction
Open
status
Host program
NT20 operation
Message to PT
Process message
Message operating command
Host program
NT20 operation
Enquiry operating command
Enquiry
Receive command
Receive command
Send response command
Response operating command
Summary of Contents for NT20
Page 1: ...Programmable Terminal Cat No V091 E1 01 NT20 USER S MANUAL ...
Page 2: ...NT series Programmable Terminal User s Manual Produced March 2007 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 9: ...x TABLE OF CONTENTS ...
Page 15: ...xvi ...
Page 21: ...xxii EC Directives 6 ...
Page 37: ...16 Before Operating Section 1 6 ...
Page 153: ...132 Transferring the Resource Data Section 3 11 ...
Page 185: ...164 Numeral Setting Section 4 8 ...
Page 267: ...246 Key to Programs Section 6 8 ...
Page 281: ...260 Specifications Appendix A ...
Page 285: ...264 Transporting and Storing PTs Appendix C ...
Page 303: ...282 Function Restrictions Depending on the Support Tool Appendix I ...
Page 307: ...286 Index ...
Page 309: ...288 Revision History ...