5-7SectionUsing Protocol Macros
86
The number of send words in S+1 and the following words is stored in S. The
setting range is 0001 to 0129 (4 digits BCD). S is also included in the number of
words.
Note When there is no send data, set S to #0000. If any other constant or a word ad-
dress is set, an error will occur, the Error Flag (SR 25503) will turn ON, and
PMCR(––) will not be executed.
D specifies the first word of the area used to store the receive data.
If a word address is specified for D and a response is requested, the data
through the highest location received in the reception buffer will be stored in
memory starting at D+1. The number of words that was stored starting at D+1
will be stored in D. D is included in the number of words.
Number of receive words
Receive data
Total number of
words including D
15 00
:
:
:
:
D
D+1
D+n
The number of words of receive data in D+1 and the following words is stored in
D. The range is 0001 to 0129 (4 digits BCD). D is also included in the number of
words.
Note When there is no receive data, set D to to a dummy word address. If any constant
is set, an error will occur, the Error Flag (SR 25503) will turn ON, and PMCR(––)
will not be executed.
When PMCR(––) is executed, the communications sequence specified in bits
00 to 11 of C is executed for the port specified in bits 12 to 15 of C (port 1 or 2).
If an operand is specified as a variable in the send message, data starting in S+1
for the number of words specified in S is used as the send data. If an operand is
specified as a variable in the receive message, data will be received in words
starting from D+1 and the number of words of received data will be automatically
stored in D.
Flags
Name Address ON OFF
Error Flag SR 25503 Indirectly addressed DM or EM word is
non-existent. (Content of DM/EM word is
not BCD, or the area boundary has been
exceeded.)
Another PMCR(––) instruction was already in
progress when the instruction was executed
(IR 20708 or IR 20712 is ON).
The port specifier was not 1 or 2.
Note: PMCR(––) will not be executed when
SR 25503 is ON.
Other
times.
First Receive Data
Storage Word (D)
PMCR(––) Operation