Omron NT31 Operation Manuals page 577

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

Advertisement

Outline of Communications
9-2-2
Notes on Using Commands
Example:
Reference: In the "Format" sections in the explanations for commands/responses, paren-
566
The points that should be observed when using commands are given below.
S Method for Specifying Commands
When a personal computer or similar device is used as the host and a high--level
language such as BASIC or C is used for program writing, commands are speci-
fied as ASCII character strings.
Note that in the explanations in this section, parameters are denoted in lower
case characters. When specifying a command, write those parts denoted in up-
per case without modification, for those parts denoted in lower case, write the
numeric values (BCD or hexadecimal) or character string for parameters as
ASCII character strings. Parts in square brackets, such as [ESC] and [CR] each
indicate one control code (the [ESC] code, the [CR] code, etc.).
In the explanations of commands, expressions such as "4 BCD digits" and "2
hexadecimal digits" are used to mean (respectively) "the ASCII character string
for a numerical value expressed as four BCD digits" and "the ASCII character
string for a numerical value expressed as two hexadecimal digits", etc. Do not
specify BCD and hexadecimal data without alteration: always convert it into an
ASCII character string before transmission.
The format for the numeral value memory table read command is shown below.
[ESC]
R
M
1B
52
4E
* *
(l1)
(l2)
(s1)
* *
* *
* *
The following parameters are specified in this format.
m
:
1
t
, t
, t
, t
:
0123
1
2
3
4
l
, l
:
99
1
2
s
, s
:
24
1
2
The character string actually transmitted is as shown below.
[ESC]
R
N
1B
52
4E
31
9
9
39
39
theses are used to indicate parts that can under some circumstances be omitted,
and ** is used to indicate the ASCII code (two hexadecimal digits) of the specified
character.
m
t1
t2
t3
* *
* *
* *
(s2)
[CR]
0D
* *
(1 BCD digit)
(4 BCD digits)
(2 BCD digits)
(2 hexadecimal digits)
1
0
1
2
30
31
32
2
4
[CR]
32
34
0D
Section 9-3
t4
* *
3
33

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt31c

Table of Contents