![Omron NT21 Series Reference Manual Download Page 374](http://html1.mh-extra.com/html/omron/nt21-series/nt21-series_reference-manual_744543374.webp)
4-3
Section
Commands/Responses
365
4-3
Commands/Responses
This section describes the commands used with the memory link and their re-
sponses.
4-3-1 PT Memory Read Command
(Sent from Host to PT)
Command
Format
1B
52
[ESC]
[CR]
R
0D
4D
M
m
c1
c2
c4
(l1)
(l2)
(s1)
(s2)
c3
* *
* *
* *
* *
* *
* *
* *
* *
* *
m
:
Check sum present/absent (1 BCD digit)
0 : Absent
1 : Present
8 : Absent (1 word read)
9 : Present (1 word read)
c
1
to c
4
:
First word number read (4 BCD digits)
0000 to 9999
l
1
, l
2
:
Number of read words (2 BCD digits)
00 :100
words
01 to 99
: 1 to 99 words
When m is 8 or 9, omit this setting.
s1, s2
:
Check sum (2 hexadecimal digits)
When m is 0 or 8, omit this setting.
Response
Format
Data of 1 word
Data of 1 word
1B
52
[ESC]
R
c3
c4
4D
M
c1
l1
l2
c2
2C
0D
d11
d1m
,
dn1
dnm
s1
s2
[CR]
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
c
1
to c
4
:
First word number read (4 BCD digits)
0000 to 9999
l
1
, l
2
:
Number of read words (2 BCD digits)
01 to 50 :
1 to 50 words
d1
1
to d1
m
, ..., dn
1
to dn
m
:
Contents of the read words (1 to 4 hexadecimal digits)
0 to FFFF
H
Since initial zeroes are omitted, there may be less than 4 digits.
Individual words of data are delimited by commas.
s
1
, s
2
:
Check sum (2 hexadecimal digits)
This is always added.
Function
•
Reads the contents of the specified number of words from the specified word of
the PT memory.
•
Used to read the statuses of the PT notify area, window control area, lamps,
touch switches and bit memory tables allocated to the PT memory, and the
contents of numeral and character string memory tables.
electronic components distributor
Summary of Contents for NT21 Series
Page 3: ...iv Downloaded from Elcodis com electronic components distributor...
Page 5: ...vi Downloaded from Elcodis com electronic components distributor...
Page 463: ...Downloaded from Elcodis com electronic components distributor...
Page 465: ...Downloaded from Elcodis com electronic components distributor...