Hr Area Write - - Wh - 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-12 HR AREA WRITE – – WH
Command Format
1
0
@
x 10
x 10
Unit No.
(BCD)
Response Format
Execution Conditions
Commands
Single
Multiple
OK
OK
End Codes
116
Writes data to the HR Area (H000 to H511) starting from the specified word.
Writing is done in word units.
3
2
1
W
H
x 10
x 10
x 10
Header
Beginning word
code
(0000 to 0511)
1
@
x 10
x 10
Unit No.
(BCD)
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 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
0
3
2
1
x 10
x 16
x 16
x 16
x 16
Write data (1 word)
Write data
(for number of words to write)
0
1
0
W
H
x 16
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
0
FCS
Terminator
*
FCS
Terminator
UM Area
Write-protected
Read-protected
OK
Contents
Section 4-3
*
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents