Em Area Read - - Re - 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
4-3-9
EM AREA READ – – RE
Command Format
1
0
@
R
x 10
x 10
Unit No. (BCD)
Response Format
1
@
x 10
x 10
Unit No. (BCD)
Limitations
Execution Conditions
Commands
Single
Multiple
Single
OK
No
End Codes
Reads the contents of the specified number of EM words (E00000 to E09999)
starting from the specified word in the specified EM bank.
3
E
Bank No.
x 10
Header
Bank No.
Beginning word
code
(See note.)
(0000 to 9999)
Note Input 00, 01, or 0C to specify bank number 0, 1, or C. Input two spaces to
specify the current bank.
0
1
0
R
E
x 16
x 16
Header
End code
code
A single bank of EM consists of E00000 to E32767, but the range that can be
read by this command is E00000 to E09999.
The maximum EM bank number that can be specified is 12 (0C Hex).
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.
This command cannot be used to change the current bank number.
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
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, the specified words are
not specified in BCD, or an invalid bank number is specified. An end code of
15 will also be returned if there are no banks and file memory access is not
possible, or if the number of words to read is 0.
End code (Hex)
00
13
14
15
18
21
2
1
0
3
x 10
x 10
x 10
x 10
x 10
No. of words
(0001 to 9999)
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
Normal completion
FCS error
Format error
Entry number data error
Frame length error
Not executable due to CPU Unit CPU error.
2
1
0
x 10
x 10
FCS
Terminator
*
Terminator
FCS
UM Area
Write-protected
Read-protected
OK
Contents
Section 4-3
*
OK
113

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents