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
Содержание NT20
Страница 1: ...Programmable Terminal Cat No V091 E1 01 NT20 USER S MANUAL ...
Страница 2: ...NT series Programmable Terminal User s Manual Produced March 2007 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 9: ...x TABLE OF CONTENTS ...
Страница 15: ...xvi ...
Страница 21: ...xxii EC Directives 6 ...
Страница 37: ...16 Before Operating Section 1 6 ...
Страница 153: ...132 Transferring the Resource Data Section 3 11 ...
Страница 185: ...164 Numeral Setting Section 4 8 ...
Страница 267: ...246 Key to Programs Section 6 8 ...
Страница 281: ...260 Specifications Appendix A ...
Страница 285: ...264 Transporting and Storing PTs Appendix C ...
Страница 303: ...282 Function Restrictions Depending on the Support Tool Appendix I ...
Страница 307: ...286 Index ...
Страница 309: ...288 Revision History ...