Hr Area Read - - Rh - Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual

Communications commands
Hide thumbs Also See for CJ - REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

C-mode Command Details
Execution Conditions
Commands
Single
Multiple
OK
No
End Codes
4-3-4
HR AREA READ – – RH
Command Format
1
@
x 10
x 10
Unit No.
(BCD)
Response Format
1
@
x 10
x 10
Unit No.
(BCD)
Limitations
Execution Conditions
Commands
Single
Multiple
OK
No
End Codes
108
Responses
Single
Multiple
RUN
OK
OK
OK
An end code of 14 (format error) will be returned if the length of the command
is incorrect and an end code of 15 (entry number data error) will be returned if
the specified words exceed the data area boundaries, or are not specified in
BCD, or if the number of words to read is 0.
End code (Hex)
00
13
14
15
18
21
Note The command is provided for compatibility with previous models. We recom-
mend using CIO AREA READ (RR) whenever possible.
Reads the contents of the specified number of HR words starting from the
specified word.
0
3
2
R
H
x 10
x 10
Header
Beginning word
code
(0000 to 0511)
0
1
0
R
H
x 16
x 16
Header
End code
code
The text portion of the response's first frame can contain up to 30 words. If
more than 30 words are read, the data will be returned in multiple frames.
In the second and later frames, the text portion of the response can contain
up to 31 words.
The INITIALIZE and ABORT commands can be sent instead of the delimiter
for multiple responses for this command. If other commands are sent, they will
be treated as delimiters.
Responses
Single
Multiple
RUN
OK
OK
OK
An end code of 14 (format error) will be returned if the length of the command
is incorrect and an end code of 15 (entry number data error) will be returned if
PLC Mode
MON
PROG
OK
OK
Normal completion
FCS error
Format error
Entry number data error
Frame length error
Not executable due to CPU Unit CPU error.
1
0
3
2
x 10
x 10
x 10
x 10
x 10
No. of words
(0001 to 0512)
3
2
1
0
x 16
x 16
x 16
x 16
Read data (1 word)
Read data (for number of words read)
PLC Mode
MON
PROG
OK
OK
UM Area
Write-protected
Read-protected
OK
Contents
1
0
*
x 10
FCS
Terminator
*
FCS
Terminator
UM Area
Write-protected
Read-protected
OK
Section 4-3
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents