4-5
Section
Host Link Commands
285
Parameters
Read Data (Response)
The contents of the number of words specified by the command are returned in
hexadecimal as a response. The words are returned in order, starting with the
specified beginning word.
4-5-8 IR/SR AREA WRITE – WR
Writes data to the IR and SR areas, starting from the specified word. Writing is
done word by word.
Command Format
@
W
R
FCS
x 10
1
x 10
0
x 10
3
x 10
2
↵
x 10
1
x 10
0
x 16
3
x 16
2
x 16
1
x 16
0
Node no.
Header
code
Beginning word*
Write data (1 word)
Write data
(for number of words to write)
Terminator
Note
1. Beginning word: 0000 to 0049 and 0200 to 0252 in CPM2A/CPM2C PCs,
0000 to 0019 and 0200 to 0252 in CPM1/CPM1A/SRM1(-V2) PCs.
2. Divide the command when writing more than 30 words of data.
Response Format
An end code of 00 indicates normal completion.
@
W
R
x 10
1
x 10
0
x 16
1
x 16
0
↵
FCS
Node no.
End code
Header
code
Terminator
Note
Words 0050 to 0199 cannot be specified in CPM2A/CPM2C PCs and words
0020 to 0199 cannot be specified in CPM1/CPM1A/SRM1(-V2) PCs. If an at-
tempt is made to write to any of these words, the writing operation will not be
executed and normal completion occurs.
Parameters
Write Data (Command)
Specify in order the contents of the number of words to be written to the IR or SR
area in hexadecimal, starting with the specified beginning word.
Note
If data is specified for writing which exceeds the allowable range, an error will be
generated and the writing operation will not be executed. If, for example, 252 is
specified as the beginning word for writing,and two words of data are specified,
then 253 will become the last word for writing data, and the command will not be
executed because SR 253 is beyond the writable range.
4-5-9 LR AREA WRITE – WL
Writes data to the LR area, starting from the specified word. Writing is done word
by word.
Command Format
@
W
L
FCS
x 10
1
x 10
0
x 10
3
x 10
2
↵
x 10
1
x 10
0
x 16
3
x 16
2
x 16
1
x 16
0
Node no.
Header
code
Terminator
Write data (1 word)
Write data
(for number of words to write )
Beginning word*
Note
Beginning word: 0000 to 0015