Em Area Write - - We - 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-16 EM AREA WRITE – – WE
Command Format
1
0
@
W
x 10
x 10
Unit No. (BCD) Header
code
Response Format
Limitations
Execution Conditions
Commands
Single
Multiple
OK
OK
End Codes
120
Writes data to the specified EM Area bank starting from the specified word
(E00000 to E09999). Writing is done in word units.
3
2
E
Bank No.
x 10
x 10
Bank No.
Beginning word
(See note.)
(0000 to 9999)
Note Input 00 to 0C to specify bank number 0 to C. Input two spaces to specify the
current bank.
@
Unit No. (BCD)
The range that can be designated is E0000 to E9999. A single bank of EM
consists of E00000 to E32767, but the range that can be written by this com-
mand is E00000 to E09999.
The maximum EM bank number that can be specified is 12 (0C Hex).
Responses
Single
Multiple
RUN
OK
No
No
An end code of 14 (format error) will be returned if the length of the command
is incorrect or the first word of write data is not in the first frame.
An end code of 15 (entry number data error) will be returned if the specified
write data exceeds the data area boundary, the beginning word is not speci-
fied in BCD, or the write data is not hexadecimal. An end code of 15 will also
be returned if there are no banks and file memory access is not possible. (An
end code of A5 will be returned instead of 15 for non-hexadecimal write data
in multiple command frames.)
End code (Hex)
00
01
13
14
15
18
21
A3
A4
A5
A8
1
0
3
2
x 10
x 10
x 16
x 16
x 16
Write data (1 word)
Write data
(for number of words to write)
1
0
W
E
x 10
x 10
x 16
Header
End code
code
PLC Mode
MON
PROG
OK
OK
Normal completion
Not executable in RUN mode
FCS error
Format error
Entry number data error
Frame length error
Not executable due to CPU Unit CPU error.
Aborted due to FCS error in transmit data
Aborted due to format error in transmit data
Aborted due to entry number data error in transmit data
Aborted due to frame length error in transmit data
1
0
x 16
FCS
1
0
x 16
*
FCS
Terminator
UM Area
Write-protected
Read-protected
OK
Contents
Section 4-3
*
Terminator
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents