Host Link Commands
Parameters
4-5-8 IR/SR AREA WRITE – WR
Command Format
1
0
x 10
x 10
@
W
Node no.
Response Format
Parameters
4-5-9 LR AREA WRITE – WL
Command Format
1
0
x 10
x 10
@
W
Node no.
Header
code
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.
Writes data to the IR and SR areas, starting from the specified word. Writing is
done word by word.
3
2
1
x 10
x 10
x 10
x 10
R
Header
Beginning word*
code
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.
An end code of 00 indicates normal completion.
@
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.
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.
Writes data to the LR area, starting from the specified word. Writing is done word
by word.
3
2
1
x 10
x 10
x 10
x 10
L
Beginning word*
Note Beginning word: 0000 to 0015
0
3
2
1
0
x 16
x 16
x 16
x 16
Write data (1 word)
Write data
(for number of words to write)
1
0
x 10
x 10
x 16
W
R
Node no.
Header
End code
code
0
3
2
1
0
x 16
x 16
x 16
x 16
Write data (1 word)
Write data
(for number of words to write )
Section
:
Terminator
FCS
1
0
x 16
:
FCS
Terminator
:
FCS
Terminator
4-5
285
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?
Questions and answers