4-5
Section
Host Link Commands
288
Parameters
Write Data (Command)
Specify the status of the Completion Flags, for the number of timers/counters to
be written, in order (from the beginning word) as ON (i.e., “1”) or OFF (i.e., “0”).
When a Completion Flag is ON, it indicates that the time or count is up.
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, 126 is
specified as the beginning word for writing in a CPM1 PC, and three words of
data are specified, then 128 will become the last word for writing data, and the
command will not be executed because TC 128 is beyond area boundary.
4-5-13 DM AREA WRITE – WD
Writes data to the DM area, starting from the specified word. Writing is done
word by word.
Command Format
@
W
D
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:
DM 0000 to DM 1023 and DM 6144 to DM 6655 in CPM1/CPM1A PCs
DM 0000 to DM 2047 and DM 6144 to DM 6655 in CPM2A/CPM2C/
SRM1(-V2) PCs
2. Divide the command when writing more than 29 words of data.
Response Format
An end code of 00 indicates normal completion.
@
W
D
x 10
1
x 10
0
x 16
1
x 16
0
↵
FCS
Node no.
Header
code
Terminator
End code
Note
Words DM 1024 to DM 6143 in CPM1/CPM1A PCs and words DM 2048 to
DM 6143 in CPM2A/CPM2C/SRM1(-V2) PCs cannot be specified. If an attempt
is made to write to any of these words, the writing operation will not be executed
for these words and the command will end normally.
Parameters
Write Data (Command)
Specify in order the contents of the number of words to be written to the DM area
in hexadecimal, starting with the specified beginning word.
Note
1. 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 exam-
ple, 1022 is specified as the beginning word for writing in a CPM1 PC, and
three words of data are specified, then 1024 will become the last word for
writing data, and the command will not be executed because DM 1024 is
beyond the writable range.
2. Be careful about the configuration of the DM area, as it varies depending on
the CPU Unit model.
4-5-14 AR AREA WRITE – WJ
Writes data to the AR area, starting from the specified word. Writing is done word
by word.