Omron NT31C Reference Manual page 373

Hide thumbs Also See for NT31C:
Table of Contents

Advertisement

Outline of Communications
4-2-2 Notes on Using Commands
Reference: In the Format sections in the explanations for commands/responses, paren-
Sometimes multiple responses may be received for one command.
• Pattern when the operation at the PT is notified to the host.
[Operation at host]
Notification reception
The points that should be observed when using commands are given below.
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 hexa-
decimal 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 charac-
ter string before transmission.
Example: The format for the numeral value memory table read command is
shown below.
[ESC]
R
1B
52
(l1)
* *
The following parameters are specified in this format.
m
:
t
, t
, t
, t
:
1
2
3
4
l
, l
:
1
2
s
, s
:
1
2
The character string actually transmitted is as shown below.
[ESC]
R
1B
52
9
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.
Processing Differences According to Command Length
• If a command is too long because it has been incorrectly specified, an error
response for a command length error is returned.
• If a command is short because it has been incorrectly specified, a communica-
tion error (time out) occurs.
Notify Command
M
m
t1
t2
4E
* *
* *
* *
(l2)
(s1)
(s2)
[CR]
0D
* *
* *
* *
1
(1 BCD digit)
0123
(4 BCD digits)
99
(2 BCD digits)
24
(2 hexadecimal digits)
N
1
0
1
4E
31
30
31
9
2
4
[CR]
39
32
34
0D
Section
4-2
[Operation at PT]
Notify Command
Transmission
t3
t4
* *
* *
2
3
32
33
363

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nt31Nt631Nt631c

Table of Contents